toolbar.menu.css 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. /**
  2. * @file toolbar.menu.css
  3. */
  4. .toolbar .toolbar-menu,
  5. [dir="rtl"] .toolbar .toolbar-menu {
  6. list-style: none;
  7. margin: 0;
  8. padding: 0;
  9. }
  10. .toolbar .toolbar-box {
  11. display: block;
  12. line-height: 1em; /* this prevents the value "normal" from being returned as the line-height */
  13. position: relative;
  14. width: auto;
  15. }
  16. /**
  17. * Hidden vertical toolbar sub-menus by default.
  18. */
  19. .toolbar .toolbar-tray-vertical .toolbar-menu ul {
  20. display: none;
  21. }
  22. /**
  23. * Hidden horizontal toolbar handle icon.
  24. */
  25. .toolbar .toolbar-tray-horizontal .toolbar-menu .toolbar-handle {
  26. display: none;
  27. }
  28. /**
  29. * Hidden toolbar sub-menus by default.
  30. */
  31. .toolbar-tray-open .toolbar-menu .menu-item--expanded ul {
  32. display: none;
  33. }
  34. .toolbar .toolbar-tray-vertical li.open > ul {
  35. display: block; /* Show the sub-menus */
  36. }
  37. .toolbar .toolbar-tray-vertical .toolbar-handle + a {
  38. margin-right: 3em; /* LTR */
  39. }
  40. [dir="rtl"] .toolbar .toolbar-tray-vertical .toolbar-handle + a {
  41. margin-left: 3em;
  42. margin-right: 0;
  43. }
  44. /* ----- Toolbar menu tray for viewports less than 320px ------ */
  45. @media screen and (max-width: 319px) {
  46. .toolbar .toolbar-tray-vertical.is-active {
  47. width: 100%;
  48. }
  49. }
  50. /**
  51. * Handle.
  52. */
  53. .toolbar .toolbar-handle:hover {
  54. cursor: pointer;
  55. }
  56. .toolbar .toolbar-icon.toolbar-handle {
  57. bottom: 0;
  58. display: block;
  59. height: 100%;
  60. padding: 0;
  61. position: absolute;
  62. right: 0; /* LTR */
  63. top: 0;
  64. z-index: 1;
  65. }
  66. [dir="rtl"] .toolbar .toolbar-icon.toolbar-handle {
  67. left: 0;
  68. padding: 0;
  69. right: auto;
  70. }