hexo-theme-stellar/source/css/_custom.styl

85 lines
2.0 KiB
Stylus
Raw Normal View History

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
$color-cat = #FF7844
$color-cat-hover = darken($color-cat, 20)
2021-04-02 20:24:16 +08:00
//
2021-06-23 13:41:05 +08:00
$light-site-bg = convert(hexo-config('style.theme.light'))
2021-04-02 20:24:16 +08:00
$light-block = #f2f2f2
$light-title = #000
2021-06-23 13:41:05 +08:00
$light-text = #444
$light-code = #111
2021-04-02 20:24:16 +08:00
$light-card = white
2021-02-19 23:33:19 +08:00
2021-04-02 20:24:16 +08:00
//
2021-06-23 13:41:05 +08:00
$dark-site-bg = convert(hexo-config('style.theme.dark'))
2021-04-22 23:37:14 +08:00
$dark-block = #2E353D
2021-04-02 20:24:16 +08:00
$dark-title = #fff
2021-06-23 13:41:05 +08:00
$dark-text = #ddd
$dark-code = #ff7043
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-07-03 13:21:54 +08:00
$ff-code = Menlo, Monaco, Consolas, system-ui, "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)