toolbar.menu.css

Same filename in this branch
  1. 11.x core/themes/claro/css/state/toolbar.menu.css
  2. 11.x core/modules/toolbar/css/toolbar.menu.css
Same filename in other branches
  1. 9 core/themes/stable9/css/toolbar/toolbar.menu.css
  2. 9 core/themes/claro/css/state/toolbar.menu.css
  3. 9 core/themes/stable/css/toolbar/toolbar.menu.css
  4. 9 core/modules/toolbar/css/toolbar.menu.css
  5. 8.9.x core/themes/stable/css/toolbar/toolbar.menu.css
  6. 8.9.x core/modules/toolbar/css/toolbar.menu.css
  7. 10 core/themes/stable9/css/toolbar/toolbar.menu.css
  8. 10 core/themes/claro/css/state/toolbar.menu.css
  9. 10 core/modules/toolbar/css/toolbar.menu.css

toolbar.menu.css

File

core/themes/stable9/css/toolbar/toolbar.menu.css

View source
  1. /**
  2. * @file toolbar.menu.css
  3. */
  4. .toolbar .toolbar-menu,
  5. [dir="rtl"] .toolbar .toolbar-menu {
  6. margin: 0;
  7. padding: 0;
  8. list-style: none;
  9. }
  10. .toolbar .toolbar-box {
  11. position: relative;
  12. display: block;
  13. width: auto;
  14. line-height: 1em; /* this prevents the value "normal" from being returned as the line-height */
  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-right: 0;
  42. margin-left: 3em;
  43. }
  44. .toolbar .toolbar-tray .menu-item--active-trail > .toolbar-box a,
  45. .toolbar .toolbar-tray a.is-active {
  46. color: #000;
  47. background-color: #f5f5f5;
  48. font-weight: bold;
  49. }
  50. /* ----- Toolbar menu tray for viewports less than 320px ------ */
  51. @media screen and (max-width: 319px) {
  52. .toolbar .toolbar-tray-vertical.is-active {
  53. width: 100%;
  54. }
  55. }
  56. /**
  57. * Items.
  58. */
  59. .toolbar .level-2 > ul {
  60. border-top-color: #e5e5e5;
  61. border-bottom-color: #ccc;
  62. background-color: #fafafa;
  63. }
  64. .toolbar .level-3 > ul {
  65. border-top-color: #ddd;
  66. border-bottom-color: #c5c5c5;
  67. background-color: #f5f5f5;
  68. }
  69. .toolbar .level-4 > ul {
  70. border-top-color: #d5d5d5;
  71. border-bottom-color: #bbb;
  72. background-color: #eee;
  73. }
  74. .toolbar .level-5 > ul {
  75. border-top-color: #ccc;
  76. border-bottom-color: #b5b5b5;
  77. background-color: #e5e5e5;
  78. }
  79. .toolbar .level-6 > ul {
  80. border-top-color: #c5c5c5;
  81. border-bottom-color: #aaa;
  82. background-color: #eee;
  83. }
  84. .toolbar .level-7 > ul {
  85. border-top-color: #ccc;
  86. border-bottom-color: #b5b5b5;
  87. background-color: #fafafa;
  88. }
  89. .toolbar .level-8 > ul {
  90. border-top-color: #ddd;
  91. border-bottom-color: #ccc;
  92. background-color: #ddd;
  93. }
  94. /**
  95. * Handle.
  96. */
  97. .toolbar .toolbar-handle:hover {
  98. cursor: pointer;
  99. }
  100. .toolbar .toolbar-icon.toolbar-handle {
  101. position: absolute;
  102. z-index: 1;
  103. top: 0;
  104. right: 0; /* LTR */
  105. bottom: 0;
  106. display: block;
  107. height: 100%;
  108. padding: 0;
  109. }
  110. [dir="rtl"] .toolbar .toolbar-icon.toolbar-handle {
  111. right: auto;
  112. left: 0;
  113. padding: 0;
  114. }

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.