Skip to content

Commit 5cb2e3d

Browse files
authored
Merge pull request #162 from IgnaceMaes/sidebar-styling-tweaks
Sidebar styling tweaks
2 parents 1908ddf + dbc0474 commit 5cb2e3d

File tree

2 files changed

+13
-11
lines changed

2 files changed

+13
-11
lines changed

addon/styles/addon.css

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -59,10 +59,6 @@ main {
5959
padding: 0;
6060
}
6161

62-
.sidebar-container > .es-sidebar {
63-
margin: 0;
64-
}
65-
6662
.info-banner-wrapper {
6763
margin: var(--spacing-1);
6864
padding: var(--spacing-1);
@@ -107,12 +103,12 @@ main {
107103
/* TODO figure out how much of this media query needs to go into the styleguide */
108104
@media (max-width: 844px) {
109105
main .es-sidebar[aria-expanded="true"] {
110-
border: none;
111106
padding: var(--spacing-2);
112107
z-index: 1;
113-
margin-top: var(--spacing-2);
114108
display: flex;
115109
flex-direction: row-reverse;
110+
margin: var(--spacing-2) 0 0 0;
111+
background: var(--color-white);
116112
}
117113

118114
main .es-sidebar-toggle {

addon/styles/table-of-contents.css

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,20 @@
11
/* All the .es-sidebar styling should probably move to the ember-styleguide when we agree this is the right thing to do */
22
.es-sidebar {
3-
border-right: 2px solid var(--color-gray-300);
4-
padding: var(--spacing-4) var(--spacing-4) 0 0;
5-
margin: calc(-1 * var(--spacing-6)) 0 calc(-1 * var(--spacing-6));
3+
padding: var(--spacing-4) var(--spacing-4);
4+
margin-left: calc(-1 * var(--spacing-4));
5+
background-color: var(--color-gray-200);
66
}
77

88
.table-of-contents {
99
list-style-type: none;
1010
padding-left: 0;
11-
font-size: var(--font-size-lg);
11+
font-size: var(--font-size-base);
1212
font-weight: var(--font-weight-3);
1313
}
1414

1515
.sub-table-of-contents {
1616
padding-left: var(--spacing-1);
17-
font-size: var(--font-size-md);
17+
font-size: var(--font-size-base);
1818
font-weight: var(--font-weight-2);
1919
}
2020

@@ -59,3 +59,9 @@ li.toc-heading {
5959
li.toc-heading:first-child {
6060
margin-top: 0;
6161
}
62+
63+
@media (max-width: 844px) {
64+
.table-of-contents {
65+
font-size: var(--font-size-lg);
66+
}
67+
}

0 commit comments

Comments
 (0)