Skip to content

Commit 681345d

Browse files
silverwindzeripath
authored andcommitted
UI: Make dashboard navbar and footer full-width (#6013)
* UI: Make dashboard navbar full-width * more tweaks: full-width footer and consistent padding * fix page layout causing unneccesary scrollbars on small pages
1 parent 3a33742 commit 681345d

File tree

4 files changed

+12
-4
lines changed

4 files changed

+12
-4
lines changed

public/css/index.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

public/less/_base.less

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ pre > code {
4949
}
5050
.full.height {
5151
padding: 0;
52-
margin: 0 0 -@footer-margin 0;
52+
margin: 0 0 calc(-@footer-margin - 2px) 0;
5353
min-height: 100%;
5454
}
5555
.following.bar {
@@ -100,9 +100,10 @@ pre > code {
100100
}
101101
#navbar {
102102
width: 100vw;
103+
padding: 0 .5rem;
103104
}
104105
#navbar .brand {
105-
margin: 0 0 0 .5rem;
106+
margin: 0;
106107
}
107108
@media only screen and (max-width: 767px) {
108109
#navbar:not(.shown) > *:not(:first-child) {
@@ -444,6 +445,8 @@ footer {
444445
width: 100%;
445446
color: #888888;
446447
.container {
448+
width: 100vw !important;
449+
padding: 0 .5rem;
447450
.fa {
448451
width: 16px;
449452
text-align: center;

public/less/_dashboard.less

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,11 @@
6161
.dashboard-repos {
6262
margin: 0 1px;
6363
}
64+
65+
.dashboard-navbar {
66+
width: 100vw;
67+
padding: 0 .5rem;
68+
}
6469
}
6570

6671
&.feeds {

templates/user/dashboard/navbar.tmpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<div class="ui container">
1+
<div class="dashboard-navbar">
22
<div class="ui secondary stackable menu">
33
<div class="item">
44
<div class="ui floating dropdown link jump">

0 commit comments

Comments
 (0)