_sass/_navigation.scss in minimal-mistakes-jekyll-4.2.1 vs _sass/_navigation.scss in minimal-mistakes-jekyll-4.2.2
- old
+ new
@@ -173,11 +173,14 @@
Priority plus navigation
========================================================================== */
.greedy-nav {
position: relative;
- min-width: 250px;
+ display: -webkit-box;
+ display: flex;
+ -webkit-box-align: center;
+ align-items: center;
background: $background-color;
a {
display: block;
margin: 0 1rem;
@@ -186,39 +189,40 @@
text-decoration: none;
&:hover {
color: $masthead-link-color-hover;
}
+
+ &.site-title {
+ margin-left: 0;
+ }
}
button {
- position: absolute;
- height: 100%;
- right: 0;
padding: 0 0.5rem;
+ align-self: stretch;
border: 0;
outline: none;
- background-color: $primary-color;
color: #fff;
+ background-color: $primary-color;
cursor: pointer;
}
.visible-links {
- display: table;
+ display: -webkit-box;
+ display: flex;
+ -webkit-box-pack: end;
+ justify-content: flex-end;
+ -webkit-box-flex: 1;
+ flex: 1;
+ padding-right: 2rem;
+ overflow: hidden;
li {
- display: table-cell;
- vertical-align: middle;
+ -webkit-box-flex: 0;
+ flex: none;
- &:first-child {
- font-weight: bold;
-
- a {
- margin-left: 0;
- }
- }
-
&:last-child {
a {
margin-right: 0;
}
}
@@ -236,18 +240,17 @@
background: mix(#fff, $primary-color, 50%);
width: 100%;
-webkit-transition: $global-transition;
transition: $global-transition;
-webkit-transform: scaleX(0) translate3d(0, 0 , 0);
- -ms-transform: scaleX(0) translate3d(0, 0 , 0);
transform: scaleX(0) translate3d(0, 0 , 0); /* hide*/
}
&:hover:before {
-webkit-transform: scaleX(1);
- -ms-transform: scaleX(1);
- transform: scaleX(1); /* reveal*/
+ -ms-transform: scaleX(1);
+ transform: scaleX(1); /* reveal*/
}
}
}
.hidden-links {
@@ -257,12 +260,16 @@
margin-top: 15px;
padding: 5px;
border: 1px solid $border-color;
border-radius: $border-radius;
background: #fff;
- box-shadow: 0 0 10px rgba(#000, 0.25);
+ box-shadow: 0 2px 4px 0 rgba(#000, 0.16), 0 2px 10px 0 rgba(#000, 0.12);
+ &.hidden {
+ display: none;
+ }
+
a {
margin: 0;
padding: 10px 20px;
font-size: $type-size-5;
@@ -346,15 +353,18 @@
top: 1.25em;
width: 0.75em;
height: 0.125em;
line-height: 1;
background-color: $gray;
+ -webkit-transition: 0.2s ease-out;
transition: 0.2s ease-out;
}
&:after {
- transform: rotate(90deg);
+ -webkit-transform: rotate(90deg);
+ -ms-transform: rotate(90deg);
+ transform: rotate(90deg);
}
&:hover {
color: #fff;
border-color: $gray;
@@ -376,17 +386,21 @@
&:after {
background-color: #fff;
}
}
- // on hover show expand
+ /* on hover show expand*/
label:hover:after {
- transform: rotate(90deg);
+ -webkit-transform: rotate(90deg);
+ -ms-transform: rotate(90deg);
+ transform: rotate(90deg);
}
input:checked + label:hover:after {
- transform: rotate(0);
+ -webkit-transform: rotate(0);
+ -ms-transform: rotate(0);
+ transform: rotate(0);
}
ul {
margin-bottom: 1em;
}
@@ -436,25 +450,25 @@
overflow: hidden;
z-index: 10;
-webkit-transition: 0.3s ease-in-out;
transition: 0.3s ease-in-out;
-webkit-transform: translate(0, 10%);
- -ms-transform: translate(0, 10%);
- transform: translate(0, 10%);
+ -ms-transform: translate(0, 10%);
+ transform: translate(0, 10%);
}
}
@include breakpoint(max-width ($large - 1px)) {
.nav__list input:checked ~ .nav__items {
-webkit-transition: 0.5s ease-in-out;
transition: 0.5s ease-in-out;
- max-height: 9999px; // exaggerate max-height to accommodate tall lists
+ max-height: 9999px; /* exaggerate max-height to accommodate tall lists*/
overflow: visible;
opacity: 1;
margin-top: 1em;
-webkit-transform: translate(0, 0);
- -ms-transform: translate(0, 0);
- transform: translate(0, 0);
+ -ms-transform: translate(0, 0);
+ transform: translate(0, 0);
}
}
.nav__title {
margin: 0;
\ No newline at end of file