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

Breadcrumb

  1. Drupal Core 11.1.x

toolbar.module.css

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

toolbar.module.css

Aggressive resets so we can achieve a consistent look in hostile CSS environments.

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/components/toolbar.module.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.module.css
  9. *
  10. *
  11. * Aggressive resets so we can achieve a consistent look in hostile CSS
  12. * environments.
  13. *
  14. * If Claro is the admin theme, this stylesheet will be used by the active theme
  15. * even if the active theme is not Claro.
  16. */
  17. #toolbar-administration,
  18. #toolbar-administration * {
  19. box-sizing: border-box;
  20. }
  21. #toolbar-administration {
  22. margin: 0;
  23. padding: 0;
  24. vertical-align: baseline;
  25. font-size: small;
  26. line-height: 1;
  27. }
  28. @media print {
  29. #toolbar-administration {
  30. display: none;
  31. }
  32. }
  33. .toolbar-loading #toolbar-administration {
  34. overflow: hidden;
  35. }
  36. /**
  37. * Very specific overrides for Drupal system CSS.
  38. */
  39. .toolbar li,
  40. .toolbar .item-list,
  41. .toolbar .item-list li,
  42. .toolbar .menu-item,
  43. .toolbar .menu-item--expanded {
  44. list-style-type: none;
  45. list-style-image: none;
  46. }
  47. .toolbar .menu-item {
  48. padding-block-start: 0;
  49. }
  50. .toolbar .toolbar-bar .toolbar-tab,
  51. .toolbar .menu-item {
  52. display: block;
  53. }
  54. .toolbar .toolbar-bar .toolbar-tab.hidden {
  55. display: none;
  56. }
  57. .toolbar a {
  58. display: block;
  59. line-height: 1;
  60. }
  61. .toolbar .toolbar-bar,
  62. .toolbar .toolbar-tray {
  63. position: relative;
  64. z-index: 1250;
  65. }
  66. .toolbar .toolbar-tray {
  67. z-index: 501;
  68. display: none;
  69. }
  70. .toolbar-horizontal .toolbar-tray {
  71. position: fixed;
  72. inset-inline-start: 0;
  73. width: 100%;
  74. }
  75. /* Position the admin toolbar absolutely when the configured standard breakpoint
  76. * is active. The toolbar container, that contains the bar and the trays, is
  77. * position absolutely so that it scrolls with the page. Otherwise, on smaller
  78. * screens, the components of the admin toolbar are positioned statically. */
  79. .toolbar-oriented .toolbar-bar {
  80. position: absolute;
  81. inset-block-start: 0;
  82. inset-inline: 0;
  83. }
  84. .toolbar-oriented .toolbar-tray {
  85. position: absolute;
  86. inset-inline: 0;
  87. }
  88. .toolbar-oriented .toolbar-bar {
  89. z-index: 502; /* Layer the bar just above the trays and above contextual link triggers. */
  90. }
  91. .toolbar-oriented .toolbar-tray-vertical {
  92. position: absolute;
  93. inset-inline-start: -100%;
  94. width: 15rem;
  95. }
  96. /* .toolbar-loading is required by Toolbar JavaScript to pre-render markup
  97. * style to avoid extra reflow & flicker. */
  98. @media (min-width: 61em) {
  99. .toolbar-loading.toolbar-horizontal .toolbar .toolbar-bar .toolbar-tab:last-child .toolbar-tray {
  100. display: none;
  101. }
  102. }
  103. /* Position the admin toolbar fixed when the configured standard breakpoint is
  104. * active. */
  105. .toolbar-fixed .toolbar-oriented .toolbar-bar {
  106. position: fixed;
  107. }
  108. /* When the configured narrow breakpoint is active, the toolbar is sized to wrap
  109. * around the trays in order to provide a context for scrolling tray content
  110. * that is taller than the viewport. */
  111. .toolbar-tray-open.toolbar-fixed.toolbar-vertical .toolbar-oriented {
  112. inset-block-end: 0;
  113. width: 15rem;
  114. }
  115. /* Present the admin toolbar tabs horizontally as a default on user agents that
  116. * do not understand media queries or on user agents where JavaScript is
  117. * disabled. */
  118. .toolbar-loading.toolbar-horizontal .toolbar .toolbar-tray .toolbar-menu > li,
  119. .toolbar .toolbar-bar .toolbar-tab,
  120. .toolbar .toolbar-tray-horizontal li {
  121. float: left; /* LTR */
  122. }
  123. [dir="rtl"] .toolbar-loading.toolbar-horizontal .toolbar .toolbar-tray .toolbar-menu > li,
  124. [dir="rtl"] .toolbar .toolbar-bar .toolbar-tab,
  125. [dir="rtl"] .toolbar .toolbar-tray-horizontal li {
  126. float: right;
  127. }
  128. /* Present the admin toolbar tabs vertically by default on user agents that
  129. * that understand media queries. This will be the small screen default. */
  130. @media only screen {
  131. .toolbar .toolbar-bar .toolbar-tab,
  132. .toolbar .toolbar-tray-horizontal li {
  133. float: none; /* LTR */
  134. }
  135. }
  136. /* This min-width media query is meant to provide basic horizontal layout to
  137. * the main menu tabs when JavaScript is disabled on user agents that understand
  138. * media queries. */
  139. @media (min-width: 16.5em) {
  140. .toolbar .toolbar-bar .toolbar-tab,
  141. .toolbar .toolbar-tray-horizontal li {
  142. float: left; /* LTR */
  143. }
  144. [dir="rtl"] .toolbar .toolbar-bar .toolbar-tab,
  145. [dir="rtl"] .toolbar .toolbar-tray-horizontal li {
  146. float: right;
  147. }
  148. }
  149. /* Present the admin toolbar tabs horizontally when the configured narrow
  150. * breakpoint is active. */
  151. .toolbar-oriented .toolbar-bar .toolbar-tab,
  152. .toolbar-oriented .toolbar-tray-horizontal li {
  153. float: left; /* LTR */
  154. }
  155. [dir="rtl"] .toolbar-oriented .toolbar-bar .toolbar-tab,
  156. [dir="rtl"] .toolbar-oriented .toolbar-tray-horizontal li {
  157. float: right;
  158. }
  159. .toolbar .toolbar-tray-vertical > .toolbar-lining {
  160. min-height: 100%;
  161. }
  162. /* Layer the links just above the toolbar-tray. */
  163. .toolbar .toolbar-bar .toolbar-tab > .toolbar-icon {
  164. position: relative;
  165. z-index: 502;
  166. }
  167. /* Hide secondary menus when the tray is horizontal. */
  168. .toolbar-oriented .toolbar-tray-horizontal .menu-item ul {
  169. display: none;
  170. }
  171. /* When the configured standard breakpoint is active and the tray is in a
  172. * vertical position, the tray does not scroll with the page. The contents of
  173. * the tray scroll within the confines of the viewport.
  174. */
  175. .toolbar .toolbar-tray-vertical.is-active,
  176. .toolbar-fixed .toolbar .toolbar-tray-vertical {
  177. position: fixed;
  178. overflow-x: hidden;
  179. overflow-y: auto;
  180. height: 100%;
  181. }
  182. .toolbar .toolbar-tray.is-active {
  183. display: block;
  184. }
  185. /* Bring the tray into the viewport. By default it is just off-screen. */
  186. .toolbar-oriented .toolbar-tray-vertical.is-active {
  187. inset-inline-start: 0;
  188. }
  189. /* When the configured standard breakpoint is active, the tray appears to push
  190. * the page content away from the edge of the viewport. */
  191. .toolbar-tray-open.toolbar-vertical.toolbar-fixed {
  192. margin-inline-start: 15rem;
  193. }
  194. @media print {
  195. .toolbar-tray-open.toolbar-vertical.toolbar-fixed {
  196. margin-inline-start: 0;
  197. }
  198. }
  199. /**
  200. * ToolBar tray orientation toggle.
  201. */
  202. /* Hide the orientation toggle when the configured narrow breakpoint is not
  203. * active. */
  204. .toolbar .toolbar-tray .toolbar-toggle-orientation {
  205. display: none;
  206. }
  207. /* Show the orientation toggle when the configured narrow breakpoint is
  208. * active. */
  209. .toolbar-oriented .toolbar-tray .toolbar-toggle-orientation {
  210. display: block;
  211. }
  212. .toolbar-oriented .toolbar-tray-horizontal .toolbar-toggle-orientation {
  213. position: absolute;
  214. inset-block-start: auto;
  215. inset-inline-end: 0;
  216. inset-block-end: 0;
  217. }
  218. .toolbar-oriented .toolbar-tray-vertical .toolbar-toggle-orientation {
  219. float: right; /* LTR */
  220. width: 100%;
  221. }
  222. [dir="rtl"] .toolbar-oriented .toolbar-tray-vertical .toolbar-toggle-orientation {
  223. float: left;
  224. }
  225. /**
  226. * Toolbar home button toggle.
  227. */
  228. .toolbar .toolbar-bar .home-toolbar-tab {
  229. display: none;
  230. }
  231. .path-admin .toolbar-bar .home-toolbar-tab {
  232. display: block;
  233. }
  234. /* Anti flicker styling. */
  235. .toolbar-anti-flicker.toolbar-loading.toolbar-fixed body {
  236. padding-top: 2.4375rem;
  237. }
  238. .toolbar-anti-flicker.toolbar-loading.toolbar-fixed.toolbar-horizontal.toolbar-tray-open body {
  239. padding-top: 4.91331rem;
  240. }
  241. .toolbar-anti-flicker.toolbar-vertical.toolbar-tray-open .menu-item + .menu-item {
  242. border-top: 1px solid #ddd;
  243. }
  244. .toolbar-loading.toolbar-vertical.toolbar-tray-open .toolbar-tray {
  245. position: fixed;
  246. z-index: -1;
  247. top: 2.4375rem;
  248. bottom: 0;
  249. display: block;
  250. width: 15rem;
  251. inset-inline-start: 0;
  252. }
  253. .toolbar-tray-lazy-placeholder-link {
  254. position: relative;
  255. z-index: 0;
  256. display: block;
  257. }
  258. .toolbar-tray-open.toolbar-fixed.toolbar-vertical #toolbar-administration {
  259. margin-inline-start: -15rem;
  260. }
  261. .toolbar .toolbar-tray-vertical > .toolbar-lining::before {
  262. width: 100%;
  263. }
  264. .toolbar-oriented .toolbar-tray-vertical > .toolbar-lining::before {
  265. position: fixed;
  266. z-index: -1;
  267. top: 0;
  268. bottom: 0;
  269. display: block;
  270. width: 15rem;
  271. content: "";
  272. inset-inline-start: 0;
  273. }

API Navigation

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