Menu.css 1.1 KB

123456789101112131415
  1. .menu {
  2. background-color: white; padding: 10px 0px; position: absolute; top: 0px; left: 0px; max-height: 0px; overflow: hidden;
  3. transform: translate(0px, -30px); pointer-events: none; box-shadow: 0px 2px 8px rgba(0,0,0,0.3); border-radius: 2px;
  4. opacity: 0; transition: opacity 0.2s ease-out, transform 1s ease-out, max-height 0.2s ease-in-out; z-index: 999;
  5. }
  6. .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 }
  7. .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; }
  8. .menu-item-separator { margin-top: 5px; border-top: 1px solid #eee }
  9. .menu-item:hover { background-color: #F6F6F6; transition: none; color: inherit; }
  10. .menu-item:active, .menu-item:focus { background-color: #AF3BFF; color: white; transition: none }
  11. .menu-item.selected:before {
  12. content: "L"; display: inline-block; transform: rotateZ(45deg) scaleX(-1);
  13. font-weight: bold; position: absolute; margin-left: -17px; font-size: 12px; margin-top: 2px;
  14. }