Skip to content

Commit e8fdd31

Browse files
committed
style: force layout width and spacing overrides with !important
1 parent 5842a7b commit e8fdd31

File tree

1 file changed

+19
-8
lines changed

1 file changed

+19
-8
lines changed

docs/stylesheets/extra.css

Lines changed: 19 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -29,18 +29,29 @@ code {
2929
font-style: italic;
3030
}
3131

32-
/* Widen the layout */
32+
/* Widen the layout - Force override */
3333
.md-grid {
34-
max-width: 1400px;
34+
max-width: 90% !important; /* Use percentage for responsiveness */
35+
margin-left: auto !important;
36+
margin-right: auto !important;
3537
}
3638

37-
/* Reduce white space between header and title */
39+
/* Reduce white space between header and title - Force override */
3840
.md-main__inner {
39-
margin-top: 0;
40-
padding-top: 0.5rem; /* Drastically reduce top padding */
41+
margin-top: 0 !important;
42+
padding-top: 1rem !important;
4143
}
4244

43-
/* Hide the logo in the header */
44-
.md-header__button.md-logo {
45-
display: none;
45+
.md-content {
46+
padding-top: 0 !important;
47+
}
48+
49+
/* Remove default top margin from the first header in content */
50+
.md-typeset h1:first-child {
51+
margin-top: 0 !important;
4652
}
53+
54+
/* Hide the logo in the header - Force override */
55+
.md-header__button.md-logo {
56+
display: none !important;
57+
}

0 commit comments

Comments
 (0)