@qhealth-design-system/core 1.0.38

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (503) hide show
  1. package/.babelrc +15 -0
  2. package/.browserslistrc +5 -0
  3. package/.editorconfig +19 -0
  4. package/.eslintignore +1 -0
  5. package/.eslintrc +25 -0
  6. package/.gitattributes +2 -0
  7. package/.github/workflows/release_package.yml +103 -0
  8. package/CHANGELOG.md +14 -0
  9. package/README.md +534 -0
  10. package/dist/api/service_finder/schemas.json +1 -0
  11. package/dist/component-abstract.html +884 -0
  12. package/dist/component-accordion.html +1157 -0
  13. package/dist/component-banner.html +928 -0
  14. package/dist/component-banner_advanced.html +1524 -0
  15. package/dist/component-banner_basic.html +1189 -0
  16. package/dist/component-banner_intermediate.html +1288 -0
  17. package/dist/component-body.html +919 -0
  18. package/dist/component-breadcrumbs.html +881 -0
  19. package/dist/component-btn.html +829 -0
  20. package/dist/component-callout.html +964 -0
  21. package/dist/component-card_feature.html +1805 -0
  22. package/dist/component-card_multi_action.html +1965 -0
  23. package/dist/component-card_no_action.html +1632 -0
  24. package/dist/component-card_single_action.html +1772 -0
  25. package/dist/component-code.html +928 -0
  26. package/dist/component-footer.html +1131 -0
  27. package/dist/component-forms.html +1297 -0
  28. package/dist/component-global-elements.html +1243 -0
  29. package/dist/component-global_alert.html +891 -0
  30. package/dist/component-header.html +1155 -0
  31. package/dist/component-in_page_navigation.html +920 -0
  32. package/dist/component-internal_navigation.html +1097 -0
  33. package/dist/component-left_hand_navigation.html +995 -0
  34. package/dist/component-main_navigation.html +999 -0
  35. package/dist/component-mega_main_navigation.html +1145 -0
  36. package/dist/component-multi_column.html +1116 -0
  37. package/dist/component-page_alert.html +911 -0
  38. package/dist/component-pagination.html +971 -0
  39. package/dist/component-tag_list.html +979 -0
  40. package/dist/component-updated_date.html +778 -0
  41. package/dist/component-widgets.html +851 -0
  42. package/dist/components/_global/import.xml +95 -0
  43. package/dist/components/_global/manifest.json +11 -0
  44. package/dist/components/_global/presentation.js +50 -0
  45. package/dist/components/_global/static.html +30 -0
  46. package/dist/components/_template/import.xml +299 -0
  47. package/dist/components/_template/manifest.json +40 -0
  48. package/dist/components/_template/presentation.js +12 -0
  49. package/dist/components/_template/static.html +4 -0
  50. package/dist/components/abstract/import.xml +231 -0
  51. package/dist/components/abstract/manifest.json +29 -0
  52. package/dist/components/abstract/presentation.js +33 -0
  53. package/dist/components/abstract/static.html +9 -0
  54. package/dist/components/accordion/import.xml +1929 -0
  55. package/dist/components/accordion/manifest.json +427 -0
  56. package/dist/components/accordion/presentation.js +112 -0
  57. package/dist/components/accordion/static.html +56 -0
  58. package/dist/components/banner/import.xml +95 -0
  59. package/dist/components/banner/manifest.json +11 -0
  60. package/dist/components/banner/presentation.js +138 -0
  61. package/dist/components/banner/static.html +39 -0
  62. package/dist/components/banner_advanced/import.xml +1969 -0
  63. package/dist/components/banner_advanced/manifest.json +1450 -0
  64. package/dist/components/banner_advanced/presentation.js +564 -0
  65. package/dist/components/banner_advanced/static.html +159 -0
  66. package/dist/components/banner_basic/import.xml +907 -0
  67. package/dist/components/banner_basic/manifest.json +151 -0
  68. package/dist/components/banner_basic/presentation.js +325 -0
  69. package/dist/components/banner_basic/static.html +86 -0
  70. package/dist/components/banner_intermediate/import.xml +1473 -0
  71. package/dist/components/banner_intermediate/manifest.json +248 -0
  72. package/dist/components/banner_intermediate/presentation.js +410 -0
  73. package/dist/components/banner_intermediate/static.html +102 -0
  74. package/dist/components/body/import.xml +343 -0
  75. package/dist/components/body/manifest.json +46 -0
  76. package/dist/components/body/presentation.js +37 -0
  77. package/dist/components/body/static.html +5 -0
  78. package/dist/components/breadcrumbs/import.xml +95 -0
  79. package/dist/components/breadcrumbs/manifest.json +9 -0
  80. package/dist/components/breadcrumbs/presentation.js +99 -0
  81. package/dist/components/breadcrumbs/static.html +21 -0
  82. package/dist/components/callout/import.xml +953 -0
  83. package/dist/components/callout/manifest.json +121 -0
  84. package/dist/components/callout/presentation.js +103 -0
  85. package/dist/components/callout/static.html +10 -0
  86. package/dist/components/card_feature/import.xml +2355 -0
  87. package/dist/components/card_feature/manifest.json +1390 -0
  88. package/dist/components/card_feature/presentation.js +365 -0
  89. package/dist/components/card_feature/static.html +80 -0
  90. package/dist/components/card_multi_action/import.xml +1539 -0
  91. package/dist/components/card_multi_action/manifest.json +1314 -0
  92. package/dist/components/card_multi_action/presentation.js +638 -0
  93. package/dist/components/card_multi_action/static.html +120 -0
  94. package/dist/components/card_no_action/import.xml +1449 -0
  95. package/dist/components/card_no_action/manifest.json +1264 -0
  96. package/dist/components/card_no_action/presentation.js +454 -0
  97. package/dist/components/card_no_action/static.html +94 -0
  98. package/dist/components/card_single_action/import.xml +1539 -0
  99. package/dist/components/card_single_action/manifest.json +1273 -0
  100. package/dist/components/card_single_action/presentation.js +498 -0
  101. package/dist/components/card_single_action/static.html +103 -0
  102. package/dist/components/code/import.xml +569 -0
  103. package/dist/components/code/manifest.json +112 -0
  104. package/dist/components/code/presentation.js +124 -0
  105. package/dist/components/code/static.html +15 -0
  106. package/dist/components/footer/import.xml +95 -0
  107. package/dist/components/footer/manifest.json +9 -0
  108. package/dist/components/footer/presentation.js +409 -0
  109. package/dist/components/footer/static.html +146 -0
  110. package/dist/components/global_alert/import.xml +95 -0
  111. package/dist/components/global_alert/manifest.json +9 -0
  112. package/dist/components/global_alert/presentation.js +81 -0
  113. package/dist/components/global_alert/static.html +26 -0
  114. package/dist/components/header/import.xml +95 -0
  115. package/dist/components/header/manifest.json +11 -0
  116. package/dist/components/header/presentation.js +190 -0
  117. package/dist/components/header/static.html +158 -0
  118. package/dist/components/horizontal_rule/import.xml +547 -0
  119. package/dist/components/horizontal_rule/manifest.json +69 -0
  120. package/dist/components/horizontal_rule/presentation.js +50 -0
  121. package/dist/components/horizontal_rule/static.html +4 -0
  122. package/dist/components/in_page_navigation/import.xml +253 -0
  123. package/dist/components/in_page_navigation/manifest.json +35 -0
  124. package/dist/components/in_page_navigation/presentation.js +14 -0
  125. package/dist/components/in_page_navigation/static.html +13 -0
  126. package/dist/components/internal_navigation/import.xml +95 -0
  127. package/dist/components/internal_navigation/manifest.json +11 -0
  128. package/dist/components/internal_navigation/presentation.js +165 -0
  129. package/dist/components/internal_navigation/static.html +130 -0
  130. package/dist/components/left_hand_navigation/import.xml +299 -0
  131. package/dist/components/left_hand_navigation/manifest.json +40 -0
  132. package/dist/components/left_hand_navigation/presentation.js +178 -0
  133. package/dist/components/left_hand_navigation/static.html +64 -0
  134. package/dist/components/main_navigation/import.xml +95 -0
  135. package/dist/components/main_navigation/manifest.json +11 -0
  136. package/dist/components/main_navigation/presentation.js +150 -0
  137. package/dist/components/main_navigation/static.html +80 -0
  138. package/dist/components/mega_main_navigation/import.xml +95 -0
  139. package/dist/components/mega_main_navigation/manifest.json +9 -0
  140. package/dist/components/mega_main_navigation/presentation.js +380 -0
  141. package/dist/components/mega_main_navigation/static.html +153 -0
  142. package/dist/components/multi_column/import.xml +1631 -0
  143. package/dist/components/multi_column/manifest.json +233 -0
  144. package/dist/components/multi_column/presentation.js +249 -0
  145. package/dist/components/multi_column/static.html +36 -0
  146. package/dist/components/page_alert/import.xml +479 -0
  147. package/dist/components/page_alert/manifest.json +63 -0
  148. package/dist/components/page_alert/presentation.js +67 -0
  149. package/dist/components/page_alert/static.html +8 -0
  150. package/dist/components/pagination/import.xml +95 -0
  151. package/dist/components/pagination/manifest.json +42 -0
  152. package/dist/components/pagination/presentation.js +84 -0
  153. package/dist/components/pagination/static.html +5 -0
  154. package/dist/components/updated_date/import.xml +95 -0
  155. package/dist/components/updated_date/manifest.json +9 -0
  156. package/dist/components/updated_date/presentation.js +34 -0
  157. package/dist/components/updated_date/static.html +6 -0
  158. package/dist/components/widgets/import.xml +95 -0
  159. package/dist/components/widgets/manifest.json +9 -0
  160. package/dist/components/widgets/presentation.js +40 -0
  161. package/dist/components/widgets/static.html +0 -0
  162. package/dist/components.html +790 -0
  163. package/dist/externals/componentPreview.js +101 -0
  164. package/dist/externals/dsComponentLoader.js +410 -0
  165. package/dist/externals/esri-leaflet-vector.js +5 -0
  166. package/dist/externals/esri-leaflet.js +12 -0
  167. package/dist/externals/fb-handlebars.min.js +29 -0
  168. package/dist/externals/fb-typeahead.bundle.min.js +6 -0
  169. package/dist/externals/funnelback.autocompletion-2.6.0.js +678 -0
  170. package/dist/externals/getPagination.js +62 -0
  171. package/dist/externals/handlebars.min-v4.7.6.js +29 -0
  172. package/dist/externals/leaflet.js +6 -0
  173. package/dist/externals/populateDatastoreSim.js +381 -0
  174. package/dist/externals/tinymce_classes.css +62 -0
  175. package/dist/home.html +694 -0
  176. package/dist/index.html +710 -0
  177. package/dist/inner-with-nav.html +1853 -0
  178. package/dist/inner.html +671 -0
  179. package/dist/js/helpers.js +892 -0
  180. package/dist/js/main.js +55 -0
  181. package/dist/js/main.js.map +1 -0
  182. package/dist/js/runtime.js +2 -0
  183. package/dist/js/runtime.js.map +1 -0
  184. package/dist/main.css +918 -0
  185. package/dist/main.css.map +1 -0
  186. package/dist/mysource_files/ajax-loader.gif +0 -0
  187. package/dist/mysource_files/favicons/favicon.ico +0 -0
  188. package/dist/mysource_files/img/100x100.jpg +0 -0
  189. package/dist/mysource_files/img/600x260.jpg +0 -0
  190. package/dist/mysource_files/img/Heart-Pattern-Dark.png +0 -0
  191. package/dist/mysource_files/img/Heart-Pattern.png +0 -0
  192. package/dist/mysource_files/img/banner-background--desktop.png +0 -0
  193. package/dist/mysource_files/img/banner-background--mobile.png +0 -0
  194. package/dist/mysource_files/img/banner-bg.png +0 -0
  195. package/dist/mysource_files/img/banner.png +0 -0
  196. package/dist/mysource_files/img/card--brand.png +0 -0
  197. package/dist/mysource_files/img/card--components.png +0 -0
  198. package/dist/mysource_files/img/card--content.png +0 -0
  199. package/dist/mysource_files/img/header-logo-agov.png +0 -0
  200. package/dist/mysource_files/img/header-logo-qgov--dark.svg +63 -0
  201. package/dist/mysource_files/img/header-logo-qgov--light.svg +56 -0
  202. package/dist/mysource_files/img/header-logo-qgov--pre-dark.svg +56 -0
  203. package/dist/mysource_files/img/header-search.svg +3 -0
  204. package/dist/mysource_files/img/layers-2x.png +0 -0
  205. package/dist/mysource_files/img/layers.png +0 -0
  206. package/dist/mysource_files/img/marker-icon.png +0 -0
  207. package/dist/mysource_files/img/svg-icons.svg +155 -0
  208. package/dist/mysource_files/img/video-play.svg +3 -0
  209. package/dist/mysource_files/slick.eot +0 -0
  210. package/dist/mysource_files/slick.svg +14 -0
  211. package/dist/mysource_files/slick.ttf +0 -0
  212. package/dist/mysource_files/slick.woff +0 -0
  213. package/package-lock.json +14276 -0
  214. package/package.json +79 -0
  215. package/scripts/add_component.sh +109 -0
  216. package/src/assets/favicons/favicon.ico +0 -0
  217. package/src/assets/img/100x100.jpg +0 -0
  218. package/src/assets/img/600x260.jpg +0 -0
  219. package/src/assets/img/Heart-Pattern-Dark.png +0 -0
  220. package/src/assets/img/Heart-Pattern.png +0 -0
  221. package/src/assets/img/banner-background--desktop.png +0 -0
  222. package/src/assets/img/banner-background--mobile.png +0 -0
  223. package/src/assets/img/banner-bg.png +0 -0
  224. package/src/assets/img/banner.png +0 -0
  225. package/src/assets/img/card--brand.png +0 -0
  226. package/src/assets/img/card--components.png +0 -0
  227. package/src/assets/img/card--content.png +0 -0
  228. package/src/assets/img/header-logo-agov.png +0 -0
  229. package/src/assets/img/header-logo-qgov--dark.svg +63 -0
  230. package/src/assets/img/header-logo-qgov--light.svg +56 -0
  231. package/src/assets/img/header-logo-qgov--pre-dark.svg +56 -0
  232. package/src/assets/img/header-search.svg +3 -0
  233. package/src/assets/img/layers-2x.png +0 -0
  234. package/src/assets/img/layers.png +0 -0
  235. package/src/assets/img/marker-icon.png +0 -0
  236. package/src/assets/img/svg-icons.svg +155 -0
  237. package/src/assets/img/video-play.svg +3 -0
  238. package/src/components/_global/css/admin/component.scss +71 -0
  239. package/src/components/_global/css/body/component.scss +897 -0
  240. package/src/components/_global/css/btn/component.scss +564 -0
  241. package/src/components/_global/css/cta_links/component.scss +121 -0
  242. package/src/components/_global/css/direction_links/component.scss +196 -0
  243. package/src/components/_global/css/example/component.scss +54 -0
  244. package/src/components/_global/css/forms/control_inputs/component.scss +349 -0
  245. package/src/components/_global/css/forms/general/component.scss +298 -0
  246. package/src/components/_global/css/forms/select/component.scss +230 -0
  247. package/src/components/_global/css/forms/text/component.scss +402 -0
  248. package/src/components/_global/css/global.scss +42 -0
  249. package/src/components/_global/css/grid-12/component.scss +331 -0
  250. package/src/components/_global/css/headings/component.scss +172 -0
  251. package/src/components/_global/css/icons/component.scss +29 -0
  252. package/src/components/_global/css/link_columns/component.scss +194 -0
  253. package/src/components/_global/css/link_list/component.scss +37 -0
  254. package/src/components/_global/css/modal/component.scss +182 -0
  255. package/src/components/_global/css/slick/component.scss +25 -0
  256. package/src/components/_global/css/table/component.scss +211 -0
  257. package/src/components/_global/css/tabs/component.scss +43 -0
  258. package/src/components/_global/css/tags/component.scss +272 -0
  259. package/src/components/_global/css/user_location/component.scss +38 -0
  260. package/src/components/_global/css/version/component.scss +47 -0
  261. package/src/components/_global/html/component.hbs +108 -0
  262. package/src/components/_global/html/ds_component.hbs +30 -0
  263. package/src/components/_global/html/head.html +63 -0
  264. package/src/components/_global/html/scripts.html +58 -0
  265. package/src/components/_global/js/_polyfills/global.js +18 -0
  266. package/src/components/_global/js/animate/global.js +324 -0
  267. package/src/components/_global/js/forms/global.js +182 -0
  268. package/src/components/_global/js/global.js +302 -0
  269. package/src/components/_global/js/manifest.json +11 -0
  270. package/src/components/_global/js/modal/global.js +236 -0
  271. package/src/components/_global/js/slick/global.js +153 -0
  272. package/src/components/_global/js/tabs/global.js +305 -0
  273. package/src/components/_global/js/user_location/global.js +116 -0
  274. package/src/components/_template/css/component.scss +22 -0
  275. package/src/components/_template/html/component-page.html +85 -0
  276. package/src/components/_template/html/component.hbs +4 -0
  277. package/src/components/_template/js/global.js +6 -0
  278. package/src/components/_template/js/manifest.json +40 -0
  279. package/src/components/abstract/css/component.scss +91 -0
  280. package/src/components/abstract/html/component.hbs +9 -0
  281. package/src/components/abstract/js/manifest.json +29 -0
  282. package/src/components/accordion/css/component.scss +329 -0
  283. package/src/components/accordion/html/accordion-group.html +157 -0
  284. package/src/components/accordion/html/component.hbs +46 -0
  285. package/src/components/accordion/html/default.html +92 -0
  286. package/src/components/accordion/js/global.js +413 -0
  287. package/src/components/accordion/js/manifest.json +427 -0
  288. package/src/components/banner/css/component.scss +664 -0
  289. package/src/components/banner/html/component.hbs +52 -0
  290. package/src/components/banner/js/manifest.json +11 -0
  291. package/src/components/banner_advanced/css/component.scss +7 -0
  292. package/src/components/banner_advanced/html/component.hbs +213 -0
  293. package/src/components/banner_advanced/js/global.js +6 -0
  294. package/src/components/banner_advanced/js/manifest.json +1450 -0
  295. package/src/components/banner_basic/css/component.scss +52 -0
  296. package/src/components/banner_basic/html/component.hbs +130 -0
  297. package/src/components/banner_basic/js/global.js +6 -0
  298. package/src/components/banner_basic/js/manifest.json +151 -0
  299. package/src/components/banner_intermediate/css/component.scss +276 -0
  300. package/src/components/banner_intermediate/html/component.hbs +165 -0
  301. package/src/components/banner_intermediate/js/global.js +6 -0
  302. package/src/components/banner_intermediate/js/manifest.json +248 -0
  303. package/src/components/body/css/component.scss +16 -0
  304. package/src/components/body/html/component.hbs +5 -0
  305. package/src/components/body/js/manifest.json +46 -0
  306. package/src/components/breadcrumbs/css/component.scss +236 -0
  307. package/src/components/breadcrumbs/html/component.hbs +29 -0
  308. package/src/components/breadcrumbs/js/manifest.json +9 -0
  309. package/src/components/callout/css/component.scss +146 -0
  310. package/src/components/callout/html/component.hbs +28 -0
  311. package/src/components/callout/js/manifest.json +121 -0
  312. package/src/components/card_feature/css/component.scss +224 -0
  313. package/src/components/card_feature/html/component.hbs +129 -0
  314. package/src/components/card_feature/js/manifest.json +1390 -0
  315. package/src/components/card_multi_action/css/component.scss +229 -0
  316. package/src/components/card_multi_action/html/component.hbs +192 -0
  317. package/src/components/card_multi_action/js/manifest.json +1314 -0
  318. package/src/components/card_no_action/css/component.scss +551 -0
  319. package/src/components/card_no_action/html/component.hbs +127 -0
  320. package/src/components/card_no_action/js/global.js +6 -0
  321. package/src/components/card_no_action/js/manifest.json +1264 -0
  322. package/src/components/card_single_action/css/component.scss +164 -0
  323. package/src/components/card_single_action/html/component.hbs +161 -0
  324. package/src/components/card_single_action/js/manifest.json +1273 -0
  325. package/src/components/code/css/component.scss +355 -0
  326. package/src/components/code/html/component.hbs +84 -0
  327. package/src/components/code/js/global.js +160 -0
  328. package/src/components/code/js/manifest.json +112 -0
  329. package/src/components/footer/css/component.scss +437 -0
  330. package/src/components/footer/html/component.hbs +177 -0
  331. package/src/components/footer/js/manifest.json +9 -0
  332. package/src/components/global_alert/css/component.scss +169 -0
  333. package/src/components/global_alert/html/component.hbs +38 -0
  334. package/src/components/global_alert/js/global.js +39 -0
  335. package/src/components/global_alert/js/manifest.json +9 -0
  336. package/src/components/header/css/component.scss +697 -0
  337. package/src/components/header/html/component.hbs +186 -0
  338. package/src/components/header/js/global.js +188 -0
  339. package/src/components/header/js/manifest.json +11 -0
  340. package/src/components/horizontal_rule/css/component.scss +37 -0
  341. package/src/components/horizontal_rule/html/component.hbs +6 -0
  342. package/src/components/horizontal_rule/js/manifest.json +69 -0
  343. package/src/components/in_page_navigation/css/component.scss +54 -0
  344. package/src/components/in_page_navigation/html/component.hbs +17 -0
  345. package/src/components/in_page_navigation/js/global.js +51 -0
  346. package/src/components/in_page_navigation/js/manifest.json +35 -0
  347. package/src/components/internal_navigation/css/component.scss +437 -0
  348. package/src/components/internal_navigation/html/component.hbs +57 -0
  349. package/src/components/internal_navigation/js/manifest.json +11 -0
  350. package/src/components/left_hand_navigation/css/component.scss +280 -0
  351. package/src/components/left_hand_navigation/html/component.hbs +77 -0
  352. package/src/components/left_hand_navigation/js/global.js +36 -0
  353. package/src/components/left_hand_navigation/js/manifest.json +40 -0
  354. package/src/components/main_navigation/css/component.scss +706 -0
  355. package/src/components/main_navigation/html/component.hbs +87 -0
  356. package/src/components/main_navigation/js/global.js +373 -0
  357. package/src/components/main_navigation/js/manifest.json +11 -0
  358. package/src/components/mega_main_navigation/css/component.scss +535 -0
  359. package/src/components/mega_main_navigation/html/component.hbs +157 -0
  360. package/src/components/mega_main_navigation/js/global.js +170 -0
  361. package/src/components/mega_main_navigation/js/manifest.json +9 -0
  362. package/src/components/multi_column/css/component.scss +11 -0
  363. package/src/components/multi_column/html/component.hbs +98 -0
  364. package/src/components/multi_column/js/manifest.json +233 -0
  365. package/src/components/page_alert/css/component.scss +132 -0
  366. package/src/components/page_alert/html/component.hbs +26 -0
  367. package/src/components/page_alert/js/manifest.json +63 -0
  368. package/src/components/pagination/css/component.scss +196 -0
  369. package/src/components/pagination/html/component.hbs +41 -0
  370. package/src/components/pagination/html/default.html +30 -0
  371. package/src/components/pagination/js/manifest.json +42 -0
  372. package/src/components/search_box/css/component.scss +48 -0
  373. package/src/components/search_box/html/component.html +11 -0
  374. package/src/components/search_box/js/manifest.json +73 -0
  375. package/src/components/updated_date/css/component.scss +0 -0
  376. package/src/components/updated_date/html/component.hbs +31 -0
  377. package/src/components/updated_date/js/manifest.json +9 -0
  378. package/src/components/widgets/css/component.scss +82 -0
  379. package/src/components/widgets/html/component.hbs +19 -0
  380. package/src/components/widgets/html/default.html +4 -0
  381. package/src/components/widgets/js/current.json +483 -0
  382. package/src/components/widgets/js/manifest.json +9 -0
  383. package/src/components/widgets/js/site.json +358 -0
  384. package/src/data/current.json +522 -0
  385. package/src/data/current_admin.json +305 -0
  386. package/src/data/model_component.js +14 -0
  387. package/src/data/site.json +762 -0
  388. package/src/externals/componentPreview.js +101 -0
  389. package/src/externals/dsComponentLoader.js +410 -0
  390. package/src/externals/esri-leaflet-vector.js +5 -0
  391. package/src/externals/esri-leaflet.js +12 -0
  392. package/src/externals/fb-handlebars.min.js +29 -0
  393. package/src/externals/fb-typeahead.bundle.min.js +6 -0
  394. package/src/externals/funnelback.autocompletion-2.6.0.js +678 -0
  395. package/src/externals/getPagination.js +62 -0
  396. package/src/externals/handlebars.min-v4.7.6.js +29 -0
  397. package/src/externals/leaflet.js +6 -0
  398. package/src/externals/populateDatastoreSim.js +381 -0
  399. package/src/externals/tinymce_classes.css +62 -0
  400. package/src/helpers/Handlebars/appendIf.js +6 -0
  401. package/src/helpers/Handlebars/arrayLength.js +3 -0
  402. package/src/helpers/Handlebars/arrayWith.js +13 -0
  403. package/src/helpers/Handlebars/capitaliseFirst.js +8 -0
  404. package/src/helpers/Handlebars/charMax.js +8 -0
  405. package/src/helpers/Handlebars/checkIf.js +20 -0
  406. package/src/helpers/Handlebars/columnWidth.js +39 -0
  407. package/src/helpers/Handlebars/contains.js +7 -0
  408. package/src/helpers/Handlebars/createMap.js +19 -0
  409. package/src/helpers/Handlebars/dsMapFromID.js +8 -0
  410. package/src/helpers/Handlebars/dsMapFromProp.js +8 -0
  411. package/src/helpers/Handlebars/eachByName.js +18 -0
  412. package/src/helpers/Handlebars/eachDS.js +7 -0
  413. package/src/helpers/Handlebars/eachFrom.js +13 -0
  414. package/src/helpers/Handlebars/eachUpTo.js +8 -0
  415. package/src/helpers/Handlebars/eachWhen.js +33 -0
  416. package/src/helpers/Handlebars/formatDate.js +62 -0
  417. package/src/helpers/Handlebars/generateDates.js +74 -0
  418. package/src/helpers/Handlebars/getDistance.js +40 -0
  419. package/src/helpers/Handlebars/getObject.js +3 -0
  420. package/src/helpers/Handlebars/getParamaterByName.js +11 -0
  421. package/src/helpers/Handlebars/getPossibleValues.js +13 -0
  422. package/src/helpers/Handlebars/getProp.js +3 -0
  423. package/src/helpers/Handlebars/getTags.js +20 -0
  424. package/src/helpers/Handlebars/getTitle.js +4 -0
  425. package/src/helpers/Handlebars/ifAny.js +9 -0
  426. package/src/helpers/Handlebars/ifArray.js +3 -0
  427. package/src/helpers/Handlebars/ifCond.js +31 -0
  428. package/src/helpers/Handlebars/ifEqualsOrChained.js +12 -0
  429. package/src/helpers/Handlebars/ifProp.js +3 -0
  430. package/src/helpers/Handlebars/if_eq.js +9 -0
  431. package/src/helpers/Handlebars/inArray.js +8 -0
  432. package/src/helpers/Handlebars/isPage.js +7 -0
  433. package/src/helpers/Handlebars/itemAt.js +11 -0
  434. package/src/helpers/Handlebars/jsonParse.js +8 -0
  435. package/src/helpers/Handlebars/jsonStringify.js +3 -0
  436. package/src/helpers/Handlebars/listAZ.js +51 -0
  437. package/src/helpers/Handlebars/listAZOptions.js +34 -0
  438. package/src/helpers/Handlebars/listByClosest.js +60 -0
  439. package/src/helpers/Handlebars/listByClosestWithOffset.js +63 -0
  440. package/src/helpers/Handlebars/math.js +11 -0
  441. package/src/helpers/Handlebars/newLineToBreak.js +6 -0
  442. package/src/helpers/Handlebars/nonBreakingSpaces.js +6 -0
  443. package/src/helpers/Handlebars/objectFromSelect.js +21 -0
  444. package/src/helpers/Handlebars/partialReplace.js +9 -0
  445. package/src/helpers/Handlebars/printAccordion.js +24 -0
  446. package/src/helpers/Handlebars/replace.js +8 -0
  447. package/src/helpers/Handlebars/replaceMany.js +5 -0
  448. package/src/helpers/Handlebars/sizeFormat.js +11 -0
  449. package/src/helpers/Handlebars/split.js +6 -0
  450. package/src/helpers/Handlebars/toUpperCase.js +7 -0
  451. package/src/helpers/Handlebars/urldecode.js +3 -0
  452. package/src/helpers/Handlebars/urlencode.js +3 -0
  453. package/src/helpers/Handlebars/withinObject.js +13 -0
  454. package/src/html/component-abstract.html +86 -0
  455. package/src/html/component-accordion.html +87 -0
  456. package/src/html/component-banner.html +84 -0
  457. package/src/html/component-banner_advanced.html +97 -0
  458. package/src/html/component-banner_basic.html +163 -0
  459. package/src/html/component-banner_intermediate.html +91 -0
  460. package/src/html/component-body.html +116 -0
  461. package/src/html/component-breadcrumbs.html +88 -0
  462. package/src/html/component-btn.html +117 -0
  463. package/src/html/component-callout.html +86 -0
  464. package/src/html/component-card_feature.html +631 -0
  465. package/src/html/component-card_multi_action.html +793 -0
  466. package/src/html/component-card_no_action.html +521 -0
  467. package/src/html/component-card_single_action.html +631 -0
  468. package/src/html/component-code.html +84 -0
  469. package/src/html/component-footer.html +87 -0
  470. package/src/html/component-forms.html +585 -0
  471. package/src/html/component-global-elements.html +531 -0
  472. package/src/html/component-global_alert.html +87 -0
  473. package/src/html/component-header.html +88 -0
  474. package/src/html/component-in_page_navigation.html +109 -0
  475. package/src/html/component-internal_navigation.html +87 -0
  476. package/src/html/component-left_hand_navigation.html +85 -0
  477. package/src/html/component-main_navigation.html +87 -0
  478. package/src/html/component-mega_main_navigation.html +88 -0
  479. package/src/html/component-multi_column.html +86 -0
  480. package/src/html/component-page_alert.html +86 -0
  481. package/src/html/component-pagination.html +86 -0
  482. package/src/html/component-tag_list.html +340 -0
  483. package/src/html/component-updated_date.html +88 -0
  484. package/src/html/component-widgets.html +90 -0
  485. package/src/html/components.html +136 -0
  486. package/src/html/home.html +126 -0
  487. package/src/html/index.html +142 -0
  488. package/src/html/inner-with-nav.html +1126 -0
  489. package/src/html/inner.html +107 -0
  490. package/src/index.js +12 -0
  491. package/src/styles/global.scss +120 -0
  492. package/src/styles/imports/figma.scss +0 -0
  493. package/src/styles/imports/functions.scss +519 -0
  494. package/src/styles/imports/mixins.scss +658 -0
  495. package/src/styles/imports/placeholders.scss +68 -0
  496. package/src/styles/imports/utilities.scss +185 -0
  497. package/src/styles/imports/variables.scss +484 -0
  498. package/src/styles/postcss.config.js +4 -0
  499. package/webpack/JsonMergePlugin.js +35 -0
  500. package/webpack/PrecompilePlugin.js +369 -0
  501. package/webpack/webpack.common.js +151 -0
  502. package/webpack/webpack.dev.js +54 -0
  503. package/webpack/webpack.prod.js +70 -0
