2020-08-22 13:20:08 +02:00
|
|
|
$defaultTagBackgrounds: #8ea885, #df7988, #0177b8, #ffb900, #6b69d6;
|
|
|
|
$defaultTagColors: #fff, #fff, #fff, #fff, #fff;
|
|
|
|
|
|
|
|
/*
|
2020-09-11 23:30:11 +02:00
|
|
|
* Global style
|
2020-08-22 13:20:08 +02:00
|
|
|
*/
|
|
|
|
:root {
|
2021-06-20 12:53:10 +02:00
|
|
|
@include respond(md) {
|
2020-10-04 15:58:32 +02:00
|
|
|
--main-top-padding: 35px;
|
|
|
|
}
|
|
|
|
|
2021-06-20 12:53:10 +02:00
|
|
|
@include respond(xl) {
|
2020-09-07 11:34:28 +02:00
|
|
|
--main-top-padding: 50px;
|
|
|
|
}
|
|
|
|
|
2020-08-24 19:35:52 +02:00
|
|
|
--body-background: #f5f5fa;
|
2020-09-11 23:30:11 +02:00
|
|
|
|
2020-08-24 19:35:52 +02:00
|
|
|
--accent-color: #34495e;
|
|
|
|
--accent-color-darker: #2c3e50;
|
|
|
|
--accent-color-text: #fff;
|
2020-09-11 23:30:11 +02:00
|
|
|
--body-text-color: #bababa;
|
|
|
|
|
|
|
|
--tag-border-radius: 4px;
|
2020-08-22 13:20:08 +02:00
|
|
|
|
2020-09-11 23:30:11 +02:00
|
|
|
--section-separation: 40px;
|
|
|
|
|
2021-06-12 11:32:54 +02:00
|
|
|
--scrollbar-thumb: hsl(0, 0%, 85%);
|
|
|
|
--scrollbar-track: var(--body-background);
|
|
|
|
|
2021-06-20 15:49:35 +02:00
|
|
|
&[data-scheme="dark"] {
|
2020-09-11 23:30:11 +02:00
|
|
|
--body-background: #303030;
|
|
|
|
--accent-color: #ecf0f1;
|
|
|
|
--accent-color-darker: #bdc3c7;
|
|
|
|
--accent-color-text: #000;
|
|
|
|
--body-text-color: rgba(255, 255, 255, 0.7);
|
2022-01-30 10:57:16 +01:00
|
|
|
--scrollbar-thumb: hsl(0, 0%, 40%);
|
2021-06-12 11:32:54 +02:00
|
|
|
--scrollbar-track: var(--body-background);
|
2020-09-11 23:30:11 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Global font family
|
|
|
|
*/
|
|
|
|
:root {
|
|
|
|
--sys-font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Droid Sans", "Helvetica Neue";
|
|
|
|
--zh-font-family: "PingFang SC", "Hiragino Sans GB", "Droid Sans Fallback", "Microsoft YaHei";
|
|
|
|
|
2021-02-11 19:00:59 +01:00
|
|
|
--base-font-family: "Lato", var(--sys-font-family), var(--zh-font-family), sans-serif;
|
|
|
|
--code-font-family: Menlo, Monaco, Consolas, "Courier New", monospace;
|
2020-09-11 23:30:11 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
/*
|
|
|
|
* Card style
|
|
|
|
*/
|
|
|
|
:root {
|
2020-08-24 19:35:52 +02:00
|
|
|
--card-background: #fff;
|
|
|
|
--card-background-selected: #eaeaea;
|
2020-08-22 13:20:08 +02:00
|
|
|
|
2020-08-24 19:35:52 +02:00
|
|
|
--card-text-color-main: #000;
|
|
|
|
--card-text-color-secondary: #747474;
|
|
|
|
--card-text-color-tertiary: #bababa;
|
|
|
|
--card-separator-color: rgba(218, 218, 218, 0.5);
|
2020-08-22 13:20:08 +02:00
|
|
|
|
2020-08-24 19:35:52 +02:00
|
|
|
--card-border-radius: 10px;
|
2020-08-24 11:52:12 +02:00
|
|
|
|
2021-06-20 12:53:10 +02:00
|
|
|
--card-padding: 20px;
|
|
|
|
|
|
|
|
@include respond(md) {
|
2020-09-20 19:03:41 +02:00
|
|
|
--card-padding: 25px;
|
2020-09-11 23:30:11 +02:00
|
|
|
}
|
2021-06-20 12:53:10 +02:00
|
|
|
|
|
|
|
@include respond(xl) {
|
|
|
|
--card-padding: 30px;
|
2020-09-11 23:30:11 +02:00
|
|
|
}
|
2020-08-24 20:43:10 +02:00
|
|
|
|
2021-06-20 12:53:10 +02:00
|
|
|
--small-card-padding: 25px 20px;
|
|
|
|
|
|
|
|
@include respond(md) {
|
|
|
|
--small-card-padding: 25px;
|
2020-09-24 23:59:00 +02:00
|
|
|
}
|
2020-09-12 13:19:49 +02:00
|
|
|
|
2021-06-20 15:49:35 +02:00
|
|
|
&[data-scheme="dark"] {
|
2020-09-11 23:30:11 +02:00
|
|
|
--card-background: #424242;
|
|
|
|
--card-background-selected: rgba(255, 255, 255, 0.16);
|
|
|
|
--card-text-color-main: rgba(255, 255, 255, 0.9);
|
|
|
|
--card-text-color-secondary: rgba(255, 255, 255, 0.7);
|
|
|
|
--card-text-color-tertiary: rgba(255, 255, 255, 0.5);
|
|
|
|
--card-separator-color: rgba(255, 255, 255, 0.12);
|
|
|
|
}
|
|
|
|
}
|
2020-08-24 12:26:27 +02:00
|
|
|
|
2020-09-11 23:30:11 +02:00
|
|
|
/**
|
|
|
|
* Article content font settings
|
|
|
|
*/
|
|
|
|
:root {
|
2020-08-24 20:45:26 +02:00
|
|
|
--article-font-family: var(--base-font-family);
|
2021-06-20 12:53:10 +02:00
|
|
|
--article-font-size: 1.6rem;
|
|
|
|
|
|
|
|
@include respond(md) {
|
|
|
|
--article-font-size: 1.7rem;
|
2020-08-24 20:45:26 +02:00
|
|
|
}
|
2021-06-20 12:53:10 +02:00
|
|
|
|
2020-08-24 20:45:26 +02:00
|
|
|
--article-line-height: 1.85;
|
2020-09-11 23:30:11 +02:00
|
|
|
}
|
2020-08-24 20:45:26 +02:00
|
|
|
|
2020-09-11 23:30:11 +02:00
|
|
|
/*
|
|
|
|
* Article content style
|
|
|
|
*/
|
|
|
|
:root {
|
2020-08-24 12:26:27 +02:00
|
|
|
--blockquote-border-size: 4px;
|
2020-09-09 00:28:50 +02:00
|
|
|
--blockquote-background-color: rgb(248 248 248);
|
2020-09-08 13:01:27 +02:00
|
|
|
|
2020-08-24 12:26:27 +02:00
|
|
|
--heading-border-size: 4px;
|
|
|
|
|
2020-08-24 19:35:52 +02:00
|
|
|
--link-background-color: 189, 195, 199;
|
|
|
|
--link-background-opacity: 0.5;
|
|
|
|
--link-background-opacity-hover: 0.7;
|
2020-08-24 20:28:17 +02:00
|
|
|
|
2020-08-25 23:19:57 +02:00
|
|
|
--pre-background-color: #272822;
|
2020-08-24 23:32:24 +02:00
|
|
|
--pre-text-color: #f8f8f2;
|
2020-08-25 23:18:40 +02:00
|
|
|
|
|
|
|
--code-background-color: rgba(0, 0, 0, 0.12);
|
|
|
|
--code-text-color: #808080;
|
2020-09-08 12:48:34 +02:00
|
|
|
|
|
|
|
--table-border-color: #dadada;
|
|
|
|
--tr-even-background-color: #efefee;
|
2020-09-11 23:30:11 +02:00
|
|
|
|
2021-06-20 15:49:35 +02:00
|
|
|
&[data-scheme="dark"] {
|
2020-09-11 23:30:11 +02:00
|
|
|
--code-background-color: #272822;
|
|
|
|
--code-text-color: rgba(255, 255, 255, 0.9);
|
|
|
|
|
|
|
|
--table-border-color: #717171;
|
|
|
|
--tr-even-background-color: #545454;
|
|
|
|
|
|
|
|
--blockquote-background-color: rgb(75 75 75);
|
|
|
|
}
|
2020-08-22 13:20:08 +02:00
|
|
|
}
|
|
|
|
|
2020-09-09 16:14:30 +02:00
|
|
|
/*
|
|
|
|
* Shadow style
|
|
|
|
* Thanks to https://www.figma.com/community/plugin/744987207861965946/Shadow-picker
|
|
|
|
*/
|
|
|
|
:root {
|
|
|
|
--shadow-l1: 0px 4px 8px rgba(0, 0, 0, 0.04), 0px 0px 2px rgba(0, 0, 0, 0.06), 0px 0px 1px rgba(0, 0, 0, 0.04);
|
|
|
|
--shadow-l2: 0px 10px 20px rgba(0, 0, 0, 0.04), 0px 2px 6px rgba(0, 0, 0, 0.04), 0px 0px 1px rgba(0, 0, 0, 0.04);
|
|
|
|
--shadow-l3: 0px 10px 20px rgba(0, 0, 0, 0.04), 0px 2px 6px rgba(0, 0, 0, 0.04), 0px 0px 1px rgba(0, 0, 0, 0.04);
|
|
|
|
--shadow-l4: 0px 24px 32px rgba(0, 0, 0, 0.04), 0px 16px 24px rgba(0, 0, 0, 0.04), 0px 4px 8px rgba(0, 0, 0, 0.04),
|
|
|
|
0px 0px 1px rgba(0, 0, 0, 0.04);
|
2020-09-24 23:59:00 +02:00
|
|
|
}
|
2022-02-11 21:36:52 +01:00
|
|
|
|
|
|
|
[data-scheme="light"] {
|
|
|
|
--pre-text-color: #272822;
|
|
|
|
--pre-background-color: #fafafa;
|
|
|
|
@import "partials/highlight/light.scss";
|
|
|
|
}
|
|
|
|
|
|
|
|
[data-scheme="dark"] {
|
|
|
|
--pre-text-color: #f8f8f2;
|
|
|
|
--pre-background-color: #272822;
|
|
|
|
@import "partials/highlight/dark.scss";
|
|
|
|
}
|