Skip to content

Commit

Permalink
Layout on apple-os and sidebar
Browse files Browse the repository at this point in the history
  • Loading branch information
josevalim committed Mar 29, 2023
1 parent 5ec6735 commit 8e86d63
Show file tree
Hide file tree
Showing 9 changed files with 208 additions and 213 deletions.
18 changes: 6 additions & 12 deletions assets/css/sidebar.css
Original file line number Diff line number Diff line change
@@ -1,13 +1,18 @@
.sidebar {
font-family: var(--sansFontFamily);
font-size: 16px;
font-weight: 300;
line-height: 18px;
background-color: var(--sidebarBackground);
color: var(--sidebarAccentMain);
overflow: hidden;
scrollbar-color: var(--sidebarScrollbarThumb) var(--sidebarScrollbarTrack);
}

.non-apple-os .sidebar {
font-weight: 400; /* Non-Apple OSes render small light type too thinly */
}

.sidebar .gradient {
background: var(--sidebarGradient);
height: 20px;
Expand Down Expand Up @@ -75,14 +80,10 @@
position: relative;
margin: 0;
padding: 0;
font-weight: 300;
font-size: 16px;
line-height: 20px;
color: var(--sidebarMuted);
}
.non-apple-os .sidebar .sidebar-projectVersion {
font-weight: 400; /* Non-Apple OSes render small light type too thinly */
}

.sidebar .sidebar-projectVersionsDropdown {
cursor: pointer;
Expand Down Expand Up @@ -127,13 +128,9 @@

.sidebar .sidebar-listNav :is(li, li a) {
text-transform: uppercase;
font-weight: 300;
font-size: 14px;
color: var(--sidebarMuted);
}
.non-apple-os .sidebar .sidebar-listNav :is(li, li a) {
font-weight: 400; /* Non-Apple OSes render small light type too thinly */
}

.sidebar .sidebar-listNav li {
display: inline-block;
Expand Down Expand Up @@ -299,7 +296,7 @@
text-transform: uppercase;
font-weight: bold;
font-size: .8em;
margin: 2em 0 0;
margin: 1.5em 0 0;
line-height: 1.8em;
color: var(--sidebarSubheadings);
padding-left: 15px;
Expand Down Expand Up @@ -365,9 +362,6 @@
margin-right: 0;
color: var(--sidebarAccentMain);
}
.non-apple-os .sidebar #full-list ul li {
font-weight: 400; /* Non-Apple OSes render small light type too thinly */
}

.sidebar #full-list ul li.current-hash {
color: var(--sidebarActiveItem);
Expand Down
1 change: 1 addition & 0 deletions assets/js/sidebar/sidebar-list.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ function renderSidebarNodeList (nodesByType, type) {
if (emptyExpand.classList.contains('expand')) {
emptyExpand.classList.remove('expand')
}
list.remove()
}
})

Expand Down
187 changes: 0 additions & 187 deletions formatters/html/dist/handlebars.templates-XRYTXUVD.js

This file was deleted.

187 changes: 187 additions & 0 deletions formatters/html/dist/handlebars.templates-XWGFFSCD.js

Large diffs are not rendered by default.

Large diffs are not rendered by default.

6 changes: 6 additions & 0 deletions formatters/html/dist/html-elixir-4UWBE4TO.css

Large diffs are not rendered by default.

6 changes: 0 additions & 6 deletions formatters/html/dist/html-elixir-MB5C7R66.css

This file was deleted.

6 changes: 6 additions & 0 deletions formatters/html/dist/html-erlang-FNIXUA3B.css

Large diffs are not rendered by default.

6 changes: 0 additions & 6 deletions formatters/html/dist/html-erlang-RNODQXPS.css

This file was deleted.

0 comments on commit 8e86d63

Please sign in to comment.