system.theme.css

Basic styling for common markup.

File

drupal/core/modules/system/css/system.theme.css
View source
  1. /**
  2. * @file
  3. * Basic styling for common markup.
  4. */
  5. /**
  6. * HTML elements.
  7. */
  8. fieldset {
  9. border: 1px solid #ccc;
  10. margin: 1em 0;
  11. padding: 0.5em;
  12. }
  13. form {
  14. margin: 0;
  15. padding: 0;
  16. }
  17. button {
  18. font-size: 1em;
  19. }
  20. hr {
  21. border: 1px solid gray;
  22. height: 1px;
  23. }
  24. img {
  25. border: 0;
  26. }
  27. table {
  28. border-collapse: collapse;
  29. width: 100%;
  30. }
  31. th {
  32. padding-right: 1em; /* LTR */
  33. text-align: left; /* LTR */
  34. }
  35. thead > tr {
  36. border-bottom: 1px solid #000;
  37. }
  38. tr {
  39. border-bottom: 1px solid #ccc;
  40. padding: 0.1em 0.6em;
  41. }
  42. caption {
  43. text-align: left; /* LTR */
  44. }
  45. /**
  46. * Publishing status.
  47. */
  48. .unpublished {
  49. background-color: #fff4f4;
  50. }
  51. .preview {
  52. background-color: #ffffea;
  53. }
  54. /**
  55. * Markup generated by theme_tablesort_indicator().
  56. */
  57. th.active img {
  58. display: inline;
  59. }
  60. td.active {
  61. background-color: #ddd;
  62. }
  63. /**
  64. * Markup generated by theme_item_list().
  65. */
  66. .item-list .title {
  67. font-weight: bold;
  68. }
  69. .item-list ul {
  70. margin: 0 0 0.75em 0;
  71. padding: 0;
  72. }
  73. .item-list ul li {
  74. margin: 0 0 0.25em 1.5em; /* LTR */
  75. padding: 0;
  76. }
  77. /**
  78. * Markup generated by Form API.
  79. */
  80. .form-item,
  81. .form-actions {
  82. margin-top: 1em;
  83. margin-bottom: 1em;
  84. }
  85. tr.odd .form-item,
  86. tr.even .form-item {
  87. margin-top: 0;
  88. margin-bottom: 0;
  89. white-space: nowrap;
  90. }
  91. .form-item .description {
  92. font-size: 0.85em;
  93. }
  94. label {
  95. display: block;
  96. font-weight: bold;
  97. }
  98. label.option {
  99. display: inline;
  100. font-weight: normal;
  101. }
  102. h4.label {
  103. font-size: inherit;
  104. font-weight: bold;
  105. margin: 0;
  106. padding: 0;
  107. }
  108. .form-checkboxes .form-item,
  109. .form-radios .form-item {
  110. margin-top: 0.4em;
  111. margin-bottom: 0.4em;
  112. }
  113. .form-type-radio .description,
  114. .form-type-checkbox .description {
  115. margin-left: 2.4em;
  116. }
  117. input.form-checkbox,
  118. input.form-radio {
  119. vertical-align: middle;
  120. }
  121. .marker,
  122. .form-required {
  123. color: #e00;
  124. }
  125. abbr.form-required, abbr.tabledrag-changed, abbr.ajax-changed {
  126. border-bottom: none;
  127. }
  128. .form-item input.error,
  129. .form-item textarea.error,
  130. .form-item select.error {
  131. border: 2px solid red;
  132. }
  133. .button,
  134. .image-button {
  135. margin-left: 1em;
  136. margin-right: 1em;
  137. }
  138. .button:first-child,
  139. .image-button:first-child {
  140. margin-left: 0;
  141. margin-right: 0;
  142. }
  143. /**
  144. * Inline items.
  145. */
  146. .container-inline label:after {
  147. content: ':';
  148. }
  149. .container-inline .form-actions,
  150. .container-inline.form-actions {
  151. margin-top: 0;
  152. margin-bottom: 0;
  153. }
  154. /**
  155. * Markup generated by theme_more_link().
  156. */
  157. .more-link {
  158. text-align: right; /* LTR */
  159. }
  160. /**
  161. * Markup generated by theme_more_help_link().
  162. */
  163. .more-help-link {
  164. text-align: right; /* LTR */
  165. }
  166. .more-help-link a {
  167. background: url(../../../misc/help.png) 0 50% no-repeat; /* LTR */
  168. padding: 1px 0 1px 20px; /* LTR */
  169. }
  170. /**
  171. * Markup generated by theme_pager().
  172. */
  173. .item-list .pager {
  174. clear: both;
  175. text-align: center;
  176. }
  177. .item-list .pager li {
  178. background-image: none;
  179. display: inline;
  180. list-style-type: none;
  181. padding: 0.5em;
  182. }
  183. .pager-current {
  184. font-weight: bold;
  185. }
  186. /**
  187. * Show buttons as links.
  188. */
  189. button.link {
  190. background: transparent;
  191. border: 0;
  192. cursor: pointer;
  193. margin: 0;
  194. padding: 0;
  195. }
  196. label button.link {
  197. font-weight: bold;
  198. }
  199. /*
  200. * Autocomplete.
  201. *
  202. * @see autocomplete.js
  203. */
  204. /* Suggestion list */
  205. #autocomplete li.selected {
  206. background: #0072b9;
  207. color: #fff;
  208. }
  209. /**
  210. * Collapsible details.
  211. *
  212. * @see collapse.js
  213. * @thanks http://nicolasgallagher.com/css-background-image-hacks/
  214. */
  215. details {
  216. border: 1px solid #ccc;
  217. margin-top: 1em;
  218. margin-bottom: 1em;
  219. }
  220. details > .details-wrapper {
  221. padding: 0.5em 1.5em;
  222. }
  223. /* @todo Regression: The summary of uncollapsible details are no longer
  224. vertically aligned with the .details-wrapper in browsers without native
  225. details support. */
  226. summary {
  227. cursor: pointer;
  228. padding: 0.2em 0.5em;
  229. }
  230. .collapse-processed > summary {
  231. padding-left: 0.5em;
  232. padding-right: 0.5em;
  233. }
  234. .collapse-processed > summary:before {
  235. background: url(../../../misc/menu-expanded.png) 0px 100% no-repeat; /* LTR */
  236. content: "";
  237. float: left;
  238. height: 1em;
  239. width: 1em;
  240. }
  241. .collapse-processed:not([open]) > summary:before {
  242. background-position: 25% 35%; /* LTR */
  243. -moz-transform: rotate(-90deg);
  244. -ms-transform: rotate(-90deg);
  245. -o-transform: rotate(-90deg);
  246. -webkit-transform: rotate(-90deg);
  247. transform: rotate(-90deg);
  248. }
  249. /**
  250. * TableDrag behavior.
  251. *
  252. * @see tabledrag.js
  253. */
  254. tr.drag {
  255. background-color: #fffff0;
  256. }
  257. tr.drag-previous {
  258. background-color: #ffd;
  259. }
  260. body div.tabledrag-changed-warning {
  261. margin-bottom: 0.5em;
  262. }
  263. /**
  264. * TableSelect behavior.
  265. *
  266. * @see tableselect.js
  267. */
  268. tr.selected td {
  269. background: #ffc;
  270. }
  271. td.checkbox,
  272. th.checkbox {
  273. text-align: center;
  274. }
  275. /**
  276. * Progress bar.
  277. *
  278. * @see progress.js
  279. */
  280. .progress {
  281. font-weight: bold;
  282. }
  283. .progress .bar {
  284. background: #ccc;
  285. border-color: #666;
  286. margin: 0 0.2em;
  287. border-radius: 3px;
  288. }
  289. .progress .filled {
  290. background: #0072b9 url(../../../misc/progress.gif);
  291. }
  292. /**
  293. * Markup generated by theme_menu_tree().
  294. */
  295. ul.menu {
  296. list-style: none outside;
  297. margin-left: 1em; /* LTR */
  298. padding: 0;
  299. text-align: left; /* LTR */
  300. }
  301. .menu .expanded {
  302. list-style-image: url(../../../misc/menu-expanded.png);
  303. list-style-type: circle;
  304. }
  305. .menu .collapsed {
  306. list-style-image: url(../../../misc/menu-collapsed.png); /* LTR */
  307. list-style-type: disc;
  308. }
  309. ul.menu li {
  310. padding-top: 0.2em;
  311. margin: 0;
  312. }
  313. ul.menu a.active {
  314. color: #000;
  315. }
  316. /**
  317. * Markup generated by theme_links().
  318. */
  319. ul.inline,
  320. ul.links.inline {
  321. display: inline;
  322. padding-left: 0;
  323. }
  324. ul.inline li {
  325. display: inline;
  326. list-style-type: none;
  327. padding: 0 0.5em;
  328. }
  329. /**
  330. * Markup generated by theme_breadcrumb().
  331. */
  332. .breadcrumb {
  333. padding-bottom: 0.5em;
  334. }
  335. .breadcrumb ol {
  336. margin: 0;
  337. padding: 0;
  338. }
  339. .breadcrumb li {
  340. display: inline;
  341. list-style-type: none;
  342. margin: 0;
  343. padding: 0;
  344. }
  345. /* IE8 does not support :not() and :last-child. */
  346. .breadcrumb li:before {
  347. content: ' » ';
  348. }
  349. .breadcrumb li:first-child:before {
  350. content: none;
  351. }
  352. /**
  353. * Markup generated by theme_menu_local_tasks().
  354. */
  355. div.tabs {
  356. margin: 1em 0;
  357. }
  358. ul.tabs {
  359. list-style: none;
  360. margin: 0 0 0.5em;
  361. padding: 0;
  362. }
  363. .tabs > li {
  364. display: inline-block;
  365. margin-right: 0.3em; /* LTR */
  366. }
  367. .tabs a {
  368. display: block;
  369. padding: 0.2em 1em;
  370. text-decoration: none;
  371. }
  372. .tabs a.active {
  373. background-color: #eee;
  374. }
  375. .tabs a:focus,
  376. .tabs a:hover {
  377. background-color: #f5f5f5;
  378. }
  379. /**
  380. * Styles for link buttons and action links.
  381. */
  382. .action-links {
  383. list-style: none;
  384. padding: 0;
  385. margin: 1em 0;
  386. }
  387. .action-links li {
  388. display: inline-block;
  389. margin: 0 0.3em;
  390. }
  391. .action-links li:first-child {
  392. margin-left: 0; /* LTR */
  393. }
  394. .button-action {
  395. display: inline-block;
  396. line-height: 160%;
  397. padding: 0.2em 0.5em 0.3em;
  398. text-decoration: none;
  399. }
  400. .button-action:before {
  401. content: '+';
  402. font-weight: 900;
  403. margin-left: -0.1em; /* LTR */
  404. padding-right: 0.2em; /* LTR */
  405. }
  406. /**
  407. * Styles for system messages.
  408. */
  409. .messages {
  410. background: no-repeat 10px 18px; /* LTR */
  411. border: 1px solid;
  412. border-width: 1px 1px 1px 8px; /* LTR */
  413. border-radius: 2px;
  414. padding: 15px 20px 15px 35px; /* LTR */
  415. word-wrap: break-word;
  416. overflow-wrap: break-word;
  417. }
  418. .messages + .messages {
  419. margin-top: 1.538em;
  420. }
  421. .messages__list {
  422. list-style: none;
  423. padding: 0;
  424. margin: 0;
  425. }
  426. .messages__item + .messages__item {
  427. margin-top: 0.769em;
  428. }
  429. /* @TODO Separate tables and messages styling */
  430. .messages--status {
  431. border-color: #c9e1bd #c9e1bd #c9e1bd #77b259; /* LTR */
  432. background-image: url(../../../misc/message-16-ok.png);
  433. background-position: 12px 19px; /* LTR */
  434. }
  435. .messages--status,
  436. .ok {
  437. color: #325e1c;
  438. }
  439. .messages--status,
  440. table tr.ok {
  441. background-color: #f3faef;
  442. }
  443. .messages--warning {
  444. background-image: url(../../../misc/message-16-warning.png);
  445. border-color: #f4daa6 #f4daa6 #f4daa6 #e09600; /* LTR */
  446. }
  447. .messages--warning,
  448. .warning {
  449. color: #734c00;
  450. }
  451. .messages--warning,
  452. table tr.warning {
  453. background-color: #fdf8ed;
  454. }
  455. .messages--error {
  456. background-image: url(../../../misc/message-16-error.png);
  457. border-color: #f9c9bf #f9c9bf #f9c9bf #e62600; /* LTR */
  458. }
  459. .messages--error,
  460. .error {
  461. color: #a51b00;
  462. }
  463. .messages--error,
  464. table tr.error {
  465. background-color: #fcf4f2;
  466. }
  467. .messages--error p.error {
  468. color: #a51b00;
  469. }