Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

API docs styling tweaks #881

Merged
merged 9 commits into from
Sep 7, 2023
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.