toolbar.menu.css

Same filename in this branch
  1. 11.x core/themes/stable9/css/toolbar/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

If Claro is the admin theme, this stylesheet will be used by the active theme even if the active theme is not Claro.

File

core/themes/claro/css/state/toolbar.menu.css

View source
  1. /*
  2. * DO NOT EDIT THIS FILE.
  3. * See the following change record for more information,
  4. * https://www.drupal.org/node/3084859
  5. * @preserve
  6. */
  7. /**
  8. * @file toolbar.menu.css
  9. *
  10. * If Claro is the admin theme, this stylesheet will be used by the active theme
  11. * even if the active theme is not Claro.
  12. */
  13. .toolbar .toolbar-menu,
  14. [dir="rtl"] .toolbar .toolbar-menu {
  15. margin: 0;
  16. padding: 0;
  17. list-style: none;
  18. }
  19. .toolbar .toolbar-box {
  20. position: relative;
  21. display: block;
  22. width: auto;
  23. line-height: 1em; /* this prevents the value "normal" from being returned as the line-height */
  24. }
  25. /**
  26. * Hidden vertical toolbar sub-menus by default.
  27. */
  28. .toolbar .toolbar-tray-vertical .toolbar-menu ul {
  29. display: none;
  30. }
  31. /**
  32. * Hidden horizontal toolbar handle icon.
  33. */
  34. .toolbar .toolbar-tray-horizontal .toolbar-menu .toolbar-handle {
  35. display: none;
  36. }
  37. /**
  38. * Hidden toolbar sub-menus by default.
  39. */
  40. .toolbar-tray-open .toolbar-menu .menu-item--expanded ul {
  41. display: none;
  42. }
  43. .toolbar .toolbar-tray-vertical li.open > ul {
  44. display: block; /* Show the sub-menus */
  45. }
  46. .toolbar .toolbar-tray-vertical .toolbar-handle + a {
  47. margin-right: 3em; /* LTR */
  48. }
  49. [dir="rtl"] .toolbar .toolbar-tray-vertical .toolbar-handle + a {
  50. margin-right: 0;
  51. margin-left: 3em;
  52. }
  53. .toolbar .toolbar-tray .menu-item--active-trail > .toolbar-box a,
  54. .toolbar .toolbar-tray a.is-active {
  55. color: #000;
  56. background-color: #f5f5f5;
  57. font-weight: bold;
  58. }
  59. /* ----- Toolbar menu tray for viewports less than 320px ------ */
  60. @media screen and (max-width: 19.9375rem) {
  61. .toolbar .toolbar-tray-vertical.is-active {
  62. width: 100%;
  63. }
  64. }
  65. /**
  66. * Items.
  67. */
  68. .toolbar .level-2 > ul {
  69. border-top-color: #e5e5e5;
  70. border-bottom-color: #ccc;
  71. background-color: #fafafa;
  72. }
  73. .toolbar .level-3 > ul {
  74. border-top-color: #ddd;
  75. border-bottom-color: #c5c5c5;
  76. background-color: #f5f5f5;
  77. }
  78. .toolbar .level-4 > ul {
  79. border-top-color: #d5d5d5;
  80. border-bottom-color: #bbb;
  81. background-color: #eee;
  82. }
  83. .toolbar .level-5 > ul {
  84. border-top-color: #ccc;
  85. border-bottom-color: #b5b5b5;
  86. background-color: #e5e5e5;
  87. }
  88. .toolbar .level-6 > ul {
  89. border-top-color: #c5c5c5;
  90. border-bottom-color: #aaa;
  91. background-color: #eee;
  92. }
  93. .toolbar .level-7 > ul {
  94. border-top-color: #ccc;
  95. border-bottom-color: #b5b5b5;
  96. background-color: #fafafa;
  97. }
  98. .toolbar .level-8 > ul {
  99. border-top-color: #ddd;
  100. border-bottom-color: #ccc;
  101. background-color: #ddd;
  102. }
  103. /**
  104. * Handle.
  105. */
  106. .toolbar .toolbar-handle:hover {
  107. cursor: pointer;
  108. }
  109. .toolbar .toolbar-icon.toolbar-handle {
  110. position: absolute;
  111. z-index: 1;
  112. top: 0;
  113. right: 0; /* LTR */
  114. bottom: 0;
  115. display: block;
  116. height: 100%;
  117. padding: 0;
  118. }
  119. [dir="rtl"] .toolbar .toolbar-icon.toolbar-handle {
  120. right: auto;
  121. left: 0;
  122. padding: 0;
  123. }

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