hexo-theme-keep/source/css/layout/common/basic.styl

96 lines
1.6 KiB
Stylus
Raw Normal View History

@require 'variables.styl'
2020-04-01 12:09:06 +08:00
@require 'animated.styl'
html, body {
margin: 0;
padding: 0;
color: var(--normal-text-color);
background: var(--background-color);
font-size: $default-font-size;
font-family: $default-font-family;
font-weight: $default-font-weight;
2020-04-01 22:42:24 +08:00
line-height: $default-font-line-height;
2020-04-03 18:18:42 +08:00
//-webkit-font-smoothing antialiased;
transition: all 0.5s ease;
}
2020-04-03 18:18:42 +08:00
ul,
li,
ol {
padding: 0;
margin: 0;
list-style: none;
}
2020-03-22 20:31:13 +08:00
button {
padding: 0;
margin: 0;
border: 0;
outline: none;
cursor: pointer;
2020-04-02 22:07:55 +08:00
background: transparent;
2020-03-22 20:31:13 +08:00
}
a {
text-decoration: none;
color: var(--normal-text-color);
}
a:hover, a:active {
2020-04-03 18:18:42 +08:00
color: var(--primary-color);
}
//
.btn {
display: inline-block;
position: relative;
text-align: center;
cursor: pointer;
2020-04-03 18:18:42 +08:00
color: var(--third-text-color);
border: 1px solid var(--third-text-color);
white-space: nowrap;
border-radius: 10em;
padding: 0.5em 1em;
&:hover {
2020-04-03 18:18:42 +08:00
color: var(--primary-color);
border: 1px solid var(--primary-color);
}
}
//
.article-title-hover-animation {
display: inline-block;
position: relative;
color: var(--second-text-color);
border-bottom: none;
line-height: 1.3;
vertical-align: top;
&::before {
content: "";
position: absolute;
width: 100%;
height: 2px;
bottom: -4px;
left: 0;
background-color: var(--second-text-color);
visibility: hidden;
transform: scaleX(0);
the-transition();
}
&:hover::before {
visibility: visible;
transform: scaleX(1);
}
}
::selection {
2020-04-03 18:18:42 +08:00
background: var(--selection-color);
color: #fff;
}