toolbar.base.css

toolbar.base.css

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

File

drupal/core/modules/toolbar/css/toolbar.base.css
View source
  1. /**
  2. * @file toolbar.base.css
  3. *
  4. *
  5. * Aggressive resets so we can achieve a consistent look in hostile CSS
  6. * environments.
  7. */
  8. html.js #toolbar-administration,
  9. html .toolbar * {
  10. -moz-box-sizing: border-box;
  11. -o-box-sizing: border-box;
  12. -webkit-box-sizing: border-box;
  13. box-sizing: border-box;
  14. margin: 0;
  15. padding: 0;
  16. vertical-align: baseline;
  17. }
  18. html.js #toolbar-administration {
  19. font-size: small;
  20. line-height: 1;
  21. }
  22. html.js .toolbar {
  23. left: 0; /* LTR */
  24. position: absolute;
  25. top: 0;
  26. width: 100%;
  27. }
  28. /**
  29. * Very specific overrides for Drupal system CSS.
  30. */
  31. .toolbar li,
  32. .toolbar .menu li,
  33. .toolbar .item-list,
  34. .toolbar .item-list li,
  35. .toolbar .menu li.expanded {
  36. list-style-type: none;
  37. list-style-image: none;
  38. }
  39. .toolbar .menu li {
  40. padding-top: 0;
  41. }
  42. .js .toolbar .bar li,
  43. .js .toolbar .menu li {
  44. display: block;
  45. }
  46. .js .toolbar .bar li,
  47. .js .toolbar .horizontal li {
  48. float: left; /* LTR */
  49. }
  50. .js .toolbar a {
  51. display: block;
  52. line-height: 1;
  53. }
  54. /**
  55. * Administration menu.
  56. */
  57. .js .toolbar .bar {
  58. left: 0; /* LTR */
  59. position: absolute;
  60. top: 0;
  61. z-index: 1250;
  62. width: 100%;
  63. }
  64. @media only screen {
  65. .js .toolbar .bar li,
  66. .js .toolbar .tray li {
  67. float: none; /* LTR */
  68. }
  69. }
  70. @media only screen and (min-width: 16.5em) {
  71. .js .toolbar .bar li,
  72. .js .toolbar .horizontal li {
  73. float: left; /* LTR */
  74. }
  75. }
  76. @media only screen and (min-width: 28.125em) {
  77. .js .toolbar .bar {
  78. position: fixed;
  79. }
  80. }
  81. /**
  82. * Toolbar tray.
  83. */
  84. .js .toolbar .tray {
  85. display: none;
  86. position: absolute;
  87. }
  88. .toolbar .tray {
  89. z-index: 250;
  90. }
  91. .toolbar .horizontal {
  92. width: 100%;
  93. }
  94. .toolbar .vertical,
  95. .toolbar .vertical > .lining:before {
  96. bottom: 0;
  97. width: 240px;
  98. width: 15rem;
  99. }
  100. .toolbar .vertical {
  101. left: -100%; /* LTR */
  102. position: absolute;
  103. }
  104. .toolbar .horizontal {
  105. left: 0; /* LTR */
  106. height: 0;
  107. /* Set one higher than the contextual links gear. */
  108. z-index: 1000;
  109. }
  110. .toolar .tray .lining {
  111. position: relative;
  112. }
  113. .toolbar .vertical > .lining,
  114. .toolbar .vertical > .lining:before {
  115. left: -100%; /* LTR */
  116. min-height: 100%;
  117. position: absolute;
  118. width: 100%;
  119. }
  120. .toolbar .vertical > .lining:before {
  121. bottom: 0;
  122. -moz-box-sizing: content-box;
  123. -o-box-sizing: content-box;
  124. -webkit-box-sizing: content-box;
  125. box-sizing: content-box;
  126. content: '';
  127. display: none;
  128. height: 100%;
  129. /* Support for devices that do not support position fixed. */
  130. position: absolute;
  131. position: fixed;
  132. top: 0;
  133. z-index: -1;
  134. }
  135. .toolbar .tray.active {
  136. display: block;
  137. }
  138. .toolbar .horizontal.active {
  139. height: auto;
  140. }
  141. .toolbar .vertical.active,
  142. .toolbar .vertical.active > .lining {
  143. left: 0; /* LTR */
  144. }
  145. .toolbar .horizontal .menu li ul {
  146. display: none;
  147. }
  148. @media only screen {
  149. .toolbar .vertical,
  150. .toolbar .vertical > .lining:before {
  151. bottom: auto;
  152. width: 100%;
  153. }
  154. }
  155. @media only screen and (min-width: 16.5em) {
  156. .toolbar .vertical {
  157. bottom: 0;
  158. }
  159. .toolbar .vertical,
  160. .toolbar .vertical > .lining:before {
  161. width: 240px;
  162. width: 15rem;
  163. }
  164. .toolbar .vertical.active > .lining:before {
  165. display: block;
  166. left: -1px; /* LTR */
  167. }
  168. }
  169. @media only screen and (min-width: 28.125em) {
  170. .toolbar .tray.horizontal {
  171. position: fixed;
  172. }
  173. }
  174. /**
  175. * At larger screen sizes, the tray pushes the page content.
  176. */
  177. @media only screen and (min-width: 38.125em) {
  178. body.toolbar-tray-open.toolbar-vertical {
  179. margin-left: 240px; /* LTR */
  180. margin-left: 15rem; /* LTR */
  181. }
  182. }
  183. /**
  184. * ToolBar tray orientation toggle.
  185. *
  186. * Hide the orientation toggle from browsers that do not interpret
  187. * media queries. They get a standard horizontal toolbar.
  188. */
  189. .toolbar .horizontal .toggle-orientation {
  190. display: none;
  191. }
  192. @media only screen {
  193. .toolbar .tray .toggle-orientation {
  194. display: none;
  195. }
  196. }
  197. @media only screen and (min-width: 16.5em) {
  198. .toolbar .tray .toggle-orientation {
  199. display: block;
  200. }
  201. }
  202. .toolbar .horizontal .toggle-orientation {
  203. bottom: 0;
  204. position: absolute;
  205. right: 0; /* LTR */
  206. top: 0;
  207. }
  208. .toolbar .vertical .toggle-orientation {
  209. float: right; /* LTR */
  210. width: 100%;
  211. }