test Drupal site working on Koality Theme Builder
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

419 lines
8.2 KiB

  1. //=======================================================
  2. // Base
  3. //
  4. // normalize.css v5.0.0 | MIT License | github.com/necolas/normalize.css
  5. //
  6. // NOTE: While this uses normalize.css as a starting
  7. // point it has and will be updated as needed.
  8. // This should be ONLY plain html element styling.
  9. // There should be NO classes, IDs, etc.
  10. //=======================================================
  11. // Sass Lint needs to ignore some Normalize specific things:
  12. // sass-lint:disable no-duplicate-properties, no-vendor-prefixes
  13. /* Document
  14. ========================================================================== */
  15. /**
  16. * 1. Change the default font family in all browsers (opinionated).
  17. * 2. Correct the line height in all browsers.
  18. * 3. Prevent adjustments of font size after orientation changes in
  19. * IE on Windows Phone and in iOS.
  20. */
  21. html {
  22. box-sizing: border-box;
  23. font-family: sans-serif; /* 1 */
  24. line-height: 1.15; /* 2 */
  25. -ms-text-size-adjust: 100%; /* 3 */
  26. -webkit-text-size-adjust: 100%; /* 3 */
  27. }
  28. // https://css-tricks.com/inheriting-box-sizing-probably-slightly-better-best-practice/
  29. * {
  30. box-sizing: inherit;
  31. &::before,
  32. &::after {
  33. box-sizing: inherit;
  34. }
  35. }
  36. /* Sections
  37. ========================================================================== */
  38. /**
  39. * Remove the margin in all browsers (opinionated).
  40. */
  41. body {
  42. margin: 0;
  43. font-size: 100%;
  44. line-height: 1.15;
  45. letter-spacing: 0.02em;
  46. color: $color-tundora;
  47. }
  48. /**
  49. * Add the correct display in IE 9-.
  50. */
  51. article,
  52. aside,
  53. footer,
  54. header,
  55. nav,
  56. section {
  57. display: block;
  58. }
  59. /* Grouping content
  60. ========================================================================== */
  61. /**
  62. * Add the correct display in IE 9-.
  63. * 1. Add the correct display in IE.
  64. */
  65. figcaption,
  66. figure,
  67. main { /* 1 */
  68. display: block;
  69. }
  70. /**
  71. * 1. Add the correct box sizing in Firefox.
  72. * 2. Show the overflow in Edge and IE.
  73. */
  74. hr {
  75. box-sizing: content-box; /* 1 */
  76. height: 0; /* 1 */
  77. overflow: visible; /* 2 */
  78. }
  79. /**
  80. * 1. Correct the inheritance and scaling of font size in all browsers.
  81. * 2. Correct the odd `em` font sizing in all browsers.
  82. */
  83. pre {
  84. font-family: monospace, monospace; /* 1 */
  85. font-size: 1rem; /* 2 */
  86. }
  87. /* Text-level semantics
  88. ========================================================================== */
  89. /**
  90. * 1. Remove the gray background on active links in IE 10.
  91. * 2. Remove gaps in links underline in iOS 8+ and Safari 8+.
  92. */
  93. a {
  94. background-color: transparent; /* 1 */
  95. -webkit-text-decoration-skip: objects; /* 2 */
  96. /**
  97. * Remove the outline on focused links when they are also active or hovered
  98. * in all browsers (opinionated).
  99. */
  100. &:active,
  101. &:hover {
  102. outline-width: 0;
  103. }
  104. }
  105. /**
  106. * 1. Remove the bottom border in Firefox 39-.
  107. * 2. Add the correct text decoration in Chrome, Edge, IE, Opera, and Safari.
  108. */
  109. abbr[title] {
  110. border-bottom: 0; /* 1 */
  111. text-decoration: underline; /* 2 */
  112. text-decoration: underline dotted; /* 2 */
  113. }
  114. /**
  115. * 1. Correct the inheritance and scaling of font size in all browsers.
  116. * 2. Correct the odd `em` font sizing in all browsers.
  117. */
  118. code,
  119. kbd,
  120. samp {
  121. font-family: monospace, monospace; /* 1 */
  122. font-size: 1em; /* 2 */
  123. }
  124. /**
  125. * Add the correct font style in Android 4.3-.
  126. */
  127. dfn {
  128. font-style: italic;
  129. }
  130. /**
  131. * Prevent `sub` and `sup` elements from affecting the line height in
  132. * all browsers.
  133. */
  134. sub,
  135. sup {
  136. font-size: 75%;
  137. line-height: 0;
  138. position: relative;
  139. vertical-align: baseline;
  140. }
  141. sub {
  142. bottom: -0.25em;
  143. }
  144. sup {
  145. top: -0.5em;
  146. }
  147. /* Embedded content
  148. ========================================================================== */
  149. /**
  150. * Add the correct display in IE 9-.
  151. */
  152. audio,
  153. video {
  154. display: inline-block;
  155. }
  156. /**
  157. * Add the correct display in iOS 4-7.
  158. */
  159. audio:not([controls]) {
  160. display: none;
  161. height: 0;
  162. }
  163. /**
  164. * Remove the border on images inside links in IE 10-.
  165. */
  166. img {
  167. border: 0;
  168. height: auto;
  169. max-width: 100%;
  170. }
  171. /**
  172. * Hide the overflow in IE.
  173. */
  174. svg:not(:root) {
  175. overflow: hidden;
  176. }
  177. /* Forms
  178. ========================================================================== */
  179. /**
  180. * 1. Change the font styles in all browsers (opinionated).
  181. * 2. Remove the margin in Firefox and Safari.
  182. */
  183. button,
  184. input,
  185. optgroup,
  186. select,
  187. textarea {
  188. font-family: sans-serif; /* 1 */
  189. margin: 0; /* 2 */
  190. }
  191. /**
  192. * Show the overflow in IE.
  193. * 1. Show the overflow in Edge.
  194. */
  195. button,
  196. input { /* 1 */
  197. overflow: visible;
  198. }
  199. /**
  200. * Remove the inheritance of text transform in Edge, Firefox, and IE.
  201. * 1. Remove the inheritance of text transform in Firefox.
  202. */
  203. button,
  204. select { /* 1 */
  205. text-transform: none;
  206. }
  207. /**
  208. * 1. Prevent a WebKit bug where (2) destroys native `audio` and `video`
  209. * controls in Android 4.
  210. * 2. Correct the inability to style clickable types in iOS and Safari.
  211. */
  212. button,
  213. html [type='button'], /* 1 */
  214. [type='reset'],
  215. [type='submit'] {
  216. -webkit-appearance: button; /* 2 */
  217. }
  218. /**
  219. * Remove the inner border and padding in Firefox.
  220. */
  221. button::-moz-focus-inner,
  222. [type='button']::-moz-focus-inner,
  223. [type='reset']::-moz-focus-inner,
  224. [type='submit']::-moz-focus-inner {
  225. border-style: none;
  226. padding: 0;
  227. }
  228. /**
  229. * Restore the focus styles unset by the previous rule.
  230. */
  231. button:-moz-focusring,
  232. [type='button']:-moz-focusring,
  233. [type='reset']:-moz-focusring,
  234. [type='submit']:-moz-focusring {
  235. outline: 1px dotted ButtonText;
  236. }
  237. /**
  238. * Change the border, margin, and padding in all browsers (opinionated).
  239. */
  240. fieldset {
  241. border: 1px solid #c0c0c0;
  242. margin: 0 2px;
  243. padding: 0.35em 0.625em 0.75em;
  244. }
  245. /**
  246. * 1. Correct the text wrapping in Edge and IE.
  247. * 2. Correct the color inheritance from `fieldset` elements in IE.
  248. * 3. Remove the padding so developers are not caught out when they zero out
  249. * `fieldset` elements in all browsers.
  250. */
  251. legend {
  252. box-sizing: border-box; /* 1 */
  253. color: inherit; /* 2 */
  254. display: table; /* 1 */
  255. max-width: 100%; /* 1 */
  256. padding: 0; /* 3 */
  257. white-space: normal; /* 1 */
  258. }
  259. /**
  260. * 1. Add the correct display in IE 9-.
  261. * 2. Add the correct vertical alignment in Chrome, Firefox, and Opera.
  262. */
  263. progress {
  264. display: inline-block; /* 1 */
  265. vertical-align: baseline; /* 2 */
  266. }
  267. /**
  268. * Remove the default vertical scrollbar in IE.
  269. */
  270. textarea {
  271. overflow: auto;
  272. }
  273. /**
  274. * 1. Add the correct box sizing in IE 10-.
  275. * 2. Remove the padding in IE 10-.
  276. */
  277. [type='checkbox'],
  278. [type='radio'] {
  279. box-sizing: border-box; /* 1 */
  280. padding: 0; /* 2 */
  281. }
  282. /**
  283. * Correct the cursor style of increment and decrement buttons in Chrome.
  284. */
  285. [type='number']::-webkit-inner-spin-button,
  286. [type='number']::-webkit-outer-spin-button {
  287. height: auto;
  288. }
  289. /**
  290. * 1. Correct the odd appearance in Chrome and Safari.
  291. * 2. Correct the outline style in Safari.
  292. */
  293. [type='search'] {
  294. -webkit-appearance: textfield; /* 1 */
  295. outline-offset: -2px; /* 2 */
  296. }
  297. /**
  298. * Remove the inner padding and cancel buttons in Chrome and Safari on macOS.
  299. */
  300. [type='search']::-webkit-search-cancel-button,
  301. [type='search']::-webkit-search-decoration {
  302. -webkit-appearance: none;
  303. }
  304. /**
  305. * 1. Correct the inability to style clickable types in iOS and Safari.
  306. * 2. Change font properties to `inherit` in Safari.
  307. */
  308. ::-webkit-file-upload-button {
  309. -webkit-appearance: button; /* 1 */
  310. font: inherit; /* 2 */
  311. }
  312. /* Interactive
  313. ========================================================================== */
  314. /*
  315. * Add the correct display in IE 9-.
  316. * 1. Add the correct display in Edge, IE, and Firefox.
  317. */
  318. details, /* 1 */
  319. menu {
  320. display: block;
  321. }
  322. /*
  323. * Add the correct display in all browsers.
  324. */
  325. summary {
  326. display: list-item;
  327. }
  328. /* Scripting
  329. ========================================================================== */
  330. /**
  331. * Add the correct display in IE 9-.
  332. */
  333. canvas {
  334. display: inline-block;
  335. }
  336. /**
  337. * Add the correct display in IE.
  338. */
  339. template {
  340. display: none;
  341. }
  342. /* Hidden
  343. ========================================================================== */
  344. /**
  345. * Add the correct display in IE 10-.
  346. */
  347. [hidden] {
  348. display: none;
  349. }
  350. /* Lists
  351. ========================================================================== */
  352. /**
  353. * Unset default list margin and padding because if not
  354. * we'll have to unset it every. single. time.
  355. */
  356. ul,
  357. ol,
  358. dl {
  359. margin: 0;
  360. padding: 0;
  361. }
  362. li {
  363. margin: 0;
  364. padding: 0;
  365. list-style: none;
  366. }