2020-10-25 10:48:07 +08:00
|
|
|
|
// ========================================================================
|
|
|
|
|
// THEME VARIABLE //
|
|
|
|
|
// ========================================================================
|
2020-04-01 23:03:38 +08:00
|
|
|
|
|
2020-10-25 10:48:07 +08:00
|
|
|
|
// ========================================================================
|
2020-04-02 11:01:24 +08:00
|
|
|
|
// layout
|
2020-10-25 10:48:07 +08:00
|
|
|
|
// ========================================================================
|
2020-11-13 14:43:22 +08:00
|
|
|
|
$header-height = 72px; // 头部默认高度
|
|
|
|
|
$main-content-width = 62%; // 中间内容区域宽度(PC)
|
|
|
|
|
$main-content-width-tablet = 80%; // 中间内容区域宽度(平板)
|
|
|
|
|
$main-content-width-mobile = 88%; // 中间内容区域宽度(手机)
|
|
|
|
|
$header-shrink-height = 56px; // 头部收缩高度
|
|
|
|
|
$circle-button-width = 40px; // tools 圆形工具按钮宽度
|
|
|
|
|
$tools-button-width = 32px; // tools 方形工具按钮宽度
|
|
|
|
|
$component-interspace = 40px; // 组件/模块的间隔值(PC)
|
|
|
|
|
$component-interspace-tablet = 30px; // 组件/模块的间隔值(平板)
|
|
|
|
|
$component-interspace-mobile = 20px; // 组件/模块的间隔值(手机)
|
2020-04-29 18:41:29 +08:00
|
|
|
|
|
2020-10-25 10:48:07 +08:00
|
|
|
|
// ========================================================================
|
2020-04-29 18:41:29 +08:00
|
|
|
|
// 媒体查询
|
2020-10-25 10:48:07 +08:00
|
|
|
|
// ========================================================================
|
2020-11-13 14:43:22 +08:00
|
|
|
|
$media-max-width = 760px; // 媒体查询最大宽度 (平板)
|
|
|
|
|
$media-max-width-mobile = 480px; // 媒体查询最大宽度(手机)
|
2020-06-04 22:11:27 +08:00
|
|
|
|
|
|
|
|
|
ils-tablet()
|
|
|
|
|
@media (max-width: $media-max-width)
|
|
|
|
|
{block}
|
|
|
|
|
|
|
|
|
|
ils-mobile()
|
|
|
|
|
@media (max-width: $media-max-width-mobile)
|
|
|
|
|
{block}
|
2020-04-29 18:41:29 +08:00
|
|
|
|
|
2020-04-24 22:49:10 +08:00
|
|
|
|
|
2020-10-25 10:48:07 +08:00
|
|
|
|
// ========================================================================
|
2020-04-01 23:03:38 +08:00
|
|
|
|
// z-index
|
2020-10-25 10:48:07 +08:00
|
|
|
|
// ========================================================================
|
2020-04-02 11:01:24 +08:00
|
|
|
|
$z-index-1 = 1001;
|
|
|
|
|
$z-index-2 = 1002;
|
|
|
|
|
$z-index-3 = 1003;
|
|
|
|
|
$z-index-4 = 1004;
|
|
|
|
|
$z-index-5 = 1005;
|
|
|
|
|
$z-index-6 = 1006;
|
2020-09-05 22:41:10 +08:00
|
|
|
|
$z-index-7 = 1007;
|
|
|
|
|
$z-index-8 = 1008;
|
2020-10-25 10:48:07 +08:00
|
|
|
|
$z-index-9 = 1009;
|
2020-04-01 22:42:24 +08:00
|
|
|
|
|
2020-03-21 23:04:01 +08:00
|
|
|
|
|
2020-10-25 10:48:07 +08:00
|
|
|
|
// ========================================================================
|
2020-04-02 11:01:24 +08:00
|
|
|
|
// color
|
2020-10-25 10:48:07 +08:00
|
|
|
|
// ========================================================================
|
2020-11-13 14:43:22 +08:00
|
|
|
|
// primary color
|
2020-09-11 15:59:10 +08:00
|
|
|
|
$primary-color = convert(hexo-config("style.primary_color")) || #0066CC;
|
2020-11-13 14:43:22 +08:00
|
|
|
|
$background-color = #fff; // light background color
|
|
|
|
|
$second-background-color = #f2f2f2; // second light background color
|
2020-10-27 18:11:10 +08:00
|
|
|
|
$normal-text-color = #43404d; // 通用文本颜色(默认字体颜色)
|
|
|
|
|
$first-text-color = darken($normal-text-color, 8%); // 第一文本颜色
|
|
|
|
|
$second-text-color = darken($normal-text-color, 4%); // 第二文本颜色
|
|
|
|
|
$third-text-color = lighten($normal-text-color, 40%); // 第三文本颜色
|
|
|
|
|
$fourth-text-color = #eee; // 第四文本颜色
|
|
|
|
|
$border-color = darken($background-color, 30%); // 边框颜色
|
|
|
|
|
$selection-color = lighten($primary-color, 10%); // 文字选中的颜色
|
2020-11-13 14:43:22 +08:00
|
|
|
|
$shadow-color = rgba(0, 0, 0, 0.1);
|
|
|
|
|
$shadow-hover-color = rgba(0, 0, 0, 0.2);
|
2020-03-21 23:04:01 +08:00
|
|
|
|
|
2020-04-02 20:37:34 +08:00
|
|
|
|
// dark mode color
|
2020-04-03 18:18:42 +08:00
|
|
|
|
$dark-primary-color = $primary-color;
|
2020-11-13 14:43:22 +08:00
|
|
|
|
$dark-background-color = #2f2e31;
|
|
|
|
|
$dark-second-background-color = #262628;
|
2020-04-29 18:41:29 +08:00
|
|
|
|
$dark-normal-text-color = #b9b5c2;
|
2020-04-03 18:18:42 +08:00
|
|
|
|
$dark-first-text-color = lighten($dark-normal-text-color, 30%);
|
|
|
|
|
$dark-second-text-color = lighten($dark-normal-text-color, 20%);
|
|
|
|
|
$dark-third-text-color = darken($dark-normal-text-color, 20%);
|
2020-04-29 18:41:29 +08:00
|
|
|
|
$dark-fourth-text-color = #2f2e31;
|
2020-04-07 11:57:53 +08:00
|
|
|
|
$dark-border-color = lighten($dark-background-color, 20%);
|
2020-04-03 18:18:42 +08:00
|
|
|
|
$dark-selection-color = $selection-color;
|
2020-11-13 14:43:22 +08:00
|
|
|
|
$dark-shadow-color = rgba(200, 200, 200, 0.1);
|
|
|
|
|
$dark-shadow-hover-color = rgba(200, 200, 200, 0.2);
|
2020-04-02 20:37:34 +08:00
|
|
|
|
|
2020-04-01 22:42:24 +08:00
|
|
|
|
|
2020-10-25 10:48:07 +08:00
|
|
|
|
// ========================================================================
|
2020-04-02 11:01:24 +08:00
|
|
|
|
// font
|
2020-10-25 10:48:07 +08:00
|
|
|
|
// ========================================================================
|
2020-04-03 18:18:42 +08:00
|
|
|
|
$default-font-family = Optima-Regular, Optima, PingFangSC-light, PingFangTC-light, 'PingFang SC', Cambria, Cochin, Georgia, Times, 'Times New Roman', serif;
|
2020-10-27 18:11:10 +08:00
|
|
|
|
//$default-font-family = -apple-system, system-ui, Segoe UI, Roboto, Ubuntu, Cantarell, Noto Sans, sans-serif, BlinkMacSystemFont, Helvetica Neue, PingFang SC, Hiragino Sans GB, Microsoft YaHei, Arial;
|
2020-09-09 16:30:18 +08:00
|
|
|
|
$default-font-size = 15.2px;
|
2020-11-13 14:43:22 +08:00
|
|
|
|
$default-font-line-height = 22px;
|
2020-04-02 11:01:24 +08:00
|
|
|
|
$default-font-weight = 400;
|
2020-03-21 23:04:01 +08:00
|
|
|
|
|
|
|
|
|
|
2020-10-25 10:48:07 +08:00
|
|
|
|
// ========================================================================
|
2020-09-03 12:28:24 +08:00
|
|
|
|
// light/dark color
|
2020-10-25 10:48:07 +08:00
|
|
|
|
// ========================================================================
|
2020-04-02 11:01:24 +08:00
|
|
|
|
:root {
|
2020-04-02 20:37:34 +08:00
|
|
|
|
--background-color: $background-color;
|
2020-11-13 14:43:22 +08:00
|
|
|
|
--second-background-color: $second-background-color;
|
2020-04-02 20:37:34 +08:00
|
|
|
|
--primary-color: $primary-color;
|
|
|
|
|
--first-text-color: $first-text-color;
|
|
|
|
|
--second-text-color: $second-text-color;
|
|
|
|
|
--third-text-color: $third-text-color;
|
2020-10-29 17:44:27 +08:00
|
|
|
|
--fourth-text-color: $fourth-text-color;
|
2020-04-02 20:37:34 +08:00
|
|
|
|
--normal-text-color: $normal-text-color;
|
|
|
|
|
--border-color: $border-color;
|
2020-04-03 18:18:42 +08:00
|
|
|
|
--selection-color: $selection-color;
|
2020-11-13 14:43:22 +08:00
|
|
|
|
--shadow-color: $shadow-color;
|
|
|
|
|
--shadow-hover-color: $shadow-hover-color;
|
2020-04-02 11:01:24 +08:00
|
|
|
|
}
|
2020-03-21 23:04:01 +08:00
|
|
|
|
|
2020-04-02 11:01:24 +08:00
|
|
|
|
@media (prefers-color-scheme: dark) {
|
|
|
|
|
:root {
|
2020-04-02 20:37:34 +08:00
|
|
|
|
--background-color: $dark-background-color;
|
2020-11-13 14:43:22 +08:00
|
|
|
|
--second-background-color: $dark-second-background-color;
|
2020-04-02 20:37:34 +08:00
|
|
|
|
--primary-color: $dark-primary-color;
|
|
|
|
|
--first-text-color: $dark-first-text-color;
|
|
|
|
|
--second-text-color: $dark-second-text-color;
|
|
|
|
|
--third-text-color: $dark-third-text-color;
|
2020-04-26 18:34:51 +08:00
|
|
|
|
--fourth-text-color: $dark-fourth-text-color;
|
2020-04-02 20:37:34 +08:00
|
|
|
|
--normal-text-color: $dark-normal-text-color;
|
2020-04-03 18:18:42 +08:00
|
|
|
|
--border-color: $dark-border-color;
|
|
|
|
|
--selection-color: $dark-selection-color;
|
2020-11-13 14:43:22 +08:00
|
|
|
|
--shadow-color: $dark-shadow-color;
|
|
|
|
|
--shadow-hover-color: $dark-shadow-hover-color;
|
2020-04-02 11:01:24 +08:00
|
|
|
|
}
|
|
|
|
|
}
|
2020-03-21 23:04:01 +08:00
|
|
|
|
|
|
|
|
|
|
2020-04-02 11:01:24 +08:00
|
|
|
|
.dark-mode {
|
2020-04-02 20:37:34 +08:00
|
|
|
|
--background-color: $dark-background-color;
|
2020-11-13 14:43:22 +08:00
|
|
|
|
--second-background-color: $dark-second-background-color;
|
2020-04-02 20:37:34 +08:00
|
|
|
|
--primary-color: $dark-primary-color;
|
|
|
|
|
--first-text-color: $dark-first-text-color;
|
|
|
|
|
--second-text-color: $dark-second-text-color;
|
|
|
|
|
--third-text-color: $dark-third-text-color;
|
2020-04-26 18:34:51 +08:00
|
|
|
|
--fourth-text-color: $dark-fourth-text-color;
|
2020-04-02 20:37:34 +08:00
|
|
|
|
--normal-text-color: $dark-normal-text-color;
|
2020-04-03 18:18:42 +08:00
|
|
|
|
--border-color: $dark-border-color;
|
|
|
|
|
--selection-color: $dark-selection-color;
|
2020-11-13 14:43:22 +08:00
|
|
|
|
--shadow-color: $dark-shadow-color;
|
|
|
|
|
--shadow-hover-color: $dark-shadow-hover-color;
|
2020-04-02 20:37:34 +08:00
|
|
|
|
}
|
|
|
|
|
|
2020-11-13 14:43:22 +08:00
|
|
|
|
|
2020-04-02 20:37:34 +08:00
|
|
|
|
.light-mode {
|
|
|
|
|
--background-color: $background-color;
|
2020-11-13 14:43:22 +08:00
|
|
|
|
--second-background-color: $second-background-color;
|
2020-04-02 20:37:34 +08:00
|
|
|
|
--primary-color: $primary-color;
|
|
|
|
|
--first-text-color: $first-text-color;
|
|
|
|
|
--second-text-color: $second-text-color;
|
|
|
|
|
--third-text-color: $third-text-color;
|
2020-04-26 18:34:51 +08:00
|
|
|
|
--fourth-text-color: $fourth-text-color;
|
2020-04-02 20:37:34 +08:00
|
|
|
|
--normal-text-color: $normal-text-color;
|
|
|
|
|
--border-color: $border-color;
|
2020-04-03 18:18:42 +08:00
|
|
|
|
--selection-color: $selection-color;
|
2020-11-13 14:43:22 +08:00
|
|
|
|
--shadow-color: $shadow-color;
|
|
|
|
|
--shadow-hover-color: $shadow-hover-color;
|
2020-07-09 18:24:13 +08:00
|
|
|
|
}
|