Skip to content

Commit 8e86d63

Browse files
committed
Layout on apple-os and sidebar
1 parent 5ec6735 commit 8e86d63

9 files changed

+208
-213
lines changed

assets/css/sidebar.css

+6-12
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,18 @@
11
.sidebar {
22
font-family: var(--sansFontFamily);
33
font-size: 16px;
4+
font-weight: 300;
45
line-height: 18px;
56
background-color: var(--sidebarBackground);
67
color: var(--sidebarAccentMain);
78
overflow: hidden;
89
scrollbar-color: var(--sidebarScrollbarThumb) var(--sidebarScrollbarTrack);
910
}
1011

12+
.non-apple-os .sidebar {
13+
font-weight: 400; /* Non-Apple OSes render small light type too thinly */
14+
}
15+
1116
.sidebar .gradient {
1217
background: var(--sidebarGradient);
1318
height: 20px;
@@ -75,14 +80,10 @@
7580
position: relative;
7681
margin: 0;
7782
padding: 0;
78-
font-weight: 300;
7983
font-size: 16px;
8084
line-height: 20px;
8185
color: var(--sidebarMuted);
8286
}
83-
.non-apple-os .sidebar .sidebar-projectVersion {
84-
font-weight: 400; /* Non-Apple OSes render small light type too thinly */
85-
}
8687

8788
.sidebar .sidebar-projectVersionsDropdown {
8889
cursor: pointer;
@@ -127,13 +128,9 @@
127128

128129
.sidebar .sidebar-listNav :is(li, li a) {
129130
text-transform: uppercase;
130-
font-weight: 300;
131131
font-size: 14px;
132132
color: var(--sidebarMuted);
133133
}
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-
}
137134

138135
.sidebar .sidebar-listNav li {
139136
display: inline-block;
@@ -299,7 +296,7 @@
299296
text-transform: uppercase;
300297
font-weight: bold;
301298
font-size: .8em;
302-
margin: 2em 0 0;
299+
margin: 1.5em 0 0;
303300
line-height: 1.8em;
304301
color: var(--sidebarSubheadings);
305302
padding-left: 15px;
@@ -365,9 +362,6 @@
365362
margin-right: 0;
366363
color: var(--sidebarAccentMain);
367364
}
368-
.non-apple-os .sidebar #full-list ul li {
369-
font-weight: 400; /* Non-Apple OSes render small light type too thinly */
370-
}
371365

372366
.sidebar #full-list ul li.current-hash {
373367
color: var(--sidebarActiveItem);

assets/js/sidebar/sidebar-list.js

+1
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ function renderSidebarNodeList (nodesByType, type) {
5050
if (emptyExpand.classList.contains('expand')) {
5151
emptyExpand.classList.remove('expand')
5252
}
53+
list.remove()
5354
}
5455
})
5556

formatters/html/dist/handlebars.templates-XRYTXUVD.js

-187
This file was deleted.

formatters/html/dist/handlebars.templates-XWGFFSCD.js

+187
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

formatters/html/dist/html-EHGDP2LQ.js formatters/html/dist/html-JDI3AVDD.js

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

formatters/html/dist/html-elixir-4UWBE4TO.css

+6
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

formatters/html/dist/html-elixir-MB5C7R66.css

-6
This file was deleted.

formatters/html/dist/html-erlang-FNIXUA3B.css

+6
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

formatters/html/dist/html-erlang-RNODQXPS.css

-6
This file was deleted.

0 commit comments

Comments
 (0)