New Menu friendly for Mobile
This commit is contained in:
1 parent
ee3ee74650
commit
ffba68c4b6
7 files changed
+268
-15
No files matched your search
@@ -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;
|
||||
}
|
||||
Reference in new issue
Block a user