Skip to content

Commit ef4d2e1

Browse files
authored
Merge pull request #881 from lukasnys/wide-mode
API docs styling tweaks
2 parents cc4d742 + 7fc78bd commit ef4d2e1

File tree

4 files changed

+33
-10
lines changed

4 files changed

+33
-10
lines changed

app/styles/app.css

Lines changed: 25 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,16 +26,24 @@ main a.edit-icon {
2626
background: none;
2727
}
2828

29+
.sidebar-container {
30+
--sidebar-width: min-content;
31+
}
32+
33+
.es-sidebar-content .table-of-contents:first-child {
34+
margin-block-start: 0;
35+
}
36+
2937
.table-of-contents {
3038
list-style-type: none;
3139
padding-left: 0;
32-
font-size: var(--font-size-lg);
40+
font-size: var(--font-size-base);
3341
font-weight: var(--font-weight-3);
3442
}
3543

3644
.sub-table-of-contents {
3745
padding-left: var(--spacing-1);
38-
font-size: var(--font-size-md);
46+
font-size: var(--font-size-base);
3947
font-weight: var(--font-weight-2);
4048
}
4149

@@ -82,3 +90,18 @@ li.toc-heading:first-child {
8290
margin-top: 0;
8391
}
8492

93+
@media (min-width: 845px) {
94+
.es-header {
95+
padding: 0 var(--spacing-4);
96+
justify-content: start;
97+
}
98+
99+
.es-sidebar {
100+
padding: var(--spacing-4);
101+
background-color: var(--color-gray-200);
102+
}
103+
104+
.content {
105+
margin-top: var(--spacing-4);
106+
}
107+
}

app/templates/ember-cli.hbs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<div class="sidebar-container">
1+
<div class="sidebar-container sidebar-container--full-width">
22
<EsSidebar><TableOfProjects @activeProject='ember-cli' /></EsSidebar>
33
<section class="content">
44
<article class="chapter">

app/templates/project-version.hbs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<div class="sidebar-container">
1+
<div class="sidebar-container sidebar-container--full-width">
22
<EsSidebar>
33
<TableOfProjects @activeProject={{this.activeProject}} />
44

package-lock.json

Lines changed: 6 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)