Menu.css 2.1 KB

12345678910111213141516171819202122232425262728293031323334
  1. .menu {
  2. background-color: white; padding: 10px 0px; position: absolute; top: 0px; max-height: 0px; overflow: hidden; transform: translate(-100%, -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; z-index: 99;
  4. display: inline-block; z-index: 999; transform-style: preserve-3d;
  5. }
  6. .menu.menu-left { transform: translate(0%, -30px); }
  7. .menu.menu-left.visible { transform: translate(0%, 0px); }
  8. .menu.visible {
  9. opacity: 1; transform: translate(-100%, 0px); pointer-events: all;
  10. transition: opacity 0.1s ease-out, transform 0.3s ease-out, max-height 0.3s cubic-bezier(0.86, 0, 0.07, 1);
  11. }
  12. .menu-item {
  13. display: block; text-decoration: none; color: black; padding: 6px 24px; transition: all 0.2s; border-bottom: none; font-weight: normal;
  14. max-height: 150px; overflow: hidden; text-overflow: ellipsis; -webkit-line-clamp: 6; -webkit-box-orient: vertical; display: -webkit-box;
  15. }
  16. .menu-item-separator { margin-top: 3px; margin-bottom: 3px; border-top: 1px solid #eee }
  17. .menu-item.noaction { cursor: default }
  18. .menu-item:hover:not(.noaction) { background-color: #F6F6F6; transition: none; color: inherit; cursor: pointer; color: black }
  19. .menu-item:active:not(.noaction), .menu-item:focus:not(.noaction) { background-color: #AF3BFF !important; color: white !important; transition: none }
  20. .menu-item.selected:before {
  21. content: "L"; display: inline-block; transform: rotateZ(45deg) scaleX(-1);
  22. font-weight: bold; position: absolute; margin-left: -14px; font-size: 12px; margin-top: 2px;
  23. }
  24. .menu-radio { white-space: normal; line-height: 26px }
  25. .menu-radio a {
  26. background-color: #EEE; width: 18.5%;; text-align: center; margin-top: 2px; margin-bottom: 2px; color: #666; font-weight: bold;
  27. text-decoration: none; font-size: 13px; transition: all 0.3s; text-transform: uppercase; display: inline-block;
  28. }
  29. .menu-radio a:hover, .menu-radio a.selected { transition: none; background-color: #AF3BFF !important; color: white !important }
  30. .menu-radio a.long { font-size: 10px; vertical-align: -1px; }