2020-02-25 12:56:03 +03:00
|
|
|
/*
|
|
|
|
* Mainly scss modules, only imported to `assets/css/main.scss`
|
|
|
|
*
|
|
|
|
* v2.1
|
|
|
|
* https://github.com/cotes2020/jekyll-theme-chirpy
|
|
|
|
* © 2020 Cotes Chung
|
|
|
|
* MIT Licensed
|
|
|
|
*/
|
|
|
|
|
|
|
|
/*---------- scss placeholder ---------*/
|
|
|
|
|
|
|
|
%tag-hover {
|
2020-02-27 16:05:50 +03:00
|
|
|
background: var(--tag-hover);
|
2020-02-25 12:56:03 +03:00
|
|
|
transition: background 0.35s ease-in-out;
|
|
|
|
}
|
|
|
|
|
|
|
|
%table-cell {
|
|
|
|
padding: .35rem .8rem;
|
|
|
|
font-size: 95%;
|
|
|
|
}
|
|
|
|
|
|
|
|
%link-hover {
|
|
|
|
color: #d2603a!important;
|
|
|
|
border-bottom: 1px solid #d2603a;
|
|
|
|
text-decoration: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
%link-color {
|
2020-02-27 16:05:50 +03:00
|
|
|
color: var(--link-color);
|
2020-02-25 12:56:03 +03:00
|
|
|
}
|
|
|
|
|
2020-02-28 19:16:47 +03:00
|
|
|
%link-underline {
|
|
|
|
border-bottom: 1px solid var(--link-underline-color);
|
|
|
|
}
|
|
|
|
|
2020-02-25 12:56:03 +03:00
|
|
|
%no-bottom-border {
|
|
|
|
border-bottom: none;
|
|
|
|
}
|
|
|
|
|
2020-04-07 15:23:57 +03:00
|
|
|
%heading {
|
|
|
|
font-family: 'Lato', 'Microsoft Yahei', sans-serif;
|
|
|
|
}
|
|
|
|
|
2020-02-25 12:56:03 +03:00
|
|
|
%section {
|
2020-02-28 19:16:47 +03:00
|
|
|
#post-wrapper & {
|
|
|
|
line-height: 1.2;
|
|
|
|
margin-bottom: 1rem;
|
|
|
|
}
|
2020-02-25 12:56:03 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
%anchor {
|
2020-04-07 15:23:57 +03:00
|
|
|
.post-content &,
|
2020-02-28 19:16:47 +03:00
|
|
|
#page & {
|
|
|
|
padding-top: 3.5rem;
|
|
|
|
margin-top: -2.5rem;
|
|
|
|
}
|
2020-02-25 12:56:03 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
/*---------- scss mixin ---------*/
|
|
|
|
|
|
|
|
@mixin no-text-decoration {
|
|
|
|
text-decoration: none;
|
|
|
|
}
|
|
|
|
|
2020-05-04 23:57:40 +03:00
|
|
|
@mixin sidebar-links($color: rgba(255, 255, 255, 0.5)) {
|
|
|
|
color: $color;
|
2020-02-25 12:56:03 +03:00
|
|
|
transition: color 0.35s ease-in-out;
|
|
|
|
user-select: none;
|
|
|
|
margin: 0 .25rem;
|
|
|
|
}
|
|
|
|
|
|
|
|
@mixin icon-round($diameter) {
|
|
|
|
border: 1px solid;
|
|
|
|
border-radius: 50%;
|
|
|
|
width: $diameter;
|
|
|
|
height: $diameter;
|
|
|
|
}
|
|
|
|
|
|
|
|
@mixin ml-mr($value) {
|
|
|
|
margin-left: $value;
|
|
|
|
margin-right: $value;
|
|
|
|
}
|
|
|
|
|
|
|
|
@mixin pl-pr($val) {
|
|
|
|
padding-left: $val;
|
|
|
|
padding-right: $val;
|
|
|
|
}
|
|
|
|
|
|
|
|
@mixin input-placeholder {
|
|
|
|
opacity: 0.6;
|
|
|
|
}
|
2020-04-07 15:23:57 +03:00
|
|
|
|
|
|
|
@mixin semi-bold {
|
|
|
|
font-weight: 600;
|
|
|
|
}
|
|
|
|
|
|
|
|
@mixin label($font-size: 1rem, $font-weight: 600, $color: var(--label-color)) {
|
|
|
|
color: $color;
|
|
|
|
font-size: $font-size;
|
|
|
|
font-weight: $font-weight;
|
|
|
|
font-family: 'Roboto Condensed', 'Microsoft Yahei', sans-serif;
|
|
|
|
}
|