toolbar.menu.css 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118
  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 .toolbar-tray .menu-item--active-trail > .toolbar-box a,
  45. .toolbar .toolbar-tray a.is-active {
  46. color: #000;
  47. font-weight: bold;
  48. }
  49. /* ----- Toolbar menu tray for viewports less than 320px ------ */
  50. @media screen and (max-width: 319px) {
  51. .toolbar .toolbar-tray-vertical.is-active {
  52. width: 100%;
  53. }
  54. }
  55. /**
  56. * Items.
  57. */
  58. .toolbar .level-2 > ul {
  59. background-color: #fafafa;
  60. border-bottom-color: #cccccc;
  61. border-top-color: #e5e5e5;
  62. }
  63. .toolbar .level-3 > ul {
  64. background-color: #f5f5f5;
  65. border-bottom-color: #c5c5c5;
  66. border-top-color: #dddddd;
  67. }
  68. .toolbar .level-4 > ul {
  69. background-color: #eeeeee;
  70. border-bottom-color: #bbbbbb;
  71. border-top-color: #d5d5d5;
  72. }
  73. .toolbar .level-5 > ul {
  74. background-color: #e5e5e5;
  75. border-bottom-color: #b5b5b5;
  76. border-top-color: #cccccc;
  77. }
  78. .toolbar .level-6 > ul {
  79. background-color: #eeeeee;
  80. border-bottom-color: #aaaaaa;
  81. border-top-color: #c5c5c5;
  82. }
  83. .toolbar .level-7 > ul {
  84. background-color: #fafafa;
  85. border-bottom-color: #b5b5b5;
  86. border-top-color: #cccccc;
  87. }
  88. .toolbar .level-8 > ul {
  89. background-color: #dddddd;
  90. border-bottom-color: #cccccc;
  91. border-top-color: #dddddd;
  92. }
  93. /**
  94. * Handle.
  95. */
  96. .toolbar .toolbar-handle:hover {
  97. cursor: pointer;
  98. }
  99. .toolbar .toolbar-icon.toolbar-handle {
  100. bottom: 0;
  101. display: block;
  102. height: 100%;
  103. padding: 0;
  104. position: absolute;
  105. right: 0; /* LTR */
  106. top: 0;
  107. z-index: 1;
  108. }
  109. [dir="rtl"] .toolbar .toolbar-icon.toolbar-handle {
  110. left: 0;
  111. padding: 0;
  112. right: auto;
  113. }