2020-11-26 16:09:09 +08:00
|
|
|
$tools-item-width = 32px;
|
2020-11-25 16:54:44 +08:00
|
|
|
|
|
|
|
.side-tools-container {
|
|
|
|
position: relative;
|
|
|
|
transition();
|
|
|
|
|
|
|
|
.tools-item {
|
|
|
|
width: $tools-item-width;
|
|
|
|
height: $tools-item-width;
|
|
|
|
font-size: 1.1em;
|
|
|
|
margin-bottom: 3px;
|
|
|
|
color: var(--second-text-color);
|
|
|
|
background: var(--background-color);
|
|
|
|
cursor: pointer;
|
|
|
|
box-shadow: 1px 1px 3px var(--shadow-color);
|
|
|
|
border-right: none;
|
2020-11-26 09:41:53 +08:00
|
|
|
border-radius: 1px;
|
2020-11-25 16:54:44 +08:00
|
|
|
|
|
|
|
&:hover {
|
|
|
|
transition();
|
|
|
|
color: var(--background-color);
|
|
|
|
background: var(--primary-color);
|
|
|
|
box-shadow: 2px 2px 6px var(--shadow-color);
|
|
|
|
}
|
|
|
|
|
|
|
|
+keep-tablet() {
|
|
|
|
width: $tools-item-width * 0.9;
|
|
|
|
height: $tools-item-width * 0.9;
|
|
|
|
font-size: 1.05em;
|
|
|
|
margin-bottom: 2px;
|
|
|
|
}
|
|
|
|
|
|
|
|
+keep-mobile() {
|
|
|
|
width: $tools-item-width * 0.8;
|
|
|
|
height: $tools-item-width * 0.8;
|
|
|
|
font-size: 1.0em;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.side-tools-list {
|
|
|
|
opacity: 0;
|
|
|
|
transform: translateX(100%);
|
|
|
|
transition();
|
|
|
|
|
2020-11-25 23:39:24 +08:00
|
|
|
.tool-expand-width {
|
|
|
|
+keep-tablet() {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-11-25 16:54:44 +08:00
|
|
|
&.show {
|
|
|
|
opacity: 1;
|
|
|
|
transform: translateX(0);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|