Merge pull request #10816 from jdrouet/center-navbar

landing-page: center navbar on desktop
This commit is contained in:
Usha Mandya 2020-05-15 11:42:22 +01:00 committed by GitHub
commit ad9704bec7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 23 additions and 2 deletions

View File

@ -8,6 +8,7 @@ $xl-min-width: 1200px;
@content; @content;
} }
} }
@mixin before-md-width { @mixin before-md-width {
@media (max-width: $md-min-width - 1) { @media (max-width: $md-min-width - 1) {
@content; @content;
@ -19,6 +20,13 @@ $xl-min-width: 1200px;
@content; @content;
} }
} }
@mixin before-lg-width {
@media (max-width: $lg-min-width - 1) {
@content;
}
}
@mixin lg-width { @mixin lg-width {
@media (min-width: $lg-min-width) { @media (min-width: $lg-min-width) {
@content; @content;

View File

@ -27,7 +27,19 @@ body#landing {
border-radius: unset; border-radius: unset;
height: unset; height: unset;
@include before-md-width { @include md-width {
.navbar-collapse.collapse {
display: flex !important;
ul:first-of-type {
flex: 1;
display: flex;
justify-content: center;
}
}
}
@include before-lg-width {
.container { .container {
width: unset; width: unset;
} }
@ -56,7 +68,8 @@ body#landing {
.navbar-nav > li > a { .navbar-nav > li > a {
font-weight: bold; font-weight: bold;
line-height: 25px; line-height: 25px;
padding-bottom: 11px; padding-top: 17px;
padding-bottom: 9px;
border-bottom-style: solid; border-bottom-style: solid;
border-bottom-width: 4px; border-bottom-width: 4px;
border-bottom-color: rgba(255, 255, 255, 0); border-bottom-color: rgba(255, 255, 255, 0);