toolbar.menu.css

Same filename in this branch
  1. 9 core/themes/stable9/css/toolbar/toolbar.menu.css
  2. 9 core/themes/stable/css/toolbar/toolbar.menu.css
  3. 9 core/modules/toolbar/css/toolbar.menu.css
Same filename in other branches
  1. 8.9.x core/themes/stable/css/toolbar/toolbar.menu.css
  2. 8.9.x core/modules/toolbar/css/toolbar.menu.css
  3. 10 core/themes/stable9/css/toolbar/toolbar.menu.css
  4. 10 core/themes/claro/css/state/toolbar.menu.css
  5. 10 core/modules/toolbar/css/toolbar.menu.css
  6. 11.x core/themes/stable9/css/toolbar/toolbar.menu.css
  7. 11.x core/themes/claro/css/state/toolbar.menu.css
  8. 11.x 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. font-weight: bold;
  57. }
  58. /* ----- Toolbar menu tray for viewports less than 320px ------ */
  59. @media screen and (max-width: 19.9375rem) {
  60. .toolbar .toolbar-tray-vertical.is-active {
  61. width: 100%;
  62. }
  63. }
  64. /**
  65. * Items.
  66. */
  67. .toolbar .level-2 > ul {
  68. border-top-color: #e5e5e5;
  69. border-bottom-color: #ccc;
  70. background-color: #fafafa;
  71. }
  72. .toolbar .level-3 > ul {
  73. border-top-color: #ddd;
  74. border-bottom-color: #c5c5c5;
  75. background-color: #f5f5f5;
  76. }
  77. .toolbar .level-4 > ul {
  78. border-top-color: #d5d5d5;
  79. border-bottom-color: #bbb;
  80. background-color: #eee;
  81. }
  82. .toolbar .level-5 > ul {
  83. border-top-color: #ccc;
  84. border-bottom-color: #b5b5b5;
  85. background-color: #e5e5e5;
  86. }
  87. .toolbar .level-6 > ul {
  88. border-top-color: #c5c5c5;
  89. border-bottom-color: #aaa;
  90. background-color: #eee;
  91. }
  92. .toolbar .level-7 > ul {
  93. border-top-color: #ccc;
  94. border-bottom-color: #b5b5b5;
  95. background-color: #fafafa;
  96. }
  97. .toolbar .level-8 > ul {
  98. border-top-color: #ddd;
  99. border-bottom-color: #ccc;
  100. background-color: #ddd;
  101. }
  102. /**
  103. * Handle.
  104. */
  105. .toolbar .toolbar-handle:hover {
  106. cursor: pointer;
  107. }
  108. .toolbar .toolbar-icon.toolbar-handle {
  109. position: absolute;
  110. z-index: 1;
  111. top: 0;
  112. right: 0; /* LTR */
  113. bottom: 0;
  114. display: block;
  115. height: 100%;
  116. padding: 0;
  117. }
  118. [dir="rtl"] .toolbar .toolbar-icon.toolbar-handle {
  119. right: auto;
  120. left: 0;
  121. padding: 0;
  122. }

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