system.module.css

Generic theme-independent base styles.

File

drupal/core/modules/system/css/system.module.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. .touch .draggable td {
  100. padding: 0 10px;
  101. }
  102. .touch .draggable .menu-item__link {
  103. display: inline-block;
  104. padding: 10px 0;
  105. }
  106. .touch a.tabledrag-handle {
  107. height: 44px;
  108. width: 40px;
  109. }
  110. .touch a.tabledrag-handle .handle {
  111. background-position: 40% 19px;
  112. height: 21px;
  113. }
  114. .touch .draggable.drag a.tabledrag-handle .handle {
  115. background-position: 50% -32px;
  116. }
  117. .no-touch a.tabledrag-handle:hover .handle,
  118. .no-touch a.tabledrag-handle:focus .handle {
  119. background-position: 6px -11px;
  120. }
  121. div.indentation {
  122. float: left; /* LTR */
  123. height: 1.7em;
  124. margin: -0.4em 0.2em -0.4em -0.4em; /* LTR */
  125. padding: 0.42em 0 0.42em 0.6em; /* LTR */
  126. width: 20px;
  127. }
  128. div.tree-child {
  129. background: url(../../../misc/tree.png) no-repeat 11px center; /* LTR */
  130. }
  131. div.tree-child-last {
  132. background: url(../../../misc/tree-bottom.png) no-repeat 11px center; /* LTR */
  133. }
  134. div.tree-child-horizontal {
  135. background: url(../../../misc/tree.png) no-repeat -11px center;
  136. }
  137. .tabledrag-toggle-weight-wrapper {
  138. text-align: right; /* LTR */
  139. }
  140. /**
  141. * TableHeader behavior.
  142. *
  143. * @see tableheader.js
  144. */
  145. table.sticky-header {
  146. background-color: #fff;
  147. margin-top: 0;
  148. z-index: 500;
  149. }
  150. /**
  151. * Progress behavior.
  152. *
  153. * @see progress.js
  154. */
  155. /* Bar */
  156. .progress .bar {
  157. background-color: #fff;
  158. border: 1px solid;
  159. }
  160. .progress .filled {
  161. background-color: #000;
  162. height: 1.5em;
  163. width: 5px;
  164. }
  165. .progress .percentage {
  166. float: right; /* LTR */
  167. }
  168. /* Throbber */
  169. .ajax-progress {
  170. display: inline-block;
  171. padding: 1px 5px 2px 5px;
  172. }
  173. .ajax-progress-throbber .throbber {
  174. background: transparent url(../../../misc/throbber.gif) no-repeat 0px -18px;
  175. display: inline;
  176. padding: 1px 5px 2px;
  177. }
  178. .ajax-progress-throbber .message {
  179. display: inline;
  180. padding: 1px 5px 2px;
  181. }
  182. tr .ajax-progress-throbber .throbber {
  183. margin: 0 2px;
  184. }
  185. .ajax-progress-bar {
  186. width: 16em;
  187. }
  188. /**
  189. * Keep form elements from overflowing their containers.
  190. */
  191. input {
  192. max-width: 100%;
  193. -moz-box-sizing: border-box;
  194. -webkit-box-sizing: border-box;
  195. box-sizing: border-box;
  196. }
  197. /**
  198. * Inline items.
  199. */
  200. .container-inline div,
  201. .container-inline label {
  202. display: inline;
  203. }
  204. /* Details contents always need to be rendered as block. */
  205. .container-inline .details-wrapper {
  206. display: block;
  207. }
  208. /**
  209. * Prevent text wrapping.
  210. */
  211. .nowrap {
  212. white-space: nowrap;
  213. }
  214. /**
  215. * For anything you want to hide on page load when JS is enabled, so
  216. * that you can use the JS to control visibility and avoid flicker.
  217. */
  218. .js .js-hide {
  219. display: none;
  220. }
  221. /**
  222. * For anything you want to show on page load only when JS is enabled.
  223. */
  224. .js-show {
  225. display: none;
  226. }
  227. .js .js-show {
  228. display: block;
  229. }
  230. /**
  231. * Hide elements from all users.
  232. *
  233. * Used for elements which should not be immediately displayed to any user. An
  234. * example would be collapsible details that will be expanded with a click
  235. * from a user. The effect of this class can be toggled with the jQuery show()
  236. * and hide() functions.
  237. */
  238. .element-hidden {
  239. display: none;
  240. }
  241. /**
  242. * Hide elements visually, but keep them available for screen-readers.
  243. *
  244. * Used for information required for screen-reader users to understand and use
  245. * the site where visual display is undesirable. Information provided in this
  246. * manner should be kept concise, to avoid unnecessary burden on the user.
  247. * "!important" is used to prevent unintentional overrides.
  248. */
  249. .element-invisible {
  250. position: absolute !important;
  251. clip: rect(1px, 1px, 1px, 1px);
  252. overflow: hidden;
  253. height: 1px;
  254. width: 1px;
  255. }
  256. /**
  257. * The .element-focusable class extends the .element-invisible class to allow
  258. * the element to be focusable when navigated to via the keyboard.
  259. */
  260. .element-invisible.element-focusable:active,
  261. .element-invisible.element-focusable:focus {
  262. position: static !important;
  263. clip: auto;
  264. overflow: visible;
  265. height: auto;
  266. width: auto;
  267. }
  268. /**
  269. * Float clearing.
  270. *
  271. * Based on the micro clearfix hack by Nicolas Gallagher, with the :before
  272. * pseudo selector removed to allow normal top margin collapse.
  273. *
  274. * @see http://nicolasgallagher.com/micro-clearfix-hack
  275. */
  276. .clearfix:after {
  277. content: "";
  278. display: table;
  279. clear: both;
  280. }
  281. /**
  282. * Block-level HTML5 display definition.
  283. *
  284. * Provides display values for browsers that don't recognize the new elements
  285. * and therefore display them inline by default.
  286. */
  287. article,
  288. aside,
  289. details,
  290. figcaption,
  291. figure,
  292. footer,
  293. header,
  294. hgroup,
  295. main,
  296. menu,
  297. nav,
  298. section,
  299. summary {
  300. display: block;
  301. }