2021-02-19 23:33:19 +08:00
|
|
|
|
@require('_defines/const')
|
|
|
|
|
|
|
|
|
|
// 通用主题色
|
2021-03-13 13:32:45 +08:00
|
|
|
|
$color-theme = #1BCDFC
|
2021-02-19 23:33:19 +08:00
|
|
|
|
$color-link = #2196f3
|
|
|
|
|
$color-button = #1BCDFC
|
|
|
|
|
$color-hover = #ff5722
|
|
|
|
|
$color-inner = #fff
|
2021-02-28 18:19:32 +08:00
|
|
|
|
$color-inlinecode = #ff7043
|
2021-02-19 23:33:19 +08:00
|
|
|
|
$color-cat = #FF7844
|
|
|
|
|
$color-cat-hover = darken($color-cat, 20)
|
|
|
|
|
|
2021-04-02 20:24:16 +08:00
|
|
|
|
// 浅色
|
|
|
|
|
$light-site-bg = #f8f8f8
|
|
|
|
|
$light-block = #f2f2f2
|
|
|
|
|
$light-title = #000
|
|
|
|
|
$light-text = #222
|
|
|
|
|
$light-card = white
|
2021-02-19 23:33:19 +08:00
|
|
|
|
|
2021-04-02 20:24:16 +08:00
|
|
|
|
// 深色
|
|
|
|
|
$dark-site-bg = #20252B
|
2021-04-22 23:37:14 +08:00
|
|
|
|
$dark-block = #2E353D
|
2021-04-02 20:24:16 +08:00
|
|
|
|
$dark-title = #fff
|
|
|
|
|
$dark-text = #eee
|
2021-04-22 23:37:14 +08:00
|
|
|
|
$dark-card = #40454B
|
2021-02-19 23:33:19 +08:00
|
|
|
|
|
2021-04-02 20:24:16 +08:00
|
|
|
|
// 移动端深色背景(OLED调成纯黑可以省电)
|
|
|
|
|
$dark-site-bg-mobile = black
|
2021-02-19 23:33:19 +08:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// @font-face
|
|
|
|
|
// font-family: 'Dosis'
|
|
|
|
|
// src: url('https://cdn.jsdelivr.net/gh/volantis-x/cdn-fonts@20.5.30/Dosis/Dosis-Medium.ttf')
|
|
|
|
|
// font-weight: normal
|
|
|
|
|
// font-style: normal
|
|
|
|
|
|
2021-03-05 21:37:28 +08:00
|
|
|
|
$ff-body = system-ui, "Microsoft Yahei", "Segoe UI", -apple-system, Roboto, Ubuntu, "Helvetica Neue", Arial, "WenQuanYi Micro Hei", sans-serif
|
2021-03-01 21:06:59 +08:00
|
|
|
|
$ff-code = Menlo, Monaco, Consolas, "Courier New", monospace, sans-serif
|
2021-02-19 23:33:19 +08:00
|
|
|
|
|
|
|
|
|
$ff-logo = $ff-body
|
|
|
|
|
|
|
|
|
|
// font size
|
|
|
|
|
$fs-root = 16px
|
2021-03-05 21:37:28 +08:00
|
|
|
|
$fs-15 = .9375rem
|
|
|
|
|
$fs-14 = .875rem
|
|
|
|
|
$fs-13 = .8125rem
|
|
|
|
|
$fs-12 = .75rem
|
|
|
|
|
|
2021-02-19 23:33:19 +08:00
|
|
|
|
$fs-h1 = 2rem // 32px
|
2021-03-05 21:37:28 +08:00
|
|
|
|
$fs-h2 = 1.5rem // 24px
|
2021-02-19 23:33:19 +08:00
|
|
|
|
$fs-h3 = 1.375rem // 22px
|
|
|
|
|
$fs-h4 = 1.125rem // 18px
|
2021-03-05 21:37:28 +08:00
|
|
|
|
$fs-h5 = $fs-15
|
|
|
|
|
$fs-h6 = $fs-12
|
|
|
|
|
$fs-p = $fs-15
|
|
|
|
|
$fs-code = $fs-13
|
2021-02-19 23:33:19 +08:00
|
|
|
|
|
|
|
|
|
$border-card = 12px
|
2021-03-06 00:01:41 +08:00
|
|
|
|
$border-widget = 4px
|
2021-02-19 23:33:19 +08:00
|
|
|
|
$border-block = 4px
|
|
|
|
|
|
2021-03-05 21:37:28 +08:00
|
|
|
|
// 可以动态变化的属性
|
|
|
|
|
:root
|
2021-04-02 20:24:16 +08:00
|
|
|
|
--width-left: 256px
|
2021-03-05 21:37:28 +08:00
|
|
|
|
--width-main: 680px
|
|
|
|
|
--gap-l: 16px
|
|
|
|
|
// desktop or larger
|
|
|
|
|
@media screen and (min-width: $device-desktop)
|
|
|
|
|
--gap-l: 32px
|
|
|
|
|
// desktop 2k or larger
|
|
|
|
|
@media screen and (min-width: $device-2k)
|
2021-03-11 23:19:41 +08:00
|
|
|
|
--width-left: 320px
|
2021-03-05 21:37:28 +08:00
|
|
|
|
--width-main: 740px
|
|
|
|
|
// desktop 4k or larger
|
|
|
|
|
@media screen and (min-width: $device-4k)
|
|
|
|
|
--width-main: 860px
|
|
|
|
|
--gap-l: 64px
|
|
|
|
|
|
2021-02-19 23:33:19 +08:00
|
|
|
|
|
|
|
|
|
// shadow
|
|
|
|
|
$boxshadow-card = 0 1px 2px 0px rgba(0, 0, 0, 0.1)
|
|
|
|
|
$boxshadow-float = 0 4px 8px 0px rgba(0, 0, 0, 0.1)
|
|
|
|
|
$boxshadow-card-float = 0 2px 4px 0px rgba(0, 0, 0, 0.1), 0 4px 8px 0px rgba(0, 0, 0, 0.1), 0 8px 16px 0px rgba(0, 0, 0, 0.1)
|