File tree 5 files changed +19
-0
lines changed
5 files changed +19
-0
lines changed Original file line number Diff line number Diff line change 1
1
@import '@fontsource/lato/300.css' ;
2
+ @import '@fontsource/lato/400.css' ;
2
3
@import '@fontsource/lato/700.css' ;
3
4
@import '@fontsource/merriweather/300.css' ;
4
5
@import '@fontsource/merriweather/300-italic.css' ;
Original file line number Diff line number Diff line change 43
43
44
44
# settings-modal-content .switch-button-container > div > p {
45
45
font-size : 14px ;
46
+ font-weight : 300 ;
46
47
line-height : 1.4 ;
47
48
margin : 0 ;
48
49
padding-bottom : 6px ;
Original file line number Diff line number Diff line change 80
80
line-height : 20px ;
81
81
color : var (--sidebarMuted );
82
82
}
83
+ .non-apple-os .sidebar .sidebar-projectVersion {
84
+ font-weight : 400 ; /* Non-Apple OSes render small light type too thinly */
85
+ }
83
86
84
87
.sidebar .sidebar-projectVersionsDropdown {
85
88
cursor : pointer;
128
131
font-size : 14px ;
129
132
color : var (--sidebarMuted );
130
133
}
134
+ .non-apple-os .sidebar .sidebar-listNav : is (li , li a ) {
135
+ font-weight : 400 ; /* Non-Apple OSes render small light type too thinly */
136
+ }
131
137
132
138
.sidebar .sidebar-listNav li {
133
139
display : inline-block;
359
365
margin-right : 0 ;
360
366
color : var (--sidebarAccentMain );
361
367
}
368
+ .non-apple-os .sidebar # full-list ul li {
369
+ font-weight : 400 ; /* Non-Apple OSes render small light type too thinly */
370
+ }
362
371
363
372
.sidebar # full-list ul li .current-hash {
364
373
color : var (--sidebarActiveItem );
Original file line number Diff line number Diff line change @@ -16,6 +16,7 @@ import { initialize as initTooltips } from '../tooltips/tooltips'
16
16
import { initialize as initHintsPage } from '../tooltips/hint-page'
17
17
import { initialize as initCopyButton } from '../copy-button'
18
18
import { initialize as initSettings } from '../settings'
19
+ import { initialize as initOs } from '../os'
19
20
20
21
onDocumentReady ( ( ) => {
21
22
initTheme ( )
@@ -33,4 +34,5 @@ onDocumentReady(() => {
33
34
initSearchPage ( )
34
35
initCopyButton ( )
35
36
initSettings ( )
37
+ initOs ( )
36
38
} )
Original file line number Diff line number Diff line change
1
+ export function initialize ( ) {
2
+ const appleDeviceExpr = / ( M a c i n t o s h | i P h o n e | i P a d | i P o d ) /
3
+
4
+ const osClass = appleDeviceExpr . test ( window . navigator . userAgent ) ? 'apple-os' : 'non-apple-os'
5
+ document . documentElement . classList . add ( osClass )
6
+ }
You can’t perform that action at this time.
0 commit comments