toolbar.menu.pcss.css

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

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