system.base.css

Generic theme-independent base styles.

File

drupal/core/modules/system/system.base.css
View source
  1. /**
  2. * @file
  3. * Generic theme-independent base styles.
  4. */
  5. /**
  6. * Autocomplete.
  7. *
  8. * @see autocomplete.js
  9. */
  10. /* Suggestion list */
  11. #autocomplete {
  12. border: 1px solid;
  13. overflow: hidden;
  14. position: absolute;
  15. z-index: 100;
  16. }
  17. #autocomplete ul {
  18. list-style: none;
  19. list-style-image: none;
  20. margin: 0;
  21. padding: 0;
  22. }
  23. #autocomplete li {
  24. background: #fff;
  25. color: #000;
  26. cursor: default;
  27. white-space: pre;
  28. }
  29. /* Animated throbber */
  30. .js input.form-autocomplete {
  31. background-image: url(../../misc/throbber.gif);
  32. background-position: 100% 2px; /* LTR */
  33. background-repeat: no-repeat;
  34. }
  35. .js input.throbbing {
  36. background-position: 100% -18px; /* LTR */
  37. }
  38. /**
  39. * Collapsible details.
  40. *
  41. * @see collapse.js
  42. */
  43. .js details:not([open]) .details-wrapper {
  44. display: none;
  45. }
  46. /**
  47. * Resizable textareas.
  48. */
  49. .form-textarea-wrapper textarea {
  50. display: block;
  51. margin: 0;
  52. width: 100%;
  53. -moz-box-sizing: border-box;
  54. -webkit-box-sizing: border-box;
  55. box-sizing: border-box;
  56. }
  57. .resize-none {
  58. resize: none;
  59. }
  60. .resize-vertical {
  61. resize: vertical;
  62. min-height: 2em;
  63. }
  64. .resize-horizontal {
  65. resize: horizontal;
  66. max-width: 100%;
  67. }
  68. .resize-both {
  69. resize: both;
  70. max-width: 100%;
  71. min-height: 2em;
  72. }
  73. /**
  74. * TableDrag behavior.
  75. *
  76. * @see tabledrag.js
  77. */
  78. body.drag {
  79. cursor: move;
  80. }
  81. .draggable a.tabledrag-handle {
  82. cursor: move;
  83. float: left; /* LTR */
  84. height: 1.7em;
  85. margin-left: -1em; /* LTR */
  86. overflow: hidden;
  87. text-decoration: none;
  88. }
  89. a.tabledrag-handle:hover {
  90. text-decoration: none;
  91. }
  92. a.tabledrag-handle .handle {
  93. background: url(../../misc/draggable.png) no-repeat 6px 9px;
  94. height: 13px;
  95. margin: -0.4em 0.5em; /* LTR */
  96. padding: 0.42em 0.5em; /* LTR */
  97. width: 13px;
  98. }
  99. a.tabledrag-handle-hover .handle {
  100. background-position: 6px -11px;
  101. }
  102. div.indentation {
  103. float: left; /* LTR */
  104. height: 1.7em;
  105. margin: -0.4em 0.2em -0.4em -0.4em; /* LTR */
  106. padding: 0.42em 0 0.42em 0.6em; /* LTR */
  107. width: 20px;
  108. }
  109. div.tree-child {
  110. background: url(../../misc/tree.png) no-repeat 11px center; /* LTR */
  111. }
  112. div.tree-child-last {
  113. background: url(../../misc/tree-bottom.png) no-repeat 11px center; /* LTR */
  114. }
  115. div.tree-child-horizontal {
  116. background: url(../../misc/tree.png) no-repeat -11px center;
  117. }
  118. .tabledrag-toggle-weight-wrapper {
  119. text-align: right; /* LTR */
  120. }
  121. /**
  122. * TableHeader behavior.
  123. *
  124. * @see tableheader.js
  125. */
  126. table.sticky-header {
  127. background-color: #fff;
  128. margin-top: 0;
  129. z-index: 500;
  130. }
  131. /**
  132. * Progress behavior.
  133. *
  134. * @see progress.js
  135. */
  136. /* Bar */
  137. .progress .bar {
  138. background-color: #fff;
  139. border: 1px solid;
  140. }
  141. .progress .filled {
  142. background-color: #000;
  143. height: 1.5em;
  144. width: 5px;
  145. }
  146. .progress .percentage {
  147. float: right; /* LTR */
  148. }
  149. /* Throbber */
  150. .ajax-progress {
  151. display: inline-block;
  152. padding: 1px 5px 2px 5px;
  153. }
  154. .ajax-progress-throbber .throbber {
  155. background: transparent url(../../misc/throbber.gif) no-repeat 0px -18px;
  156. display: inline;
  157. padding: 1px 5px 2px;
  158. }
  159. .ajax-progress-throbber .message {
  160. display: inline;
  161. padding: 1px 5px 2px;
  162. }
  163. tr .ajax-progress-throbber .throbber {
  164. margin: 0 2px;
  165. }
  166. .ajax-progress-bar {
  167. width: 16em;
  168. }
  169. /**
  170. * Inline items.
  171. */
  172. .container-inline div,
  173. .container-inline label {
  174. display: inline;
  175. }
  176. /* Details contents always need to be rendered as block. */
  177. .container-inline .details-wrapper {
  178. display: block;
  179. }
  180. /**
  181. * Prevent text wrapping.
  182. */
  183. .nowrap {
  184. white-space: nowrap;
  185. }
  186. /**
  187. * For anything you want to hide on page load when JS is enabled, so
  188. * that you can use the JS to control visibility and avoid flicker.
  189. */
  190. .js .js-hide {
  191. display: none;
  192. }
  193. /**
  194. * Hide elements from all users.
  195. *
  196. * Used for elements which should not be immediately displayed to any user. An
  197. * example would be collapsible details that will be expanded with a click
  198. * from a user. The effect of this class can be toggled with the jQuery show()
  199. * and hide() functions.
  200. */
  201. .element-hidden {
  202. display: none;
  203. }
  204. /**
  205. * Hide elements visually, but keep them available for screen-readers.
  206. *
  207. * Used for information required for screen-reader users to understand and use
  208. * the site where visual display is undesirable. Information provided in this
  209. * manner should be kept concise, to avoid unnecessary burden on the user.
  210. * "!important" is used to prevent unintentional overrides.
  211. */
  212. .element-invisible {
  213. position: absolute !important;
  214. clip: rect(1px, 1px, 1px, 1px);
  215. left: 0;
  216. overflow: hidden;
  217. height: 1px;
  218. }
  219. /**
  220. * The .element-focusable class extends the .element-invisible class to allow
  221. * the element to be focusable when navigated to via the keyboard.
  222. */
  223. .element-invisible.element-focusable:active,
  224. .element-invisible.element-focusable:focus {
  225. position: static !important;
  226. clip: auto;
  227. overflow: visible;
  228. height: auto;
  229. }
  230. /**
  231. * Float clearing.
  232. *
  233. * Based on the micro clearfix hack by Nicolas Gallagher, with the :before
  234. * pseudo selector removed to allow normal top margin collapse.
  235. *
  236. * @see http://nicolasgallagher.com/micro-clearfix-hack
  237. */
  238. .clearfix:after {
  239. content: "";
  240. display: table;
  241. clear: both;
  242. }
  243. /**
  244. * Block-level HTML5 display definition.
  245. *
  246. * Provides display values for browsers that don't recognize the new elements
  247. * and therefore display them inline by default.
  248. */
  249. article,
  250. aside,
  251. details,
  252. figcaption,
  253. figure,
  254. footer,
  255. header,
  256. hgroup,
  257. menu,
  258. nav,
  259. section,
  260. summary {
  261. display: block;
  262. }