Menu.css 1.3 KB

12345678910111213141516171819
  1. .menu {
  2. background-color: white; padding: 10px 0px; position: absolute; top: 0px; left: 0px; max-height: 0px; overflow: hidden; transform: translate(0px, -30px); pointer-events: none;
  3. 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;
  4. }
  5. .menu.visible { opacity: 1; max-height: 350px; transform: translate(0px, 0px); transition: opacity 0.1s ease-out, transform 0.3s ease-out, max-height 0.3s ease-in-out; pointer-events: all }
  6. .menu-item { display: block; text-decoration: none; color: black; padding: 6px 24px; transition: all 0.2s; border-bottom: none; font-weight: normal; padding-left: 30px; }
  7. .menu-item-separator { margin-top: 5px; border-top: 1px solid #eee }
  8. .menu-item:hover { background-color: #F6F6F6; transition: none; color: inherit; border: none }
  9. .menu-item:active, .menu-item:focus { background-color: #AF3BFF; color: white; transition: none }
  10. .menu-item.selected:before {
  11. content: "L"; display: inline-block; transform: rotateZ(45deg) scaleX(-1);
  12. font-weight: bold; position: absolute; margin-left: -17px; font-size: 12px; margin-top: 2px;
  13. }
  14. @media only screen and (max-width: 800px) {
  15. .menu, .menu.visible { position: absolute; left: unset !important; right: 20px; }
  16. }