amis2/scss/base/_typography.scss

54 lines
839 B
SCSS
Raw Normal View History

2019-04-30 11:11:25 +08:00
/**
* Basic typography style for copy text
*/
html {
2019-12-06 09:58:08 +08:00
font-size: $remFactor;
}
2019-04-30 11:11:25 +08:00
body {
color: var(--body-color);
background: var(--body-bg);
font-size: var(--body-size);
font-weight: var(--body-weight);
font-family: var(--fontFamilyBase);
line-height: var(--body-lineHeight);
2019-12-06 09:58:08 +08:00
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
2019-04-30 11:11:25 +08:00
}
a {
color: var(--link-color);
text-decoration: var(--link-decoration);
2019-04-30 11:11:25 +08:00
2019-12-06 09:58:08 +08:00
&:hover {
color: var(--link-onHover-color);
text-decoration: var(--link-onHover-decoration);
2019-12-06 09:58:08 +08:00
}
2019-04-30 11:11:25 +08:00
}
label {
font-weight: var(--fontWeightNormal);
2019-04-30 11:11:25 +08:00
}
h1,
h2,
h3,
h4,
h5,
h6 {
font-weight: var(--fontWeightNormal);
color: var(--text--loud-color);
2019-12-06 09:58:08 +08:00
line-height: 1.1;
2019-04-30 11:11:25 +08:00
}
.is-matched {
color: var(--danger);
}
pre,
code,
kbd,
samp {
font-family: var(--fontFamilyMonospace);
}