toolbar.menu.pcss.css

Same filename in other branches
  1. 9 core/themes/claro/css/state/toolbar.menu.pcss.css
  2. 11.x core/themes/claro/css/state/toolbar.menu.pcss.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.pcss.css

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

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