elements.css 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293
  1. /**
  2. * Generic elements.
  3. */
  4. body {
  5. color: #333;
  6. background: #fff;
  7. font: normal 14px/1.8 'Ubuntu', sans-serif;
  8. }
  9. * {
  10. box-sizing: border-box;
  11. }
  12. a,
  13. .link {
  14. color: #0678be;
  15. text-decoration: none;
  16. font-weight: 400;
  17. }
  18. a:hover,
  19. a:focus {
  20. text-decoration: underline;
  21. outline: transparent;
  22. }
  23. hr {
  24. margin: 0;
  25. padding: 0;
  26. border: none;
  27. height: 1px;
  28. background: #f5f5f5;
  29. }
  30. summary {
  31. font-weight: 700;
  32. text-transform: uppercase;
  33. color: #0071b8;
  34. }
  35. .simpletest-results-form summary {
  36. text-transform: none;
  37. }
  38. legend {
  39. margin-bottom: 10px;
  40. color: #0678be;
  41. font-weight: 700;
  42. text-transform: uppercase;
  43. line-height: 1.3;
  44. }
  45. fieldset fieldset legend {
  46. text-transform: none;
  47. color: #333;
  48. }
  49. /**
  50. * Reusable heading classes are included to help modules change the styling of
  51. * headings on a page without affecting accessibility.
  52. */
  53. h1,
  54. .heading-a {
  55. font-weight: 300;
  56. margin: 0;
  57. padding: 30px 0;
  58. font-size: 26px;
  59. line-height: 30px;
  60. color: #333;
  61. }
  62. h2,
  63. .heading-b {
  64. font-weight: 300;
  65. margin: 10px 0;
  66. font-size: 26px;
  67. line-height: 1.2;
  68. }
  69. h3,
  70. .heading-c {
  71. font-weight: 700;
  72. margin: 10px 0;
  73. font-size: 18px;
  74. }
  75. h4,
  76. .heading-d {
  77. font-weight: 700;
  78. margin: 10px 0;
  79. font-size: 16px;
  80. }
  81. h5,
  82. .heading-e {
  83. font-weight: 700;
  84. margin: 10px 0;
  85. font-size: 14px;
  86. }
  87. h6,
  88. .heading-f {
  89. font-weight: 700;
  90. margin: 10px 0;
  91. font-size: 14px;
  92. }
  93. p {
  94. margin: 10px 0;
  95. }
  96. strong {
  97. font-weight: 700;
  98. }
  99. dl {
  100. margin: 0 0 20px;
  101. }
  102. dl dd,
  103. dl dl {
  104. margin-left: 20px; /* LTR */
  105. margin-bottom: 10px;
  106. }
  107. [dir="rtl"] dl dd,
  108. [dir="rtl"] dl dl {
  109. margin-right: 20px;
  110. }
  111. blockquote {
  112. margin: 1em 40px;
  113. }
  114. address {
  115. font-style: italic;
  116. }
  117. u,
  118. ins {
  119. text-decoration: underline;
  120. }
  121. s,
  122. strike,
  123. del {
  124. text-decoration: line-through;
  125. }
  126. big {
  127. font-size: larger;
  128. }
  129. small {
  130. font-size: 12px;
  131. }
  132. sub {
  133. vertical-align: sub;
  134. font-size: smaller;
  135. line-height: normal;
  136. }
  137. sup {
  138. vertical-align: super;
  139. font-size: smaller;
  140. line-height: normal;
  141. }
  142. nobr {
  143. white-space: nowrap;
  144. }
  145. abbr,
  146. acronym {
  147. border-bottom: dotted 1px;
  148. }
  149. ul {
  150. list-style-type: disc;
  151. list-style-image: none;
  152. margin: 0.25em 0 0.25em 1.5em; /* LTR */
  153. }
  154. [dir="rtl"] ul {
  155. margin-left: 0;
  156. margin-right: 1.5em;
  157. }
  158. /* This is required to win over specificity of [dir="rtl"] ul */
  159. [dir="rtl"] .messages__list {
  160. margin-right: 0;
  161. }
  162. ol {
  163. list-style-type: decimal;
  164. margin: 0.25em 0 0.25em 2em; /* LTR */
  165. padding: 0;
  166. }
  167. [dir="rtl"] ol {
  168. margin-left: 0;
  169. margin-right: 2em;
  170. }
  171. quote,
  172. code {
  173. margin: .5em 0;
  174. }
  175. pre {
  176. margin: 0.5em 0;
  177. white-space: pre-wrap;
  178. }
  179. details {
  180. margin: 0 0 20px 0;
  181. background: none;
  182. }
  183. details details,
  184. details details details {
  185. padding: 0 20px;
  186. }
  187. details legend {
  188. text-transform: none;
  189. color: #333;
  190. }
  191. details summary {
  192. padding: 10px 0;
  193. display: list-item;
  194. }
  195. details summary:focus,
  196. details summary:hover {
  197. cursor: pointer;
  198. }
  199. details summary:focus {
  200. outline: transparent;
  201. }
  202. .details-wrapper {
  203. padding: 5px 0;
  204. }
  205. details .details-descripion {
  206. margin-bottom: 0;
  207. }
  208. details:last-of-type {
  209. margin-bottom: 0;
  210. }
  211. input[type="search"] {
  212. box-sizing: border-box;
  213. }
  214. /*
  215. * Custom style for checkbox and radio button
  216. */
  217. input[type=checkbox],
  218. input[type=radio] {
  219. appearance: none;
  220. -webkit-appearance: none;
  221. -moz-appearance: none;
  222. display: inline-block;
  223. position: relative;
  224. top: 3px;
  225. margin: 0;
  226. padding: 0;
  227. background: #fff;
  228. border: 1px solid #b5b5b5;
  229. width: 16px;
  230. height: 16px;
  231. -webkit-transition: all 0.5s ease;
  232. -o-transition: all 0.5s ease;
  233. transition: background 0.5s ease;
  234. border-radius: 0;
  235. }
  236. input[type=radio] {
  237. border-radius: 50%;
  238. }
  239. input[type=checkbox]:hover,
  240. input[type=checkbox]:focus,
  241. input[type=radio]:hover,
  242. input[type=radio]:focus {
  243. border-color: #0678be;
  244. cursor: pointer;
  245. outline: transparent;
  246. }
  247. input[type=checkbox]:checked,
  248. input[type=checkbox]:disabled:checked,
  249. input[type=radio]:checked,
  250. input[type=radio]:disabled:checked {
  251. background: #0678be;
  252. box-shadow: inset 0 0 0 3px #fff;
  253. }
  254. input[type=checkbox]:disabled,
  255. input[type=radio]:disabled {
  256. opacity: 0.5;
  257. background: #e2e2e2;
  258. }
  259. input[type=checkbox]:disabled:hover {
  260. border-color: #b5b5b5;
  261. cursor: default;
  262. }
  263. input[type=checkbox]:disabled:hover,
  264. input[type=radio]:disabled:hover {
  265. border-color: #b5b5b5;
  266. cursor: default;
  267. /*cursor: not-allowed;*/
  268. }