2020-03-21 23:04:01 +08:00
|
|
|
@require 'variables.styl'
|
2020-04-01 12:09:06 +08:00
|
|
|
@require 'animated.styl'
|
2020-04-24 22:49:10 +08:00
|
|
|
@require 'magic-theme.styl'
|
2020-03-21 23:04:01 +08:00
|
|
|
|
2020-09-03 12:28:24 +08:00
|
|
|
|
|
|
|
// ============================
|
|
|
|
// scrollbar
|
|
|
|
// ============================
|
|
|
|
* {
|
|
|
|
&::-webkit-scrollbar {
|
|
|
|
width: 6px;
|
|
|
|
height: 6px;
|
|
|
|
}
|
|
|
|
|
|
|
|
&::-webkit-scrollbar-thumb {
|
2020-11-15 22:06:32 +08:00
|
|
|
//background: rgba(0, 0, 0, 0.32);
|
|
|
|
background: var(--scroll-bar-color);
|
2020-09-03 12:28:24 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
&::-webkit-scrollbar-track {
|
|
|
|
background: transparent;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// ============================
|
|
|
|
// html, body
|
|
|
|
// ============================
|
2020-03-21 23:04:01 +08:00
|
|
|
html, body {
|
|
|
|
margin: 0;
|
|
|
|
padding: 0;
|
2020-04-02 20:37:34 +08:00
|
|
|
color: var(--normal-text-color);
|
2020-11-13 14:43:22 +08:00
|
|
|
background: var(--background-color);
|
2020-03-21 23:04:01 +08:00
|
|
|
font-family: $default-font-family;
|
|
|
|
font-weight: $default-font-weight;
|
2020-09-03 12:28:24 +08:00
|
|
|
font-size: $default-font-size;
|
2020-04-01 22:42:24 +08:00
|
|
|
line-height: $default-font-line-height;
|
2020-09-03 12:28:24 +08:00
|
|
|
|
|
|
|
+ils-tablet() {
|
2020-11-13 14:43:22 +08:00
|
|
|
//font-size: 0.99em;
|
|
|
|
//line-height: $default-font-line-height - 2px;
|
|
|
|
font-size: $default-font-size * 0.95;
|
|
|
|
line-height: $default-font-line-height * 0.95;
|
|
|
|
|
2020-09-03 12:28:24 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
+ils-mobile() {
|
2020-11-13 14:43:22 +08:00
|
|
|
//font-size: 0.98em;
|
|
|
|
//line-height: $default-font-line-height - 4px;
|
|
|
|
font-size: $default-font-size * 0.9;
|
|
|
|
line-height: $default-font-line-height * 0.9;
|
2020-09-03 12:28:24 +08:00
|
|
|
}
|
|
|
|
|
2020-03-21 23:04:01 +08:00
|
|
|
}
|
|
|
|
|
2020-09-01 19:21:28 +08:00
|
|
|
|
2020-09-03 12:28:24 +08:00
|
|
|
// ============================
|
|
|
|
// selection
|
|
|
|
// ============================
|
2020-04-07 11:57:53 +08:00
|
|
|
::selection {
|
|
|
|
background: var(--selection-color);
|
|
|
|
color: #fff;
|
|
|
|
}
|
|
|
|
|
2020-09-01 19:21:28 +08:00
|
|
|
|
2020-09-03 12:28:24 +08:00
|
|
|
// ============================
|
|
|
|
// ul, ol, li
|
|
|
|
// ============================
|
|
|
|
ul, ol, li {
|
2020-03-21 23:04:01 +08:00
|
|
|
padding: 0;
|
|
|
|
margin: 0;
|
|
|
|
list-style: none;
|
|
|
|
}
|
|
|
|
|
2020-09-03 12:28:24 +08:00
|
|
|
// ============================
|
|
|
|
// a
|
|
|
|
// ============================
|
2020-03-21 23:04:01 +08:00
|
|
|
a {
|
|
|
|
text-decoration: none;
|
2020-04-02 20:37:34 +08:00
|
|
|
color: var(--normal-text-color);
|
2020-03-21 23:04:01 +08:00
|
|
|
|
2020-09-03 12:28:24 +08:00
|
|
|
&:hover, &:active {
|
|
|
|
color: var(--primary-color);
|
|
|
|
}
|
|
|
|
|
2020-03-21 23:04:01 +08:00
|
|
|
}
|
|
|
|
|
2020-09-03 12:28:24 +08:00
|
|
|
// ============================
|
|
|
|
// button
|
|
|
|
// ============================
|
2020-04-07 11:57:53 +08:00
|
|
|
button {
|
|
|
|
padding: 0;
|
|
|
|
margin: 0;
|
|
|
|
border: 0;
|
|
|
|
outline: none;
|
|
|
|
cursor: pointer;
|
|
|
|
background: transparent;
|
|
|
|
}
|
2020-03-21 23:04:01 +08:00
|
|
|
|
|
|
|
.btn {
|
|
|
|
display: inline-block;
|
|
|
|
position: relative;
|
|
|
|
text-align: center;
|
|
|
|
cursor: pointer;
|
|
|
|
white-space: nowrap;
|
2020-04-24 22:49:10 +08:00
|
|
|
border-radius: 5px;
|
2020-03-21 23:04:01 +08:00
|
|
|
padding: 0.5em 1em;
|
2020-04-24 22:49:10 +08:00
|
|
|
background: var(--background-color);
|
2020-11-13 14:43:22 +08:00
|
|
|
hover-style(1.1, 1.1);
|
2020-03-21 23:04:01 +08:00
|
|
|
|
|
|
|
&:hover {
|
2020-04-25 11:16:58 +08:00
|
|
|
transition();
|
2020-04-24 22:49:10 +08:00
|
|
|
color: var(--background-color);
|
|
|
|
background: var(--primary-color);
|
2020-03-21 23:04:01 +08:00
|
|
|
}
|
2020-09-01 19:21:28 +08:00
|
|
|
}
|