Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x

toolbar.theme.css

Same filename in this branch
  1. 11.1.x core/themes/stable9/css/toolbar/toolbar.theme.css
  2. 11.1.x core/modules/toolbar/css/toolbar.theme.css

toolbar.theme.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/theme/toolbar.theme.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.theme.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 {
  14. font-family: "Source Sans Pro", "Lucida Grande", Verdana, sans-serif;
  15. /* Set base font size to 13px based on root ems. */
  16. font-size: 0.8125rem;
  17. -moz-tap-highlight-color: rgba(0, 0, 0, 0);
  18. -o-tap-highlight-color: rgba(0, 0, 0, 0);
  19. -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
  20. tap-highlight-color: rgba(0, 0, 0, 0);
  21. -moz-touch-callout: none;
  22. -o-touch-callout: none;
  23. -webkit-touch-callout: none;
  24. touch-callout: none;
  25. }
  26. .toolbar .toolbar-item {
  27. padding: 1em 1.3333em;
  28. cursor: pointer;
  29. -webkit-text-decoration: none;
  30. text-decoration: none;
  31. line-height: 1em;
  32. }
  33. .toolbar .toolbar-item:hover,
  34. .toolbar .toolbar-item:focus {
  35. -webkit-text-decoration: underline;
  36. text-decoration: underline;
  37. }
  38. /**
  39. * Toolbar bar.
  40. */
  41. .toolbar .toolbar-bar {
  42. color: #ddd;
  43. background-color: #0f0f0f;
  44. box-shadow: -1px 0 3px 1px rgba(0, 0, 0, 0.3333); /* LTR */
  45. }
  46. [dir="rtl"] .toolbar .toolbar-bar {
  47. box-shadow: 1px 0 3px 1px rgba(0, 0, 0, 0.3333);
  48. }
  49. .toolbar .toolbar-bar .toolbar-item {
  50. color: #fff;
  51. }
  52. .toolbar .toolbar-bar .toolbar-tab > .toolbar-item {
  53. font-weight: bold;
  54. }
  55. .toolbar .toolbar-bar .toolbar-tab > .toolbar-item:hover,
  56. .toolbar .toolbar-bar .toolbar-tab > .toolbar-item:focus {
  57. background-image: linear-gradient(rgba(255, 255, 255, 0.125) 20%, transparent 200%);
  58. }
  59. .toolbar .toolbar-bar .toolbar-tab > .toolbar-item.is-active {
  60. color: #000;
  61. border-bottom: 1px solid #ddd;
  62. background-color: #fff;
  63. }
  64. /**
  65. * Toolbar tray.
  66. */
  67. .toolbar .toolbar-tray {
  68. background-color: #fff;
  69. }
  70. .toolbar-horizontal .toolbar-tray > .toolbar-lining {
  71. padding-right: 5em; /* LTR */
  72. }
  73. [dir="rtl"] .toolbar-horizontal .toolbar-tray > .toolbar-lining {
  74. padding-right: 0;
  75. padding-left: 5em;
  76. }
  77. .toolbar .toolbar-tray-vertical {
  78. border-right: 1px solid #aaa; /* LTR */
  79. background-color: #f5f5f5;
  80. box-shadow: -1px 0 5px 2px rgba(0, 0, 0, 0.3333); /* LTR */
  81. }
  82. [dir="rtl"] .toolbar .toolbar-tray-vertical {
  83. border-right: 0 none;
  84. border-left: 1px solid #aaa;
  85. box-shadow: 1px 0 5px 2px rgba(0, 0, 0, 0.3333);
  86. }
  87. .toolbar-horizontal .toolbar-tray {
  88. border-bottom: 1px solid #aaa;
  89. box-shadow: -2px 1px 3px 1px rgba(0, 0, 0, 0.3333); /* LTR */
  90. }
  91. [dir="rtl"] .toolbar-horizontal .toolbar-tray {
  92. box-shadow: 2px 1px 3px 1px rgba(0, 0, 0, 0.3333);
  93. }
  94. .toolbar .toolbar-tray-horizontal .toolbar-tray {
  95. background-color: #f5f5f5;
  96. }
  97. .toolbar-tray a,
  98. .toolbar-tray a:visited {
  99. padding: 1em 1.3333em;
  100. cursor: pointer;
  101. -webkit-text-decoration: none;
  102. text-decoration: none;
  103. color: #565656;
  104. }
  105. .toolbar-tray a:hover,
  106. .toolbar-tray a:active,
  107. .toolbar-tray a:focus,
  108. .toolbar-tray a.is-active {
  109. -webkit-text-decoration: underline;
  110. text-decoration: underline;
  111. color: #000;
  112. }
  113. .toolbar .toolbar-menu {
  114. background-color: #fff;
  115. }
  116. .toolbar-horizontal .toolbar-tray .menu-item + .menu-item {
  117. border-left: 1px solid #ddd; /* LTR */
  118. }
  119. [dir="rtl"] .toolbar-horizontal .toolbar-tray .menu-item + .menu-item {
  120. border-right: 1px solid #ddd;
  121. border-left: 0 none;
  122. }
  123. .toolbar-horizontal .toolbar-tray .menu-item:last-child {
  124. border-right: 1px solid #ddd; /* LTR */
  125. }
  126. [dir="rtl"] .toolbar-horizontal .toolbar-tray .menu-item:last-child {
  127. border-left: 1px solid #ddd;
  128. }
  129. .toolbar .toolbar-tray-vertical .menu-item + .menu-item {
  130. border-top: 1px solid #ddd;
  131. }
  132. .toolbar .toolbar-tray-vertical .menu-item:last-child {
  133. border-bottom: 1px solid #ddd;
  134. }
  135. .toolbar .toolbar-tray-vertical .menu-item .menu-item {
  136. border: 0 none;
  137. }
  138. .toolbar .toolbar-tray-vertical .toolbar-menu ul ul {
  139. border-top: 1px solid #ddd;
  140. border-bottom: 1px solid #ddd;
  141. }
  142. .toolbar .toolbar-tray-vertical .menu-item:last-child > ul {
  143. border-bottom: 0;
  144. }
  145. .toolbar .toolbar-tray-vertical .toolbar-menu .toolbar-menu .toolbar-menu .toolbar-menu {
  146. margin-left: 0.25em; /* LTR */
  147. }
  148. [dir="rtl"] .toolbar .toolbar-tray-vertical .toolbar-menu .toolbar-menu .toolbar-menu .toolbar-menu {
  149. margin-right: 0.25em;
  150. margin-left: 0;
  151. }
  152. .toolbar .toolbar-menu .toolbar-menu a {
  153. color: #434343;
  154. }
  155. /**
  156. * Orientation toggle.
  157. */
  158. .toolbar .toolbar-toggle-orientation {
  159. height: 100%;
  160. padding: 0;
  161. background-color: #f5f5f5;
  162. }
  163. .toolbar-horizontal .toolbar-tray .toolbar-toggle-orientation {
  164. border-left: 1px solid #c9c9c9; /* LTR */
  165. }
  166. [dir="rtl"] .toolbar-horizontal .toolbar-tray .toolbar-toggle-orientation {
  167. border-right: 1px solid #c9c9c9;
  168. border-left: 0 none;
  169. }
  170. .toolbar .toolbar-toggle-orientation > .toolbar-lining {
  171. float: right; /* LTR */
  172. }
  173. [dir="rtl"] .toolbar .toolbar-toggle-orientation > .toolbar-lining {
  174. float: left;
  175. }
  176. .toolbar .toolbar-toggle-orientation button {
  177. display: inline-block;
  178. cursor: pointer;
  179. }
  180. @media (forced-colors: active) {
  181. .toolbar-horizontal .toolbar-tray > .toolbar-lining,
  182. .toolbar-horizontal .toolbar .toolbar-toggle-orientation .toolbar-icon {
  183. border-top: 1px solid transparent;
  184. }
  185. .toolbar .toolbar-bar {
  186. border-bottom: 1px solid transparent;
  187. }
  188. }

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal