|
1 | 1 | @import('mixins/reset.styl') |
2 | | -@import('mixins/css.styl') |
3 | 2 | @import('mixins/markdown.styl') |
4 | 3 |
|
5 | 4 | mq-mobile = "screen and (max-width: 479px)" |
6 | 5 |
|
7 | | -a.github-corner { |
8 | | - position: fixed |
9 | | - z-index: 9999 |
10 | | - top: 0 |
11 | | - right: 0 |
12 | | - &:hover { |
13 | | - .octo-arm{ |
14 | | - animation: octocat-wave 560ms ease-in-out |
15 | | - } |
16 | | - } |
17 | | - svg { |
18 | | - fill #f1f1f1 |
19 | | - color #000 |
20 | | - position absolute |
21 | | - top 0 |
22 | | - border 0 |
23 | | - right 0 |
24 | | - z-index 99 |
25 | | - width 70px |
26 | | - height 70px |
27 | | - @media mq-mobile { |
28 | | - width 46px |
29 | | - height 46px |
30 | | - } |
31 | | - } |
| 6 | +[data-color-mode*='dark'], [data-color-mode*='dark'] body { |
| 7 | + color-scheme: dark; |
| 8 | + --color-header-bg: #3a3a3a8f; |
| 9 | + --color-header-border: #323232; |
| 10 | + --color-hover: #ffffff30; |
32 | 11 | } |
33 | | -a { |
34 | | - transition: all .2s ease-in |
35 | | -} |
36 | | - |
37 | | -@keyframes octocat-wave{ |
38 | | - 0%,100%{-webkit-transform:rotate(0);transform:rotate(0)} |
39 | | - 20%,60%{-webkit-transform:rotate(-25deg);transform:rotate(-25deg)} |
40 | | - 40%,80%{-webkit-transform:rotate(10deg);transform:rotate(10deg)} |
| 12 | +[data-color-mode*='light'], [data-color-mode*='light'] body { |
| 13 | + color-scheme: light; |
| 14 | + --color-header-bg: #ffffff52; |
| 15 | + --color-header-border: #d3d3d3; |
| 16 | + --color-hover: #f2f2f2; |
41 | 17 | } |
42 | 18 |
|
43 | 19 | .warpper { |
|
56 | 32 | padding 0 10px |
57 | 33 | .logo a { |
58 | 34 | display flex |
| 35 | + color: currentColor; |
59 | 36 | } |
60 | 37 | .box { |
61 | 38 | position relative |
|
77 | 54 | position absolute |
78 | 55 | display none |
79 | 56 | z-index 999 |
80 | | - box-shadow 1px 1px 3px #ededed |
81 | | - border 1px solid #d5d5d5 |
82 | | - background #fff |
| 57 | + box-shadow 1px 1px 3px var(--color-theme-bg) |
| 58 | + border 1px solid var(--color-header-border) |
| 59 | + background var(--color-theme-bg) |
83 | 60 | min-width 100px |
84 | 61 | top 39px |
85 | 62 | width 100% |
|
95 | 72 | a { |
96 | 73 | display block |
97 | 74 | padding 2px 6px 2px 6px |
98 | | - color #555555 |
99 | 75 | &:hover { |
100 | | - background-color #f2f2f2 |
| 76 | + background-color var(--color-hover) |
101 | 77 | } |
102 | 78 | .kw { |
103 | 79 | color #f00 |
|
120 | 96 | font-size 14px |
121 | 97 | font-weight bold |
122 | 98 | line-height 1.42857143 |
123 | | - color #555 |
124 | | - background-color #fff |
| 99 | + background-color: transparent; |
125 | 100 | background-image none |
126 | 101 | border 1px solid $border-color |
127 | 102 | border-radius 5px 0 0 5px |
@@ -153,12 +128,10 @@ a { |
153 | 128 | cursor pointer |
154 | 129 | user-select none |
155 | 130 | background-image none |
156 | | - background-color #fff |
157 | 131 | border 1px solid transparent |
158 | 132 | border-collapse separate |
159 | 133 | border-radius 0 5px 5px 0 |
160 | 134 | border-color $border-color |
161 | | - color #333 |
162 | 135 | &:focus,&:active:focus { |
163 | 136 | outline thin dotted |
164 | 137 | outline 5px auto -webkit-focus-ring-color |
|
190 | 163 | .footer { |
191 | 164 | text-align center |
192 | 165 | padding-top 31px |
193 | | - color #616161 |
194 | 166 | font-size 14px |
195 | 167 | font-weight 300 |
196 | | - border-top 1px solid #efefef |
| 168 | + border-top 1px solid var(--color-header-border) |
197 | 169 | padding-bottom 50px; |
198 | 170 | padding 31px 6px 50px 6px |
199 | 171 | &.home { |
@@ -221,15 +193,15 @@ a { |
221 | 193 | width auto |
222 | 194 | position fixed |
223 | 195 | width 100% |
224 | | - background #fff |
| 196 | + background var(--color-theme-bg) |
225 | 197 | backdrop-filter saturate(180%) blur(0.4rem) |
226 | | - background-color hsla(0, 0%, 100%, .55) |
| 198 | + background-color var(--color-header-bg) |
227 | 199 | z-index 99 |
228 | 200 | } |
229 | 201 |
|
230 | 202 | .header_list { |
231 | 203 | padding 10px 10px 10px 13px |
232 | | - border-bottom 1px solid #EEEEEE |
| 204 | + border-bottom 1px solid var(--color-header-border) |
233 | 205 | .logo { |
234 | 206 | padding-right 24px |
235 | 207 | text-align left |
|
303 | 275 | .contributors { |
304 | 276 | padding 79px 27px |
305 | 277 | max-width: 960px; |
306 | | - color: #24292f; |
307 | | - background-color: #ffffff; |
308 | 278 | font-family: -apple-system,BlinkMacSystemFont,"Segoe UI",Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji"; |
309 | 279 | font-size: 16px; |
310 | 280 | line-height: 1.5; |
|
0 commit comments