88 lines
1.4 KiB
Stylus
88 lines
1.4 KiB
Stylus
@require 'variables.styl'
|
|
@require 'animated.styl'
|
|
@require 'magic-theme.styl'
|
|
|
|
html, body {
|
|
margin: 0;
|
|
padding: 0;
|
|
color: var(--normal-text-color);
|
|
if (hexo-config('magic.enable') == true) {
|
|
background: var(--magic-background-color);
|
|
} else {
|
|
background: var(--background-color);
|
|
}
|
|
font-size: $default-font-size;
|
|
font-family: $default-font-family;
|
|
font-weight: $default-font-weight;
|
|
line-height: $default-font-line-height;
|
|
}
|
|
|
|
|
|
::selection {
|
|
background: var(--selection-color);
|
|
color: #fff;
|
|
}
|
|
|
|
* {
|
|
&::-webkit-scrollbar {
|
|
width: 6px;
|
|
}
|
|
|
|
&::-webkit-scrollbar-thumb {
|
|
background: rgba(0, 0, 0, 0.2)
|
|
}
|
|
|
|
&::-webkit-scrollbar-track {
|
|
background: transparent;
|
|
}
|
|
}
|
|
|
|
ul,
|
|
li,
|
|
ol {
|
|
padding: 0;
|
|
margin: 0;
|
|
list-style: none;
|
|
}
|
|
|
|
a {
|
|
text-decoration: none;
|
|
color: var(--normal-text-color);
|
|
}
|
|
|
|
a:hover, a:active {
|
|
color: var(--primary-color);
|
|
}
|
|
|
|
button {
|
|
padding: 0;
|
|
margin: 0;
|
|
border: 0;
|
|
outline: none;
|
|
cursor: pointer;
|
|
background: transparent;
|
|
}
|
|
|
|
.btn {
|
|
display: inline-block;
|
|
position: relative;
|
|
text-align: center;
|
|
cursor: pointer;
|
|
white-space: nowrap;
|
|
border-radius: 5px;
|
|
padding: 0.5em 1em;
|
|
background: var(--background-color);
|
|
|
|
if (hexo-config('magic.enable') == true) {
|
|
magic-style(1.1, 1.1);
|
|
} else {
|
|
border: 1px solid var(--border-color);
|
|
}
|
|
|
|
&:hover {
|
|
transition();
|
|
color: var(--background-color);
|
|
background: var(--primary-color);
|
|
}
|
|
}
|