Skip to content

Commit b58c3f8

Browse files
authored
Added margin-bottom for all sidebar (#5822)
1 parent c3a81cf commit b58c3f8

File tree

1 file changed

+21
-4
lines changed

1 file changed

+21
-4
lines changed

client-src/css/shared-css.js

Lines changed: 21 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ export const SHARED_STYLES = [
1111
1212
* {
1313
box-sizing: border-box;
14-
/* font: inherit; */
14+
/* font: inherit; */
1515
text-decoration: inherit;
1616
-webkit-tap-highlight-color: rgba(0, 0, 0, 0);
1717
}
@@ -72,6 +72,23 @@ export const SHARED_STYLES = [
7272
cursor: pointer;
7373
}
7474
75+
76+
.roadmap-sidebar nav {
77+
display: flex;
78+
flex-direction: column;
79+
gap: var(--content-padding-quarter);
80+
}
81+
82+
.roadmap-sidebar nav a {
83+
display: block;
84+
line-height: 1.4;
85+
}
86+
87+
.roadmap-sidebar nav a[aria-current="page"],
88+
.roadmap-sidebar nav a.active {
89+
margin-bottom: 0; /* spacing handled by gap */
90+
}
91+
7592
input:not([type="submit"]),
7693
textarea {
7794
border: 1px solid var(--bar-border-color);
@@ -139,7 +156,7 @@ export const SHARED_STYLES = [
139156
}
140157
141158
code {
142-
font-family: monospace;
159+
font-family: monospace;
143160
}
144161
145162
.description {
@@ -239,7 +256,7 @@ export const SHARED_STYLES = [
239256
background: var(--accordion-background);
240257
font-weight: 300;
241258
font-size: 20px;
242-
padding: var(--content-padding-quarter) var(--content-padding-half)
259+
padding: var(--content-padding-quarter) var(--content-padding-half);
243260
}
244261
245262
sl-details::part(content) {
@@ -252,7 +269,7 @@ export const SHARED_STYLES = [
252269
}
253270
254271
sl-relative-time {
255-
margin: 0 -3px; // Mitigate spacing from unknown cause.
272+
margin: 0 -3px; /* Mitigate spacing from unknown cause. */
256273
}
257274
258275
sl-relative-time.no-squeeze {

0 commit comments

Comments
 (0)