Update Menu.css

This commit is contained in:
Jabba 2020-10-12 00:17:51 +00:00 committed by GitHub
parent 2921a0d4b1
commit d2c8322d31
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 104 additions and 21 deletions

View File

@ -1,33 +1,116 @@
.menu {
background-color: white; padding: 10px 0px; position: absolute; top: 0px; max-height: 0px; overflow: hidden; transform: translate(-100%, -30px); pointer-events: none;
box-shadow: 0px 2px 8px rgba(0,0,0,0.3); border-radius: 2px; opacity: 0; transition: opacity 0.2s ease-out, transform 1s ease-out, max-height 0.2s ease-in-out; z-index: 99;
display: inline-block; z-index: 999; transform-style: preserve-3d;
background-color: white;
padding: 10px 0px;
position: absolute;
top: 0px;
max-height: 0px;
overflow: hidden;
transform: translate(-100%, -30px);
pointer-events: none;
box-shadow: 0px 2px 8px rgba(0, 0, 0, 0.3);
border-radius: 2px;
opacity: 0;
transition: opacity 0.2s ease-out, transform 1s ease-out, max-height 0.2s ease-in-out;
z-index: 99;
display: inline-block;
z-index: 999;
transform-style: preserve-3d;
}
.menu.menu-left { transform: translate(0%, -30px); }
.menu.menu-left.visible { transform: translate(0%, 0px); }
.menu.menu-left {
transform: translate(0%, -30px);
}
.menu.menu-left.visible {
transform: translate(0%, 0px);
}
.menu.visible {
opacity: 1; transform: translate(-100%, 0px); pointer-events: all;
transition: opacity 0.1s ease-out, transform 0.3s ease-out, max-height 0.3s cubic-bezier(0.86, 0, 0.07, 1);
opacity: 1;
transform: translate(-100%, 0px);
pointer-events: all;
transition: opacity 0.1s ease-out, transform 0.3s ease-out, max-height 0.3s cubic-bezier(0.86, 0, 0.07, 1);
}
.menu-item {
display: block; text-decoration: none; color: black; padding: 6px 24px; transition: all 0.2s; border-bottom: none; font-weight: normal;
max-height: 150px; overflow: hidden; text-overflow: ellipsis; -webkit-line-clamp: 6; -webkit-box-orient: vertical; display: -webkit-box;
display: block;
text-decoration: none;
color: black;
padding: 6px 24px;
transition: all 0.2s;
border-bottom: none;
font-weight: normal;
max-height: 150px;
overflow: hidden;
text-overflow: ellipsis;
-webkit-line-clamp: 6;
-webkit-box-orient: vertical;
display: -webkit-box;
}
.menu-item-separator {
margin-top: 3px;
margin-bottom: 3px;
border-top: 1px solid #eee
}
.menu-item.noaction {
cursor: default
}
.menu-item:hover:not(.noaction) {
background-color: #F6F6F6;
transition: none;
color: inherit;
cursor: pointer;
color: black
}
.menu-item:active:not(.noaction), .menu-item:focus:not(.noaction) {
background-color: #AF3BFF !important;
color: white !important;
transition: none
}
.menu-item-separator { margin-top: 3px; margin-bottom: 3px; border-top: 1px solid #eee }
.menu-item.noaction { cursor: default }
.menu-item:hover:not(.noaction) { background-color: #F6F6F6; transition: none; color: inherit; cursor: pointer; color: black }
.menu-item:active:not(.noaction), .menu-item:focus:not(.noaction) { background-color: #AF3BFF !important; color: white !important; transition: none }
.menu-item.selected:before {
content: "L"; display: inline-block; transform: rotateZ(45deg) scaleX(-1);
font-weight: bold; position: absolute; margin-left: -14px; font-size: 12px; margin-top: 2px;
content: "L";
display: inline-block;
transform: rotateZ(45deg) scaleX(-1);
font-weight: bold;
position: absolute;
margin-left: -14px;
font-size: 12px;
margin-top: 2px;
}
.menu-radio { white-space: normal; line-height: 26px }
.menu-radio a {
background-color: #EEE; width: 18.5%;; text-align: center; margin-top: 2px; margin-bottom: 2px; color: #666; font-weight: bold;
text-decoration: none; font-size: 13px; transition: all 0.3s; text-transform: uppercase; display: inline-block;
.menu-radio {
white-space: normal;
line-height: 26px
}
.menu-radio a {
background-color: #EEE;
width: 18.5%;
;
text-align: center;
margin-top: 2px;
margin-bottom: 2px;
color: #666;
font-weight: bold;
text-decoration: none;
font-size: 13px;
transition: all 0.3s;
text-transform: uppercase;
display: inline-block;
}
.menu-radio a:hover, .menu-radio a.selected {
transition: none;
background-color: #AF3BFF !important;
color: white !important
}
.menu-radio a.long {
font-size: 10px;
vertical-align: -1px;
}
.menu-radio a:hover, .menu-radio a.selected { transition: none; background-color: #AF3BFF !important; color: white !important }
.menu-radio a.long { font-size: 10px; vertical-align: -1px; }