Skip to content

Commit 00001bb

Browse files
committed
docs: update header style for mobile
1 parent df064ad commit 00001bb

File tree

1 file changed

+32
-0
lines changed

1 file changed

+32
-0
lines changed

docs/stylesheets/extra.css

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,18 @@
2626
);
2727
}
2828

29+
/* Mobile Nav Header */
30+
.md-nav__source {
31+
background: linear-gradient(
32+
60deg,
33+
rgb(205, 78, 255) 0%,
34+
rgb(116, 123, 255) 100%
35+
);
36+
border-style: solid;
37+
border-width: 0 0 2px 0;
38+
border-color: #ffffff33;
39+
}
40+
2941
th,
3042
td {
3143
padding: 0.5em 1em 0.5em 1em !important;
@@ -121,3 +133,23 @@ h2 > .twemoji {
121133
.gray {
122134
color: rgb(158, 158, 158);
123135
}
136+
137+
@media screen and (max-width: 76.234375em) {
138+
/* Always show image logo on mobile */
139+
.md-header__button.md-logo {
140+
display: block;
141+
}
142+
143+
label[for="__drawer"].md-header__button.md-icon {
144+
order: -1;
145+
}
146+
147+
.md-header {
148+
background: linear-gradient(
149+
60deg,
150+
rgb(205, 78, 255) 10%,
151+
rgb(116, 123, 255) 70%,
152+
rgb(72, 179, 255) 100%
153+
);
154+
}
155+
}

0 commit comments

Comments
 (0)