mirror of https://github.com/docker/docs.git
Merge pull request #10816 from jdrouet/center-navbar
landing-page: center navbar on desktop
This commit is contained in:
commit
ad9704bec7
|
@ -8,6 +8,7 @@ $xl-min-width: 1200px;
|
|||
@content;
|
||||
}
|
||||
}
|
||||
|
||||
@mixin before-md-width {
|
||||
@media (max-width: $md-min-width - 1) {
|
||||
@content;
|
||||
|
@ -19,6 +20,13 @@ $xl-min-width: 1200px;
|
|||
@content;
|
||||
}
|
||||
}
|
||||
|
||||
@mixin before-lg-width {
|
||||
@media (max-width: $lg-min-width - 1) {
|
||||
@content;
|
||||
}
|
||||
}
|
||||
|
||||
@mixin lg-width {
|
||||
@media (min-width: $lg-min-width) {
|
||||
@content;
|
||||
|
|
|
@ -27,7 +27,19 @@ body#landing {
|
|||
border-radius: 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 {
|
||||
width: unset;
|
||||
}
|
||||
|
@ -56,7 +68,8 @@ body#landing {
|
|||
.navbar-nav > li > a {
|
||||
font-weight: bold;
|
||||
line-height: 25px;
|
||||
padding-bottom: 11px;
|
||||
padding-top: 17px;
|
||||
padding-bottom: 9px;
|
||||
border-bottom-style: solid;
|
||||
border-bottom-width: 4px;
|
||||
border-bottom-color: rgba(255, 255, 255, 0);
|
||||
|
|
Loading…
Reference in New Issue