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