toolbar.module.css 7.0 KB

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