2022-09-30 10:51:42 +08:00
|
|
|
$friend-link-item-height = 82px
|
|
|
|
$friend-link-item-height-tablet = 68px
|
|
|
|
$friend-link-item-interval = 16px
|
|
|
|
$friend-link-item-border-radius = 6px
|
2020-11-26 16:09:09 +08:00
|
|
|
|
2021-01-29 15:06:06 +08:00
|
|
|
.page-template-container {
|
2020-04-24 22:49:10 +08:00
|
|
|
|
2022-09-30 10:51:42 +08:00
|
|
|
keep-container(false, 0, 0, 30px, 30px)
|
2020-06-04 22:11:27 +08:00
|
|
|
|
2021-01-29 15:06:06 +08:00
|
|
|
.page-template-content {
|
2022-09-30 10:51:42 +08:00
|
|
|
color var(--default-text-color)
|
2020-04-24 22:49:10 +08:00
|
|
|
|
2022-09-30 10:51:42 +08:00
|
|
|
h1
|
|
|
|
h2
|
|
|
|
h3
|
|
|
|
h4
|
|
|
|
h5
|
|
|
|
h6 {
|
2020-04-24 22:49:10 +08:00
|
|
|
|
|
|
|
&:first-child {
|
2022-09-30 10:51:42 +08:00
|
|
|
margin-top 0
|
2020-04-24 22:49:10 +08:00
|
|
|
}
|
|
|
|
}
|
2020-04-10 22:24:16 +08:00
|
|
|
}
|
2020-11-26 16:09:09 +08:00
|
|
|
|
2020-12-07 15:51:52 +08:00
|
|
|
|
2020-11-26 16:09:09 +08:00
|
|
|
if (hexo-config('menu.Links')) {
|
|
|
|
.friends-link-container {
|
|
|
|
|
|
|
|
.friends-link-list {
|
2022-09-30 10:51:42 +08:00
|
|
|
position relative
|
2020-11-26 16:09:09 +08:00
|
|
|
|
|
|
|
.friends-link-item {
|
2022-09-30 10:51:42 +08:00
|
|
|
position relative
|
|
|
|
float left
|
|
|
|
box-sizing border-box
|
|
|
|
width 50%
|
|
|
|
height $friend-link-item-height
|
|
|
|
padding-bottom $friend-link-item-interval
|
|
|
|
cursor pointer
|
2020-11-26 16:09:09 +08:00
|
|
|
|
2020-12-07 15:51:52 +08:00
|
|
|
+keep-tablet() {
|
2022-09-30 10:51:42 +08:00
|
|
|
height $friend-link-item-height-tablet
|
2020-12-07 15:51:52 +08:00
|
|
|
}
|
|
|
|
|
2020-11-26 16:09:09 +08:00
|
|
|
&:nth-child(odd) {
|
2022-09-30 10:51:42 +08:00
|
|
|
padding-right $friend-link-item-interval * 0.5
|
2020-11-26 16:09:09 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
&:nth-child(even) {
|
2022-09-30 10:51:42 +08:00
|
|
|
padding-left $friend-link-item-interval * 0.5
|
2020-11-26 16:09:09 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
.content {
|
2022-09-30 10:51:42 +08:00
|
|
|
position relative
|
|
|
|
box-sizing border-box
|
|
|
|
width 100%
|
|
|
|
height 100%
|
|
|
|
padding-left $friend-link-item-height - $friend-link-item-interval
|
|
|
|
border-radius $friend-link-item-border-radius
|
|
|
|
box-shadow 1px 1px 2px var(--shadow-color)
|
2020-12-07 15:51:52 +08:00
|
|
|
|
2021-01-21 16:47:13 +08:00
|
|
|
|
2020-12-07 15:51:52 +08:00
|
|
|
+keep-tablet() {
|
2022-09-30 10:51:42 +08:00
|
|
|
padding-left $friend-link-item-height-tablet - $friend-link-item-interval
|
2020-12-07 15:51:52 +08:00
|
|
|
}
|
|
|
|
|
2020-11-26 16:09:09 +08:00
|
|
|
&:hover {
|
2022-09-30 10:51:42 +08:00
|
|
|
box-shadow 1px 1px 6px var(--shadow-color)
|
2021-01-22 19:04:05 +08:00
|
|
|
|
|
|
|
.info .name {
|
2022-09-30 10:51:42 +08:00
|
|
|
color var(--primary-color)
|
2021-01-22 19:04:05 +08:00
|
|
|
}
|
2020-11-26 16:09:09 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
.radius {
|
2022-09-30 10:51:42 +08:00
|
|
|
border-top-left-radius $friend-link-item-border-radius
|
|
|
|
border-bottom-left-radius $friend-link-item-border-radius
|
2020-11-26 16:09:09 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
.avatar {
|
2022-09-30 10:51:42 +08:00
|
|
|
position absolute
|
|
|
|
top 0
|
|
|
|
left 0
|
|
|
|
display flex
|
|
|
|
align-items center
|
|
|
|
justify-content center
|
|
|
|
width $friend-link-item-height - $friend-link-item-interval
|
|
|
|
height 100%
|
|
|
|
color var(--second-text-color)
|
|
|
|
font-size 2rem
|
|
|
|
background var(--second-background-color)
|
2020-11-26 16:09:09 +08:00
|
|
|
|
2021-01-21 16:47:13 +08:00
|
|
|
|
2020-12-07 15:51:52 +08:00
|
|
|
+keep-tablet() {
|
2022-09-30 10:51:42 +08:00
|
|
|
width $friend-link-item-height-tablet - $friend-link-item-interval
|
2020-12-07 15:51:52 +08:00
|
|
|
}
|
|
|
|
|
2020-11-26 16:09:09 +08:00
|
|
|
img {
|
2022-09-30 10:51:42 +08:00
|
|
|
position relative
|
|
|
|
box-sizing border-box
|
|
|
|
width 100%
|
|
|
|
height 100%
|
2020-11-26 16:09:09 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2021-01-21 16:47:13 +08:00
|
|
|
|
2020-11-26 16:09:09 +08:00
|
|
|
.info {
|
2022-09-30 10:51:42 +08:00
|
|
|
position relative
|
|
|
|
display flex
|
|
|
|
flex-direction column
|
|
|
|
align-items center
|
|
|
|
justify-items flex-start
|
|
|
|
box-sizing border-box
|
|
|
|
width 100%
|
|
|
|
height 100%
|
|
|
|
padding 10px
|
2020-11-26 16:09:09 +08:00
|
|
|
|
2020-12-07 15:51:52 +08:00
|
|
|
+keep-tablet() {
|
2022-09-30 10:51:42 +08:00
|
|
|
padding 6px
|
2020-12-07 15:51:52 +08:00
|
|
|
}
|
|
|
|
|
2020-11-26 16:09:09 +08:00
|
|
|
.name {
|
2022-09-30 10:51:42 +08:00
|
|
|
width 100%
|
|
|
|
height 60%
|
|
|
|
color var(--second-text-color)
|
|
|
|
font-size 1.28rem
|
2020-12-07 15:51:52 +08:00
|
|
|
|
|
|
|
+keep-tablet() {
|
2022-09-30 10:51:42 +08:00
|
|
|
font-size 1.08rem
|
2020-12-07 15:51:52 +08:00
|
|
|
}
|
2020-11-26 16:09:09 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
.description {
|
2022-09-30 10:51:42 +08:00
|
|
|
width 100%
|
|
|
|
height 40%
|
|
|
|
color var(--third-text-color)
|
|
|
|
font-size 1rem
|
2020-12-07 15:51:52 +08:00
|
|
|
|
2021-01-21 16:47:13 +08:00
|
|
|
|
2020-12-07 15:51:52 +08:00
|
|
|
+keep-tablet() {
|
2022-09-30 10:51:42 +08:00
|
|
|
font-size 0.98rem
|
2020-12-07 15:51:52 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.ellipsis {
|
2022-09-30 10:51:42 +08:00
|
|
|
overflow hidden
|
|
|
|
white-space nowrap
|
|
|
|
text-overflow ellipsis
|
2020-11-26 16:09:09 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2020-10-29 21:57:58 +08:00
|
|
|
}
|