2020-04-01 23:03:38 +08:00
|
|
|
|
// ==================================
|
|
|
|
|
// ils-x variables
|
|
|
|
|
// ==================================
|
|
|
|
|
|
2020-04-02 11:01:24 +08:00
|
|
|
|
// ===============================
|
|
|
|
|
// layout
|
|
|
|
|
// ===============================
|
2020-04-02 22:07:55 +08:00
|
|
|
|
$header-height = 100px; // 头部默认高度
|
|
|
|
|
$header-shrink-height = 60px; // 头部收缩高度
|
|
|
|
|
$main-content-width = 70%; // 中间内容区域宽度
|
|
|
|
|
$media-max-width = 760px; // 媒体查询最大宽度
|
2020-04-01 23:03:38 +08:00
|
|
|
|
|
2020-04-02 11:01:24 +08:00
|
|
|
|
// ===============================
|
2020-04-01 23:03:38 +08:00
|
|
|
|
// z-index
|
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-04-01 22:42:24 +08:00
|
|
|
|
|
2020-03-21 23:04:01 +08:00
|
|
|
|
|
2020-04-02 11:01:24 +08:00
|
|
|
|
// ===============================
|
|
|
|
|
// color
|
|
|
|
|
// ===============================
|
|
|
|
|
$primary-color = #ce3e29; // 主题颜色
|
|
|
|
|
$background-color = #fff; // 背景颜色
|
|
|
|
|
$first-text-color = #2c3e50; // 第一文本颜色
|
|
|
|
|
$second-text-color = #525e6b; // 第二文本颜色
|
|
|
|
|
$third-text-color = #9ca3ad; // 第三文本颜色
|
|
|
|
|
$normal-text-color = #616161; // 通用文本颜色(默认字体颜色)
|
2020-04-02 22:07:55 +08:00
|
|
|
|
$border-color = #eee; // 边框颜色
|
2020-03-21 23:04:01 +08:00
|
|
|
|
|
2020-04-02 20:37:34 +08:00
|
|
|
|
// dark mode color
|
|
|
|
|
$dark-background-color = #333; // 背景颜色
|
|
|
|
|
$dark-primary-color = #ce3e29; // 主题颜色
|
|
|
|
|
$dark-first-text-color = #eee; // 第一文本颜色
|
|
|
|
|
$dark-second-text-color = #ccc; // 第二文本颜色
|
|
|
|
|
$dark-third-text-color = #aaa; // 第三文本颜色
|
|
|
|
|
$dark-normal-text-color = #bbb; // 通用文本颜色(默认字体颜色)
|
|
|
|
|
$dark-border-color = #888; // 边框颜色
|
|
|
|
|
|
2020-04-01 22:42:24 +08:00
|
|
|
|
|
2020-04-02 11:01:24 +08:00
|
|
|
|
// ===============================
|
|
|
|
|
// font
|
|
|
|
|
// ===============================
|
|
|
|
|
//$default-font-family = 'PingHei', 'PingFang SC', 'Microsoft YaHei';
|
|
|
|
|
//$default-font-family = 'PingFang SC', 'Hiragino Sans GB', 'STHeiti Light';
|
|
|
|
|
//$default-font-family = 'Microsoft YaHei', 'SimHei', 'WenQuanYi Micro Hei', sans-serif;
|
|
|
|
|
$default-font-family = "Exo 2", "Trebuchet MS", "Helvetica", "Arial";
|
|
|
|
|
$default-font-size = 14px;
|
|
|
|
|
$default-font-line-height = 20px;
|
|
|
|
|
$default-font-weight = 400;
|
2020-03-21 23:04:01 +08:00
|
|
|
|
|
|
|
|
|
|
2020-04-02 11:01:24 +08:00
|
|
|
|
:root {
|
2020-04-02 20:37:34 +08:00
|
|
|
|
--background-color: $background-color;
|
|
|
|
|
--primary-color: $primary-color;
|
|
|
|
|
--first-text-color: $first-text-color;
|
|
|
|
|
--second-text-color: $second-text-color;
|
|
|
|
|
--third-text-color: $third-text-color;
|
|
|
|
|
--normal-text-color: $normal-text-color;
|
|
|
|
|
--border-color: $border-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;
|
|
|
|
|
--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;
|
|
|
|
|
--normal-text-color: $dark-normal-text-color;
|
|
|
|
|
--dark-border-color: $dark-border-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;
|
|
|
|
|
--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;
|
|
|
|
|
--normal-text-color: $dark-normal-text-color;
|
|
|
|
|
--dark-border-color: $dark-border-color;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.light-mode {
|
|
|
|
|
--background-color: $background-color;
|
|
|
|
|
--primary-color: $primary-color;
|
|
|
|
|
--first-text-color: $first-text-color;
|
|
|
|
|
--second-text-color: $second-text-color;
|
|
|
|
|
--third-text-color: $third-text-color;
|
|
|
|
|
--normal-text-color: $normal-text-color;
|
|
|
|
|
--border-color: $border-color;
|
2020-04-02 11:01:24 +08:00
|
|
|
|
}
|