File tree Expand file tree Collapse file tree 5 files changed +19
-0
lines changed Expand file tree Collapse file tree 5 files changed +19
-0
lines changed Original file line number Diff line number Diff line change 11@import '@fontsource/lato/300.css' ;
2+ @import '@fontsource/lato/400.css' ;
23@import '@fontsource/lato/700.css' ;
34@import '@fontsource/merriweather/300.css' ;
45@import '@fontsource/merriweather/300-italic.css' ;
Original file line number Diff line number Diff line change 4343
4444# settings-modal-content .switch-button-container > div > p {
4545 font-size : 14px ;
46+ font-weight : 300 ;
4647 line-height : 1.4 ;
4748 margin : 0 ;
4849 padding-bottom : 6px ;
Original file line number Diff line number Diff line change 8080 line-height : 20px ;
8181 color : var (--sidebarMuted );
8282}
83+ .non-apple-os .sidebar .sidebar-projectVersion {
84+ font-weight : 400 ; /* Non-Apple OSes render small light type too thinly */
85+ }
8386
8487.sidebar .sidebar-projectVersionsDropdown {
8588 cursor : pointer;
128131 font-size : 14px ;
129132 color : var (--sidebarMuted );
130133}
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+ }
131137
132138.sidebar .sidebar-listNav li {
133139 display : inline-block;
359365 margin-right : 0 ;
360366 color : var (--sidebarAccentMain );
361367}
368+ .non-apple-os .sidebar # full-list ul li {
369+ font-weight : 400 ; /* Non-Apple OSes render small light type too thinly */
370+ }
362371
363372.sidebar # full-list ul li .current-hash {
364373 color : var (--sidebarActiveItem );
Original file line number Diff line number Diff line change @@ -16,6 +16,7 @@ import { initialize as initTooltips } from '../tooltips/tooltips'
1616import { initialize as initHintsPage } from '../tooltips/hint-page'
1717import { initialize as initCopyButton } from '../copy-button'
1818import { initialize as initSettings } from '../settings'
19+ import { initialize as initOs } from '../os'
1920
2021onDocumentReady ( ( ) => {
2122 initTheme ( )
@@ -33,4 +34,5 @@ onDocumentReady(() => {
3334 initSearchPage ( )
3435 initCopyButton ( )
3536 initSettings ( )
37+ initOs ( )
3638} )
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