@@ -0,0 +1,897 @@
1
+ //--------------------------------------------------------------------------------------------------------------------------------------------------------------
2
+ // Body module
3
+ //
4
+ // Content:
5
+ // - Body styles
6
+ // - body
7
+ // - anchor (a)
8
+ // - mark
9
+ // - ::selection (highlight colour)
10
+ // - paragraphs
11
+ // - sorted and unsorted lists
12
+ // - list items
13
+ // - definition lists, terms and definitions
14
+ // - emphasis, bolding, etc.
15
+ // - editorial markup (eg. ins and del)
16
+ // - strong and small
17
+ // - first definition (dfn)
18
+ // - abbreviations (abbr)
19
+ // - variables (var) and nested indices (sup and sub)
20
+ // - pre-formatted text and nested code, kbd, samp
21
+ // - code
22
+ // - keyboard strokes (kbd)
23
+ // - horizontal rules (hr)
24
+ //
25
+ // Thinking: primarily we want to target these: https://w3c.github.io/html/textlevel-semantics.html
26
+ //
27
+ // From there:
28
+ // - provide good, legible basics
29
+ // - provide a vertical rhythm based on content size
30
+ // - cater for a common and semantic nesting
31
+ // - keep styling to a minimum
32
+ //--------------------------------------------------------------------------------------------------------------------------------------------------------------
33
+ //--------------------------------------------------------------------------------------------------------------------------------------------------------------
34
+ // BODY STYLES
35
+ //--------------------------------------------------------------------------------------------------------------------------------------------------------------
36
+ main,
37
+ #main_form,
38
+ #content,
39
+ form {
40
+ .qld__body {
41
+ @include QLD-container-padding($QLD-container-padding-mobile);
42
+
43
+ + .pb-0 {
44
+ @include QLD-space(padding-bottom, 0);
45
+ }
46
+
47
+ + .pt-0 {
48
+ @include QLD-space(padding-top, 0);
49
+ }
50
+
51
+ /**
52
+ * Reduce padding top if the following section has the same background
53
+ */
54
+ + .qld__body,
55
+ + data + .qld__body,
56
+ + h1.sr-only + .qld__body,
57
+ + h1.sr-only + data + .qld__body {
58
+ padding-top: 0;
59
+
60
+ &.qld__body--alt{
61
+ @include QLD-container-padding($QLD-container-padding-mobile);
62
+ @include QLD-media(lg) {
63
+ @include QLD-container-padding($QLD-container-padding-desktop);
64
+ }
65
+ }
66
+ &.qld__body--dark{
67
+ @include QLD-container-padding($QLD-container-padding-mobile);
68
+ @include QLD-media(lg) {
69
+ @include QLD-container-padding($QLD-container-padding-desktop);
70
+ }
71
+ }
72
+ &.qld__body--dark-alt{
73
+ @include QLD-container-padding($QLD-container-padding-mobile);
74
+ @include QLD-media(lg) {
75
+ @include QLD-container-padding($QLD-container-padding-desktop);
76
+ }
77
+ }
78
+ }
79
+ &.qld__body--alt{
80
+ + .qld__body.qld__body--alt,
81
+ + data + .qld__body--alt,
82
+ + h1.sr-only + .qld__body--alt,
83
+ + h1.sr-only + data + .qld__body--alt {
84
+ padding-top: 0 !important;
85
+ }
86
+ + .qld__body,
87
+ + data + .qld__body,
88
+ + h1.sr-only + .qld__body,
89
+ + h1.sr-only + data + .qld__body {
90
+ @include QLD-container-padding($QLD-container-padding-mobile);
91
+ @include QLD-media(lg) {
92
+ @include QLD-container-padding($QLD-container-padding-desktop);
93
+ }
94
+ }
95
+ }
96
+ &.qld__body--dark{
97
+ + .qld__body.qld__body--dark,
98
+ + data + .qld__body.qld__body--dark,
99
+ + h1.sr-only + .qld__body--dark,
100
+ + h1.sr-only + data + .qld__body--dark{
101
+ padding-top: 0 !important;
102
+ }
103
+ + .qld__body,
104
+ + data + .qld__body,
105
+ + h1.sr-only + .qld__body,
106
+ + h1.sr-only + data + .qld__body {
107
+ @include QLD-container-padding($QLD-container-padding-mobile);
108
+ @include QLD-media(lg) {
109
+ @include QLD-container-padding($QLD-container-padding-desktop);
110
+ }
111
+ }
112
+ }
113
+ &.qld__body--dark-alt{
114
+ + .qld__body.qld__body--dark-alt,
115
+ + data + .qld__body.qld__body--dark-alt,
116
+ + h1.sr-only + .qld__body--dark-alt,
117
+ + h1.sr-only + data + .qld__body--dark-alt{
118
+ padding-top: 0 !important;
119
+ }
120
+ + .qld__body,
121
+ + data + .qld__body,
122
+ + h1.sr-only + .qld__body,
123
+ + h1.sr-only + data + .qld__body {
124
+ @include QLD-container-padding($QLD-container-padding-mobile);
125
+ @include QLD-media(lg) {
126
+ @include QLD-container-padding($QLD-container-padding-desktop);
127
+ }
128
+ }
129
+ }
130
+ @include QLD-media(lg) {
131
+ @include QLD-container-padding($QLD-container-padding-desktop);
132
+ }
133
+
134
+
135
+ &--example {
136
+ @include QLD-space(padding, 1.5unit);
137
+ }
138
+
139
+ //Align the body when within a two col layout/ content page
140
+ #content[class^="col-"] > .qld__body {
141
+ @include QLD-container-margin($QLD-grid-gutter-sm, neg, horizontal );
142
+ @include QLD-container-padding($QLD-container-padding-mobile);
143
+
144
+ @include QLD-media(md) {
145
+ @include QLD-container-margin($QLD-grid-gutter-md, neg, horizontal );
146
+ @include QLD-container-padding($QLD-grid-gutter-sm, horizontal );
147
+
148
+ }
149
+
150
+ @include QLD-media(lg) {
151
+ @include QLD-container-margin($QLD-grid-gutter-sm, neg, horizontal );
152
+ @include QLD-container-padding($QLD-container-padding-mobile);
153
+ }
154
+
155
+ &:first-of-type{
156
+ @include QLD-space(padding-top, 0);
157
+
158
+ &:last-of-type{
159
+ @include QLD-space(padding-top, 2.5unit);
160
+ @include QLD-media(lg) {
161
+ @include QLD-space(padding-top, 4.5unit);
162
+ }
163
+ }
164
+
165
+
166
+ &.qld__body--alt,
167
+ &.qld__body--dark,
168
+ &.qld__body--dark-alt{
169
+ @include QLD-container-padding($QLD-container-padding-mobile);
170
+
171
+ @include QLD-media(lg) {
172
+ @include QLD-container-padding($QLD-container-padding-desktop);
173
+ }
174
+ }
175
+ }
176
+ &:last-of-type{
177
+ @include QLD-space(padding-bottom, 0);
178
+
179
+ &.qld__body--alt,
180
+ &.qld__body--dark,
181
+ &.qld__body--dark-alt{
182
+ @include QLD-container-padding($QLD-container-padding-mobile, !important);
183
+
184
+ @include QLD-media(lg) {
185
+ @include QLD-container-padding($QLD-container-padding-desktop !important);
186
+ }
187
+ }
188
+
189
+ }
190
+
191
+ .container-fluid {
192
+ @include QLD-container-padding($QLD-grid-inner-container-mobile, horizontal );
193
+ @include QLD-media(lg) {
194
+ @include QLD-container-padding($QLD-grid-inner-container-desktop, horizontal );
195
+ }
196
+ }
197
+
198
+ + .qld__body,
199
+ + data + .qld__body{
200
+ padding-top: 0;
201
+
202
+ &.qld__body--alt{
203
+ @include QLD-container-padding($QLD-container-padding-mobile);
204
+ @include QLD-media(lg) {
205
+ @include QLD-container-padding($QLD-container-padding-desktop);
206
+ }
207
+ }
208
+ &.qld__body--dark{
209
+ @include QLD-container-padding($QLD-container-padding-mobile);
210
+ @include QLD-media(lg) {
211
+ @include QLD-container-padding($QLD-container-padding-desktop);
212
+ }
213
+ }
214
+ &.qld__body--dark-alt{
215
+ @include QLD-container-padding($QLD-container-padding-mobile);
216
+ @include QLD-media(lg) {
217
+ @include QLD-container-padding($QLD-container-padding-desktop);
218
+ }
219
+ }
220
+ }
221
+ &.qld__body--alt{
222
+ + .qld__body.qld__body--alt,
223
+ + data + .qld__body--alt{
224
+ padding-top: 0 !important;
225
+ }
226
+ + .qld__body,
227
+ + data + .qld__body{
228
+ @include QLD-container-padding($QLD-container-padding-mobile);
229
+ @include QLD-media(lg) {
230
+ @include QLD-container-padding($QLD-container-padding-desktop);
231
+ }
232
+ }
233
+ }
234
+ &.qld__body--dark{
235
+ + .qld__body.qld__body--dark,
236
+ + data + .qld__body.qld__body--dark{
237
+ padding-top: 0 !important;
238
+ }
239
+ + .qld__body,
240
+ + data + .qld__body{
241
+ @include QLD-container-padding($QLD-container-padding-mobile);
242
+ @include QLD-media(lg) {
243
+ @include QLD-container-padding($QLD-container-padding-desktop);
244
+ }
245
+ }
246
+ }
247
+ &.qld__body--dark-alt{
248
+ + .qld__body.qld__body--dark-alt,
249
+ + data + .qld__body.qld__body--dark-alt{
250
+ padding-top: 0 !important;
251
+ }
252
+ + .qld__body,
253
+ + data + .qld__body{
254
+ @include QLD-container-padding($QLD-container-padding-mobile);
255
+ @include QLD-media(lg) {
256
+ @include QLD-container-padding($QLD-container-padding-desktop);
257
+ }
258
+ }
259
+ }
260
+ }
261
+ //-----END:Reduce padding top if the following section has the same background----
262
+ }
263
+ &.content {
264
+ .qld__body--breadcrumb {
265
+ @include QLD-space(padding-bottom, 3unit);
266
+ }
267
+
268
+ }
269
+ .qld__body--breadcrumb {
270
+ @include QLD-space(padding-top, 1unit);
271
+ @include QLD-space(padding-bottom, 1.5unit);
272
+ @include QLD-media(md) {
273
+ @include QLD-space(padding-top, 2.5unit);
274
+ }
275
+ @include QLD-media(lg) {
276
+ @include QLD-space(padding-top, 3unit);
277
+ @include QLD-space(padding-bottom, 2unit);
278
+ }
279
+
280
+ }
281
+
282
+ }
283
+
284
+ .qld__body,
285
+ .qld__footer {
286
+ @include QLD-fontgrid(sm) ;
287
+ @include QLD-space(font-size, 1.063unit);
288
+ margin: 0;
289
+ text-size-adjust: 100%;
290
+ font-family: $QLD-font;
291
+ color: var(--QLD-color-light-text);
292
+ background-color: var(--QLD-color-light-background);
293
+
294
+
295
+ a {
296
+ color: var(--QLD-color-light-link);
297
+ text-decoration: underline;
298
+ text-decoration-skip-ink: auto;
299
+ @include QLD-space(max-width, $QLD-font-maxwidth);
300
+
301
+ &:hover {
302
+ // color: var(--QLD-color-light-text);
303
+ text-decoration: none;
304
+ }
305
+
306
+ @include QLD-focus();
307
+ }
308
+
309
+ p {
310
+ margin: 0;
311
+ @include QLD-space(max-width, $QLD-font-maxwidth);
312
+
313
+ // &.abstract {
314
+ // @include QLD-fontgrid(lg, h3);
315
+ // }
316
+ }
317
+
318
+ *:not([type="hidden"]) {
319
+ + p {
320
+ @include QLD-space(margin-top, 1unit);
321
+
322
+ @include QLD-media(lg) {
323
+ @include QLD-space(margin-top, 1.5unit);
324
+ }
325
+ }
326
+ }
327
+
328
+ img {
329
+ max-width: 100%;
330
+ height: auto;
331
+ }
332
+
333
+ /**
334
+ * Highlighting in-page sections that are in focus
335
+ */
336
+ [tabindex="0"]:focus {
337
+ @include QLD-outline();
338
+ }
339
+
340
+ /**
341
+ * `mark` styling.
342
+ */
343
+ mark {
344
+ color: var(--QLD-color-dark-text);
345
+ background-color: var(--QLD-color-dark-background);
346
+ }
347
+
348
+ /**
349
+ * Text selection styling
350
+ */
351
+ ::selection {
352
+ color: var(--QLD-color-dark-text);
353
+
354
+ background-color: var(--QLD-color-dark-background);
355
+ opacity: .99;
356
+ // Why RGBA 0.99? https://stackoverflow.com/a/7224621
357
+ }
358
+
359
+ // Decrease the opacity for certain elements
360
+ img::selection,
361
+ video::selection,
362
+ iframe::selection {
363
+ background-color: var(--QLD-color-light-link);
364
+ opacity: .75;
365
+ }
366
+
367
+ ul:not([class]),
368
+ ol:not([class]),
369
+ dl:not([class]),
370
+ pre {
371
+ margin: 0; //reset defaults
372
+ }
373
+
374
+ pre {
375
+ white-space: pre-wrap;
376
+ }
377
+
378
+ * + ul:not([class]),
379
+ * + ol:not([class]),
380
+ * + dl:not([class]),
381
+ * + pre {
382
+ @include QLD-space(margin-top, 1unit);
383
+ }
384
+
385
+ ul:not([class]),
386
+ ol:not([class]) {
387
+ > li {
388
+ @include QLD-space(margin-top, .5unit);
389
+
390
+ > ul:not([class]),
391
+ > ol:not([class]) {
392
+ @include QLD-space(margin-top, 1unit);
393
+
394
+ > li {
395
+ list-style-type: disc;
396
+ }
397
+ }
398
+
399
+ &:first-child {
400
+ @include QLD-space(margin-top, 0unit);
401
+ }
402
+ }
403
+
404
+ > ul:not([class]) {
405
+ list-style-type: disc;
406
+ }
407
+ }
408
+
409
+ dl:not([class]) {
410
+ > dd {
411
+ @include QLD-space(margin-top, 0.5unit);
412
+ @include QLD-space(padding-left, 0.5unit);
413
+ margin-left: 0;
414
+ border-left: solid 1px;
415
+ }
416
+
417
+ > dt {
418
+ @include QLD-space(margin-top, 1.5unit);
419
+ font-weight: bold;
420
+
421
+ &:first-of-type {
422
+ margin-top: 0;
423
+ }
424
+ }
425
+ }
426
+
427
+ .written-by:after {
428
+ content: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZlcnNpb249IjEiIHZpZXdCb3g9IjAgMCA2NTggMTgiPjx0ZXh0IHg9IjEzIiB5PSIxMyIgZm9udC1zaXplPSIxMyI+TWVzc3JzLCBEb20sIFBhZ2V5LCBUcmViLCBQYXQgYW5kIEtsZXBhcyBhcmUgcHJvdWQgdG8gcHJlc2VudCB0aGUgR09MRCBkZXNpZ24gc3lzdGVtLiAtIE1pc2NoaWVmIG1hbmFnZWQ8L3RleHQ+PC9zdmc+");
429
+ color: #bada55;
430
+ }
431
+
432
+ /**
433
+ * `small`: for less important information (not stylistic purposes).
434
+ */
435
+ small {
436
+ @include QLD-fontgrid(xs, small);
437
+ }
438
+
439
+ /**
440
+ * `s`: represents contents no longer accurate/relevant.
441
+ * del` & `ins`: editorial markup.
442
+ */
443
+ s,
444
+ del {
445
+ text-decoration: line-through;
446
+ }
447
+
448
+ ins {
449
+ text-decoration-line: underline;
450
+ text-decoration-style: dashed; //Waiting on Chrome.
451
+ text-decoration-skip-ink: auto;
452
+ }
453
+
454
+ /**
455
+ * Defining definition of a term.
456
+ *
457
+ * The paragraph, description list group, or section that is the nearest
458
+ * ancestor of the `dfn` element must also contain the definition(s) for the term
459
+ * given by the `dfn` element.
460
+ *
461
+ * Note: `abbr` can be nested inside `dfn`.
462
+ */
463
+ dfn {
464
+ font-style: normal;
465
+ }
466
+
467
+ /**
468
+ * Abbreviations/acronyms.
469
+ */
470
+ abbr,
471
+ abbr[title] {
472
+ border-bottom: none;
473
+ text-decoration: underline;
474
+ text-decoration: underline dotted;
475
+ }
476
+
477
+ abbr[title] {
478
+ cursor: help;
479
+ }
480
+
481
+ a abbr {
482
+ padding-bottom: 1px;
483
+ }
484
+
485
+ /**
486
+ * Variables, eg. as used in mathematical expressions.
487
+ *
488
+ * We also provide semantic support for nested vars, and things like indices.
489
+ */
490
+ var {
491
+ padding: 0 1px;
492
+ font-style: italic;
493
+ font-family: serif; //We want mathematical notation to use serif vars per convention.
494
+
495
+ sup,
496
+ sub {
497
+ font-family: $QLD-font;
498
+ font-style: normal;
499
+ padding: 0 1px;
500
+ }
501
+ }
502
+
503
+ /**
504
+ * Prevent `sub` and `sup` elements from affecting the line height in
505
+ * all browsers.
506
+ * https://github.com/necolas/normalize.css/blob/master/normalize.css#L174
507
+ */
508
+ sub,
509
+ sup {
510
+ @include QLD-fontgrid(xs, nospace);
511
+ position: relative;
512
+ vertical-align: baseline;
513
+ }
514
+
515
+ sub {
516
+ bottom: -0.25em;
517
+ }
518
+
519
+ sup {
520
+ top: -0.5em;
521
+ }
522
+
523
+ /**
524
+ * Keyboard strokes.
525
+ * Code snippets and code blocks.
526
+ */
527
+ kbd,
528
+ samp {
529
+ @include QLD-fontgrid(xs);
530
+ @include QLD-space(line-height, 1.25unit);
531
+ @include QLD-space(padding, 0.125unit 0.25unit);
532
+ @include QLD-space(margin, 0unit 0.125unit);
533
+ font-family: $QLD-font-monospace;
534
+ display: inline-block;
535
+ border-radius: $QLD-border-radius-xs;
536
+ background-color: var(--QLD-color-light-background__shade);
537
+ color: var(--QLD-color-light-text);
538
+ }
539
+
540
+ code {
541
+ background-color: var(--QLD-color-dark-alt-background__shade);
542
+ color: var(--QLD-color-dark-text);
543
+ display: block;
544
+ font-family: $QLD-font-monospace;
545
+ white-space: pre-wrap;
546
+ @include QLD-space('font-size', .875unit);
547
+ @include QLD-space('padding', .125unit .5unit);
548
+ @include QLD-space('margin', 0);
549
+
550
+ .token {
551
+ pointer-events: none;
552
+
553
+ &.comment {
554
+ color: #B3CBDE;
555
+ }
556
+
557
+ &.tag {
558
+ color: #A7E5FF;
559
+ }
560
+
561
+ &.attr-name {
562
+ color: #C78DF7;
563
+ }
564
+
565
+ &.attr-value {
566
+ color: #6BBE26;
567
+ }
568
+ }
569
+ }
570
+
571
+ pre {
572
+ font-family: $QLD-font-monospace;
573
+ }
574
+
575
+ pre code {
576
+ @include QLD-space(padding, 1unit);
577
+ display: block;
578
+ tab-size: 4;
579
+ }
580
+
581
+ /**
582
+ * Blockquote
583
+ */
584
+ blockquote {
585
+
586
+ .qld__quote-text {
587
+ // @extend .qld__display-lg;
588
+ font-weight: 700;
589
+ color: var(--QLD-color-light-heading);
590
+ }
591
+
592
+ .qld__quote-source {
593
+ font-size: pxToRem(20);
594
+ color: var(--QLD-color-light-text__muted);
595
+ margin-top: 10px;
596
+ }
597
+ }
598
+
599
+ /**
600
+ * Horizontal rule, used for paragraph-level thematic breaks.
601
+ */
602
+ hr {
603
+ box-sizing: content-box;
604
+ @include QLD-space(height, 0.063unit);
605
+ overflow: visible;
606
+ border: none;
607
+ background-color: var(--QLD-color-light-border);
608
+ @include QLD-space(margin-top, 1.25unit);
609
+ @include QLD-space(margin-bottom, 1.188unit);
610
+ width: 100%;
611
+
612
+ }
613
+
614
+ &.qld__body--alt {
615
+ background: var(--QLD-color-light-alt-background);
616
+
617
+ hr {
618
+ background-color: var(--QLD-color-light-alt-border);
619
+ }
620
+
621
+ code,
622
+ kbd,
623
+ samp {
624
+ background-color: var(--QLD-color-light-alt-background__shade);
625
+ }
626
+ }
627
+
628
+ &.qld__body--dark {
629
+ background: var(--QLD-color-dark-background);
630
+ color: var(--QLD-color-dark-text);
631
+
632
+ ::selection {
633
+ color: var(--QLD-color-dark-background);
634
+ background-color: var(--QLD-color-dark-link);
635
+ // Why RGBA 0.99? https://stackoverflow.com/a/7224621
636
+ }
637
+
638
+ // Decrease the opacity for certain elements
639
+ img::selection,
640
+ video::selection,
641
+ iframe::selection {
642
+ background-color: var(--QLD-color-dark-link);
643
+ }
644
+
645
+ a{
646
+ color: var(--QLD-color-dark-text);
647
+
648
+ &:hover {
649
+ color: var(--QLD-color-dark-text);
650
+ }
651
+
652
+ @include QLD-focus("dark");
653
+ }
654
+
655
+ [tabindex="0"]:focus{
656
+ @include QLD-outline("dark");
657
+ }
658
+
659
+ mark {
660
+ background-color: var(--QLD-color-dark-link);
661
+ color: var(--QLD-color-dark-background);
662
+ }
663
+
664
+ hr {
665
+ background-color: var(--QLD-color-dark-border);
666
+ }
667
+
668
+ code,
669
+ kbd,
670
+ samp {
671
+ color: var(--QLD-color-dark-text);
672
+ background-color: var(--QLD-color-dark-background__shade);
673
+ }
674
+ }
675
+
676
+ &.qld__body--dark-alt {
677
+ background: var(--QLD-color-dark-alt-background);
678
+ color: var(--QLD-color-dark-text);
679
+
680
+ ::selection {
681
+ color: var(--QLD-color-dark-background);
682
+ background-color: var(--QLD-color-dark-link);
683
+ // Why RGBA 0.99? https://stackoverflow.com/a/7224621
684
+ }
685
+
686
+ // Decrease the opacity for certain elements
687
+ img::selection,
688
+ video::selection,
689
+ iframe::selection {
690
+ background-color: var(--QLD-color-dark-link);
691
+ }
692
+
693
+ a {
694
+ color: var(--QLD-color-dark-text);
695
+
696
+ &:hover {
697
+ color: var(--QLD-color-dark-text);
698
+ }
699
+
700
+ @include QLD-focus("dark");
701
+ }
702
+
703
+ [tabindex="0"]:focus{
704
+ @include QLD-outline("dark");
705
+ }
706
+
707
+ mark {
708
+ background-color: var(--QLD-color-dark-link);
709
+ color: var(--QLD-color-dark-alt-background);
710
+ }
711
+
712
+ hr {
713
+ background-color: var(--QLD-color-dark-border);
714
+ }
715
+
716
+ code,
717
+ kbd,
718
+ samp {
719
+ color: var(--QLD-color-dark-text);
720
+ background-color: var(--QLD-color-dark-alt-background__shade);
721
+ }
722
+ }
723
+
724
+ &.qld__body--half-width {
725
+ .container-fluid{
726
+ div{
727
+ width: 50%;
728
+ }
729
+ }
730
+ }
731
+ }
732
+
733
+ // .qld__body{
734
+ // p{
735
+ // @include QLD-space(font-size, 1.063unit);
736
+ // }
737
+ // }
738
+
739
+
740
+ @media print {
741
+ .qld__body {
742
+ *,
743
+ & {
744
+ text-shadow: none !important;
745
+ color: #000 !important;
746
+ background-color: transparent !important;
747
+ box-shadow: none !important;
748
+ border-color: #000 !important;
749
+ }
750
+
751
+ a,
752
+ a:visited {
753
+ text-decoration: underline;
754
+ }
755
+
756
+ // Add the URL after the link on print
757
+ a[href]:after {
758
+ content: " (" attr(href) ")" !important;
759
+ display: inline !important;
760
+ }
761
+
762
+ // Do not add the URL if it's a javascript or anchor
763
+ a[href^="javascript:"]:after,
764
+ a[href^="#"]:after {
765
+ content: "" !important;
766
+ }
767
+
768
+ // Add the abbreviation expanded on print
769
+ abbr[title]:after {
770
+ content: " (" attr(title) ")";
771
+ }
772
+
773
+ pre,
774
+ blockquote {
775
+ border: 1px solid #000;
776
+ padding: 6px;
777
+ page-break-inside: avoid;
778
+ }
779
+
780
+ thead {
781
+ display: table-header-group;
782
+ }
783
+
784
+ tr,
785
+ img {
786
+ page-break-inside: avoid;
787
+ }
788
+
789
+ img {
790
+ max-width: 100% !important;
791
+ }
792
+
793
+ p,
794
+ h2,
795
+ h3 {
796
+ orphans: 3;
797
+ widows: 3;
798
+ }
799
+
800
+ h2,
801
+ h3 {
802
+ page-break-after: avoid;
803
+ }
804
+
805
+ p a {
806
+ word-wrap: break-word;
807
+ }
808
+
809
+ select {
810
+ background: #fff !important;
811
+ }
812
+ }
813
+ }
814
+
815
+ //--------------------------------------------------------------------------------------------------------------------------------------------------------------
816
+ // Body module
817
+ //
818
+ //
819
+ // Content:
820
+ // - print styles
821
+ //--------------------------------------------------------------------------------------------------------------------------------------------------------------
822
+
823
+
824
+ @media print {
825
+ .qld__body {
826
+ *,
827
+ & {
828
+ text-shadow: none !important;
829
+ color: #000 !important;
830
+ background-color: transparent !important;
831
+ box-shadow: none !important;
832
+ border-color: #000 !important;
833
+ }
834
+
835
+ a,
836
+ a:visited {
837
+ text-decoration: underline;
838
+ }
839
+
840
+ // Add the URL after the link on print
841
+ a[href]:after {
842
+ content: " (" attr(href) ")" !important;
843
+ display: inline !important;
844
+ }
845
+
846
+ // Do not add the URL if it's a javascript or anchor
847
+ a[href^="javascript:"]:after,
848
+ a[href^="#"]:after {
849
+ content: "" !important;
850
+ }
851
+
852
+ // Add the abbreviation expanded on print
853
+ abbr[title]:after {
854
+ content: " (" attr(title) ")";
855
+ }
856
+
857
+ pre,
858
+ blockquote {
859
+ border: 1px solid #000;
860
+ padding: 6px;
861
+ page-break-inside: avoid;
862
+ }
863
+
864
+ thead {
865
+ display: table-header-group;
866
+ }
867
+
868
+ tr,
869
+ img {
870
+ page-break-inside: avoid;
871
+ }
872
+
873
+ img {
874
+ max-width: 100% !important;
875
+ }
876
+
877
+ p,
878
+ h2,
879
+ h3 {
880
+ orphans: 3;
881
+ widows: 3;
882
+ }
883
+
884
+ h2,
885
+ h3 {
886
+ page-break-after: avoid;
887
+ }
888
+
889
+ p a {
890
+ word-wrap: break-word;
891
+ }
892
+
893
+ select {
894
+ background: #fff !important;
895
+ }
896
+ }
897
+ }