mirror of
https://github.com/CaiJimmy/hugo-theme-stack.git
synced 2024-11-23 10:21:46 +01:00
feat(scss); add --article-font-size and --article-line-height variables
This commit is contained in:
parent
486b5d8245
commit
3c803ebd5c
2 changed files with 12 additions and 7 deletions
|
@ -194,12 +194,8 @@
|
|||
|
||||
.article-content {
|
||||
font-family: var(--article-font-family);
|
||||
font-size: 1.7rem;
|
||||
line-height: 1.85;
|
||||
|
||||
@media (max-width: $on-tablet) {
|
||||
font-size: 1.6rem;
|
||||
}
|
||||
font-size: var(--article-font-size);
|
||||
line-height: var(--article-line-height);
|
||||
|
||||
& > p {
|
||||
margin: 1.5em 0;
|
||||
|
|
|
@ -35,9 +35,18 @@ $on-desktop-large: 1920px;
|
|||
--zh-font-family: "PingFang SC", "Hiragino Sans GB", "Droid Sans Fallback", "Microsoft YaHei";
|
||||
|
||||
--base-font-family: "Lato", var(--sys-font-family), var(--zh-font-family);
|
||||
--article-font-family: var(--base-font-family);
|
||||
--code-font-family: Menlo, Monaco, Consolas, "Courier New";
|
||||
|
||||
/**
|
||||
* Article content font settings
|
||||
*/
|
||||
--article-font-family: var(--base-font-family);
|
||||
--article-font-size: 1.7rem;
|
||||
@media (max-width: $on-tablet) {
|
||||
--article-font-size: 1.6rem;
|
||||
}
|
||||
--article-line-height: 1.85;
|
||||
|
||||
/*
|
||||
Article style
|
||||
*/
|
||||
|
|
Loading…
Reference in a new issue