2022-09-30 11:36:38 +08:00
|
|
|
$tools-item-width = 2.2rem
|
2022-09-30 10:51:42 +08:00
|
|
|
$tools-item-font-size = 1.1rem
|
2022-09-30 11:36:38 +08:00
|
|
|
$tools-item-border-radius = 0.1rem
|
2020-12-01 16:51:38 +08:00
|
|
|
|
2020-11-25 16:54:44 +08:00
|
|
|
|
|
|
|
.side-tools-container {
|
2022-09-30 10:51:42 +08:00
|
|
|
position relative
|
2020-11-25 16:54:44 +08:00
|
|
|
|
|
|
|
.tools-item {
|
2022-09-30 10:51:42 +08:00
|
|
|
width $tools-item-width
|
|
|
|
height $tools-item-width
|
2022-09-30 11:36:38 +08:00
|
|
|
margin-bottom 0.2rem
|
2022-10-14 17:56:32 +08:00
|
|
|
color var(--text-color-3)
|
2022-09-30 10:51:42 +08:00
|
|
|
font-size $tools-item-font-size
|
2022-10-14 17:56:32 +08:00
|
|
|
background var(--background-color-1)
|
2022-09-30 10:51:42 +08:00
|
|
|
border-right none
|
|
|
|
border-radius $tools-item-border-radius
|
2022-09-30 11:36:38 +08:00
|
|
|
box-shadow 0.1rem 0.1rem 0.2rem var(--shadow-color)
|
2022-09-30 10:51:42 +08:00
|
|
|
cursor pointer
|
2021-01-21 16:47:13 +08:00
|
|
|
|
|
|
|
i {
|
2022-10-14 17:56:32 +08:00
|
|
|
color var(--text-color-3)
|
2021-01-21 16:47:13 +08:00
|
|
|
}
|
2020-11-25 16:54:44 +08:00
|
|
|
|
|
|
|
&:hover {
|
2022-10-14 17:56:32 +08:00
|
|
|
color var(--background-color-1)
|
2022-09-30 10:51:42 +08:00
|
|
|
background var(--primary-color)
|
2022-09-30 11:36:38 +08:00
|
|
|
box-shadow 0.2rem 0.2rem 0.4rem var(--shadow-color)
|
2021-01-21 16:47:13 +08:00
|
|
|
|
|
|
|
i {
|
2022-10-14 17:56:32 +08:00
|
|
|
color var(--background-color-1)
|
2021-01-21 16:47:13 +08:00
|
|
|
}
|
2020-11-25 16:54:44 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
+keep-tablet() {
|
2022-09-30 10:51:42 +08:00
|
|
|
width $tools-item-width * 0.9
|
|
|
|
height $tools-item-width * 0.9
|
2022-09-30 11:36:38 +08:00
|
|
|
margin-bottom 0.2rem
|
2022-09-30 10:51:42 +08:00
|
|
|
font-size $tools-item-font-size * 0.9
|
2020-11-25 16:54:44 +08:00
|
|
|
}
|
2020-12-07 15:22:54 +08:00
|
|
|
|
|
|
|
&.rss {
|
|
|
|
|
|
|
|
a {
|
2022-09-30 10:51:42 +08:00
|
|
|
width 100%
|
|
|
|
height 100%
|
|
|
|
border-radius $tools-item-border-radius
|
2020-12-07 15:22:54 +08:00
|
|
|
|
|
|
|
&:hover {
|
2022-10-14 17:56:32 +08:00
|
|
|
color var(--background-color-1)
|
2022-09-30 10:51:42 +08:00
|
|
|
background var(--primary-color)
|
2022-09-30 11:36:38 +08:00
|
|
|
box-shadow 0.2rem 0.2rem 0.4rem var(--shadow-color)
|
2020-12-07 15:22:54 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2020-11-25 16:54:44 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.side-tools-list {
|
2022-09-30 10:51:42 +08:00
|
|
|
transform translateX(100%)
|
|
|
|
opacity 0
|
|
|
|
transition-t("transform, opacity", "0, 0", "0.2, 0.2", "linear, linear")
|
2020-11-25 16:54:44 +08:00
|
|
|
|
|
|
|
&.show {
|
2022-09-30 10:51:42 +08:00
|
|
|
transform translateX(0)
|
|
|
|
opacity 1
|
2020-11-25 16:54:44 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2021-01-10 23:49:25 +08:00
|
|
|
|
|
|
|
.exposed-tools-list {
|
|
|
|
|
|
|
|
if (hexo-config('style.scroll.percent.enable') == true) {
|
|
|
|
.tool-scroll-to-top {
|
2022-09-30 10:51:42 +08:00
|
|
|
display none
|
2021-01-10 23:49:25 +08:00
|
|
|
|
2021-01-22 18:20:13 +08:00
|
|
|
&.show {
|
2022-09-30 10:51:42 +08:00
|
|
|
display flex
|
2021-01-22 18:20:13 +08:00
|
|
|
}
|
2021-01-21 16:47:13 +08:00
|
|
|
|
2021-01-10 23:49:25 +08:00
|
|
|
&:hover {
|
|
|
|
|
2021-01-22 18:20:13 +08:00
|
|
|
.percent {
|
2022-09-30 10:51:42 +08:00
|
|
|
display none
|
2021-01-22 18:20:13 +08:00
|
|
|
}
|
|
|
|
|
2021-01-10 23:49:25 +08:00
|
|
|
.arrow-up {
|
2022-09-30 10:51:42 +08:00
|
|
|
display flex
|
2021-01-10 23:49:25 +08:00
|
|
|
}
|
2021-01-21 16:47:13 +08:00
|
|
|
}
|
|
|
|
|
2021-01-10 23:49:25 +08:00
|
|
|
.arrow-up {
|
2022-09-30 10:51:42 +08:00
|
|
|
display none
|
2021-01-10 23:49:25 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
.percent {
|
2022-09-30 10:51:42 +08:00
|
|
|
display flex
|
|
|
|
font-size 1rem
|
2021-01-10 23:49:25 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2020-11-25 16:54:44 +08:00
|
|
|
}
|