Optimized typography.

This commit is contained in:
Cotes Chung
2020-04-07 20:23:57 +08:00
parent 3e8dc979c6
commit b393e12e30
10 changed files with 51 additions and 346 deletions

View File

@@ -37,6 +37,10 @@
border-bottom: none;
}
%heading {
font-family: 'Lato', 'Microsoft Yahei', sans-serif;
}
%section {
#post-wrapper & {
line-height: 1.2;
@@ -45,19 +49,13 @@
}
%anchor {
#post-wrapper &,
.post-content &,
#page & {
padding-top: 3.5rem;
margin-top: -2.5rem;
}
}
%footer-content {
font-weight: 600;
color: var(---footer-link);
}
/*---------- scss mixin ---------*/
@mixin no-text-decoration {
@@ -91,3 +89,14 @@
@mixin input-placeholder {
opacity: 0.6;
}
@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;
}