Skip to content

Commit 67bb912

Browse files
committed
Fix mobile navbar sizing
1 parent e1444a4 commit 67bb912

File tree

2 files changed

+10
-3
lines changed

2 files changed

+10
-3
lines changed

styles/php85.css

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,6 @@
4444

4545
.php85 .navbar .navbar__nav {
4646
margin: 0;
47-
margin-left: 24px;
4847
}
4948

5049
.php85 #layout-content a:link,

styles/theme-medium.css

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -203,6 +203,7 @@ div.warning a:focus {
203203

204204
.navbar__inner {
205205
display: flex;
206+
gap: 24px;
206207
height: 64px;
207208
padding: 0px 16px;
208209
margin: 0 auto;
@@ -221,7 +222,6 @@ div.warning a:focus {
221222
.navbar__nav {
222223
display: flex;
223224
margin: 0;
224-
margin-left: 24px;
225225
}
226226

227227
.navbar__item {
@@ -279,6 +279,7 @@ div.warning a:focus {
279279
flex-grow: 1;
280280

281281
max-width: 300px;
282+
margin-right: 12px;
282283
padding: 8px 8px;
283284

284285
background-color: #404f82;
@@ -330,6 +331,7 @@ div.warning a:focus {
330331
display: flex;
331332
flex-grow: 1;
332333
justify-content: end;
334+
min-width: 0;
333335
padding: 12px 0px;
334336
}
335337

@@ -451,6 +453,10 @@ div.warning a:focus {
451453
align-items: center;
452454
text-align: left;
453455
}
456+
457+
.navbar__theme {
458+
margin-right: 0 !important;
459+
}
454460
}
455461

456462
@media (min-width: 1200px) {
@@ -1123,6 +1129,7 @@ div.elephpants img:focus {
11231129
background-color: rgba(64, 79, 130, 0.7);
11241130
border-radius: 8px;
11251131
margin-right: 12px;
1132+
min-width: 0;
11261133
}
11271134

11281135
.navbar__languages:hover {
@@ -1131,14 +1138,14 @@ div.elephpants img:focus {
11311138

11321139
.navbar__languages select {
11331140
color: hsla(230, 72%, 84%);
1141+
max-width: 100%;
11341142
}
11351143

11361144
.navbar__languages option {
11371145
color: rgba(39, 40, 44, 0.7);
11381146
}
11391147

11401148
.navbar__theme {
1141-
margin-left: 12px;
11421149
border: 1px solid #6a78be;
11431150
color: hsla(230, 72%, 84%);
11441151
background-color: #404f82;
@@ -1149,6 +1156,7 @@ div.elephpants img:focus {
11491156
display: flex;
11501157
align-items: center;
11511158
justify-content: center;
1159+
flex-shrink: 0;
11521160
}
11531161

11541162
.navbar__theme:hover {

0 commit comments

Comments
 (0)