New Menu friendly for Mobile

This commit is contained in:
tmshv committed 2017-05-31 21:49:42 +03:00
1 parent ee3ee74650
commit ffba68c4b6
7 files changed
+268 -15

No files matched your search

-2
View File
@@ -1,8 +1,6 @@
@import "../variables";
.main-menu {
white-space: nowrap;
font-size: $normal-font-size;
list-style: none;
+1 -9
View File
@@ -1,16 +1,8 @@
@import "../variables";
.navigation {
-webkit-overflow-scrolling: touch;
width: 100%;
z-index: 100;
overflow-x: scroll;
position: fixed;
top: 0;
white-space: nowrap;
background-color: rgba(255, 255, 255, 0.95);
background-color: white;
&__body {
display: flex;
+130
View File
@@ -0,0 +1,130 @@
.no-scroll {
overflow: hidden;
}
.HMenu {
display: flex;
flex-direction: row;
align-items: center;
width: 100%;
height: 100%;
position: relative;
list-style: none;
}
.HMenu li {
margin: 0 1em .5em 0;
}
.HMenu--folded.HMenu--closed {
justify-content: center;
}
.HMenu--folded.HMenu--closed .HMenu__item{
display: none;
}
.HMenu--folded .HMenu__item.HMenu__item--cur{
display: block;
}
.HMenu__toggle {
position: absolute;
top: 0;
left: 0;
display: flex;
align-items: center;
height: 3em;
font-size: 1rem;
}
.HMenu--unfolded {
margin-left: 1em;
}
.HMenu--unfolded .HMenu__toggle {
display: none;
}
.HMenu--folded.HMenu--open {
display: flex;
align-items: center;
width: 100%;
height: 100%;
position: fixed;
top: 0;
left: 0;
//background-color: rgba(169, 144, 97, 0.95);
background-color: rgba(255, 255, 255, 0.95);
flex-direction: column;
text-align: center;
overflow-y: auto;
font-size: 1.5rem;
/*transition: opacity 0.5s ease-in-out;*/
/*-webkit-transition: opacity 0.5s ease-in-out;*/
}
._HMenu--folded li:last-child {
margin-bottom: 2em;
}
.HMenu__item {
max-width: 10em;
}
.HMenu__toggle {
padding: 0 .5em;
}
.HMenu__toggle a {
text-decoration: none;
border: none;
}
.HMenu__toggle a:hover {
font-weight: bold;
}
+1
View File
@@ -39,6 +39,7 @@
@import "footer";
@import "kazimir/video";
@import "hmenu";
// THEMES