Skip to content

Commit cab7044

Browse files
GiteaBotsilverwind
andauthored
Increase horizontal page padding (#23507) (#23537)
Backport #23507 by @silverwind Add a bit more empty space on left and right side of page content for a more pleasant viewing experience. Also tweaked the mobile navbar to match. Before: <img width="1276" alt="Screenshot 2023-03-16 at 00 58 23" src="https://user-images.githubusercontent.com/115237/225473942-f544106f-1b61-456a-99fb-3ba136cabc8d.png"> After: <img width="1270" alt="Screenshot 2023-03-16 at 00 58 37" src="https://user-images.githubusercontent.com/115237/225473959-8b555359-a08d-48e1-9476-2710aabb1166.png"> Mobile Navbar: <img width="673" alt="Screenshot 2023-03-16 at 01 05 12" src="https://user-images.githubusercontent.com/115237/225473966-adccef2b-4d34-44ed-8c75-d4ca46d96cf3.png"> Co-authored-by: silverwind <[email protected]>
1 parent 68c9f1a commit cab7044

File tree

1 file changed

+10
-3
lines changed

1 file changed

+10
-3
lines changed

web_src/css/base.css

+10-3
Original file line numberDiff line numberDiff line change
@@ -1231,7 +1231,7 @@ a.ui.card:hover,
12311231
/* enable fluid page widths for medium size viewports */
12321232
@media (min-width: 768px) and (max-width: 1200px) {
12331233
.ui.ui.ui.container:not(.fluid) {
1234-
width: calc(100vw - 3em);
1234+
width: calc(100vw - 64px);
12351235
}
12361236
}
12371237

@@ -1285,7 +1285,14 @@ a.ui.card:hover,
12851285
.following.bar #navbar {
12861286
width: 100vw;
12871287
min-height: 52px;
1288-
padding: 0 0.5rem;
1288+
padding: 0 16px;
1289+
}
1290+
1291+
@media (max-width: 767px) {
1292+
.following.bar #navbar {
1293+
padding-left: 4px;
1294+
padding-right: 0;
1295+
}
12891296
}
12901297

12911298
.following.bar #navbar .brand {
@@ -1491,7 +1498,7 @@ a.ui.card:hover,
14911498
}
14921499

14931500
.ui.container.fluid.padded {
1494-
padding: 0 10px;
1501+
padding: 0 32px;
14951502
}
14961503

14971504
.ui.form .ui.button {

0 commit comments

Comments
 (0)