Skip to content

Commit

Permalink
Merge pull request ember-learn#881 from lukasnys/wide-mode
Browse files Browse the repository at this point in the history
API docs styling tweaks
  • Loading branch information
MinThaMie authored Sep 7, 2023
2 parents cc4d742 + 7fc78bd commit ef4d2e1
Show file tree
Hide file tree
Showing 4 changed files with 33 additions and 10 deletions.
27 changes: 25 additions & 2 deletions app/styles/app.css
Original file line number Diff line number Diff line change
Expand Up @@ -26,16 +26,24 @@ main a.edit-icon {
background: none;
}

.sidebar-container {
--sidebar-width: min-content;
}

.es-sidebar-content .table-of-contents:first-child {
margin-block-start: 0;
}

.table-of-contents {
list-style-type: none;
padding-left: 0;
font-size: var(--font-size-lg);
font-size: var(--font-size-base);
font-weight: var(--font-weight-3);
}

.sub-table-of-contents {
padding-left: var(--spacing-1);
font-size: var(--font-size-md);
font-size: var(--font-size-base);
font-weight: var(--font-weight-2);
}

Expand Down Expand Up @@ -82,3 +90,18 @@ li.toc-heading:first-child {
margin-top: 0;
}

@media (min-width: 845px) {
.es-header {
padding: 0 var(--spacing-4);
justify-content: start;
}

.es-sidebar {
padding: var(--spacing-4);
background-color: var(--color-gray-200);
}

.content {
margin-top: var(--spacing-4);
}
}
2 changes: 1 addition & 1 deletion app/templates/ember-cli.hbs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<div class="sidebar-container">
<div class="sidebar-container sidebar-container--full-width">
<EsSidebar><TableOfProjects @activeProject='ember-cli' /></EsSidebar>
<section class="content">
<article class="chapter">
Expand Down
2 changes: 1 addition & 1 deletion app/templates/project-version.hbs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<div class="sidebar-container">
<div class="sidebar-container sidebar-container--full-width">
<EsSidebar>
<TableOfProjects @activeProject={{this.activeProject}} />

Expand Down
12 changes: 6 additions & 6 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit ef4d2e1

Please sign in to comment.