Skip to content

Commit b56da7b

Browse files
committed
Fix additional styling problems
* The toolbar at the bottom obscures other components (e.g. the footer) → Made the document a bit "longer" * Fixed the same for the nav area on the left when it's expanded * Fixed the header having massive amounts of margin on top and bottom → was moved to the document `.doc`
1 parent ce640f0 commit b56da7b

File tree

2 files changed

+17
-8
lines changed

2 files changed

+17
-8
lines changed

supplemental-ui/css/cards.css

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -153,10 +153,6 @@ pre {
153153
flex-direction: column; /* stack image and text vertically */
154154
}
155155

156-
.doc {
157-
padding: 0 1rem 4rem;
158-
}
159-
160156
.card-image, .imageblock {
161157
float: none !important; /* remove float */
162158
margin: 1rem !important; /* center spacing */

supplemental-ui/css/site-extra.css

Lines changed: 17 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@ body {
2929

3030
.nav-list{
3131
margin: 0;
32-
3332
}
3433

3534
footer.footer {
@@ -45,18 +44,18 @@ footer.footer .link-separator
4544
color: #c02222;
4645
}
4746

48-
.doc h1 {
47+
.doc > h1.page:first-child {
4948
color: #ffffff;
5049
background-color: #c02222;
5150
padding: 1rem 2rem 0.75rem;
52-
margin: 1.5rem auto 1.5rem auto !important;
51+
margin: auto auto 0.5em auto;
5352
text-transform: uppercase;
5453
}
5554

5655
.doc {
5756
width: 100%;
5857
max-width: 100%;
59-
padding: 0;
58+
padding: 0.5em;
6059
}
6160
/* ====== Global Styles (Light Theme) ====== */
6261
body {
@@ -164,4 +163,18 @@ body {
164163
position: fixed;
165164
top: auto;
166165
}
166+
167+
/* Toolbar will otherwise overlap end of article */
168+
body {
169+
padding-bottom: 2.5em !important;
170+
}
171+
172+
/* Nav will otherwise be offset by toolbar */
173+
.nav {
174+
height: calc(100vh - 2.5em) !important;
175+
}
176+
177+
.nav-container {
178+
top: unset;
179+
}
167180
}

0 commit comments

Comments
 (0)