2 * @file toolbar.module.css
5 * Aggressive resets so we can achieve a consistent look in hostile CSS
8 #toolbar-administration,
9 #toolbar-administration * {
10 box-sizing: border-box;
12 #toolbar-administration {
17 vertical-align: baseline;
20 #toolbar-administration {
24 .toolbar-loading #toolbar-administration {
28 * Very specific overrides for Drupal system CSS.
32 .toolbar .item-list li,
34 .toolbar .menu-item--expanded {
35 list-style-type: none;
36 list-style-image: none;
41 .toolbar .toolbar-bar .toolbar-tab,
45 .toolbar .toolbar-bar .toolbar-tab.hidden {
54 * Administration menu.
56 .toolbar .toolbar-bar,
57 .toolbar .toolbar-tray {
61 .toolbar-horizontal .toolbar-tray {
66 /* Position the admin toolbar absolutely when the configured standard breakpoint
67 * is active. The toolbar container, that contains the bar and the trays, is
68 * position absolutely so that it scrolls with the page. Otherwise, on smaller
69 * screens, the components of the admin toolbar are positioned statically. */
70 .toolbar-oriented .toolbar-bar {
76 .toolbar-oriented .toolbar-tray {
81 /* .toolbar-loading is required by toolbar JavaScript to pre-render markup
82 * style to avoid extra reflow & flicker. */
83 @media (min-width: 61em) {
84 .toolbar-loading.toolbar-horizontal .toolbar .toolbar-bar .toolbar-tab:last-child .toolbar-tray {
91 .toolbar-loading.toolbar-horizontal .toolbar .toolbar-bar .toolbar-tab:last-child .toolbar-tray .toolbar-lining {
94 .toolbar-loading.toolbar-horizontal .toolbar .toolbar-bar .home-toolbar-tab + .toolbar-tab .toolbar-tray {
99 /* Layer the bar just above the trays and above contextual link triggers. */
100 .toolbar-oriented .toolbar-bar {
103 /* Position the admin toolbar fixed when the configured standard breakpoint is
105 body.toolbar-fixed .toolbar-oriented .toolbar-bar {
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 body.toolbar-tray-open.toolbar-fixed.toolbar-vertical .toolbar-oriented {
117 /* Present the admin toolbar tabs horizontally as a default on user agents that
118 * do not understand media queries or on user agents where JavaScript is
120 .toolbar-loading.toolbar-horizontal .toolbar .toolbar-tray .toolbar-menu > li,
121 .toolbar .toolbar-bar .toolbar-tab,
122 .toolbar .toolbar-tray-horizontal li {
123 float: left; /* LTR */
125 [dir="rtl"] .toolbar-loading.toolbar-horizontal .toolbar .toolbar-tray .toolbar-menu > li,
126 [dir="rtl"] .toolbar .toolbar-bar .toolbar-tab,
127 [dir="rtl"] .toolbar .toolbar-tray-horizontal li {
130 /* Present the admin toolbar tabs vertically by default on user agents that
131 * that understand media queries. This will be the small screen default. */
133 .toolbar .toolbar-bar .toolbar-tab,
134 .toolbar .toolbar-tray-horizontal li {
135 float: none; /* LTR */
137 [dir="rtl"] .toolbar .toolbar-bar .toolbar-tab,
138 [dir="rtl"] .toolbar .toolbar-tray-horizontal li {
142 /* This min-width media query is meant to provide basic horizontal layout to
143 * the main menu tabs when JavaScript is disabled on user agents that understand
145 @media (min-width: 16.5em) {
146 .toolbar .toolbar-bar .toolbar-tab,
147 .toolbar .toolbar-tray-horizontal li {
148 float: left; /* LTR */
150 [dir="rtl"] .toolbar .toolbar-bar .toolbar-tab,
151 [dir="rtl"] .toolbar .toolbar-tray-horizontal li {
155 /* Present the admin toolbar tabs horizontally when the configured narrow
156 * breakpoint is active. */
157 .toolbar-oriented .toolbar-bar .toolbar-tab,
158 .toolbar-oriented .toolbar-tray-horizontal li {
159 float: left; /* LTR */
161 [dir="rtl"] .toolbar-oriented .toolbar-bar .toolbar-tab,
162 [dir="rtl"] .toolbar-oriented .toolbar-tray-horizontal li {
169 .toolbar .toolbar-tray {
173 .toolbar-oriented .toolbar-tray-vertical {
174 left: -100%; /* LTR */
179 [dir="rtl"] .toolbar-oriented .toolbar-tray-vertical {
183 .toolbar .toolbar-tray-vertical > .toolbar-lining {
186 .toolbar .toolbar-tray-vertical > .toolbar-lining:before {
189 .toolbar-oriented .toolbar-tray-vertical > .toolbar-lining:before {
200 [dir="rtl"] .toolbar .toolbar-tray-vertical > .toolbar-lining:before {
204 /* Layer the links just above the toolbar-tray. */
205 .toolbar .toolbar-bar .toolbar-tab > .toolbar-icon {
209 /* Hide secondary menus when the tray is horizontal. */
210 .toolbar-oriented .toolbar-tray-horizontal .menu-item ul {
213 /* When the configured standard breakpoint is active and the tray is in a
214 * vertical position, the tray does not scroll with the page. The contents of
215 * the tray scroll within the confines of the viewport.
217 .toolbar .toolbar-tray-vertical.is-active,
218 body.toolbar-fixed .toolbar .toolbar-tray-vertical {
224 .toolbar .toolbar-tray.is-active {
227 /* Bring the tray into the viewport. By default it is just off-screen. */
228 .toolbar-oriented .toolbar-tray-vertical.is-active {
231 [dir="rtl"] .toolbar-oriented .toolbar-tray-vertical.is-active {
235 /* When the configured standard breakpoint is active, the tray appears to push
236 * the page content away from the edge of the viewport. */
237 body.toolbar-tray-open.toolbar-vertical.toolbar-fixed {
238 margin-left: 240px; /* LTR */
239 margin-left: 15rem; /* LTR */
242 body.toolbar-tray-open.toolbar-vertical.toolbar-fixed {
246 [dir="rtl"] body.toolbar-tray-open.toolbar-vertical.toolbar-fixed {
253 [dir="rtl"] body.toolbar-tray-open.toolbar-vertical.toolbar-fixed {
258 * ToolBar tray orientation toggle.
260 /* Hide the orientation toggle when the configured narrow breakpoint is not
262 .toolbar .toolbar-tray .toolbar-toggle-orientation {
265 /* Show the orientation toggle when the configured narrow breakpoint is
267 .toolbar-oriented .toolbar-tray .toolbar-toggle-orientation {
270 .toolbar-oriented .toolbar-tray-horizontal .toolbar-toggle-orientation {
276 [dir="rtl"] .toolbar-oriented .toolbar-tray-horizontal .toolbar-toggle-orientation {
280 .toolbar-oriented .toolbar-tray-vertical .toolbar-toggle-orientation {
281 float: right; /* LTR */
284 [dir="rtl"] .toolbar-oriented .toolbar-tray-vertical .toolbar-toggle-orientation {
289 * Toolbar home button toggle.
291 .toolbar .toolbar-bar .home-toolbar-tab {
294 .path-admin .toolbar-bar .home-toolbar-tab {