Update GreedyNav to use flexbox instead of display: table

- ref #836
This commit is contained in:
Michael Rose
2017-02-13 22:15:57 -05:00
parent 943456cae7
commit 1cbac04650
3 changed files with 71 additions and 26 deletions

View File

@@ -14,6 +14,12 @@
&__inner-wrap {
@include container;
@include clearfix;
display: -webkit-box;
display: -ms-flexbox;
display: flex;
-webkit-box-pack: justify;
-ms-flex-pack: justify;
justify-content: space-between;
padding: 1em 1em 1em;
font-family: $sans-serif-narrow;
@@ -31,7 +37,30 @@
}
}
.site-title {
display: -webkit-box;
display: -ms-flexbox;
display: flex;
padding: 0.5rem 0;
-ms-flex-item-align: stretch;
align-self: stretch;
-webkit-box-align: center;
-ms-flex-align: center;
align-items: center;
font-weight: bold;
z-index: 20;
}
.masthead__menu {
width: 100%;
.site-nav {
margin-left: 0;
@include breakpoint($small) {
float: right;
}
}
ul {
margin: 0;