1- : root {
2- /* base.css */
3- --color-text : # 1f2939 ;
4- --color-navbar-bg : # 1b223d ;
5- --color-navbar-bg-focus : # 0e152d ;
6- --color-navbar-text : # fff ;
7- }
8-
9- html ,
10- body {
11- height : 100% ;
12- }
13-
141* ,
152* ::before ,
163* ::after {
@@ -19,24 +6,26 @@ body {
196
207html {
218 box-sizing : border-box;
22- font-family : "Open Sans" , sans-serif ;
23- font-size : 1.1 em ;
24- text-size-adjust : 100 % ;
9+ font-size : var ( --body-font-size ) ;
10+ height : 100 % ;
11+ scroll-behavior : smooth ;
2512}
2613
2714@media screen and (width > = 1024px) {
2815 html {
29- font-size : 1.2 em ;
16+ font-size : var ( --body-font-size--desktop ) ;
3017 }
3118}
3219
3320body {
34- color : var (--color-text );
35- line-height : 1.6 ;
21+ background : var (--body-background );
22+ color : var (--body-font-color );
23+ font-family : var (--body-font-family );
24+ line-height : var (--body-line-height );
3625 margin : 0 ;
37- /* do not use this atm, it will break tabs. the tab frame will be compressed and looks not good
38- tab-size: 4;
39- word-wrap: anywhere; /* aka overflow-wrap; used when hyphens are disabled or aren't sufficient */
26+ /* do not use this atm, it will break tabs. the tab frame will be compressed and looks not good */
27+ /* tab-size: 4; */
28+ /* word-wrap: anywhere; */ /* aka overflow-wrap; used when hyphens are disabled or aren't sufficient */
4029}
4130
4231a {
@@ -47,15 +36,115 @@ a:hover {
4736 text-decoration : underline;
4837}
4938
39+ a : active {
40+ background-color : none;
41+ }
42+
5043code ,
5144kbd ,
5245pre {
53- font-family : "Roboto Mono" , monospace;
46+ font-family : var ( -- monospace-font-family ) ;
5447}
5548
5649b ,
5750dt ,
5851strong ,
5952th {
60- font-weight : 500 ;
53+ font-weight : var (--body-font-weight-bold );
54+ }
55+
56+ sub ,
57+ sup {
58+ font-size : 75% ;
59+ line-height : 0 ;
60+ position : relative;
61+ vertical-align : baseline;
62+ }
63+
64+ sub {
65+ bottom : -0.25em ;
66+ }
67+
68+ sup {
69+ top : -0.5em ;
70+ }
71+
72+ em em { /* stylelint-disable-line */
73+ font-style : normal;
74+ }
75+
76+ strong strong { /* stylelint-disable-line */
77+ font-weight : normal;
78+ }
79+
80+ button {
81+ cursor : pointer;
82+ font-family : inherit;
83+ font-size : 1em ;
84+ line-height : var (--body-line-height );
85+ margin : 0 ;
86+ }
87+
88+ button ::-moz-focus-inner {
89+ border : none;
90+ padding : 0 ;
91+ }
92+
93+ summary {
94+ cursor : pointer;
95+ -webkit-tap-highlight-color : transparent;
96+ outline : none;
97+ }
98+
99+ table {
100+ border-collapse : collapse;
101+ word-wrap : normal; /* table widths aren't computed as expected when word-wrap is enabled */
102+ }
103+
104+ object [type = "image/svg+xml" ]: not ([width ]) {
105+ width : fit-content;
106+ }
107+
108+ ::placeholder {
109+ opacity : 0.5 ;
110+ }
111+
112+ @media (pointer : fine) {
113+ @supports (scrollbar-width : thin) {
114+ html {
115+ scrollbar-color : var (--scrollbar-thumb-color ) var (--scrollbar-track-color );
116+ }
117+
118+ body * {
119+ scrollbar-width : thin;
120+ scrollbar-color : var (--scrollbar-thumb-color ) transparent;
121+ }
122+ }
123+
124+ html ::-webkit-scrollbar {
125+ background-color : var (--scrollbar-track-color );
126+ height : 12px ;
127+ width : 12px ;
128+ }
129+
130+ body ::-webkit-scrollbar {
131+ height : 6px ;
132+ width : 6px ;
133+ }
134+
135+ ::-webkit-scrollbar-thumb {
136+ background-clip : padding-box;
137+ background-color : var (--scrollbar-thumb-color );
138+ border : 3px solid transparent;
139+ border-radius : 12px ;
140+ }
141+
142+ body ::-webkit-scrollbar-thumb {
143+ border-width : 1.75px ;
144+ border-radius : 6px ;
145+ }
146+
147+ ::-webkit-scrollbar-thumb : hover {
148+ background-color : var (--scrollbar_hover-thumb-color );
149+ }
61150}
0 commit comments