@iamproperty/components 7.7.1--beta6 → 7.7.1--beta8

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 (593) hide show
  1. package/README.md +4 -4
  2. package/assets/bootstrap/README.md +247 -247
  3. package/assets/bootstrap/js/index.esm.js +19 -19
  4. package/assets/bootstrap/js/index.umd.js +34 -34
  5. package/assets/bootstrap/js/src/alert.js +87 -87
  6. package/assets/bootstrap/js/src/base-component.js +85 -85
  7. package/assets/bootstrap/js/src/button.js +72 -72
  8. package/assets/bootstrap/js/src/carousel.js +475 -475
  9. package/assets/bootstrap/js/src/collapse.js +302 -302
  10. package/assets/bootstrap/js/src/dom/data.js +55 -55
  11. package/assets/bootstrap/js/src/dom/event-handler.js +320 -320
  12. package/assets/bootstrap/js/src/dom/manipulator.js +71 -71
  13. package/assets/bootstrap/js/src/dom/selector-engine.js +83 -83
  14. package/assets/bootstrap/js/src/dropdown.js +445 -445
  15. package/assets/bootstrap/js/src/modal.js +373 -373
  16. package/assets/bootstrap/js/src/offcanvas.js +283 -283
  17. package/assets/bootstrap/js/src/popover.js +97 -97
  18. package/assets/bootstrap/js/src/scrollspy.js +290 -290
  19. package/assets/bootstrap/js/src/tab.js +307 -307
  20. package/assets/bootstrap/js/src/toast.js +220 -220
  21. package/assets/bootstrap/js/src/tooltip.js +651 -651
  22. package/assets/bootstrap/js/src/util/backdrop.js +149 -149
  23. package/assets/bootstrap/js/src/util/component-functions.js +34 -34
  24. package/assets/bootstrap/js/src/util/config.js +66 -66
  25. package/assets/bootstrap/js/src/util/focustrap.js +115 -115
  26. package/assets/bootstrap/js/src/util/index.js +336 -336
  27. package/assets/bootstrap/js/src/util/sanitizer.js +118 -118
  28. package/assets/bootstrap/js/src/util/scrollbar.js +114 -114
  29. package/assets/bootstrap/js/src/util/swipe.js +146 -146
  30. package/assets/bootstrap/js/src/util/template-factory.js +160 -160
  31. package/assets/bootstrap/package.json +180 -180
  32. package/assets/bootstrap/scss/_accordion.scss +146 -146
  33. package/assets/bootstrap/scss/_button-group.scss +142 -142
  34. package/assets/bootstrap/scss/_buttons.scss +186 -186
  35. package/assets/bootstrap/scss/_carousel.scss +229 -229
  36. package/assets/bootstrap/scss/_dropdown.scss +248 -248
  37. package/assets/bootstrap/scss/_functions.scss +302 -302
  38. package/assets/bootstrap/scss/_list-group.scss +191 -191
  39. package/assets/bootstrap/scss/_modal.scss +237 -237
  40. package/assets/bootstrap/scss/_nav.scss +172 -172
  41. package/assets/bootstrap/scss/_navbar.scss +276 -276
  42. package/assets/bootstrap/scss/_offcanvas.scss +143 -143
  43. package/assets/bootstrap/scss/_pagination.scss +109 -109
  44. package/assets/bootstrap/scss/_popover.scss +196 -196
  45. package/assets/bootstrap/scss/_toasts.scss +70 -70
  46. package/assets/bootstrap/scss/_variables-dark.scss +87 -87
  47. package/assets/bootstrap/scss/_variables.scss +1633 -1633
  48. package/assets/bootstrap/scss/bootstrap-utilities.scss +15 -15
  49. package/assets/bootstrap/scss/forms/_floating-labels.scss +74 -74
  50. package/assets/bootstrap/scss/forms/_input-group.scss +129 -129
  51. package/assets/bootstrap/scss/helpers/_focus-ring.scss +5 -5
  52. package/assets/bootstrap/scss/helpers/_icon-link.scss +25 -25
  53. package/assets/bootstrap/scss/mixins/_banner.scss +9 -9
  54. package/assets/bootstrap/scss/mixins/_color-mode.scss +21 -21
  55. package/assets/bootstrap/scss/mixins/_forms.scss +152 -152
  56. package/assets/bootstrap/scss/mixins/_table-variants.scss +24 -24
  57. package/assets/bootstrap/scss/mixins/_utilities.scss +97 -97
  58. package/assets/css/components/{header.css → header.component.css} +1 -1
  59. package/assets/css/components/header.component.css.map +1 -0
  60. package/assets/css/components/header.preload.css +1 -0
  61. package/assets/css/components/header.preload.css.map +1 -0
  62. package/assets/css/components/nav.component.css +1 -1
  63. package/assets/css/components/nav.component.css.map +1 -1
  64. package/assets/css/components/notification.css +1 -1
  65. package/assets/css/components/notification.css.map +1 -1
  66. package/assets/css/components/table-basic.global.css +1 -1
  67. package/assets/css/components/table-basic.global.css.map +1 -1
  68. package/assets/css/components/table.global.css +1 -1
  69. package/assets/css/components/table.global.css.map +1 -1
  70. package/assets/css/core.min.css +1 -1
  71. package/assets/css/core.min.css.map +1 -1
  72. package/assets/css/style.min.css +1 -1
  73. package/assets/css/style.min.css.map +1 -1
  74. package/assets/favicons/README.md +20 -20
  75. package/assets/favicons/browserconfig.xml +9 -9
  76. package/assets/favicons/manifest.json +31 -31
  77. package/assets/favicons/safari-pinned-tab.svg +35 -35
  78. package/assets/favicons/site.webmanifest +20 -20
  79. package/assets/js/components/accordion/accordion.component.js +14 -14
  80. package/assets/js/components/accordion/accordion.component.min.js +1 -1
  81. package/assets/js/components/accordion/accordion.component.min.js.map +1 -1
  82. package/assets/js/components/actionbar/actionbar.component.js +66 -66
  83. package/assets/js/components/actionbar/actionbar.component.min.js +1 -1
  84. package/assets/js/components/actionbar/actionbar.component.min.js.map +1 -1
  85. package/assets/js/components/address-lookup/address-lookup.component.js +58 -58
  86. package/assets/js/components/address-lookup/address-lookup.component.min.js +1 -1
  87. package/assets/js/components/address-lookup/address-lookup.component.min.js.map +1 -1
  88. package/assets/js/components/advanced-select/advanced-select.component.js +18 -18
  89. package/assets/js/components/advanced-select/advanced-select.component.min.js +1 -1
  90. package/assets/js/components/advanced-select/advanced-select.component.min.js.map +1 -1
  91. package/assets/js/components/applied-filters/applied-filters.component.js +6 -6
  92. package/assets/js/components/applied-filters/applied-filters.component.min.js +1 -1
  93. package/assets/js/components/applied-filters/applied-filters.component.min.js.map +1 -1
  94. package/assets/js/components/barchart/barchart.component.min.js +1 -1
  95. package/assets/js/components/barchart/barchart.component.min.js.map +1 -1
  96. package/assets/js/components/bento-grid/bento-grid.component.js +9 -9
  97. package/assets/js/components/bento-grid/bento-grid.component.min.js +1 -1
  98. package/assets/js/components/bento-grid/bento-grid.component.min.js.map +1 -1
  99. package/assets/js/components/calendar/calendar.component.min.js +1 -1
  100. package/assets/js/components/card/card.component.min.js +1 -1
  101. package/assets/js/components/card/card.component.min.js.map +1 -1
  102. package/assets/js/components/carousel/carousel.component.min.js +1 -1
  103. package/assets/js/components/collapsible-side/collapsible-side.component.js +20 -20
  104. package/assets/js/components/collapsible-side/collapsible-side.component.min.js +1 -1
  105. package/assets/js/components/collapsible-side/collapsible-side.component.min.js.map +1 -1
  106. package/assets/js/components/config/config.component.js +53 -53
  107. package/assets/js/components/config/config.component.min.js +1 -1
  108. package/assets/js/components/config/config.component.min.js.map +1 -1
  109. package/assets/js/components/content/content.component.js +9 -9
  110. package/assets/js/components/content/content.component.min.js +1 -1
  111. package/assets/js/components/content/content.component.min.js.map +1 -1
  112. package/assets/js/components/darkmode/darkmode.component.js +4 -4
  113. package/assets/js/components/darkmode/darkmode.component.min.js +1 -1
  114. package/assets/js/components/darkmode/darkmode.component.min.js.map +1 -1
  115. package/assets/js/components/doughnutchart/doughnutchart.component.min.js +1 -1
  116. package/assets/js/components/doughnutchart/doughnutchart.component.min.js.map +1 -1
  117. package/assets/js/components/fileupload/fileupload.component.js +16 -16
  118. package/assets/js/components/fileupload/fileupload.component.min.js +1 -1
  119. package/assets/js/components/fileupload/fileupload.component.min.js.map +1 -1
  120. package/assets/js/components/filter-card/filter-card.component.js +7 -7
  121. package/assets/js/components/filter-card/filter-card.component.min.js +1 -1
  122. package/assets/js/components/filter-card/filter-card.component.min.js.map +1 -1
  123. package/assets/js/components/filterlist/filterlist.component.min.js +1 -1
  124. package/assets/js/components/form/form.component.js +4 -4
  125. package/assets/js/components/form/form.component.min.js +1 -1
  126. package/assets/js/components/form/form.component.min.js.map +1 -1
  127. package/assets/js/components/header/header.component.js +54 -54
  128. package/assets/js/components/header/header.component.min.js +2 -2
  129. package/assets/js/components/header/header.component.min.js.map +1 -1
  130. package/assets/js/components/inline-edit/inline-edit.component.js +16 -16
  131. package/assets/js/components/inline-edit/inline-edit.component.min.js +1 -1
  132. package/assets/js/components/inline-edit/inline-edit.component.min.js.map +1 -1
  133. package/assets/js/components/input/input.component.js +10 -10
  134. package/assets/js/components/input/input.component.min.js +1 -1
  135. package/assets/js/components/input/input.component.min.js.map +1 -1
  136. package/assets/js/components/input-range/input-range.component.js +8 -8
  137. package/assets/js/components/input-range/input-range.component.min.js +1 -1
  138. package/assets/js/components/input-range/input-range.component.min.js.map +1 -1
  139. package/assets/js/components/marketing/marketing.component.js +10 -10
  140. package/assets/js/components/marketing/marketing.component.min.js +1 -1
  141. package/assets/js/components/marketing/marketing.component.min.js.map +1 -1
  142. package/assets/js/components/menu/menu.component.js +6 -6
  143. package/assets/js/components/menu/menu.component.min.js +1 -1
  144. package/assets/js/components/menu/menu.component.min.js.map +1 -1
  145. package/assets/js/components/milestone/milestone.component.min.js +1 -1
  146. package/assets/js/components/milestone-group/milestone-group.component.min.js +1 -1
  147. package/assets/js/components/modal/modal.component.js +21 -21
  148. package/assets/js/components/modal/modal.component.min.js +1 -1
  149. package/assets/js/components/modal/modal.component.min.js.map +1 -1
  150. package/assets/js/components/multi-step/multi-step.component.min.js +1 -1
  151. package/assets/js/components/multi-step-modal/multi-step-modal.component.js +11 -11
  152. package/assets/js/components/multi-step-modal/multi-step-modal.component.min.js +1 -1
  153. package/assets/js/components/multi-step-modal/multi-step-modal.component.min.js.map +1 -1
  154. package/assets/js/components/multiselect/multiselect.component.js +20 -20
  155. package/assets/js/components/multiselect/multiselect.component.min.js +1 -1
  156. package/assets/js/components/multiselect/multiselect.component.min.js.map +1 -1
  157. package/assets/js/components/nav/nav.component.js +45 -45
  158. package/assets/js/components/nav/nav.component.min.js +2 -2
  159. package/assets/js/components/nav/nav.component.min.js.map +1 -1
  160. package/assets/js/components/notification/notification.component.js +14 -13
  161. package/assets/js/components/notification/notification.component.min.js +5 -4
  162. package/assets/js/components/notification/notification.component.min.js.map +1 -1
  163. package/assets/js/components/pagination/pagination.component.js +39 -39
  164. package/assets/js/components/pagination/pagination.component.min.js +1 -1
  165. package/assets/js/components/pagination/pagination.component.min.js.map +1 -1
  166. package/assets/js/components/password/password.component.js +10 -10
  167. package/assets/js/components/password/password.component.min.js +1 -1
  168. package/assets/js/components/password/password.component.min.js.map +1 -1
  169. package/assets/js/components/popover/popover.component.js +7 -7
  170. package/assets/js/components/popover/popover.component.min.js +1 -1
  171. package/assets/js/components/popover/popover.component.min.js.map +1 -1
  172. package/assets/js/components/rank/rank.component.js +359 -359
  173. package/assets/js/components/rank/rank.component.min.js +1 -1
  174. package/assets/js/components/rank/rank.component.min.js.map +1 -1
  175. package/assets/js/components/rankings/rankings.component.js +16 -16
  176. package/assets/js/components/rankings/rankings.component.min.js +1 -1
  177. package/assets/js/components/rankings/rankings.component.min.js.map +1 -1
  178. package/assets/js/components/rating/rating.component.js +9 -9
  179. package/assets/js/components/rating/rating.component.min.js +1 -1
  180. package/assets/js/components/rating/rating.component.min.js.map +1 -1
  181. package/assets/js/components/record-card/record-card.component.min.js +1 -1
  182. package/assets/js/components/record-card/record-card.component.min.js.map +1 -1
  183. package/assets/js/components/search/search.component.js +17 -17
  184. package/assets/js/components/search/search.component.min.js +1 -1
  185. package/assets/js/components/search/search.component.min.js.map +1 -1
  186. package/assets/js/components/slider/slider.component.js +12 -12
  187. package/assets/js/components/slider/slider.component.min.js +1 -1
  188. package/assets/js/components/slider/slider.component.min.js.map +1 -1
  189. package/assets/js/components/split-button/split-button.component.js +18 -18
  190. package/assets/js/components/split-button/split-button.component.min.js +1 -1
  191. package/assets/js/components/split-button/split-button.component.min.js.map +1 -1
  192. package/assets/js/components/std-address-lookup/std-address-lookup.component.js +113 -113
  193. package/assets/js/components/std-address-lookup/std-address-lookup.component.min.js +1 -1
  194. package/assets/js/components/std-address-lookup/std-address-lookup.component.min.js.map +1 -1
  195. package/assets/js/components/table/table.component.js +15 -15
  196. package/assets/js/components/table/table.component.min.js +2 -2
  197. package/assets/js/components/table/table.component.min.js.map +1 -1
  198. package/assets/js/components/table-ajax/table-ajax.component.js +15 -15
  199. package/assets/js/components/table-ajax/table-ajax.component.min.js +2 -2
  200. package/assets/js/components/table-ajax/table-ajax.component.min.js.map +1 -1
  201. package/assets/js/components/table-basic/table-basic.component.js +15 -15
  202. package/assets/js/components/table-basic/table-basic.component.min.js +2 -2
  203. package/assets/js/components/table-basic/table-basic.component.min.js.map +1 -1
  204. package/assets/js/components/table-no-submit/table-no-submit.component.js +15 -15
  205. package/assets/js/components/table-no-submit/table-no-submit.component.min.js +2 -2
  206. package/assets/js/components/table-no-submit/table-no-submit.component.min.js.map +1 -1
  207. package/assets/js/components/table-submit/table-submit.component.js +15 -15
  208. package/assets/js/components/table-submit/table-submit.component.min.js +2 -2
  209. package/assets/js/components/table-submit/table-submit.component.min.js.map +1 -1
  210. package/assets/js/components/tabs/tabs.component.js +17 -17
  211. package/assets/js/components/tabs/tabs.component.min.js +1 -1
  212. package/assets/js/components/tabs/tabs.component.min.js.map +1 -1
  213. package/assets/js/components/tag/tag.component.js +12 -12
  214. package/assets/js/components/tag/tag.component.min.js +1 -1
  215. package/assets/js/components/tag/tag.component.min.js.map +1 -1
  216. package/assets/js/components/tooltip/tooltip.component.js +8 -8
  217. package/assets/js/components/tooltip/tooltip.component.min.js +1 -1
  218. package/assets/js/components/tooltip/tooltip.component.min.js.map +1 -1
  219. package/assets/js/components/video/video.component.js +9 -9
  220. package/assets/js/components/video/video.component.min.js +1 -1
  221. package/assets/js/components/video/video.component.min.js.map +1 -1
  222. package/assets/js/components/video-card/video-card.component.js +12 -12
  223. package/assets/js/components/video-card/video-card.component.min.js +1 -1
  224. package/assets/js/components/video-card/video-card.component.min.js.map +1 -1
  225. package/assets/js/components/video-modal/video-modal.component.js +13 -13
  226. package/assets/js/components/video-modal/video-modal.component.min.js +1 -1
  227. package/assets/js/components/video-modal/video-modal.component.min.js.map +1 -1
  228. package/assets/js/components/word-count/word-count.component.min.js +1 -1
  229. package/assets/js/modules/card.module.js +14 -14
  230. package/assets/js/modules/chart.module.js +4 -4
  231. package/assets/js/modules/integration-tests.js +3 -3
  232. package/assets/js/modules/table.js +2 -2
  233. package/assets/js/modules/videos.js +6 -6
  234. package/assets/js/scripts.bundle.js +1 -1
  235. package/assets/js/scripts.bundle.js.map +1 -1
  236. package/assets/js/scripts.bundle.min.js +1 -1
  237. package/assets/js/scripts.bundle.min.js.map +1 -1
  238. package/assets/sass/_bs_grid.scss +41 -41
  239. package/assets/sass/_bs_utilities.scss +51 -51
  240. package/assets/sass/_components.scss +151 -162
  241. package/assets/sass/_corefiles.scss +31 -31
  242. package/assets/sass/_elements.scss +30 -30
  243. package/assets/sass/_fonts.scss +28 -28
  244. package/assets/sass/_func.scss +2 -2
  245. package/assets/sass/_functions/bs_functions.scss +487 -487
  246. package/assets/sass/_functions/bs_mixins.scss +2103 -2103
  247. package/assets/sass/_functions/bs_utilities.scss +922 -922
  248. package/assets/sass/_functions/bs_variables.scss +1701 -1701
  249. package/assets/sass/_functions/functions.scss +48 -48
  250. package/assets/sass/_functions/mixins.scss +1 -1
  251. package/assets/sass/_grid.scss +320 -320
  252. package/assets/sass/_print.scss +64 -64
  253. package/assets/sass/_utilities.scss +35 -35
  254. package/assets/sass/components/actionbar.component.scss +421 -421
  255. package/assets/sass/components/actionbar.global.scss +115 -115
  256. package/assets/sass/components/address-lookup.component.scss +160 -160
  257. package/assets/sass/components/address-lookup.preload.scss +90 -90
  258. package/assets/sass/components/applied-filters.scss +19 -19
  259. package/assets/sass/components/barchart.component.scss +347 -347
  260. package/assets/sass/components/bento-grid.component.scss +109 -109
  261. package/assets/sass/components/bento-grid.global.scss +248 -248
  262. package/assets/sass/components/calendar.component.scss +1272 -1272
  263. package/assets/sass/components/calendar.config.scss +423 -423
  264. package/assets/sass/components/card.component.scss +187 -187
  265. package/assets/sass/components/card.module.scss +154 -154
  266. package/assets/sass/components/carousel.component.scss +631 -631
  267. package/assets/sass/components/carousel.config.scss +84 -84
  268. package/assets/sass/components/charts.config.scss +86 -86
  269. package/assets/sass/components/charts.module.scss +588 -588
  270. package/assets/sass/components/charts.scss +1298 -1298
  271. package/assets/sass/components/collapsible-side.scss +307 -307
  272. package/assets/sass/components/config.component.scss +235 -235
  273. package/assets/sass/components/content.component.scss +18 -18
  274. package/assets/sass/components/darkmode.component.scss +20 -20
  275. package/assets/sass/components/doughnutchart.component.scss +206 -206
  276. package/assets/sass/components/fileupload.scss +162 -162
  277. package/assets/sass/components/filter-card.component.scss +99 -99
  278. package/assets/sass/components/{header.scss → header.component.scss} +249 -251
  279. package/assets/sass/components/header.preload.scss +26 -0
  280. package/assets/sass/components/inline-edit.preload.scss +203 -203
  281. package/assets/sass/components/inline-edit.scss +40 -40
  282. package/assets/sass/components/input-range.component.scss +46 -46
  283. package/assets/sass/components/input.component.scss +101 -101
  284. package/assets/sass/components/marketing.component.scss +65 -65
  285. package/assets/sass/components/menu.component.scss +161 -161
  286. package/assets/sass/components/menu.global.scss +82 -82
  287. package/assets/sass/components/milestone.scss +216 -216
  288. package/assets/sass/components/modal.component.scss +252 -252
  289. package/assets/sass/components/multi-step-modal.component.scss +255 -255
  290. package/assets/sass/components/multi-step-modal.global.scss +91 -91
  291. package/assets/sass/components/multi-step.component.scss +144 -144
  292. package/assets/sass/components/multiselect.preload.scss +8 -8
  293. package/assets/sass/components/multiselect.scss +238 -238
  294. package/assets/sass/components/nav.component.scss +718 -718
  295. package/assets/sass/components/nav.docs.scss +55 -55
  296. package/assets/sass/components/nav.global.scss +870 -870
  297. package/assets/sass/components/nav.preload.scss +54 -54
  298. package/assets/sass/components/notification.scss +204 -217
  299. package/assets/sass/components/pagination.scss +237 -237
  300. package/assets/sass/components/password.component.scss +55 -55
  301. package/assets/sass/components/popover.component.scss +28 -28
  302. package/assets/sass/components/property-searchbar.scss +139 -139
  303. package/assets/sass/components/rank.component.scss +275 -275
  304. package/assets/sass/components/rankings.component.scss +70 -70
  305. package/assets/sass/components/rankings.global.scss +140 -140
  306. package/assets/sass/components/rating.component.css +211 -211
  307. package/assets/sass/components/record-card.component.scss +191 -191
  308. package/assets/sass/components/slider.scss +127 -127
  309. package/assets/sass/components/snapshot.scss +65 -65
  310. package/assets/sass/components/split-button.component.scss +83 -83
  311. package/assets/sass/components/stepper.scss +157 -157
  312. package/assets/sass/components/table-basic.component.scss +136 -136
  313. package/assets/sass/components/table-basic.global.scss +676 -676
  314. package/assets/sass/components/table.component.scss +51 -51
  315. package/assets/sass/components/table.global.scss +399 -398
  316. package/assets/sass/components/tabs.component.scss +34 -34
  317. package/assets/sass/components/tabs.config.scss +258 -258
  318. package/assets/sass/components/tag.component.scss +59 -59
  319. package/assets/sass/components/tag.preload.scss +20 -20
  320. package/assets/sass/components/testimonial.scss +125 -125
  321. package/assets/sass/components/timeline.scss +92 -92
  322. package/assets/sass/components/tooltip.component.scss +148 -148
  323. package/assets/sass/components/video-card.component.scss +48 -48
  324. package/assets/sass/components/video-modal.component.scss +26 -26
  325. package/assets/sass/components/video.component.scss +74 -74
  326. package/assets/sass/components/word-count.component.scss +26 -26
  327. package/assets/sass/core.scss +4 -4
  328. package/assets/sass/elements/admin-panel.css +310 -310
  329. package/assets/sass/elements/badge-tag.css +101 -101
  330. package/assets/sass/elements/brand.css +80 -80
  331. package/assets/sass/elements/button__group.css +135 -135
  332. package/assets/sass/elements/buttons--action.css +71 -71
  333. package/assets/sass/elements/buttons--compact.css +168 -168
  334. package/assets/sass/elements/buttons--global.css +239 -239
  335. package/assets/sass/elements/buttons--secondary.css +18 -18
  336. package/assets/sass/elements/buttons--special.css +164 -164
  337. package/assets/sass/elements/buttons--tertiary.css +51 -51
  338. package/assets/sass/elements/buttons.scss +9 -9
  339. package/assets/sass/elements/code.css +45 -45
  340. package/assets/sass/elements/container.scss +118 -118
  341. package/assets/sass/elements/details.css +224 -224
  342. package/assets/sass/elements/dialog.scss +75 -75
  343. package/assets/sass/elements/dropdown.css +85 -85
  344. package/assets/sass/elements/feature.css +174 -174
  345. package/assets/sass/elements/forms.scss +1337 -1337
  346. package/assets/sass/elements/highlight.css +76 -76
  347. package/assets/sass/elements/hr.css +41 -41
  348. package/assets/sass/elements/icons.css +48 -48
  349. package/assets/sass/elements/input.scss +212 -212
  350. package/assets/sass/elements/label.css +20 -20
  351. package/assets/sass/elements/links--collapsible-side.scss +129 -129
  352. package/assets/sass/elements/links--global.scss +155 -155
  353. package/assets/sass/elements/links--video.scss +73 -73
  354. package/assets/sass/elements/links.scss +4 -4
  355. package/assets/sass/elements/lists--breadcrumbs.scss +26 -26
  356. package/assets/sass/elements/lists--steps.css +171 -171
  357. package/assets/sass/elements/lists--tick-list.scss +112 -112
  358. package/assets/sass/elements/lists.scss +99 -99
  359. package/assets/sass/elements/media.css +20 -20
  360. package/assets/sass/elements/modal.scss +411 -411
  361. package/assets/sass/elements/popover.scss +259 -259
  362. package/assets/sass/elements/prefix.scss +139 -139
  363. package/assets/sass/elements/progress.scss +208 -208
  364. package/assets/sass/elements/table.element.scss +144 -144
  365. package/assets/sass/elements/textarea.css +84 -84
  366. package/assets/sass/elements/toggle-button.css +49 -49
  367. package/assets/sass/elements/tooltips.scss +152 -152
  368. package/assets/sass/elements/type.css +166 -166
  369. package/assets/sass/email.scss +68 -68
  370. package/assets/sass/error.scss +31 -31
  371. package/assets/sass/foundations/animations.scss +2 -2
  372. package/assets/sass/foundations/colours.scss +104 -104
  373. package/assets/sass/foundations/reboot.scss +166 -166
  374. package/assets/sass/foundations/root.scss +269 -269
  375. package/assets/sass/main.scss +7 -7
  376. package/assets/sass/templates/auth.scss +106 -106
  377. package/assets/sass/templates/form.scss +95 -95
  378. package/assets/sass/utilities/align.css +24 -24
  379. package/assets/sass/utilities/border.css +65 -65
  380. package/assets/sass/utilities/clearfix.css +8 -8
  381. package/assets/sass/utilities/colours.scss +43 -43
  382. package/assets/sass/utilities/columns.css +61 -61
  383. package/assets/sass/utilities/display.scss +89 -89
  384. package/assets/sass/utilities/fixed.css +16 -16
  385. package/assets/sass/utilities/flex.scss +291 -291
  386. package/assets/sass/utilities/font-awesome-iso-fallbacks.css +43 -43
  387. package/assets/sass/utilities/gap.css +25 -25
  388. package/assets/sass/utilities/gradients.css +39 -39
  389. package/assets/sass/utilities/js-display.css +12 -12
  390. package/assets/sass/utilities/line-clamp.css +24 -24
  391. package/assets/sass/utilities/margins.scss +74 -74
  392. package/assets/sass/utilities/max-height.scss +93 -93
  393. package/assets/sass/utilities/opacity.css +20 -20
  394. package/assets/sass/utilities/order.css +104 -104
  395. package/assets/sass/utilities/overflow.css +16 -16
  396. package/assets/sass/utilities/paddings.scss +33 -33
  397. package/assets/sass/utilities/pointer-events.css +8 -8
  398. package/assets/sass/utilities/position.css +67 -67
  399. package/assets/sass/utilities/ratio.css +33 -33
  400. package/assets/sass/utilities/rounded.css +56 -56
  401. package/assets/sass/utilities/shadow.css +6 -6
  402. package/assets/sass/utilities/sizes.css +92 -92
  403. package/assets/sass/utilities/sticky.css +38 -38
  404. package/assets/sass/utilities/text-truncate.css +6 -6
  405. package/assets/sass/utilities/text.css +190 -190
  406. package/assets/sass/utilities/visible.css +8 -8
  407. package/assets/sass/utilities/visually-hidden.css +13 -13
  408. package/assets/sass/utilities/wider-colours.scss +8 -8
  409. package/assets/svg/illustrations/table.svg +165 -165
  410. package/assets/svg/logo.svg +56 -56
  411. package/assets/ts/components/accordion/accordion.component.ts +77 -77
  412. package/assets/ts/components/actionbar/actionbar.component.ts +567 -567
  413. package/assets/ts/components/address-lookup/address-lookup.component.ts +672 -672
  414. package/assets/ts/components/advanced-select/advanced-select.component.ts +116 -116
  415. package/assets/ts/components/applied-filters/applied-filters.component.ts +37 -37
  416. package/assets/ts/components/bento-grid/bento-grid.component.ts +88 -88
  417. package/assets/ts/components/collapsible-side/collapsible-side.component.ts +165 -165
  418. package/assets/ts/components/config/config.component.ts +699 -699
  419. package/assets/ts/components/content/content.component.ts +78 -78
  420. package/assets/ts/components/darkmode/darkmode.component.ts +108 -108
  421. package/assets/ts/components/fileupload/fileupload.component.ts +74 -74
  422. package/assets/ts/components/filter-card/filter-card.component.ts +106 -106
  423. package/assets/ts/components/form/form.component.ts +102 -102
  424. package/assets/ts/components/header/header.component.ts +97 -97
  425. package/assets/ts/components/inline-edit/inline-edit.component.ts +212 -212
  426. package/assets/ts/components/input/input.component.ts +278 -278
  427. package/assets/ts/components/input-range/input-range.component.ts +78 -78
  428. package/assets/ts/components/marketing/marketing.component.ts +44 -44
  429. package/assets/ts/components/menu/menu.component.ts +212 -212
  430. package/assets/ts/components/modal/modal.component.ts +184 -184
  431. package/assets/ts/components/multi-step-modal/multi-step-modal.component.ts +304 -304
  432. package/assets/ts/components/multiselect/multiselect.component.ts +349 -349
  433. package/assets/ts/components/nav/nav.component.ts +369 -369
  434. package/assets/ts/components/notification/notification.component.ts +173 -172
  435. package/assets/ts/components/pagination/pagination.component.ts +213 -213
  436. package/assets/ts/components/password/password.component.ts +118 -118
  437. package/assets/ts/components/popover/popover.component.ts +50 -50
  438. package/assets/ts/components/rank/rank.component.ts +394 -394
  439. package/assets/ts/components/rankings/rankings.component.ts +79 -79
  440. package/assets/ts/components/rating/rating.component.ts +86 -86
  441. package/assets/ts/components/search/search.component.ts +244 -244
  442. package/assets/ts/components/slider/slider.component.ts +170 -170
  443. package/assets/ts/components/split-button/split-button.component.ts +63 -63
  444. package/assets/ts/components/std-address-lookup/std-address-lookup.component.ts +1919 -1919
  445. package/assets/ts/components/table/table.component.ts +94 -94
  446. package/assets/ts/components/table-ajax/table-ajax.component.ts +70 -70
  447. package/assets/ts/components/table-basic/table-basic.component.ts +56 -56
  448. package/assets/ts/components/table-no-submit/table-no-submit.component.ts +130 -130
  449. package/assets/ts/components/table-submit/table-submit.component.ts +71 -71
  450. package/assets/ts/components/tabs/tabs.component.ts +70 -70
  451. package/assets/ts/components/tag/tag.component.ts +104 -104
  452. package/assets/ts/components/tooltip/tooltip.component.ts +98 -98
  453. package/assets/ts/components/video/video.component.ts +74 -74
  454. package/assets/ts/components/video-card/video-card.component.ts +129 -129
  455. package/assets/ts/components/video-modal/video-modal.component.ts +88 -88
  456. package/assets/ts/modules/advanced-select.ts +186 -186
  457. package/assets/ts/modules/applied-filters.ts +238 -238
  458. package/assets/ts/modules/card.module.ts +46 -46
  459. package/assets/ts/modules/chart.module.ts +594 -594
  460. package/assets/ts/modules/data-layer.md +71 -71
  461. package/assets/ts/modules/dialogs.ts +259 -259
  462. package/assets/ts/modules/dropdown.ts +216 -216
  463. package/assets/ts/modules/helper.test.ts +143 -143
  464. package/assets/ts/modules/helpers.ts +212 -212
  465. package/assets/ts/modules/integration-tests.ts +525 -525
  466. package/assets/ts/modules/modal.ts +45 -45
  467. package/assets/ts/modules/password.ts +82 -82
  468. package/assets/ts/modules/table.ts +1500 -1500
  469. package/assets/ts/modules/test.ts +22 -22
  470. package/assets/ts/modules/videos.ts +233 -233
  471. package/assets/ts/scripts.ts +111 -111
  472. package/dist/components.es.js +25 -25
  473. package/dist/components.umd.js +10 -9
  474. package/package.json +115 -115
  475. package/src/components/AdvancedSelect/AdvancedSelect.vue +28 -28
  476. package/src/components/Config/Config.vue +23 -23
  477. package/src/components/DarkMode/DarkMode.vue +19 -19
  478. package/src/components/Filterlist/Filterlist.vue +23 -23
  479. package/src/components/Form/Form.vue +22 -22
  480. package/src/components/Header/Header.vue +36 -36
  481. package/src/components/Input/Input.vue +22 -22
  482. package/src/components/InputRange/InputRange.vue +22 -22
  483. package/src/components/Modal/Modal.vue +22 -22
  484. package/src/components/MultiStepModal/MultiStepModal.vue +23 -23
  485. package/src/components/NoteFeed/NoteFeed.vue +82 -82
  486. package/src/components/Password/Password.vue +23 -23
  487. package/src/components/Popover/Popover.vue +22 -22
  488. package/src/components/PropertySearchbar/PropertySearchbar.vue +235 -235
  489. package/src/components/PropertySearchbar/README.md +25 -25
  490. package/src/components/Rating/Rating.vue +22 -22
  491. package/src/components/STDAddressLookup/STDAddressLookup.vue +22 -22
  492. package/src/components/Snapshot/Snapshot.vue +30 -30
  493. package/src/components/Tag/Tag.vue +22 -22
  494. package/src/components/Tooltip/Tooltip.vue +22 -22
  495. package/src/components/Video/Video.vue +22 -22
  496. package/src/components/VideoModal/VideoModal.vue +22 -22
  497. package/assets/bootstrap/dist/css/bootstrap-grid.css +0 -4124
  498. package/assets/bootstrap/dist/css/bootstrap-grid.css.map +0 -1
  499. package/assets/bootstrap/dist/css/bootstrap-grid.min.css +0 -7
  500. package/assets/bootstrap/dist/css/bootstrap-grid.min.css.map +0 -1
  501. package/assets/bootstrap/dist/css/bootstrap-grid.rtl.css +0 -4123
  502. package/assets/bootstrap/dist/css/bootstrap-grid.rtl.css.map +0 -1
  503. package/assets/bootstrap/dist/css/bootstrap-grid.rtl.min.css +0 -7
  504. package/assets/bootstrap/dist/css/bootstrap-grid.rtl.min.css.map +0 -1
  505. package/assets/bootstrap/dist/css/bootstrap-reboot.css +0 -488
  506. package/assets/bootstrap/dist/css/bootstrap-reboot.css.map +0 -1
  507. package/assets/bootstrap/dist/css/bootstrap-reboot.min.css +0 -7
  508. package/assets/bootstrap/dist/css/bootstrap-reboot.min.css.map +0 -1
  509. package/assets/bootstrap/dist/css/bootstrap-reboot.rtl.css +0 -485
  510. package/assets/bootstrap/dist/css/bootstrap-reboot.rtl.css.map +0 -1
  511. package/assets/bootstrap/dist/css/bootstrap-reboot.rtl.min.css +0 -7
  512. package/assets/bootstrap/dist/css/bootstrap-reboot.rtl.min.css.map +0 -1
  513. package/assets/bootstrap/dist/css/bootstrap-utilities.css +0 -4197
  514. package/assets/bootstrap/dist/css/bootstrap-utilities.css.map +0 -1
  515. package/assets/bootstrap/dist/css/bootstrap-utilities.min.css +0 -7
  516. package/assets/bootstrap/dist/css/bootstrap-utilities.min.css.map +0 -1
  517. package/assets/bootstrap/dist/css/bootstrap-utilities.rtl.css +0 -4188
  518. package/assets/bootstrap/dist/css/bootstrap-utilities.rtl.css.map +0 -1
  519. package/assets/bootstrap/dist/css/bootstrap-utilities.rtl.min.css +0 -7
  520. package/assets/bootstrap/dist/css/bootstrap-utilities.rtl.min.css.map +0 -1
  521. package/assets/bootstrap/dist/css/bootstrap.css +0 -10907
  522. package/assets/bootstrap/dist/css/bootstrap.css.map +0 -1
  523. package/assets/bootstrap/dist/css/bootstrap.min.css +0 -7
  524. package/assets/bootstrap/dist/css/bootstrap.min.css.map +0 -1
  525. package/assets/bootstrap/dist/css/bootstrap.rtl.css +0 -10867
  526. package/assets/bootstrap/dist/css/bootstrap.rtl.css.map +0 -1
  527. package/assets/bootstrap/dist/css/bootstrap.rtl.min.css +0 -7
  528. package/assets/bootstrap/dist/css/bootstrap.rtl.min.css.map +0 -1
  529. package/assets/bootstrap/dist/js/bootstrap.bundle.js +0 -7066
  530. package/assets/bootstrap/dist/js/bootstrap.bundle.js.map +0 -1
  531. package/assets/bootstrap/dist/js/bootstrap.bundle.min.js +0 -7
  532. package/assets/bootstrap/dist/js/bootstrap.bundle.min.js.map +0 -1
  533. package/assets/bootstrap/dist/js/bootstrap.esm.js +0 -5204
  534. package/assets/bootstrap/dist/js/bootstrap.esm.js.map +0 -1
  535. package/assets/bootstrap/dist/js/bootstrap.esm.min.js +0 -7
  536. package/assets/bootstrap/dist/js/bootstrap.esm.min.js.map +0 -1
  537. package/assets/bootstrap/dist/js/bootstrap.js +0 -5251
  538. package/assets/bootstrap/dist/js/bootstrap.js.map +0 -1
  539. package/assets/bootstrap/dist/js/bootstrap.min.js +0 -7
  540. package/assets/bootstrap/dist/js/bootstrap.min.js.map +0 -1
  541. package/assets/bootstrap/js/dist/alert.js +0 -100
  542. package/assets/bootstrap/js/dist/alert.js.map +0 -1
  543. package/assets/bootstrap/js/dist/base-component.js +0 -100
  544. package/assets/bootstrap/js/dist/base-component.js.map +0 -1
  545. package/assets/bootstrap/js/dist/button.js +0 -82
  546. package/assets/bootstrap/js/dist/button.js.map +0 -1
  547. package/assets/bootstrap/js/dist/carousel.js +0 -471
  548. package/assets/bootstrap/js/dist/carousel.js.map +0 -1
  549. package/assets/bootstrap/js/dist/collapse.js +0 -311
  550. package/assets/bootstrap/js/dist/collapse.js.map +0 -1
  551. package/assets/bootstrap/js/dist/dom/data.js +0 -67
  552. package/assets/bootstrap/js/dist/dom/data.js.map +0 -1
  553. package/assets/bootstrap/js/dist/dom/event-handler.js +0 -284
  554. package/assets/bootstrap/js/dist/dom/event-handler.js.map +0 -1
  555. package/assets/bootstrap/js/dist/dom/manipulator.js +0 -85
  556. package/assets/bootstrap/js/dist/dom/manipulator.js.map +0 -1
  557. package/assets/bootstrap/js/dist/dom/selector-engine.js +0 -86
  558. package/assets/bootstrap/js/dist/dom/selector-engine.js.map +0 -1
  559. package/assets/bootstrap/js/dist/dropdown.js +0 -471
  560. package/assets/bootstrap/js/dist/dropdown.js.map +0 -1
  561. package/assets/bootstrap/js/dist/modal.js +0 -397
  562. package/assets/bootstrap/js/dist/modal.js.map +0 -1
  563. package/assets/bootstrap/js/dist/offcanvas.js +0 -298
  564. package/assets/bootstrap/js/dist/offcanvas.js.map +0 -1
  565. package/assets/bootstrap/js/dist/popover.js +0 -102
  566. package/assets/bootstrap/js/dist/popover.js.map +0 -1
  567. package/assets/bootstrap/js/dist/scrollspy.js +0 -308
  568. package/assets/bootstrap/js/dist/scrollspy.js.map +0 -1
  569. package/assets/bootstrap/js/dist/tab.js +0 -334
  570. package/assets/bootstrap/js/dist/tab.js.map +0 -1
  571. package/assets/bootstrap/js/dist/toast.js +0 -237
  572. package/assets/bootstrap/js/dist/toast.js.map +0 -1
  573. package/assets/bootstrap/js/dist/tooltip.js +0 -663
  574. package/assets/bootstrap/js/dist/tooltip.js.map +0 -1
  575. package/assets/bootstrap/js/dist/util/backdrop.js +0 -166
  576. package/assets/bootstrap/js/dist/util/backdrop.js.map +0 -1
  577. package/assets/bootstrap/js/dist/util/component-functions.js +0 -47
  578. package/assets/bootstrap/js/dist/util/component-functions.js.map +0 -1
  579. package/assets/bootstrap/js/dist/util/config.js +0 -80
  580. package/assets/bootstrap/js/dist/util/config.js.map +0 -1
  581. package/assets/bootstrap/js/dist/util/focustrap.js +0 -130
  582. package/assets/bootstrap/js/dist/util/focustrap.js.map +0 -1
  583. package/assets/bootstrap/js/dist/util/index.js +0 -351
  584. package/assets/bootstrap/js/dist/util/index.js.map +0 -1
  585. package/assets/bootstrap/js/dist/util/sanitizer.js +0 -123
  586. package/assets/bootstrap/js/dist/util/sanitizer.js.map +0 -1
  587. package/assets/bootstrap/js/dist/util/scrollbar.js +0 -139
  588. package/assets/bootstrap/js/dist/util/scrollbar.js.map +0 -1
  589. package/assets/bootstrap/js/dist/util/swipe.js +0 -156
  590. package/assets/bootstrap/js/dist/util/swipe.js.map +0 -1
  591. package/assets/bootstrap/js/dist/util/template-factory.js +0 -178
  592. package/assets/bootstrap/js/dist/util/template-factory.js.map +0 -1
  593. package/assets/css/components/header.css.map +0 -1
@@ -1,2103 +1,2103 @@
1
- @use 'sass:map';
2
- @use 'sass:math';
3
- @use 'sass:meta';
4
- @use 'sass:list';
5
- @use 'sass:string';
6
-
7
- @use 'bs_variables' as *;
8
- @use 'bs_functions' as *;
9
-
10
- /* Utility generator */
11
- /* Used to generate utilities & print utilities */
12
- @mixin generate-utility($utility, $infix, $is-rfs-media-query: false) {
13
- $values: map.get($utility, values);
14
-
15
- /* If the values are a list or string, convert it into a map */
16
- @if meta.type-of($values) == 'string' or meta.type-of(list.nth($values, 1)) != 'list' {
17
- $values: list.zip($values, $values);
18
- }
19
-
20
- @each $key, $value in $values {
21
- $properties: map.get($utility, property);
22
-
23
- /* Multiple properties are possible, for example with vertical or horizontal margins or paddings */
24
- @if meta.type-of($properties) == 'string' {
25
- $properties: list.append((), $properties);
26
- }
27
-
28
- /* Use custom class if present */
29
- $property-class: if(map.has-key($utility, class), map.get($utility, class), list.nth($properties, 1));
30
- $property-class: if($property-class == null, '', $property-class);
31
-
32
- /* Use custom CSS variable name if present, otherwise default to `class` */
33
- $css-variable-name: if(
34
- map.has-key($utility, css-variable-name),
35
- map.get($utility, css-variable-name),
36
- map.get($utility, class)
37
- );
38
-
39
- /* State params to generate pseudo-classes */
40
- $state: if(map.has-key($utility, state), map.get($utility, state), ());
41
-
42
- $infix: if($property-class == '' and string.slice($infix, 1, 1) == '-', string.slice($infix, 2), $infix);
43
-
44
- /* Don't prefix if value key is null (eg. with shadow class) */
45
- $property-class-modifier: if($key, if($property-class == '' and $infix == '', '', '-') + $key, '');
46
-
47
- @if map.get($utility, rfs) {
48
- /* Inside the media query */
49
- @if $is-rfs-media-query {
50
- $val: rfs-value($value);
51
-
52
- /* Do not render anything if fluid and non fluid values are the same */
53
- $value: if($val == rfs-fluid-value($value), null, $val);
54
- } @else {
55
- $value: rfs-fluid-value($value);
56
- }
57
- }
58
-
59
- $is-css-var: map.get($utility, css-var);
60
- $is-local-vars: map.get($utility, local-vars);
61
- $is-rtl: map.get($utility, rtl);
62
-
63
- @if $value != null {
64
- @if $is-rtl == false {
65
- /* rtl:begin:remove */
66
- }
67
-
68
- @if $is-css-var {
69
- .#{$property-class + $infix + $property-class-modifier} {
70
- --#{$css-variable-name}: #{$value};
71
- }
72
-
73
- @each $pseudo in $state {
74
- .#{$property-class + $infix + $property-class-modifier}-#{$pseudo}:#{$pseudo} {
75
- --#{$css-variable-name}: #{$value};
76
- }
77
- }
78
- } @else {
79
- .#{$property-class + $infix + $property-class-modifier} {
80
- @each $property in $properties {
81
- @if $is-local-vars {
82
- @each $local-var, $variable in $is-local-vars {
83
- --#{$local-var}: #{$variable};
84
- }
85
- }
86
- #{$property}: $value !important;
87
- }
88
- }
89
-
90
- @each $pseudo in $state {
91
- .#{$property-class + $infix + $property-class-modifier}-#{$pseudo}:#{$pseudo} {
92
- @each $property in $properties {
93
- @if $is-local-vars {
94
- @each $local-var, $variable in $is-local-vars {
95
- --#{$local-var}: #{$variable};
96
- }
97
- }
98
- #{$property}: $value !important;
99
- }
100
- }
101
- }
102
- }
103
-
104
- @if $is-rtl == false {
105
- /* rtl:end:remove */
106
- }
107
- }
108
- }
109
- }
110
-
111
- /* #endregion */
112
-
113
- /* #region Boostrap Grid breakpoints */
114
- /* Breakpoint viewport sizes and media queries. */
115
- /* */
116
- /* Breakpoints are defined as a map of (name: minimum width), order from small to large: */
117
- /* */
118
- /* (xs: 0, sm: 576px, md: 768px, lg: 992px, xl: 1200px, xxl: 1400px) */
119
- /* */
120
- /* The map defined in the `$grid-breakpoints` global variable is used as the `$breakpoints` argument by default. */
121
-
122
- /* Name of the next breakpoint, or null for the last breakpoint. */
123
- /* */
124
- /* >> breakpoint-next(sm) */
125
- /* md */
126
- /* >> breakpoint-next(sm, (xs: 0, sm: 576px, md: 768px, lg: 992px, xl: 1200px, xxl: 1400px)) */
127
- /* md */
128
- /* >> breakpoint-next(sm, $breakpoint-names: (xs sm md lg xl xxl)) */
129
- /* md */
130
- @function breakpoint-next($name, $breakpoints: $grid-breakpoints, $breakpoint-names: map-keys($breakpoints)) {
131
- $n: index($breakpoint-names, $name);
132
- @if not $n {
133
- @error "breakpoint `#{$name}` not found in `#{$breakpoints}`";
134
- }
135
- @return if($n < length($breakpoint-names), list.nth($breakpoint-names, $n + 1), null);
136
- }
137
-
138
- /* Minimum breakpoint width. Null for the smallest (first) breakpoint. */
139
- /* */
140
- /* >> breakpoint-min(sm, (xs: 0, sm: 576px, md: 768px, lg: 992px, xl: 1200px, xxl: 1400px)) */
141
- /* 576px */
142
- @function breakpoint-min($name, $breakpoints: $grid-breakpoints) {
143
- $min: map.get($breakpoints, $name);
144
- @return if($min != 0, $min, null);
145
- }
146
-
147
- /* Maximum breakpoint width. */
148
- /* The maximum value is reduced by 0.02px to work around the limitations of */
149
- /* `min-` and `max-` prefixes and viewports with fractional widths. */
150
- /* See https://www.w3.org/TR/mediaqueries-4/#mq-min-max */
151
- /* Uses 0.02px rather than 0.01px to work around a current rounding bug in Safari. */
152
- /* See https://bugs.webkit.org/show_bug.cgi?id=178261 */
153
- /* */
154
- /* >> breakpoint-max(md, (xs: 0, sm: 576px, md: 768px, lg: 992px, xl: 1200px, xxl: 1400px)) */
155
- /* 767.98px */
156
- /*
157
- @function breakpoint-max($name, $breakpoints: $grid-breakpoints) {
158
- $max: map.get($breakpoints, $name);
159
- @return if($max and $max > 0, $max - 0.02, null);
160
- }
161
- */
162
- /* Returns a blank string if smallest breakpoint, otherwise returns the name with a dash in front. */
163
- /* Useful for making responsive utilities. */
164
- /* */
165
- /* >> breakpoint-infix(xs, (xs: 0, sm: 576px, md: 768px, lg: 992px, xl: 1200px, xxl: 1400px)) */
166
- /* "" (Returns a blank string) */
167
- /* >> breakpoint-infix(sm, (xs: 0, sm: 576px, md: 768px, lg: 992px, xl: 1200px, xxl: 1400px)) */
168
- /* "-sm" */
169
- @function breakpoint-infix($name, $breakpoints: $grid-breakpoints) {
170
- @return if(breakpoint-min($name, $breakpoints) == null, '', '-#{$name}');
171
- }
172
-
173
- /* Media of at most the maximum breakpoint width. No query for the largest breakpoint. */
174
- /* Makes the @content apply to the given breakpoint and narrower. */
175
- @mixin media-breakpoint-down($name, $breakpoints: $grid-breakpoints) {
176
- $max: breakpoint-max($name, $breakpoints);
177
- @if $max {
178
- @media (max-width: $max) {
179
- @content;
180
- }
181
- } @else {
182
- @content;
183
- }
184
- }
185
-
186
- /* Media that spans multiple breakpoint widths. */
187
- /* Makes the @content apply between the min and max breakpoints */
188
- @mixin media-breakpoint-between($lower, $upper, $breakpoints: $grid-breakpoints) {
189
- $min: breakpoint-min($lower, $breakpoints);
190
- $max: breakpoint-max($upper, $breakpoints);
191
-
192
- @if $min != null and $max != null {
193
- @media (min-width: $min) and (max-width: $max) {
194
- @content;
195
- }
196
- } @else if $max == null {
197
- @include media-breakpoint-up($lower, $breakpoints) {
198
- @content;
199
- }
200
- } @else if $min == null {
201
- @include media-breakpoint-down($upper, $breakpoints) {
202
- @content;
203
- }
204
- }
205
- }
206
-
207
- /* Media between the breakpoint's minimum and maximum widths. */
208
- /* No minimum for the smallest breakpoint, and no maximum for the largest one. */
209
- /* Makes the @content apply only to the given breakpoint, not viewports any wider or narrower. */
210
- @mixin media-breakpoint-only($name, $breakpoints: $grid-breakpoints) {
211
- $min: breakpoint-min($name, $breakpoints);
212
- $next: breakpoint-next($name, $breakpoints);
213
- $max: breakpoint-max($next, $breakpoints);
214
-
215
- @if $min != null and $max != null {
216
- @media (min-width: $min) and (max-width: $max) {
217
- @content;
218
- }
219
- } @else if $max == null {
220
- @include media-breakpoint-up($name, $breakpoints) {
221
- @content;
222
- }
223
- } @else if $min == null {
224
- @include media-breakpoint-down($next, $breakpoints) {
225
- @content;
226
- }
227
- }
228
- }
229
- /* #endregion */
230
-
231
- /* #region Bootstrap layout */
232
- /* scss-docs-start clearfix */
233
- /*
234
- @mixin clearfix() {
235
- &::after {
236
- display: block;
237
- clear: both;
238
- content: '';
239
- }
240
- }
241
- */
242
- /* scss-docs-end clearfix */
243
- /* Container mixins */
244
-
245
-
246
- /* Grid system */
247
- /* */
248
- /* Generate semantic grid columns with these mixins. */
249
-
250
- @mixin make-row($gutter: $grid-gutter-width) {
251
- --gutter-x: #{$gutter};
252
- --gutter-y: 0;
253
- display: flex;
254
- flex-wrap: wrap;
255
- /* TODO: Revisit calc order after https://github.com/react-bootstrap/react-bootstrap/issues/6039 is fixed */
256
- margin-top: calc(-1 * var(--gutter-y)); /* stylelint-disable-line function-disallowed-list */
257
- margin-right: calc(-0.5 * var(--gutter-x)); /* stylelint-disable-line function-disallowed-list */
258
- margin-left: calc(-0.5 * var(--gutter-x)); /* stylelint-disable-line function-disallowed-list */
259
- }
260
-
261
- @mixin make-col-ready() {
262
- /* Add box sizing if only the grid is loaded */
263
- box-sizing: if(meta.variable-exists(include-column-box-sizing) and $include-column-box-sizing, border-box, null);
264
- /* Prevent columns from becoming too narrow when at smaller grid tiers by */
265
- /* always setting `width: 100%;`. This works because we set the width */
266
- /* later on to override this initial width. */
267
- flex-shrink: 0;
268
- width: 100%;
269
- max-width: 100%; /* Prevent `.col-auto`, `.col` (& responsive variants) from breaking out the grid */
270
- padding-right: calc(var(--gutter-x) * 0.5); /* stylelint-disable-line function-disallowed-list */
271
- padding-left: calc(var(--gutter-x) * 0.5); /* stylelint-disable-line function-disallowed-list */
272
- margin-top: var(--gutter-y);
273
- }
274
-
275
- @mixin make-col($size: false, $columns: $grid-columns) {
276
- @if $size {
277
- flex: 0 0 auto;
278
- $width: math.div($size, 12);
279
- width: math.percentage($width);
280
- } @else {
281
- flex: 1 1 0;
282
- max-width: 100%;
283
- }
284
- }
285
-
286
- @mixin make-col-auto() {
287
- flex: 0 0 auto;
288
- width: auto;
289
- }
290
-
291
- @mixin make-col-offset($size, $columns: $grid-columns) {
292
- $num: math.div($size, $columns);
293
- margin-left: if($num == 0, 0, math.percentage($num));
294
- }
295
-
296
- /* Row columns */
297
- /* */
298
- /* Specify on a parent element(e.g., .row) to force immediate children into NN */
299
- /* number of columns. Supports wrapping to new lines, but does not do a Masonry */
300
- /* style grid. */
301
- @mixin row-cols($count) {
302
- > * {
303
- flex: 0 0 auto;
304
- width: math.div(100%, $count);
305
- }
306
- }
307
-
308
- /* Framework grid generation */
309
- /* */
310
- /* Used only by Bootstrap to generate the correct number of grid classes given */
311
- /* any value of `$grid-columns`. */
312
-
313
- @mixin make-grid-columns($columns: $grid-columns, $gutter: $grid-gutter-width, $breakpoints: $grid-breakpoints) {
314
- @each $breakpoint in map.keys($breakpoints) {
315
- $infix: breakpoint-infix($breakpoint, $breakpoints);
316
-
317
- @include media-breakpoint-up($breakpoint, $breakpoints) {
318
- /* Provide basic `.col-{bp}` classes for equal-width flexbox columns */
319
- .col#{$infix} {
320
- flex: 1 0 0%; /* Flexbugs #4: https://github.com/philipwalton/flexbugs#flexbug-4 */
321
- }
322
-
323
- .row-cols#{$infix}-auto > * {
324
- @include make-col-auto();
325
- }
326
-
327
- @if $grid-row-columns > 0 {
328
- @for $i from 1 through $grid-row-columns {
329
- .row-cols#{$infix}-#{$i} {
330
- @include row-cols($i);
331
- }
332
- }
333
- }
334
-
335
- .col#{$infix}-auto {
336
- @include make-col-auto();
337
- }
338
-
339
- @if $columns > 0 {
340
- @for $i from 1 through $columns {
341
- .col#{$infix}-#{$i} {
342
- @include make-col($i, $columns);
343
- }
344
- }
345
-
346
- /* `$columns - 1` because offsetting by the width of an entire row isn't possible */
347
- @for $i from 0 through ($columns - 1) {
348
- @if not($infix == '' and $i == 0) {
349
- /* Avoid emitting useless .offset-0 */
350
- .offset#{$infix}-#{$i} {
351
- @include make-col-offset($i, $columns);
352
- }
353
- }
354
- }
355
- }
356
-
357
- /* Gutters */
358
- /* */
359
- /* Make use of `.g-*`, `.gx-*` or `.gy-*` utilities to change spacing between the columns. */
360
- @each $key, $value in $gutters {
361
- .g#{$infix}-#{$key},
362
- .gx#{$infix}-#{$key} {
363
- --gutter-x: #{$value};
364
- }
365
-
366
- .g#{$infix}-#{$key},
367
- .gy#{$infix}-#{$key} {
368
- --gutter-y: #{$value};
369
- }
370
- }
371
- }
372
- }
373
- }
374
-
375
- @mixin make-cssgrid($columns: $grid-columns, $breakpoints: $grid-breakpoints) {
376
- @each $breakpoint in map-keys($breakpoints) {
377
- $infix: breakpoint-infix($breakpoint, $breakpoints);
378
-
379
- @include media-breakpoint-up($breakpoint, $breakpoints) {
380
- @if $columns > 0 {
381
- @for $i from 1 through $columns {
382
- .g-col#{$infix}-#{$i} {
383
- grid-column: auto / span $i;
384
- }
385
- }
386
-
387
- /* Start with `1` because `0` is and invalid value. */
388
- /* Ends with `$columns - 1` because offsetting by the width of an entire row isn't possible. */
389
- @for $i from 1 through ($columns - 1) {
390
- .g-start#{$infix}-#{$i} {
391
- grid-column-start: $i;
392
- }
393
- }
394
- }
395
- }
396
- }
397
- }
398
-
399
- /* #endregion */
400
-
401
- @mixin media-breakpoint-up($name, $breakpoints: $grid-breakpoints) {
402
- $min: breakpoint-min($name, $breakpoints);
403
- @if $min {
404
- @media screen and (min-width: $min) {
405
- @content;
406
- }
407
- } @else if $name == 'xs' {
408
- @content;
409
- } @else {
410
- @content;
411
- }
412
- }
413
-
414
- @mixin container-up($name) {
415
- @if $name == 'sm' {
416
- @container (width > 23.4375em) {
417
- @content;
418
- }
419
- } @else if $name == 'md' {
420
- @container (width > 48em) {
421
- @content;
422
- }
423
- } @else if $name == 'xs' {
424
- @content;
425
- } @else {
426
- @content;
427
- }
428
- }
429
-
430
- /* Example: @include prefix(transition, transform 1.5s, webkit ms o); */
431
- @mixin prefix($property, $value, $prefixes: (webkit ms o)) {
432
- @each $prefix in $prefixes {
433
- #{'-' + $prefix + '-' + $property}: $value;
434
- }
435
-
436
- /* Output standard non-prefixed declaration */
437
- #{$property}: $value;
438
- }
439
-
440
- /* Used to make it possible to use css properties but still support IE11 */
441
- @mixin var($property, $varName, $important: '') {
442
- #{$property}: var(#{$varName}) #{$important};
443
- }
444
-
445
- @mixin inline-text() {
446
- p,
447
- ul,
448
- ol,
449
- dd,
450
- .body,
451
- table:not(.table--email) td {
452
- @content;
453
- }
454
- }
455
-
456
- @mixin headers($includeClasses: 'false') {
457
- h1,
458
- h2,
459
- h3,
460
- h4,
461
- h5,
462
- h6 {
463
- @content;
464
- }
465
-
466
- @if $includeClasses == 'true' {
467
- .h1,
468
- .h2,
469
- .h3,
470
- .h4,
471
- .h5,
472
- .h6 {
473
- @content;
474
- }
475
- }
476
- }
477
-
478
- @mixin bg-variant($parent, $color, $ignore-warning: false) {
479
- #{$parent} {
480
- --bg-colour: var(--colour-#{str-replace($parent, '.bg-', '')});
481
- --bg-colour-tint: var(--colour-#{str-replace($parent, '.bg-', '')}-tint);
482
-
483
- @include var(background-color, --colour-#{str-replace($parent, '.bg-', '')}, !important);
484
- }
485
- }
486
- @mixin text-emphasis-variant($parent, $color, $ignore-warning: false) {
487
- #{$parent} {
488
- @include var(color, --colour-#{str-replace($parent, '.text-', '')}, '!important');
489
- }
490
- }
491
-
492
-
493
-
494
-
495
- @mixin is($selector, $before: '', $after: '') {
496
- #{$before}:is(#{$selector})#{$after} {
497
- @content;
498
- }
499
- }
500
-
501
-
502
- @mixin slotted($el, $isComponent: 'true') {
503
- @if $isComponent == 'true' {
504
- ::slotted(#{$el}) {
505
- @content;
506
- }
507
- } @else {
508
- #{$el} {
509
- @content;
510
- }
511
- }
512
- }
513
-
514
- @mixin list-unstyled {
515
- padding-left: 0;
516
- list-style: none;
517
- }
518
-
519
- @mixin breakpoint($name, $breakpoints: $breakpoints) {
520
- @media screen and (min-width: #{map.get($breakpoints,$name)}) {
521
- @content;
522
- }
523
- }
524
- @mixin input {
525
- display: block;
526
- width: 100%;
527
- display: block;
528
- width: 100%;
529
- padding: var(--input-padding-block, 0.75rem) var(--input-padding-inline, 1rem);
530
- font-size: var(--input-fs, 1rem);
531
- line-height: var(--input-lh, 1.25rem);
532
- color: var(--colour-heading);
533
- background-color: var(--colour-canvas-2);
534
- background-clip: padding-box;
535
- border: 2px solid var(--colour-primary);
536
- appearance: none; /* Fix appearance for date inputs in Safari */
537
- border-radius: 0.5rem;
538
- margin-bottom: 1.5rem;
539
- min-height: calc(
540
- var(--input-padding-block, 0.75rem) + var(--input-padding-block, 0.75rem) + var(--input-lh, 1.25rem) +
541
- 4px
542
- );
543
- max-height: calc(
544
- var(--input-padding-block, 0.75rem) + var(--input-padding-block, 0.75rem) + var(--input-lh, 1.25rem) +
545
- 4px
546
- );
547
-
548
- &:is(textarea) {
549
- max-height: 100%;
550
- }
551
-
552
- /* Customize the `:focus` state to imitate native WebKit styles. */
553
- &:is(:focus, .focus):not(:disabled) {
554
- border-color: var(--colour-info);
555
- outline: 0;
556
- }
557
-
558
- &:is(:focus, .focus):not(:disabled):not(:invalid) {
559
- box-shadow: 0 0 0 0.1rem rgba(30, 190, 230, 0.25);
560
- }
561
- /* Add some height to date inputs on iOS */
562
- /* https://github.com/twbs/bootstrap/issues/23307 */
563
- /* TODO: we can remove this workaround once https://bugs.webkit.org/show_bug.cgi?id=198959 is resolved */
564
- &::-webkit-date-and-time-value {
565
- /* Multiply line-height by 1em if it has no unit */
566
- height: if(math.unit(1.5) == '', 1.5 * 1em, 1.5);
567
- }
568
-
569
- /* Disabled inputs */
570
- &:disabled {
571
- background-color: #ccd6d8;
572
- opacity: 0.4;
573
- cursor: not-allowed;
574
- }
575
- }
576
-
577
-
578
- $breakpoints: (
579
- sm: 36em,
580
- md: 62em
581
- );
582
-
583
- $new_utilities: ();
584
-
585
-
586
- /* #region Clearfix */
587
- $new_utilities: map.merge(
588
- $new_utilities,
589
- (
590
- 'clearfix': 'Clear the floats from both sides',
591
- )
592
- );
593
-
594
- @mixin clearfix() {
595
- .clearfix {
596
- &::after {
597
- display: block;
598
- clear: both;
599
- content: '';
600
- }
601
- }
602
- }
603
- /* #endregion */
604
-
605
- /* #region visually-hidden */
606
- $new_utilities: map.merge(
607
- $new_utilities,
608
- (
609
- 'visually-hidden': 'Hide an element from the standard user but not from screen readers',
610
- )
611
- );
612
-
613
- @mixin visually-hidden() {
614
- .visually-hidden,
615
- .visually-hidden-focusable:not(:focus):not(:focus-within) {
616
- position: absolute !important;
617
- width: 1px !important;
618
- height: 1px !important;
619
- padding: 0 !important;
620
- margin: -1px !important; /* Fix for https://github.com/twbs/bootstrap/issues/25686 */
621
- overflow: hidden !important;
622
- clip: rect(0, 0, 0, 0) !important;
623
- white-space: nowrap !important;
624
- border: 0 !important;
625
- }
626
- }
627
- /* #endregion */
628
-
629
- /* #region text-truncate */
630
- $new_utilities: map.merge(
631
- $new_utilities,
632
- (
633
- 'text-truncate': 'Keep the text onto one line and add an ellipsis if needed',
634
- )
635
- );
636
-
637
- @mixin text-truncate() {
638
- .text-truncate {
639
- overflow: hidden;
640
- text-overflow: ellipsis;
641
- white-space: nowrap;
642
- }
643
- }
644
- /* #endregion */
645
-
646
- /* #region ratio */
647
- $new_utilities: map.merge(
648
- $new_utilities,
649
- (
650
- 'ratio': 'Use pre-defined aspect ratios to generate the sizing or elements',
651
- )
652
- );
653
-
654
- @mixin ratio() {
655
- .ratio {
656
- position: relative;
657
- width: 100%;
658
-
659
- &::before {
660
- display: block;
661
- padding-top: var(--aspect-ratio);
662
- content: '';
663
- }
664
-
665
- > * {
666
- position: absolute;
667
- top: 0;
668
- left: 0;
669
- width: 100%;
670
- height: 100%;
671
- }
672
- }
673
-
674
- .ratio-1x1 {
675
- --aspect-ratio: 100%;
676
- }
677
- .ratio-4x3 {
678
- --aspect-ratio: calc(3 / 4 * 100%);
679
- }
680
- .ratio-16x9 {
681
- --aspect-ratio: calc(9 / 16 * 100%);
682
- }
683
- .ratio-21x9 {
684
- --aspect-ratio: calc(9 / 21 * 100%);
685
- }
686
- }
687
- /* #endregion */
688
-
689
- /* #region fixed */
690
- $new_utilities: map.merge(
691
- $new_utilities,
692
- (
693
- 'fixed': 'Fix elements to either the top or bottom',
694
- )
695
- );
696
-
697
- @mixin fixed() {
698
- .fixed-top {
699
- position: fixed;
700
- top: 0;
701
- right: 0;
702
- left: 0;
703
- z-index: var(--index-floating);
704
- }
705
-
706
- .fixed-bottom {
707
- position: fixed;
708
- right: 0;
709
- bottom: 0;
710
- left: 0;
711
- z-index: var(--index-floating);
712
- }
713
- }
714
- /* #endregion */
715
-
716
- /* #region sticky */
717
- $new_utilities: map.merge(
718
- $new_utilities,
719
- (
720
- 'sticky': 'Make elements stick to either the top or bottom',
721
- )
722
- );
723
-
724
- @mixin sticky() {
725
-
726
- @media screen and (min-width: 36em) {
727
-
728
- .sticky-sm-top {
729
- position: sticky;
730
- top: 0;
731
- z-index: var(--index-floating);
732
- }
733
- .sticky-sm-bottom {
734
- position: sticky;
735
- bottom: 0;
736
- z-index: var(--index-floating);
737
- }
738
- }
739
- @media screen and (min-width: 62em) {
740
-
741
- .sticky-md-top {
742
- position: sticky;
743
- top: 0;
744
- z-index: var(--index-floating);
745
- }
746
- .sticky-md-bottom {
747
- position: sticky;
748
- bottom: 0;
749
- z-index: var(--index-floating);
750
- }
751
- }
752
- }
753
- /* #endregion */
754
-
755
- /* #region max-height */
756
- $new_utilities: map.merge(
757
- $new_utilities,
758
- (
759
- 'max-height':
760
- 'Set a pre-defined max height on an element, note this will create a scrollable area if the content is larger than the max height.',
761
- )
762
- );
763
-
764
- @mixin max-height() {
765
- :is(.mh-sm, .mh-md, .mh-lg, .mh-sm-sm, .mh-sm-md, .mh-sm-lg, .mh-md-sm, .mh-md-md, .mh-md-lg, .mh-fluid) {
766
- &:not(iam-table):not(.table__wrapper) {
767
- padding-inline: var(--mh-padding-inline, 0);
768
- margin-inline: calc(var(--mh-padding-inline, 0) * -1);
769
- }
770
-
771
- &::before {
772
- top: calc(100% - 1.5rem);
773
- bottom: 0;
774
- left: 0;
775
- right: 0;
776
- height: 1.5rem;
777
- position: sticky;
778
- display: block;
779
- background: linear-gradient(180deg, transparent 0%, var(--colour-canvas-2) 100%);
780
- z-index: 2;
781
- margin-bottom: -1.5rem;
782
- }
783
- }
784
-
785
- :is(.mh-sm, .mh-md, .mh-lg, .mh-fluid) {
786
- overflow: auto;
787
- overscroll-behavior: contain;
788
-
789
- &::before {
790
- content: '';
791
- }
792
- }
793
-
794
- .mh-sm {
795
- max-height: calc(12.5rem - var(--mh-modifier, 0rem));
796
- }
797
-
798
- .mh-md {
799
- max-height: calc(#{rem(400)} - var(--mh-modifier, 0rem));
800
- }
801
-
802
- .mh-lg {
803
- max-height: calc(#{rem(600)} - var(--mh-modifier, 0rem));
804
- }
805
-
806
- .mh-fluid {
807
- max-height: 100%;
808
- }
809
-
810
- @media screen and (min-width: 36em) {
811
- :is(.mh-sm-sm, .mh-sm-md, .mh-sm-lg) {
812
- overflow: auto;
813
- overscroll-behavior: contain;
814
-
815
- &::before {
816
- content: '';
817
- }
818
- }
819
-
820
- .mh-sm-sm {
821
- max-height: calc(12.5rem - var(--mh-modifier, 0rem));
822
- }
823
-
824
- .mh-sm-md {
825
- max-height: calc(#{rem(400)} - var(--mh-modifier, 0rem));
826
- }
827
-
828
- .mh-sm-lg {
829
- max-height: calc(#{rem(600)} - var(--mh-modifier, 0rem));
830
- }
831
- }
832
-
833
- @media screen and (min-width: 62em) {
834
- :is(.mh-md-sm, .mh-md-md, .mh-md-lg) {
835
- overflow: auto;
836
- overscroll-behavior: contain;
837
-
838
- &::before {
839
- content: '';
840
- }
841
- }
842
-
843
- .mh-md-sm {
844
- max-height: calc(12.5rem - var(--mh-modifier, 0rem));
845
- }
846
-
847
- .mh-md-md {
848
- max-height: calc(#{rem(400)} - var(--mh-modifier, 0rem));
849
- }
850
-
851
- .mh-md-lg {
852
- max-height: calc(#{rem(600)} - var(--mh-modifier, 0rem));
853
- }
854
- }
855
- }
856
- /* #endregion */
857
-
858
- /* #region js-display */
859
- $new_utilities: map.merge(
860
- $new_utilities,
861
- (
862
- 'js-display': 'Show and hide elements depending upon if javascript is running or not',
863
- )
864
- );
865
-
866
- @mixin js-display() {
867
- @media (scripting: enabled) {
868
- .js-show {
869
- display: none !important;
870
- }
871
- }
872
-
873
- @media (scripting: none) {
874
- .js-hide {
875
- display: none !important;
876
- }
877
- }
878
- }
879
- /* #endregion */
880
-
881
- /* #region Line clamp */
882
- $new_utilities: map.merge(
883
- $new_utilities,
884
- (
885
- 'line-clamp': 'Restricts a texts height to a number of lines (1-5)',
886
- )
887
- );
888
-
889
- @mixin line-clamp() {
890
- .line-clamp {
891
- display: -webkit-box;
892
- -webkit-box-orient: vertical;
893
- -webkit-line-clamp: 1;
894
- text-overflow: hidden;
895
- overflow: hidden;
896
- }
897
-
898
- .line-clamp--2 {
899
- -webkit-line-clamp: 2;
900
- }
901
-
902
- .line-clamp--3 {
903
- -webkit-line-clamp: 3;
904
- }
905
-
906
- .line-clamp--4 {
907
- -webkit-line-clamp: 4;
908
- }
909
-
910
- .line-clamp--5 {
911
- -webkit-line-clamp: 5;
912
- }
913
- }
914
- /* #endregion */
915
-
916
- /* #region Wider colours */
917
- $new_utilities: map.merge(
918
- $new_utilities,
919
- (
920
- 'wider-colours': 'Apply the wider range of colours in our design system',
921
- )
922
- );
923
-
924
- @mixin wider-colours() {
925
-
926
- @for $i from 1 through 23 {
927
- .wider-colour-#{$i} {
928
- --wider-colour: var(--wider-colour-#{$i} );
929
- --wider-colour-hover: var(--wider-colour-#{$i}-hover);
930
- --wider-colour-active: var(--wider-colour-#{$i}-active);
931
- color: #262626 !important;
932
- }
933
- }
934
-
935
- }
936
- /* #endregion */
937
-
938
- /* #region Align */
939
- $new_utilities: map.merge(
940
- $new_utilities,
941
- (
942
- 'align': 'Change the alignment of the text ',
943
- )
944
- );
945
-
946
- @mixin align() {
947
- .align-baseline {
948
- vertical-align: baseline !important;
949
- }
950
-
951
- .align-top {
952
- vertical-align: top !important;
953
- }
954
-
955
- .align-middle {
956
- vertical-align: middle !important;
957
- }
958
-
959
- .align-bottom {
960
- vertical-align: bottom !important;
961
- }
962
-
963
- .align-text-bottom {
964
- vertical-align: text-bottom !important;
965
- }
966
-
967
- .align-text-top {
968
- vertical-align: text-top !important;
969
- }
970
- }
971
- /* #endregion */
972
-
973
- /* #region Opacity */
974
- $new_utilities: map.merge(
975
- $new_utilities,
976
- (
977
- 'opacity': 'Apply the opacity of an element by intervals of 25%',
978
- )
979
- );
980
-
981
- @mixin opacity() {
982
- .opacity-0 {
983
- opacity: 0 !important;
984
- }
985
-
986
- .opacity-25 {
987
- opacity: 0.25 !important;
988
- }
989
-
990
- .opacity-50 {
991
- opacity: 0.5 !important;
992
- }
993
-
994
- .opacity-75 {
995
- opacity: 0.75 !important;
996
- }
997
-
998
- .opacity-100 {
999
- opacity: 1 !important;
1000
- }
1001
- }
1002
- /* #endregion */
1003
-
1004
- /* #region Overflow */
1005
- $new_utilities: map.merge(
1006
- $new_utilities,
1007
- (
1008
- 'overflow': 'Update the overflow of an element',
1009
- )
1010
- );
1011
-
1012
- @mixin overflow() {
1013
- .overflow-auto {
1014
- overflow: auto !important;
1015
- }
1016
-
1017
- .overflow-hidden {
1018
- overflow: hidden !important;
1019
- }
1020
-
1021
- .overflow-visible {
1022
- overflow: visible !important;
1023
- }
1024
-
1025
- .overflow-scroll {
1026
- overflow: scroll !important;
1027
- }
1028
- }
1029
- /* #endregion */
1030
-
1031
- /* #region Display */
1032
- $new_utilities: map.merge(
1033
- $new_utilities,
1034
- (
1035
- 'display': 'Update the display of an element, can be applied at different breakpoints',
1036
- )
1037
- );
1038
-
1039
- @mixin display() {
1040
- .d-inline {
1041
- display: inline !important;
1042
- }
1043
-
1044
- .d-inline-block {
1045
- display: inline-block !important;
1046
- }
1047
-
1048
- .d-block {
1049
- display: block !important;
1050
- }
1051
-
1052
- .d-grid {
1053
- display: grid !important;
1054
- }
1055
-
1056
- .d-table {
1057
- display: table !important;
1058
- }
1059
-
1060
- .d-table-row {
1061
- display: table-row !important;
1062
- }
1063
-
1064
- .d-table-cell {
1065
- display: table-cell !important;
1066
- }
1067
-
1068
- .d-flex {
1069
- display: flex !important;
1070
- }
1071
-
1072
- .d-inline-flex {
1073
- display: inline-flex !important;
1074
- }
1075
-
1076
- .d-none {
1077
- display: none !important;
1078
- }
1079
-
1080
- @each $breakpoint,$width in $breakpoints {
1081
- @media screen and (min-width: $width) {
1082
-
1083
- .d-#{$breakpoint}-inline {
1084
- display: inline !important;
1085
- }
1086
-
1087
- .d-#{$breakpoint}-inline-block {
1088
- display: inline-block !important;
1089
- }
1090
-
1091
- .d-#{$breakpoint}-block {
1092
- display: block !important;
1093
- }
1094
-
1095
- .d-#{$breakpoint}-grid {
1096
- display: grid !important;
1097
- }
1098
-
1099
- .d-#{$breakpoint}-table {
1100
- display: table !important;
1101
- }
1102
-
1103
- .d-#{$breakpoint}-table-row {
1104
- display: table-row !important;
1105
- }
1106
-
1107
- .d-#{$breakpoint}-table-cell {
1108
- display: table-cell !important;
1109
- }
1110
-
1111
- .d-#{$breakpoint}-flex {
1112
- display: flex !important;
1113
- }
1114
-
1115
- .d-#{$breakpoint}-inline-flex {
1116
- display: inline-flex !important;
1117
- }
1118
-
1119
- .d-#{$breakpoint}-none {
1120
- display: none !important;
1121
- }
1122
- }
1123
- }
1124
- }
1125
- /* #endregion */
1126
-
1127
- /* #region Position */
1128
- $new_utilities: map.merge(
1129
- $new_utilities,
1130
- (
1131
- 'position': 'Update the position of an element, can be applied at different breakpoints',
1132
- )
1133
- );
1134
-
1135
- @mixin position() {
1136
- @each $breakpoint,$width in $breakpoints {
1137
- @media screen and (min-width: $width) {
1138
-
1139
- .position-#{$breakpoint}-static {
1140
- position: static !important;
1141
- }
1142
-
1143
- .position-#{$breakpoint}-relative {
1144
- position: relative !important;
1145
- }
1146
-
1147
- .position-#{$breakpoint}-absolute {
1148
- position: absolute !important;
1149
- }
1150
-
1151
- .position-#{$breakpoint}-fixed {
1152
- position: fixed !important;
1153
- }
1154
-
1155
- .position-#{$breakpoint}-sticky {
1156
- position: sticky !important;
1157
- }
1158
-
1159
- .top-#{$breakpoint}-0 {
1160
- top: 0 !important;
1161
- }
1162
-
1163
- .top-#{$breakpoint}-50 {
1164
- top: 50% !important;
1165
- }
1166
-
1167
- .top-#{$breakpoint}-100 {
1168
- top: 100% !important;
1169
- }
1170
-
1171
- .bottom-#{$breakpoint}-0 {
1172
- bottom: 0 !important;
1173
- }
1174
-
1175
- .bottom-#{$breakpoint}-50 {
1176
- bottom: 50% !important;
1177
- }
1178
-
1179
- .bottom-#{$breakpoint}-100 {
1180
- bottom: 100% !important;
1181
- }
1182
-
1183
- .start-#{$breakpoint}-0 {
1184
- left: 0 !important;
1185
- }
1186
-
1187
- .start-#{$breakpoint}-50 {
1188
- left: 50% !important;
1189
- }
1190
-
1191
- .start-#{$breakpoint}-100 {
1192
- left: 100% !important;
1193
- }
1194
-
1195
- .end-#{$breakpoint}-0 {
1196
- right: 0 !important;
1197
- }
1198
-
1199
- .end-#{$breakpoint}-50 {
1200
- right: 50% !important;
1201
- }
1202
-
1203
- .end-#{$breakpoint}-100 {
1204
- right: 100% !important;
1205
- }
1206
-
1207
- .translate-#{$breakpoint}-middle {
1208
- transform: translate(-50%, -50%) !important;
1209
- }
1210
-
1211
- .translate-#{$breakpoint}-middle-x {
1212
- transform: translateX(-50%) !important;
1213
- }
1214
-
1215
- .translate-#{$breakpoint}-middle-y {
1216
- transform: translateY(-50%) !important;
1217
- }
1218
- }
1219
- }
1220
- }
1221
- /* #endregion */
1222
-
1223
- /* #region Border */
1224
- $new_utilities: map.merge(
1225
- $new_utilities,
1226
- (
1227
- 'border': 'Apply a border and adjust its settings',
1228
- )
1229
- );
1230
-
1231
- @mixin border() {
1232
- .border {
1233
- border: var(--border-width) var(--border-style) var(--border-color) !important;
1234
- }
1235
-
1236
- .border-0 {
1237
- border: 0 !important;
1238
- }
1239
-
1240
- .border-top {
1241
- border-top: var(--border-width) var(--border-style) var(--border-color) !important;
1242
- }
1243
-
1244
- .border-top-0 {
1245
- border-top: 0 !important;
1246
- }
1247
-
1248
- .border-end {
1249
- border-right: var(--border-width) var(--border-style) var(--border-color) !important;
1250
- }
1251
-
1252
- .border-end-0 {
1253
- border-right: 0 !important;
1254
- }
1255
-
1256
- .border-bottom {
1257
- border-bottom: var(--border-width) var(--border-style) var(--border-color) !important;
1258
- }
1259
-
1260
- .border-bottom-0 {
1261
- border-bottom: 0 !important;
1262
- }
1263
-
1264
- .border-start {
1265
- border-left: var(--border-width) var(--border-style) var(--border-color) !important;
1266
- }
1267
-
1268
- .border-start-0 {
1269
- border-left: 0 !important;
1270
- }
1271
-
1272
- .border-1 {
1273
- --border-width: 1px;
1274
- }
1275
-
1276
- .border-2 {
1277
- --border-width: 2px;
1278
- }
1279
-
1280
- .border-3 {
1281
- --border-width: 3px;
1282
- }
1283
-
1284
- .border-4 {
1285
- --border-width: 4px;
1286
- }
1287
-
1288
- .border-5 {
1289
- --border-width: 5px;
1290
- }
1291
-
1292
- .border-opacity-10 {
1293
- --border-opacity: 0.1;
1294
- }
1295
-
1296
- .border-opacity-25 {
1297
- --border-opacity: 0.25;
1298
- }
1299
-
1300
- .border-opacity-50 {
1301
- --border-opacity: 0.5;
1302
- }
1303
-
1304
- .border-opacity-75 {
1305
- --border-opacity: 0.75;
1306
- }
1307
-
1308
- .border-opacity-100 {
1309
- --border-opacity: 1;
1310
- }
1311
- }
1312
- /* #endregion */
1313
-
1314
- /* #region Sizes */
1315
- $new_utilities: map.merge(
1316
- $new_utilities,
1317
- (
1318
- 'sizes': 'Apply sizing rules to an element',
1319
- )
1320
- );
1321
-
1322
- @mixin sizes() {
1323
- .w-25 {
1324
- width: 25% !important;
1325
- }
1326
-
1327
- .w-50 {
1328
- width: 50% !important;
1329
- }
1330
-
1331
- .w-75 {
1332
- width: 75% !important;
1333
- }
1334
-
1335
- .w-100 {
1336
- width: 100% !important;
1337
- }
1338
-
1339
- .w-auto {
1340
- width: auto !important;
1341
- }
1342
-
1343
- .mw-100 {
1344
- max-width: 100% !important;
1345
- }
1346
-
1347
- .mw-fit-content {
1348
- max-width: fit-content !important;
1349
- }
1350
-
1351
- .mw-content {
1352
- max-width: var(--content-max-width) !important;
1353
- }
1354
-
1355
- .vw-100 {
1356
- width: 100vw !important;
1357
- }
1358
-
1359
- .min-vw-100 {
1360
- min-width: 100vw !important;
1361
- }
1362
-
1363
- .h-25 {
1364
- height: 25% !important;
1365
- }
1366
-
1367
- .h-50 {
1368
- height: 50% !important;
1369
- }
1370
-
1371
- .h-75 {
1372
- height: 75% !important;
1373
- }
1374
-
1375
- .h-100 {
1376
- height: 100% !important;
1377
- }
1378
-
1379
- .h-auto {
1380
- height: auto !important;
1381
- }
1382
-
1383
- .mh-100 {
1384
- max-height: 100% !important;
1385
- }
1386
-
1387
- .vh-100 {
1388
- height: 100vh !important;
1389
- }
1390
-
1391
- .min-vh-100 {
1392
- min-height: 100vh !important;
1393
- }
1394
-
1395
- .min-100 {
1396
- min-width: 100% !important;
1397
- }
1398
-
1399
- .min-fit-content {
1400
- min-width: fit-content !important;
1401
- }
1402
-
1403
- .object-cover {
1404
- object-fit: cover !important;
1405
- }
1406
-
1407
- .object-contain {
1408
- object-fit: contain !important;
1409
- }
1410
- }
1411
- /* #endregion */
1412
-
1413
- /* #region Flex */
1414
- $new_utilities: map.merge(
1415
- $new_utilities,
1416
- (
1417
- 'flex': 'Update the flex rules of an element, can be applied at different breakpoints',
1418
- )
1419
- );
1420
-
1421
- @mixin flex() {
1422
- @each $breakpoint,$width in $breakpoints {
1423
- @media screen and (min-width: $width) {
1424
-
1425
- .flex-#{$breakpoint}-fill {
1426
- flex: 1 1 auto !important;
1427
- }
1428
-
1429
- .flex-#{$breakpoint}-row {
1430
- flex-direction: row !important;
1431
- }
1432
-
1433
- .flex-#{$breakpoint}-column {
1434
- flex-direction: column !important;
1435
- }
1436
-
1437
- .flex-#{$breakpoint}-row-reverse {
1438
- flex-direction: row-reverse !important;
1439
- }
1440
-
1441
- .flex-#{$breakpoint}-column-reverse {
1442
- flex-direction: column-reverse !important;
1443
- }
1444
-
1445
- .flex-#{$breakpoint}-grow-0 {
1446
- flex-grow: 0 !important;
1447
- }
1448
-
1449
- .flex-#{$breakpoint}-grow-1 {
1450
- flex-grow: 1 !important;
1451
- }
1452
-
1453
- .flex-#{$breakpoint}-shrink-0 {
1454
- flex-shrink: 0 !important;
1455
- }
1456
-
1457
- .flex-#{$breakpoint}-shrink-1 {
1458
- flex-shrink: 1 !important;
1459
- }
1460
-
1461
- .flex-#{$breakpoint}-wrap {
1462
- flex-wrap: wrap !important;
1463
- }
1464
-
1465
- .flex-#{$breakpoint}-nowrap {
1466
- flex-wrap: nowrap !important;
1467
- }
1468
-
1469
- .flex-#{$breakpoint}-wrap-reverse {
1470
- flex-wrap: wrap-reverse !important;
1471
- }
1472
-
1473
- .justify-content-#{$breakpoint}-start {
1474
- justify-content: flex-start !important;
1475
- }
1476
-
1477
- .justify-content-#{$breakpoint}-end {
1478
- justify-content: flex-end !important;
1479
- }
1480
-
1481
- .justify-content-#{$breakpoint}-center {
1482
- justify-content: center !important;
1483
- }
1484
-
1485
- .justify-content-#{$breakpoint}-between {
1486
- justify-content: space-between !important;
1487
- }
1488
-
1489
- .justify-content-#{$breakpoint}-around {
1490
- justify-content: space-around !important;
1491
- }
1492
-
1493
- .justify-content-#{$breakpoint}-evenly {
1494
- justify-content: space-evenly !important;
1495
- }
1496
-
1497
- .align-items-#{$breakpoint}-start {
1498
- align-items: flex-start !important;
1499
- }
1500
-
1501
- .align-items-#{$breakpoint}-end {
1502
- align-items: flex-end !important;
1503
- }
1504
-
1505
- .align-items-#{$breakpoint}-center {
1506
- align-items: center !important;
1507
- }
1508
-
1509
- .align-items-#{$breakpoint}-baseline {
1510
- align-items: baseline !important;
1511
- }
1512
-
1513
- .align-items-#{$breakpoint}-stretch {
1514
- align-items: stretch !important;
1515
- }
1516
-
1517
- .align-content-#{$breakpoint}-start {
1518
- align-content: flex-start !important;
1519
- }
1520
-
1521
- .align-content-#{$breakpoint}-end {
1522
- align-content: flex-end !important;
1523
- }
1524
-
1525
- .align-content-#{$breakpoint}-center {
1526
- align-content: center !important;
1527
- }
1528
-
1529
- .align-content-#{$breakpoint}-between {
1530
- align-content: space-between !important;
1531
- }
1532
-
1533
- .align-content-#{$breakpoint}-around {
1534
- align-content: space-around !important;
1535
- }
1536
-
1537
- .align-content-#{$breakpoint}-stretch {
1538
- align-content: stretch !important;
1539
- }
1540
-
1541
- .align-self-#{$breakpoint}-auto {
1542
- align-self: auto !important;
1543
- }
1544
-
1545
- .align-self-#{$breakpoint}-start {
1546
- align-self: flex-start !important;
1547
- }
1548
-
1549
- .align-self-#{$breakpoint}-end {
1550
- align-self: flex-end !important;
1551
- }
1552
-
1553
- .align-self-#{$breakpoint}-center {
1554
- align-self: center !important;
1555
- }
1556
-
1557
- .align-self-#{$breakpoint}-baseline {
1558
- align-self: baseline !important;
1559
- }
1560
-
1561
- .align-self-#{$breakpoint}-stretch {
1562
- align-self: stretch !important;
1563
- }
1564
- }
1565
- }
1566
- }
1567
- /* #endregion */
1568
-
1569
- /* #region Order */
1570
- $new_utilities: map.merge(
1571
- $new_utilities,
1572
- (
1573
- 'order': 'Update the order of an element, can be applied at different breakpoints',
1574
- )
1575
- );
1576
-
1577
- @mixin order() {
1578
- @each $breakpoint,$width in $breakpoints {
1579
- @media screen and (min-width: $width) {
1580
-
1581
- .order-#{$breakpoint}-first {
1582
- order: -1 !important;
1583
- }
1584
-
1585
- .order-#{$breakpoint}-0 {
1586
- order: 0 !important;
1587
- }
1588
-
1589
- .order-#{$breakpoint}-1 {
1590
- order: 1 !important;
1591
- }
1592
-
1593
- .order-#{$breakpoint}-2 {
1594
- order: 2 !important;
1595
- }
1596
-
1597
- .order-#{$breakpoint}-3 {
1598
- order: 3 !important;
1599
- }
1600
-
1601
- .order-#{$breakpoint}-4 {
1602
- order: 4 !important;
1603
- }
1604
-
1605
- .order-#{$breakpoint}-5 {
1606
- order: 5 !important;
1607
- }
1608
-
1609
- .order-#{$breakpoint}-last {
1610
- order: 6 !important;
1611
- }
1612
- }
1613
- }
1614
- }
1615
- /* #endregion */
1616
-
1617
- /* #region Margins */
1618
- $new_utilities: map.merge(
1619
- $new_utilities,
1620
- (
1621
- 'margins': 'Adjust the margins of an element',
1622
- )
1623
- );
1624
-
1625
- @mixin margins() {
1626
- @for $key from 0 through 5 {
1627
- $value: var(--spacer-#{$key});
1628
-
1629
- .m-#{$key} {
1630
- margin: #{$value} !important;
1631
- }
1632
-
1633
- .mx-#{$key} {
1634
- margin-left: #{$value} !important;
1635
- margin-right: #{$value} !important;
1636
- }
1637
-
1638
- .mx-minus-#{$key} {
1639
- margin-left: -#{$value} !important;
1640
- margin-right: -#{$value} !important;
1641
- }
1642
-
1643
- .my-minus-#{$key} {
1644
- margin-top: -#{$value} !important;
1645
- margin-bottom: -#{$value} !important;
1646
- }
1647
-
1648
- .my-#{$key} {
1649
- margin-top: #{$value} !important;
1650
- margin-bottom: #{$value} !important;
1651
- }
1652
-
1653
- .mt-#{$key} {
1654
- margin-top: #{$value} !important;
1655
- }
1656
-
1657
- .me-#{$key} {
1658
- margin-right: #{$value} !important;
1659
- }
1660
-
1661
- .mb-#{$key} {
1662
- margin-bottom: #{$value} !important;
1663
- }
1664
-
1665
- .ms-#{$key} {
1666
- margin-left: #{$value} !important;
1667
- }
1668
- }
1669
-
1670
- .m-auto {
1671
- margin: auto !important;
1672
- }
1673
-
1674
- .mx-auto {
1675
- margin-right: auto !important;
1676
- margin-left: auto !important;
1677
- }
1678
-
1679
- .my-auto {
1680
- margin-top: auto !important;
1681
- margin-bottom: auto !important;
1682
- }
1683
-
1684
- .mt-auto {
1685
- margin-top: auto !important;
1686
- }
1687
-
1688
- .me-auto {
1689
- margin-right: auto !important;
1690
- }
1691
-
1692
- .mb-auto {
1693
- margin-bottom: auto !important;
1694
- }
1695
-
1696
- .ms-auto {
1697
- margin-left: auto !important;
1698
- }
1699
- }
1700
- /* #endregion */
1701
-
1702
- /* #region Paddings */
1703
- $new_utilities: map.merge(
1704
- $new_utilities,
1705
- (
1706
- 'paddings': 'Adjust the paddings of an element',
1707
- )
1708
- );
1709
-
1710
- @mixin paddings() {
1711
- @for $key from 0 through 5 {
1712
- $value: var(--spacer-#{$key});
1713
- .p-#{$key} {
1714
- padding: #{$value} !important;
1715
- }
1716
-
1717
- .px-#{$key} {
1718
- padding-left: #{$value} !important;
1719
- padding-right: #{$value} !important;
1720
- }
1721
-
1722
- .py-#{$key} {
1723
- padding-top: #{$value} !important;
1724
- padding-bottom: #{$value} !important;
1725
- }
1726
-
1727
- .pt-#{$key} {
1728
- padding-top: #{$value} !important;
1729
- }
1730
-
1731
- .pe-#{$key} {
1732
- padding-right: #{$value} !important;
1733
- }
1734
-
1735
- .pb-#{$key} {
1736
- padding-bottom: #{$value} !important;
1737
- }
1738
-
1739
- .ps-#{$key} {
1740
- padding-left: #{$value} !important;
1741
- }
1742
- }
1743
- }
1744
- /* #endregion */
1745
-
1746
- /* #region Gap */
1747
- $new_utilities: map.merge(
1748
- $new_utilities,
1749
- (
1750
- 'gap': 'Update the gap sizing of an element with the display flex',
1751
- )
1752
- );
1753
-
1754
- @mixin gap() {
1755
- @for $key from 0 through 5 {
1756
- $value: var(--spacer-#{$key});
1757
- .gap-#{$key} {
1758
- gap: #{$value} !important;
1759
- }
1760
- }
1761
- }
1762
- /* #endregion */
1763
-
1764
- /* #region Text */
1765
- $new_utilities: map.merge(
1766
- $new_utilities,
1767
- (
1768
- 'text': 'Apply the text settings',
1769
- )
1770
- );
1771
-
1772
- @mixin text() {
1773
- .font-monospace {
1774
- font-family: var(--font-monospace) !important;
1775
- }
1776
-
1777
- .font-body {
1778
- font-family: var(--font-body) !important;
1779
- }
1780
-
1781
- .fs-1 {
1782
- font-size: rfs-fluid-value(2.5rem) !important;
1783
- }
1784
-
1785
- .fs-2 {
1786
- font-size: rfs-fluid-value(2rem) !important;
1787
- }
1788
-
1789
- .fs-3 {
1790
- font-size: rfs-fluid-value(1.75rem) !important;
1791
- }
1792
-
1793
- .fs-4 {
1794
- font-size: rfs-fluid-value(1.5rem) !important;
1795
- }
1796
-
1797
- .fs-5 {
1798
- font-size: rfs-fluid-value(1.25rem) !important;
1799
- }
1800
-
1801
- .fs-6 {
1802
- font-size: rfs-fluid-value(1rem) !important;
1803
- }
1804
-
1805
- .fst-italic {
1806
- font-style: italic !important;
1807
- }
1808
-
1809
- .fst-normal {
1810
- font-style: normal !important;
1811
- }
1812
-
1813
- .fw-light {
1814
- font-weight: 300 !important;
1815
- }
1816
-
1817
- .fw-lighter {
1818
- font-weight: lighter !important;
1819
- }
1820
-
1821
- .fw-normal {
1822
- font-weight: 400 !important;
1823
- }
1824
-
1825
- .fw-bold {
1826
- font-weight: 700 !important;
1827
- }
1828
-
1829
- .fw-semibold {
1830
- font-weight: 600 !important;
1831
- }
1832
-
1833
- .fw-bolder {
1834
- font-weight: bolder !important;
1835
- }
1836
-
1837
- .lh-0 {
1838
- line-height: 0 !important;
1839
- }
1840
-
1841
- .lh-1 {
1842
- line-height: 1 !important;
1843
- }
1844
-
1845
- .text-start {
1846
- text-align: left !important;
1847
- }
1848
-
1849
- .text-end {
1850
- text-align: right !important;
1851
- }
1852
-
1853
- .text-center {
1854
- text-align: center !important;
1855
- }
1856
-
1857
- .text-decoration-none {
1858
- text-decoration: none !important;
1859
- }
1860
-
1861
- .text-decoration-underline {
1862
- text-decoration: underline !important;
1863
- }
1864
-
1865
- .text-decoration-line-through {
1866
- text-decoration: line-through !important;
1867
- }
1868
-
1869
- .text-lowercase {
1870
- text-transform: lowercase !important;
1871
- }
1872
-
1873
- .text-uppercase {
1874
- text-transform: uppercase !important;
1875
- }
1876
-
1877
- .text-capitalize {
1878
- text-transform: capitalize !important;
1879
- }
1880
-
1881
- .text-wrap {
1882
- white-space: normal !important;
1883
- }
1884
-
1885
- .text-nowrap {
1886
- white-space: nowrap !important;
1887
- }
1888
-
1889
- .text-break {
1890
- word-wrap: break-word !important;
1891
- word-break: break-word !important;
1892
- }
1893
- }
1894
- /* #endregion */
1895
-
1896
- /* #region Colours */
1897
- $new_utilities: map.merge(
1898
- $new_utilities,
1899
- (
1900
- 'colours': 'Applu our design system colours by either text colour or background',
1901
- )
1902
- );
1903
-
1904
- @mixin colours() {
1905
-
1906
- .text-heading {
1907
-
1908
- color: var(--colour-heading) !important;
1909
- }
1910
-
1911
- $theme-colors: (
1912
- 'primary': var(--colour-primary),
1913
- 'secondary': var(--colour-secondary),
1914
- 'info': var(--colour-info),
1915
- 'warning': var(--colour-warning),
1916
- 'success': var(--colour-success),
1917
- 'complete': var(--colour-complete),
1918
- 'danger': var(--colour-danger),
1919
- 'dark': var(--colour-dark),
1920
- 'light': var(--colour-light),
1921
- 'canvas': var(--colour-canvas),
1922
- 'white': var(--colour-white),
1923
- );
1924
-
1925
- @each $color, $value in $theme-colors {
1926
- .text-#{$color} {
1927
- --text-opacity: 1;
1928
- color: var(--colour-#{$color}) !important;
1929
- }
1930
-
1931
- .bg-#{$color} {
1932
- --bg-opacity: 1;
1933
- --bg-colour: var(--colour-#{$color}) !important;
1934
- background-color: var(--colour-#{$color}) !important;
1935
- }
1936
-
1937
- .hover-#{$color}:is(:hover,:focus,:focus-within) {
1938
- --bg-opacity: 1;
1939
- --bg-colour: var(--colour-#{$color}) !important;
1940
- background-color: var(--colour-#{$color}) !important;
1941
- }
1942
-
1943
- .colour-#{$color} {
1944
- --colour: var(--colour-#{$color}) !important;
1945
- }
1946
- }
1947
- }
1948
- /* #endregion */
1949
-
1950
- /* #region gradients */
1951
- $new_utilities: map.merge(
1952
- $new_utilities,
1953
- (
1954
- 'gradients': 'Add gradients to backgrounds',
1955
- )
1956
- );
1957
-
1958
- @mixin gradients() {
1959
- .bg-gradient {
1960
- background-image: var(--gradient) !important;
1961
- }
1962
-
1963
- .gradient-success {
1964
- --gradient-direction: 180deg;
1965
- background-image: linear-gradient(
1966
- var(--gradient-direction),
1967
- var(--colour-success-theme) 0,
1968
- transparent 100%
1969
- ) !important;
1970
- }
1971
-
1972
- .gradient-primary {
1973
- --gradient-direction: 180deg;
1974
- background-image: linear-gradient(
1975
- var(--gradient-direction),
1976
- var(--colour-primary-theme) 0,
1977
- transparent 100%
1978
- ) !important;
1979
- }
1980
-
1981
- .gradient-info {
1982
- --gradient-direction: 180deg;
1983
- background-image: linear-gradient(
1984
- var(--gradient-direction),
1985
- var(--colour-info-theme) 0,
1986
- transparent 100%
1987
- ) !important;
1988
- }
1989
-
1990
- .gradient-direction-left {
1991
- --gradient-direction: 90deg;
1992
- }
1993
-
1994
- .gradient-direction-angle {
1995
- --gradient-direction: 135deg;
1996
- }
1997
- }
1998
- /* #endregion */
1999
-
2000
- /* #region Pointer-events */
2001
- $new_utilities: map.merge(
2002
- $new_utilities,
2003
- (
2004
- 'pointer-events': 'Disable or enable point events',
2005
- )
2006
- );
2007
-
2008
- @mixin pointer-events() {
2009
- .pe-none {
2010
- pointer-events: none !important;
2011
- }
2012
-
2013
- .pe-auto {
2014
- pointer-events: auto !important;
2015
- }
2016
- }
2017
- /* #endregion */
2018
-
2019
- /* #region Rounded */
2020
- $new_utilities: map.merge(
2021
- $new_utilities,
2022
- (
2023
- 'rounded': 'Add rounded corners',
2024
- )
2025
- );
2026
-
2027
- @mixin rounded() {
2028
- .rounded {
2029
- border-radius: var(--border-radius) !important;
2030
- }
2031
-
2032
- .rounded-0 {
2033
- border-radius: 0 !important;
2034
- }
2035
-
2036
- .rounded-1 {
2037
- border-radius: var(--border-radius-sm) !important;
2038
- }
2039
-
2040
- .rounded-2 {
2041
- border-radius: var(--border-radius) !important;
2042
- }
2043
-
2044
- .rounded-3 {
2045
- border-radius: var(--border-radius-lg) !important;
2046
- }
2047
-
2048
- .rounded-4 {
2049
- border-radius: var(--border-radius-xl) !important;
2050
- }
2051
-
2052
- .rounded-5 {
2053
- border-radius: var(--border-radius-2xl) !important;
2054
- }
2055
-
2056
- .rounded-circle {
2057
- border-radius: 50% !important;
2058
- }
2059
-
2060
- .rounded-pill {
2061
- border-radius: var(--border-radius-pill) !important;
2062
- }
2063
-
2064
- .rounded-top {
2065
- border-top-left-radius: var(--border-radius) !important;
2066
- border-top-right-radius: var(--border-radius) !important;
2067
- }
2068
-
2069
- .rounded-end {
2070
- border-top-right-radius: var(--border-radius) !important;
2071
- border-bottom-right-radius: var(--border-radius) !important;
2072
- }
2073
-
2074
- .rounded-bottom {
2075
- border-bottom-right-radius: var(--border-radius) !important;
2076
- border-bottom-left-radius: var(--border-radius) !important;
2077
- }
2078
-
2079
- .rounded-start {
2080
- border-bottom-left-radius: var(--border-radius) !important;
2081
- border-top-left-radius: var(--border-radius) !important;
2082
- }
2083
- }
2084
- /* #endregion */
2085
-
2086
- /* #region Visible */
2087
- $new_utilities: map.merge(
2088
- $new_utilities,
2089
- (
2090
- 'visible': 'Change the visibility of elements',
2091
- )
2092
- );
2093
-
2094
- @mixin visible() {
2095
- .visible {
2096
- visibility: visible !important;
2097
- }
2098
-
2099
- .invisible {
2100
- visibility: hidden !important;
2101
- }
2102
- }
2103
- /* #endregion */
1
+ @use 'sass:map';
2
+ @use 'sass:math';
3
+ @use 'sass:meta';
4
+ @use 'sass:list';
5
+ @use 'sass:string';
6
+
7
+ @use 'bs_variables' as *;
8
+ @use 'bs_functions' as *;
9
+
10
+ /* Utility generator */
11
+ /* Used to generate utilities & print utilities */
12
+ @mixin generate-utility($utility, $infix, $is-rfs-media-query: false) {
13
+ $values: map.get($utility, values);
14
+
15
+ /* If the values are a list or string, convert it into a map */
16
+ @if meta.type-of($values) == 'string' or meta.type-of(list.nth($values, 1)) != 'list' {
17
+ $values: list.zip($values, $values);
18
+ }
19
+
20
+ @each $key, $value in $values {
21
+ $properties: map.get($utility, property);
22
+
23
+ /* Multiple properties are possible, for example with vertical or horizontal margins or paddings */
24
+ @if meta.type-of($properties) == 'string' {
25
+ $properties: list.append((), $properties);
26
+ }
27
+
28
+ /* Use custom class if present */
29
+ $property-class: if(map.has-key($utility, class), map.get($utility, class), list.nth($properties, 1));
30
+ $property-class: if($property-class == null, '', $property-class);
31
+
32
+ /* Use custom CSS variable name if present, otherwise default to `class` */
33
+ $css-variable-name: if(
34
+ map.has-key($utility, css-variable-name),
35
+ map.get($utility, css-variable-name),
36
+ map.get($utility, class)
37
+ );
38
+
39
+ /* State params to generate pseudo-classes */
40
+ $state: if(map.has-key($utility, state), map.get($utility, state), ());
41
+
42
+ $infix: if($property-class == '' and string.slice($infix, 1, 1) == '-', string.slice($infix, 2), $infix);
43
+
44
+ /* Don't prefix if value key is null (eg. with shadow class) */
45
+ $property-class-modifier: if($key, if($property-class == '' and $infix == '', '', '-') + $key, '');
46
+
47
+ @if map.get($utility, rfs) {
48
+ /* Inside the media query */
49
+ @if $is-rfs-media-query {
50
+ $val: rfs-value($value);
51
+
52
+ /* Do not render anything if fluid and non fluid values are the same */
53
+ $value: if($val == rfs-fluid-value($value), null, $val);
54
+ } @else {
55
+ $value: rfs-fluid-value($value);
56
+ }
57
+ }
58
+
59
+ $is-css-var: map.get($utility, css-var);
60
+ $is-local-vars: map.get($utility, local-vars);
61
+ $is-rtl: map.get($utility, rtl);
62
+
63
+ @if $value != null {
64
+ @if $is-rtl == false {
65
+ /* rtl:begin:remove */
66
+ }
67
+
68
+ @if $is-css-var {
69
+ .#{$property-class + $infix + $property-class-modifier} {
70
+ --#{$css-variable-name}: #{$value};
71
+ }
72
+
73
+ @each $pseudo in $state {
74
+ .#{$property-class + $infix + $property-class-modifier}-#{$pseudo}:#{$pseudo} {
75
+ --#{$css-variable-name}: #{$value};
76
+ }
77
+ }
78
+ } @else {
79
+ .#{$property-class + $infix + $property-class-modifier} {
80
+ @each $property in $properties {
81
+ @if $is-local-vars {
82
+ @each $local-var, $variable in $is-local-vars {
83
+ --#{$local-var}: #{$variable};
84
+ }
85
+ }
86
+ #{$property}: $value !important;
87
+ }
88
+ }
89
+
90
+ @each $pseudo in $state {
91
+ .#{$property-class + $infix + $property-class-modifier}-#{$pseudo}:#{$pseudo} {
92
+ @each $property in $properties {
93
+ @if $is-local-vars {
94
+ @each $local-var, $variable in $is-local-vars {
95
+ --#{$local-var}: #{$variable};
96
+ }
97
+ }
98
+ #{$property}: $value !important;
99
+ }
100
+ }
101
+ }
102
+ }
103
+
104
+ @if $is-rtl == false {
105
+ /* rtl:end:remove */
106
+ }
107
+ }
108
+ }
109
+ }
110
+
111
+ /* #endregion */
112
+
113
+ /* #region Boostrap Grid breakpoints */
114
+ /* Breakpoint viewport sizes and media queries. */
115
+ /* */
116
+ /* Breakpoints are defined as a map of (name: minimum width), order from small to large: */
117
+ /* */
118
+ /* (xs: 0, sm: 576px, md: 768px, lg: 992px, xl: 1200px, xxl: 1400px) */
119
+ /* */
120
+ /* The map defined in the `$grid-breakpoints` global variable is used as the `$breakpoints` argument by default. */
121
+
122
+ /* Name of the next breakpoint, or null for the last breakpoint. */
123
+ /* */
124
+ /* >> breakpoint-next(sm) */
125
+ /* md */
126
+ /* >> breakpoint-next(sm, (xs: 0, sm: 576px, md: 768px, lg: 992px, xl: 1200px, xxl: 1400px)) */
127
+ /* md */
128
+ /* >> breakpoint-next(sm, $breakpoint-names: (xs sm md lg xl xxl)) */
129
+ /* md */
130
+ @function breakpoint-next($name, $breakpoints: $grid-breakpoints, $breakpoint-names: map-keys($breakpoints)) {
131
+ $n: index($breakpoint-names, $name);
132
+ @if not $n {
133
+ @error "breakpoint `#{$name}` not found in `#{$breakpoints}`";
134
+ }
135
+ @return if($n < length($breakpoint-names), list.nth($breakpoint-names, $n + 1), null);
136
+ }
137
+
138
+ /* Minimum breakpoint width. Null for the smallest (first) breakpoint. */
139
+ /* */
140
+ /* >> breakpoint-min(sm, (xs: 0, sm: 576px, md: 768px, lg: 992px, xl: 1200px, xxl: 1400px)) */
141
+ /* 576px */
142
+ @function breakpoint-min($name, $breakpoints: $grid-breakpoints) {
143
+ $min: map.get($breakpoints, $name);
144
+ @return if($min != 0, $min, null);
145
+ }
146
+
147
+ /* Maximum breakpoint width. */
148
+ /* The maximum value is reduced by 0.02px to work around the limitations of */
149
+ /* `min-` and `max-` prefixes and viewports with fractional widths. */
150
+ /* See https://www.w3.org/TR/mediaqueries-4/#mq-min-max */
151
+ /* Uses 0.02px rather than 0.01px to work around a current rounding bug in Safari. */
152
+ /* See https://bugs.webkit.org/show_bug.cgi?id=178261 */
153
+ /* */
154
+ /* >> breakpoint-max(md, (xs: 0, sm: 576px, md: 768px, lg: 992px, xl: 1200px, xxl: 1400px)) */
155
+ /* 767.98px */
156
+ /*
157
+ @function breakpoint-max($name, $breakpoints: $grid-breakpoints) {
158
+ $max: map.get($breakpoints, $name);
159
+ @return if($max and $max > 0, $max - 0.02, null);
160
+ }
161
+ */
162
+ /* Returns a blank string if smallest breakpoint, otherwise returns the name with a dash in front. */
163
+ /* Useful for making responsive utilities. */
164
+ /* */
165
+ /* >> breakpoint-infix(xs, (xs: 0, sm: 576px, md: 768px, lg: 992px, xl: 1200px, xxl: 1400px)) */
166
+ /* "" (Returns a blank string) */
167
+ /* >> breakpoint-infix(sm, (xs: 0, sm: 576px, md: 768px, lg: 992px, xl: 1200px, xxl: 1400px)) */
168
+ /* "-sm" */
169
+ @function breakpoint-infix($name, $breakpoints: $grid-breakpoints) {
170
+ @return if(breakpoint-min($name, $breakpoints) == null, '', '-#{$name}');
171
+ }
172
+
173
+ /* Media of at most the maximum breakpoint width. No query for the largest breakpoint. */
174
+ /* Makes the @content apply to the given breakpoint and narrower. */
175
+ @mixin media-breakpoint-down($name, $breakpoints: $grid-breakpoints) {
176
+ $max: breakpoint-max($name, $breakpoints);
177
+ @if $max {
178
+ @media (max-width: $max) {
179
+ @content;
180
+ }
181
+ } @else {
182
+ @content;
183
+ }
184
+ }
185
+
186
+ /* Media that spans multiple breakpoint widths. */
187
+ /* Makes the @content apply between the min and max breakpoints */
188
+ @mixin media-breakpoint-between($lower, $upper, $breakpoints: $grid-breakpoints) {
189
+ $min: breakpoint-min($lower, $breakpoints);
190
+ $max: breakpoint-max($upper, $breakpoints);
191
+
192
+ @if $min != null and $max != null {
193
+ @media (min-width: $min) and (max-width: $max) {
194
+ @content;
195
+ }
196
+ } @else if $max == null {
197
+ @include media-breakpoint-up($lower, $breakpoints) {
198
+ @content;
199
+ }
200
+ } @else if $min == null {
201
+ @include media-breakpoint-down($upper, $breakpoints) {
202
+ @content;
203
+ }
204
+ }
205
+ }
206
+
207
+ /* Media between the breakpoint's minimum and maximum widths. */
208
+ /* No minimum for the smallest breakpoint, and no maximum for the largest one. */
209
+ /* Makes the @content apply only to the given breakpoint, not viewports any wider or narrower. */
210
+ @mixin media-breakpoint-only($name, $breakpoints: $grid-breakpoints) {
211
+ $min: breakpoint-min($name, $breakpoints);
212
+ $next: breakpoint-next($name, $breakpoints);
213
+ $max: breakpoint-max($next, $breakpoints);
214
+
215
+ @if $min != null and $max != null {
216
+ @media (min-width: $min) and (max-width: $max) {
217
+ @content;
218
+ }
219
+ } @else if $max == null {
220
+ @include media-breakpoint-up($name, $breakpoints) {
221
+ @content;
222
+ }
223
+ } @else if $min == null {
224
+ @include media-breakpoint-down($next, $breakpoints) {
225
+ @content;
226
+ }
227
+ }
228
+ }
229
+ /* #endregion */
230
+
231
+ /* #region Bootstrap layout */
232
+ /* scss-docs-start clearfix */
233
+ /*
234
+ @mixin clearfix() {
235
+ &::after {
236
+ display: block;
237
+ clear: both;
238
+ content: '';
239
+ }
240
+ }
241
+ */
242
+ /* scss-docs-end clearfix */
243
+ /* Container mixins */
244
+
245
+
246
+ /* Grid system */
247
+ /* */
248
+ /* Generate semantic grid columns with these mixins. */
249
+
250
+ @mixin make-row($gutter: $grid-gutter-width) {
251
+ --gutter-x: #{$gutter};
252
+ --gutter-y: 0;
253
+ display: flex;
254
+ flex-wrap: wrap;
255
+ /* TODO: Revisit calc order after https://github.com/react-bootstrap/react-bootstrap/issues/6039 is fixed */
256
+ margin-top: calc(-1 * var(--gutter-y)); /* stylelint-disable-line function-disallowed-list */
257
+ margin-right: calc(-0.5 * var(--gutter-x)); /* stylelint-disable-line function-disallowed-list */
258
+ margin-left: calc(-0.5 * var(--gutter-x)); /* stylelint-disable-line function-disallowed-list */
259
+ }
260
+
261
+ @mixin make-col-ready() {
262
+ /* Add box sizing if only the grid is loaded */
263
+ box-sizing: if(meta.variable-exists(include-column-box-sizing) and $include-column-box-sizing, border-box, null);
264
+ /* Prevent columns from becoming too narrow when at smaller grid tiers by */
265
+ /* always setting `width: 100%;`. This works because we set the width */
266
+ /* later on to override this initial width. */
267
+ flex-shrink: 0;
268
+ width: 100%;
269
+ max-width: 100%; /* Prevent `.col-auto`, `.col` (& responsive variants) from breaking out the grid */
270
+ padding-right: calc(var(--gutter-x) * 0.5); /* stylelint-disable-line function-disallowed-list */
271
+ padding-left: calc(var(--gutter-x) * 0.5); /* stylelint-disable-line function-disallowed-list */
272
+ margin-top: var(--gutter-y);
273
+ }
274
+
275
+ @mixin make-col($size: false, $columns: $grid-columns) {
276
+ @if $size {
277
+ flex: 0 0 auto;
278
+ $width: math.div($size, 12);
279
+ width: math.percentage($width);
280
+ } @else {
281
+ flex: 1 1 0;
282
+ max-width: 100%;
283
+ }
284
+ }
285
+
286
+ @mixin make-col-auto() {
287
+ flex: 0 0 auto;
288
+ width: auto;
289
+ }
290
+
291
+ @mixin make-col-offset($size, $columns: $grid-columns) {
292
+ $num: math.div($size, $columns);
293
+ margin-left: if($num == 0, 0, math.percentage($num));
294
+ }
295
+
296
+ /* Row columns */
297
+ /* */
298
+ /* Specify on a parent element(e.g., .row) to force immediate children into NN */
299
+ /* number of columns. Supports wrapping to new lines, but does not do a Masonry */
300
+ /* style grid. */
301
+ @mixin row-cols($count) {
302
+ > * {
303
+ flex: 0 0 auto;
304
+ width: math.div(100%, $count);
305
+ }
306
+ }
307
+
308
+ /* Framework grid generation */
309
+ /* */
310
+ /* Used only by Bootstrap to generate the correct number of grid classes given */
311
+ /* any value of `$grid-columns`. */
312
+
313
+ @mixin make-grid-columns($columns: $grid-columns, $gutter: $grid-gutter-width, $breakpoints: $grid-breakpoints) {
314
+ @each $breakpoint in map.keys($breakpoints) {
315
+ $infix: breakpoint-infix($breakpoint, $breakpoints);
316
+
317
+ @include media-breakpoint-up($breakpoint, $breakpoints) {
318
+ /* Provide basic `.col-{bp}` classes for equal-width flexbox columns */
319
+ .col#{$infix} {
320
+ flex: 1 0 0%; /* Flexbugs #4: https://github.com/philipwalton/flexbugs#flexbug-4 */
321
+ }
322
+
323
+ .row-cols#{$infix}-auto > * {
324
+ @include make-col-auto();
325
+ }
326
+
327
+ @if $grid-row-columns > 0 {
328
+ @for $i from 1 through $grid-row-columns {
329
+ .row-cols#{$infix}-#{$i} {
330
+ @include row-cols($i);
331
+ }
332
+ }
333
+ }
334
+
335
+ .col#{$infix}-auto {
336
+ @include make-col-auto();
337
+ }
338
+
339
+ @if $columns > 0 {
340
+ @for $i from 1 through $columns {
341
+ .col#{$infix}-#{$i} {
342
+ @include make-col($i, $columns);
343
+ }
344
+ }
345
+
346
+ /* `$columns - 1` because offsetting by the width of an entire row isn't possible */
347
+ @for $i from 0 through ($columns - 1) {
348
+ @if not($infix == '' and $i == 0) {
349
+ /* Avoid emitting useless .offset-0 */
350
+ .offset#{$infix}-#{$i} {
351
+ @include make-col-offset($i, $columns);
352
+ }
353
+ }
354
+ }
355
+ }
356
+
357
+ /* Gutters */
358
+ /* */
359
+ /* Make use of `.g-*`, `.gx-*` or `.gy-*` utilities to change spacing between the columns. */
360
+ @each $key, $value in $gutters {
361
+ .g#{$infix}-#{$key},
362
+ .gx#{$infix}-#{$key} {
363
+ --gutter-x: #{$value};
364
+ }
365
+
366
+ .g#{$infix}-#{$key},
367
+ .gy#{$infix}-#{$key} {
368
+ --gutter-y: #{$value};
369
+ }
370
+ }
371
+ }
372
+ }
373
+ }
374
+
375
+ @mixin make-cssgrid($columns: $grid-columns, $breakpoints: $grid-breakpoints) {
376
+ @each $breakpoint in map-keys($breakpoints) {
377
+ $infix: breakpoint-infix($breakpoint, $breakpoints);
378
+
379
+ @include media-breakpoint-up($breakpoint, $breakpoints) {
380
+ @if $columns > 0 {
381
+ @for $i from 1 through $columns {
382
+ .g-col#{$infix}-#{$i} {
383
+ grid-column: auto / span $i;
384
+ }
385
+ }
386
+
387
+ /* Start with `1` because `0` is and invalid value. */
388
+ /* Ends with `$columns - 1` because offsetting by the width of an entire row isn't possible. */
389
+ @for $i from 1 through ($columns - 1) {
390
+ .g-start#{$infix}-#{$i} {
391
+ grid-column-start: $i;
392
+ }
393
+ }
394
+ }
395
+ }
396
+ }
397
+ }
398
+
399
+ /* #endregion */
400
+
401
+ @mixin media-breakpoint-up($name, $breakpoints: $grid-breakpoints) {
402
+ $min: breakpoint-min($name, $breakpoints);
403
+ @if $min {
404
+ @media screen and (min-width: $min) {
405
+ @content;
406
+ }
407
+ } @else if $name == 'xs' {
408
+ @content;
409
+ } @else {
410
+ @content;
411
+ }
412
+ }
413
+
414
+ @mixin container-up($name) {
415
+ @if $name == 'sm' {
416
+ @container (width > 23.4375em) {
417
+ @content;
418
+ }
419
+ } @else if $name == 'md' {
420
+ @container (width > 48em) {
421
+ @content;
422
+ }
423
+ } @else if $name == 'xs' {
424
+ @content;
425
+ } @else {
426
+ @content;
427
+ }
428
+ }
429
+
430
+ /* Example: @include prefix(transition, transform 1.5s, webkit ms o); */
431
+ @mixin prefix($property, $value, $prefixes: (webkit ms o)) {
432
+ @each $prefix in $prefixes {
433
+ #{'-' + $prefix + '-' + $property}: $value;
434
+ }
435
+
436
+ /* Output standard non-prefixed declaration */
437
+ #{$property}: $value;
438
+ }
439
+
440
+ /* Used to make it possible to use css properties but still support IE11 */
441
+ @mixin var($property, $varName, $important: '') {
442
+ #{$property}: var(#{$varName}) #{$important};
443
+ }
444
+
445
+ @mixin inline-text() {
446
+ p,
447
+ ul,
448
+ ol,
449
+ dd,
450
+ .body,
451
+ table:not(.table--email) td {
452
+ @content;
453
+ }
454
+ }
455
+
456
+ @mixin headers($includeClasses: 'false') {
457
+ h1,
458
+ h2,
459
+ h3,
460
+ h4,
461
+ h5,
462
+ h6 {
463
+ @content;
464
+ }
465
+
466
+ @if $includeClasses == 'true' {
467
+ .h1,
468
+ .h2,
469
+ .h3,
470
+ .h4,
471
+ .h5,
472
+ .h6 {
473
+ @content;
474
+ }
475
+ }
476
+ }
477
+
478
+ @mixin bg-variant($parent, $color, $ignore-warning: false) {
479
+ #{$parent} {
480
+ --bg-colour: var(--colour-#{str-replace($parent, '.bg-', '')});
481
+ --bg-colour-tint: var(--colour-#{str-replace($parent, '.bg-', '')}-tint);
482
+
483
+ @include var(background-color, --colour-#{str-replace($parent, '.bg-', '')}, !important);
484
+ }
485
+ }
486
+ @mixin text-emphasis-variant($parent, $color, $ignore-warning: false) {
487
+ #{$parent} {
488
+ @include var(color, --colour-#{str-replace($parent, '.text-', '')}, '!important');
489
+ }
490
+ }
491
+
492
+
493
+
494
+
495
+ @mixin is($selector, $before: '', $after: '') {
496
+ #{$before}:is(#{$selector})#{$after} {
497
+ @content;
498
+ }
499
+ }
500
+
501
+
502
+ @mixin slotted($el, $isComponent: 'true') {
503
+ @if $isComponent == 'true' {
504
+ ::slotted(#{$el}) {
505
+ @content;
506
+ }
507
+ } @else {
508
+ #{$el} {
509
+ @content;
510
+ }
511
+ }
512
+ }
513
+
514
+ @mixin list-unstyled {
515
+ padding-left: 0;
516
+ list-style: none;
517
+ }
518
+
519
+ @mixin breakpoint($name, $breakpoints: $breakpoints) {
520
+ @media screen and (min-width: #{map.get($breakpoints,$name)}) {
521
+ @content;
522
+ }
523
+ }
524
+ @mixin input {
525
+ display: block;
526
+ width: 100%;
527
+ display: block;
528
+ width: 100%;
529
+ padding: var(--input-padding-block, 0.75rem) var(--input-padding-inline, 1rem);
530
+ font-size: var(--input-fs, 1rem);
531
+ line-height: var(--input-lh, 1.25rem);
532
+ color: var(--colour-heading);
533
+ background-color: var(--colour-canvas-2);
534
+ background-clip: padding-box;
535
+ border: 2px solid var(--colour-primary);
536
+ appearance: none; /* Fix appearance for date inputs in Safari */
537
+ border-radius: 0.5rem;
538
+ margin-bottom: 1.5rem;
539
+ min-height: calc(
540
+ var(--input-padding-block, 0.75rem) + var(--input-padding-block, 0.75rem) + var(--input-lh, 1.25rem) +
541
+ 4px
542
+ );
543
+ max-height: calc(
544
+ var(--input-padding-block, 0.75rem) + var(--input-padding-block, 0.75rem) + var(--input-lh, 1.25rem) +
545
+ 4px
546
+ );
547
+
548
+ &:is(textarea) {
549
+ max-height: 100%;
550
+ }
551
+
552
+ /* Customize the `:focus` state to imitate native WebKit styles. */
553
+ &:is(:focus, .focus):not(:disabled) {
554
+ border-color: var(--colour-info);
555
+ outline: 0;
556
+ }
557
+
558
+ &:is(:focus, .focus):not(:disabled):not(:invalid) {
559
+ box-shadow: 0 0 0 0.1rem rgba(30, 190, 230, 0.25);
560
+ }
561
+ /* Add some height to date inputs on iOS */
562
+ /* https://github.com/twbs/bootstrap/issues/23307 */
563
+ /* TODO: we can remove this workaround once https://bugs.webkit.org/show_bug.cgi?id=198959 is resolved */
564
+ &::-webkit-date-and-time-value {
565
+ /* Multiply line-height by 1em if it has no unit */
566
+ height: if(math.unit(1.5) == '', 1.5 * 1em, 1.5);
567
+ }
568
+
569
+ /* Disabled inputs */
570
+ &:disabled {
571
+ background-color: #ccd6d8;
572
+ opacity: 0.4;
573
+ cursor: not-allowed;
574
+ }
575
+ }
576
+
577
+
578
+ $breakpoints: (
579
+ sm: 36em,
580
+ md: 62em
581
+ );
582
+
583
+ $new_utilities: ();
584
+
585
+
586
+ /* #region Clearfix */
587
+ $new_utilities: map.merge(
588
+ $new_utilities,
589
+ (
590
+ 'clearfix': 'Clear the floats from both sides',
591
+ )
592
+ );
593
+
594
+ @mixin clearfix() {
595
+ .clearfix {
596
+ &::after {
597
+ display: block;
598
+ clear: both;
599
+ content: '';
600
+ }
601
+ }
602
+ }
603
+ /* #endregion */
604
+
605
+ /* #region visually-hidden */
606
+ $new_utilities: map.merge(
607
+ $new_utilities,
608
+ (
609
+ 'visually-hidden': 'Hide an element from the standard user but not from screen readers',
610
+ )
611
+ );
612
+
613
+ @mixin visually-hidden() {
614
+ .visually-hidden,
615
+ .visually-hidden-focusable:not(:focus):not(:focus-within) {
616
+ position: absolute !important;
617
+ width: 1px !important;
618
+ height: 1px !important;
619
+ padding: 0 !important;
620
+ margin: -1px !important; /* Fix for https://github.com/twbs/bootstrap/issues/25686 */
621
+ overflow: hidden !important;
622
+ clip: rect(0, 0, 0, 0) !important;
623
+ white-space: nowrap !important;
624
+ border: 0 !important;
625
+ }
626
+ }
627
+ /* #endregion */
628
+
629
+ /* #region text-truncate */
630
+ $new_utilities: map.merge(
631
+ $new_utilities,
632
+ (
633
+ 'text-truncate': 'Keep the text onto one line and add an ellipsis if needed',
634
+ )
635
+ );
636
+
637
+ @mixin text-truncate() {
638
+ .text-truncate {
639
+ overflow: hidden;
640
+ text-overflow: ellipsis;
641
+ white-space: nowrap;
642
+ }
643
+ }
644
+ /* #endregion */
645
+
646
+ /* #region ratio */
647
+ $new_utilities: map.merge(
648
+ $new_utilities,
649
+ (
650
+ 'ratio': 'Use pre-defined aspect ratios to generate the sizing or elements',
651
+ )
652
+ );
653
+
654
+ @mixin ratio() {
655
+ .ratio {
656
+ position: relative;
657
+ width: 100%;
658
+
659
+ &::before {
660
+ display: block;
661
+ padding-top: var(--aspect-ratio);
662
+ content: '';
663
+ }
664
+
665
+ > * {
666
+ position: absolute;
667
+ top: 0;
668
+ left: 0;
669
+ width: 100%;
670
+ height: 100%;
671
+ }
672
+ }
673
+
674
+ .ratio-1x1 {
675
+ --aspect-ratio: 100%;
676
+ }
677
+ .ratio-4x3 {
678
+ --aspect-ratio: calc(3 / 4 * 100%);
679
+ }
680
+ .ratio-16x9 {
681
+ --aspect-ratio: calc(9 / 16 * 100%);
682
+ }
683
+ .ratio-21x9 {
684
+ --aspect-ratio: calc(9 / 21 * 100%);
685
+ }
686
+ }
687
+ /* #endregion */
688
+
689
+ /* #region fixed */
690
+ $new_utilities: map.merge(
691
+ $new_utilities,
692
+ (
693
+ 'fixed': 'Fix elements to either the top or bottom',
694
+ )
695
+ );
696
+
697
+ @mixin fixed() {
698
+ .fixed-top {
699
+ position: fixed;
700
+ top: 0;
701
+ right: 0;
702
+ left: 0;
703
+ z-index: var(--index-floating);
704
+ }
705
+
706
+ .fixed-bottom {
707
+ position: fixed;
708
+ right: 0;
709
+ bottom: 0;
710
+ left: 0;
711
+ z-index: var(--index-floating);
712
+ }
713
+ }
714
+ /* #endregion */
715
+
716
+ /* #region sticky */
717
+ $new_utilities: map.merge(
718
+ $new_utilities,
719
+ (
720
+ 'sticky': 'Make elements stick to either the top or bottom',
721
+ )
722
+ );
723
+
724
+ @mixin sticky() {
725
+
726
+ @media screen and (min-width: 36em) {
727
+
728
+ .sticky-sm-top {
729
+ position: sticky;
730
+ top: 0;
731
+ z-index: var(--index-floating);
732
+ }
733
+ .sticky-sm-bottom {
734
+ position: sticky;
735
+ bottom: 0;
736
+ z-index: var(--index-floating);
737
+ }
738
+ }
739
+ @media screen and (min-width: 62em) {
740
+
741
+ .sticky-md-top {
742
+ position: sticky;
743
+ top: 0;
744
+ z-index: var(--index-floating);
745
+ }
746
+ .sticky-md-bottom {
747
+ position: sticky;
748
+ bottom: 0;
749
+ z-index: var(--index-floating);
750
+ }
751
+ }
752
+ }
753
+ /* #endregion */
754
+
755
+ /* #region max-height */
756
+ $new_utilities: map.merge(
757
+ $new_utilities,
758
+ (
759
+ 'max-height':
760
+ 'Set a pre-defined max height on an element, note this will create a scrollable area if the content is larger than the max height.',
761
+ )
762
+ );
763
+
764
+ @mixin max-height() {
765
+ :is(.mh-sm, .mh-md, .mh-lg, .mh-sm-sm, .mh-sm-md, .mh-sm-lg, .mh-md-sm, .mh-md-md, .mh-md-lg, .mh-fluid) {
766
+ &:not(iam-table):not(.table__wrapper) {
767
+ padding-inline: var(--mh-padding-inline, 0);
768
+ margin-inline: calc(var(--mh-padding-inline, 0) * -1);
769
+ }
770
+
771
+ &::before {
772
+ top: calc(100% - 1.5rem);
773
+ bottom: 0;
774
+ left: 0;
775
+ right: 0;
776
+ height: 1.5rem;
777
+ position: sticky;
778
+ display: block;
779
+ background: linear-gradient(180deg, transparent 0%, var(--colour-canvas-2) 100%);
780
+ z-index: 2;
781
+ margin-bottom: -1.5rem;
782
+ }
783
+ }
784
+
785
+ :is(.mh-sm, .mh-md, .mh-lg, .mh-fluid) {
786
+ overflow: auto;
787
+ overscroll-behavior: contain;
788
+
789
+ &::before {
790
+ content: '';
791
+ }
792
+ }
793
+
794
+ .mh-sm {
795
+ max-height: calc(12.5rem - var(--mh-modifier, 0rem));
796
+ }
797
+
798
+ .mh-md {
799
+ max-height: calc(#{rem(400)} - var(--mh-modifier, 0rem));
800
+ }
801
+
802
+ .mh-lg {
803
+ max-height: calc(#{rem(600)} - var(--mh-modifier, 0rem));
804
+ }
805
+
806
+ .mh-fluid {
807
+ max-height: 100%;
808
+ }
809
+
810
+ @media screen and (min-width: 36em) {
811
+ :is(.mh-sm-sm, .mh-sm-md, .mh-sm-lg) {
812
+ overflow: auto;
813
+ overscroll-behavior: contain;
814
+
815
+ &::before {
816
+ content: '';
817
+ }
818
+ }
819
+
820
+ .mh-sm-sm {
821
+ max-height: calc(12.5rem - var(--mh-modifier, 0rem));
822
+ }
823
+
824
+ .mh-sm-md {
825
+ max-height: calc(#{rem(400)} - var(--mh-modifier, 0rem));
826
+ }
827
+
828
+ .mh-sm-lg {
829
+ max-height: calc(#{rem(600)} - var(--mh-modifier, 0rem));
830
+ }
831
+ }
832
+
833
+ @media screen and (min-width: 62em) {
834
+ :is(.mh-md-sm, .mh-md-md, .mh-md-lg) {
835
+ overflow: auto;
836
+ overscroll-behavior: contain;
837
+
838
+ &::before {
839
+ content: '';
840
+ }
841
+ }
842
+
843
+ .mh-md-sm {
844
+ max-height: calc(12.5rem - var(--mh-modifier, 0rem));
845
+ }
846
+
847
+ .mh-md-md {
848
+ max-height: calc(#{rem(400)} - var(--mh-modifier, 0rem));
849
+ }
850
+
851
+ .mh-md-lg {
852
+ max-height: calc(#{rem(600)} - var(--mh-modifier, 0rem));
853
+ }
854
+ }
855
+ }
856
+ /* #endregion */
857
+
858
+ /* #region js-display */
859
+ $new_utilities: map.merge(
860
+ $new_utilities,
861
+ (
862
+ 'js-display': 'Show and hide elements depending upon if javascript is running or not',
863
+ )
864
+ );
865
+
866
+ @mixin js-display() {
867
+ @media (scripting: enabled) {
868
+ .js-show {
869
+ display: none !important;
870
+ }
871
+ }
872
+
873
+ @media (scripting: none) {
874
+ .js-hide {
875
+ display: none !important;
876
+ }
877
+ }
878
+ }
879
+ /* #endregion */
880
+
881
+ /* #region Line clamp */
882
+ $new_utilities: map.merge(
883
+ $new_utilities,
884
+ (
885
+ 'line-clamp': 'Restricts a texts height to a number of lines (1-5)',
886
+ )
887
+ );
888
+
889
+ @mixin line-clamp() {
890
+ .line-clamp {
891
+ display: -webkit-box;
892
+ -webkit-box-orient: vertical;
893
+ -webkit-line-clamp: 1;
894
+ text-overflow: hidden;
895
+ overflow: hidden;
896
+ }
897
+
898
+ .line-clamp--2 {
899
+ -webkit-line-clamp: 2;
900
+ }
901
+
902
+ .line-clamp--3 {
903
+ -webkit-line-clamp: 3;
904
+ }
905
+
906
+ .line-clamp--4 {
907
+ -webkit-line-clamp: 4;
908
+ }
909
+
910
+ .line-clamp--5 {
911
+ -webkit-line-clamp: 5;
912
+ }
913
+ }
914
+ /* #endregion */
915
+
916
+ /* #region Wider colours */
917
+ $new_utilities: map.merge(
918
+ $new_utilities,
919
+ (
920
+ 'wider-colours': 'Apply the wider range of colours in our design system',
921
+ )
922
+ );
923
+
924
+ @mixin wider-colours() {
925
+
926
+ @for $i from 1 through 23 {
927
+ .wider-colour-#{$i} {
928
+ --wider-colour: var(--wider-colour-#{$i} );
929
+ --wider-colour-hover: var(--wider-colour-#{$i}-hover);
930
+ --wider-colour-active: var(--wider-colour-#{$i}-active);
931
+ color: #262626 !important;
932
+ }
933
+ }
934
+
935
+ }
936
+ /* #endregion */
937
+
938
+ /* #region Align */
939
+ $new_utilities: map.merge(
940
+ $new_utilities,
941
+ (
942
+ 'align': 'Change the alignment of the text ',
943
+ )
944
+ );
945
+
946
+ @mixin align() {
947
+ .align-baseline {
948
+ vertical-align: baseline !important;
949
+ }
950
+
951
+ .align-top {
952
+ vertical-align: top !important;
953
+ }
954
+
955
+ .align-middle {
956
+ vertical-align: middle !important;
957
+ }
958
+
959
+ .align-bottom {
960
+ vertical-align: bottom !important;
961
+ }
962
+
963
+ .align-text-bottom {
964
+ vertical-align: text-bottom !important;
965
+ }
966
+
967
+ .align-text-top {
968
+ vertical-align: text-top !important;
969
+ }
970
+ }
971
+ /* #endregion */
972
+
973
+ /* #region Opacity */
974
+ $new_utilities: map.merge(
975
+ $new_utilities,
976
+ (
977
+ 'opacity': 'Apply the opacity of an element by intervals of 25%',
978
+ )
979
+ );
980
+
981
+ @mixin opacity() {
982
+ .opacity-0 {
983
+ opacity: 0 !important;
984
+ }
985
+
986
+ .opacity-25 {
987
+ opacity: 0.25 !important;
988
+ }
989
+
990
+ .opacity-50 {
991
+ opacity: 0.5 !important;
992
+ }
993
+
994
+ .opacity-75 {
995
+ opacity: 0.75 !important;
996
+ }
997
+
998
+ .opacity-100 {
999
+ opacity: 1 !important;
1000
+ }
1001
+ }
1002
+ /* #endregion */
1003
+
1004
+ /* #region Overflow */
1005
+ $new_utilities: map.merge(
1006
+ $new_utilities,
1007
+ (
1008
+ 'overflow': 'Update the overflow of an element',
1009
+ )
1010
+ );
1011
+
1012
+ @mixin overflow() {
1013
+ .overflow-auto {
1014
+ overflow: auto !important;
1015
+ }
1016
+
1017
+ .overflow-hidden {
1018
+ overflow: hidden !important;
1019
+ }
1020
+
1021
+ .overflow-visible {
1022
+ overflow: visible !important;
1023
+ }
1024
+
1025
+ .overflow-scroll {
1026
+ overflow: scroll !important;
1027
+ }
1028
+ }
1029
+ /* #endregion */
1030
+
1031
+ /* #region Display */
1032
+ $new_utilities: map.merge(
1033
+ $new_utilities,
1034
+ (
1035
+ 'display': 'Update the display of an element, can be applied at different breakpoints',
1036
+ )
1037
+ );
1038
+
1039
+ @mixin display() {
1040
+ .d-inline {
1041
+ display: inline !important;
1042
+ }
1043
+
1044
+ .d-inline-block {
1045
+ display: inline-block !important;
1046
+ }
1047
+
1048
+ .d-block {
1049
+ display: block !important;
1050
+ }
1051
+
1052
+ .d-grid {
1053
+ display: grid !important;
1054
+ }
1055
+
1056
+ .d-table {
1057
+ display: table !important;
1058
+ }
1059
+
1060
+ .d-table-row {
1061
+ display: table-row !important;
1062
+ }
1063
+
1064
+ .d-table-cell {
1065
+ display: table-cell !important;
1066
+ }
1067
+
1068
+ .d-flex {
1069
+ display: flex !important;
1070
+ }
1071
+
1072
+ .d-inline-flex {
1073
+ display: inline-flex !important;
1074
+ }
1075
+
1076
+ .d-none {
1077
+ display: none !important;
1078
+ }
1079
+
1080
+ @each $breakpoint,$width in $breakpoints {
1081
+ @media screen and (min-width: $width) {
1082
+
1083
+ .d-#{$breakpoint}-inline {
1084
+ display: inline !important;
1085
+ }
1086
+
1087
+ .d-#{$breakpoint}-inline-block {
1088
+ display: inline-block !important;
1089
+ }
1090
+
1091
+ .d-#{$breakpoint}-block {
1092
+ display: block !important;
1093
+ }
1094
+
1095
+ .d-#{$breakpoint}-grid {
1096
+ display: grid !important;
1097
+ }
1098
+
1099
+ .d-#{$breakpoint}-table {
1100
+ display: table !important;
1101
+ }
1102
+
1103
+ .d-#{$breakpoint}-table-row {
1104
+ display: table-row !important;
1105
+ }
1106
+
1107
+ .d-#{$breakpoint}-table-cell {
1108
+ display: table-cell !important;
1109
+ }
1110
+
1111
+ .d-#{$breakpoint}-flex {
1112
+ display: flex !important;
1113
+ }
1114
+
1115
+ .d-#{$breakpoint}-inline-flex {
1116
+ display: inline-flex !important;
1117
+ }
1118
+
1119
+ .d-#{$breakpoint}-none {
1120
+ display: none !important;
1121
+ }
1122
+ }
1123
+ }
1124
+ }
1125
+ /* #endregion */
1126
+
1127
+ /* #region Position */
1128
+ $new_utilities: map.merge(
1129
+ $new_utilities,
1130
+ (
1131
+ 'position': 'Update the position of an element, can be applied at different breakpoints',
1132
+ )
1133
+ );
1134
+
1135
+ @mixin position() {
1136
+ @each $breakpoint,$width in $breakpoints {
1137
+ @media screen and (min-width: $width) {
1138
+
1139
+ .position-#{$breakpoint}-static {
1140
+ position: static !important;
1141
+ }
1142
+
1143
+ .position-#{$breakpoint}-relative {
1144
+ position: relative !important;
1145
+ }
1146
+
1147
+ .position-#{$breakpoint}-absolute {
1148
+ position: absolute !important;
1149
+ }
1150
+
1151
+ .position-#{$breakpoint}-fixed {
1152
+ position: fixed !important;
1153
+ }
1154
+
1155
+ .position-#{$breakpoint}-sticky {
1156
+ position: sticky !important;
1157
+ }
1158
+
1159
+ .top-#{$breakpoint}-0 {
1160
+ top: 0 !important;
1161
+ }
1162
+
1163
+ .top-#{$breakpoint}-50 {
1164
+ top: 50% !important;
1165
+ }
1166
+
1167
+ .top-#{$breakpoint}-100 {
1168
+ top: 100% !important;
1169
+ }
1170
+
1171
+ .bottom-#{$breakpoint}-0 {
1172
+ bottom: 0 !important;
1173
+ }
1174
+
1175
+ .bottom-#{$breakpoint}-50 {
1176
+ bottom: 50% !important;
1177
+ }
1178
+
1179
+ .bottom-#{$breakpoint}-100 {
1180
+ bottom: 100% !important;
1181
+ }
1182
+
1183
+ .start-#{$breakpoint}-0 {
1184
+ left: 0 !important;
1185
+ }
1186
+
1187
+ .start-#{$breakpoint}-50 {
1188
+ left: 50% !important;
1189
+ }
1190
+
1191
+ .start-#{$breakpoint}-100 {
1192
+ left: 100% !important;
1193
+ }
1194
+
1195
+ .end-#{$breakpoint}-0 {
1196
+ right: 0 !important;
1197
+ }
1198
+
1199
+ .end-#{$breakpoint}-50 {
1200
+ right: 50% !important;
1201
+ }
1202
+
1203
+ .end-#{$breakpoint}-100 {
1204
+ right: 100% !important;
1205
+ }
1206
+
1207
+ .translate-#{$breakpoint}-middle {
1208
+ transform: translate(-50%, -50%) !important;
1209
+ }
1210
+
1211
+ .translate-#{$breakpoint}-middle-x {
1212
+ transform: translateX(-50%) !important;
1213
+ }
1214
+
1215
+ .translate-#{$breakpoint}-middle-y {
1216
+ transform: translateY(-50%) !important;
1217
+ }
1218
+ }
1219
+ }
1220
+ }
1221
+ /* #endregion */
1222
+
1223
+ /* #region Border */
1224
+ $new_utilities: map.merge(
1225
+ $new_utilities,
1226
+ (
1227
+ 'border': 'Apply a border and adjust its settings',
1228
+ )
1229
+ );
1230
+
1231
+ @mixin border() {
1232
+ .border {
1233
+ border: var(--border-width) var(--border-style) var(--border-color) !important;
1234
+ }
1235
+
1236
+ .border-0 {
1237
+ border: 0 !important;
1238
+ }
1239
+
1240
+ .border-top {
1241
+ border-top: var(--border-width) var(--border-style) var(--border-color) !important;
1242
+ }
1243
+
1244
+ .border-top-0 {
1245
+ border-top: 0 !important;
1246
+ }
1247
+
1248
+ .border-end {
1249
+ border-right: var(--border-width) var(--border-style) var(--border-color) !important;
1250
+ }
1251
+
1252
+ .border-end-0 {
1253
+ border-right: 0 !important;
1254
+ }
1255
+
1256
+ .border-bottom {
1257
+ border-bottom: var(--border-width) var(--border-style) var(--border-color) !important;
1258
+ }
1259
+
1260
+ .border-bottom-0 {
1261
+ border-bottom: 0 !important;
1262
+ }
1263
+
1264
+ .border-start {
1265
+ border-left: var(--border-width) var(--border-style) var(--border-color) !important;
1266
+ }
1267
+
1268
+ .border-start-0 {
1269
+ border-left: 0 !important;
1270
+ }
1271
+
1272
+ .border-1 {
1273
+ --border-width: 1px;
1274
+ }
1275
+
1276
+ .border-2 {
1277
+ --border-width: 2px;
1278
+ }
1279
+
1280
+ .border-3 {
1281
+ --border-width: 3px;
1282
+ }
1283
+
1284
+ .border-4 {
1285
+ --border-width: 4px;
1286
+ }
1287
+
1288
+ .border-5 {
1289
+ --border-width: 5px;
1290
+ }
1291
+
1292
+ .border-opacity-10 {
1293
+ --border-opacity: 0.1;
1294
+ }
1295
+
1296
+ .border-opacity-25 {
1297
+ --border-opacity: 0.25;
1298
+ }
1299
+
1300
+ .border-opacity-50 {
1301
+ --border-opacity: 0.5;
1302
+ }
1303
+
1304
+ .border-opacity-75 {
1305
+ --border-opacity: 0.75;
1306
+ }
1307
+
1308
+ .border-opacity-100 {
1309
+ --border-opacity: 1;
1310
+ }
1311
+ }
1312
+ /* #endregion */
1313
+
1314
+ /* #region Sizes */
1315
+ $new_utilities: map.merge(
1316
+ $new_utilities,
1317
+ (
1318
+ 'sizes': 'Apply sizing rules to an element',
1319
+ )
1320
+ );
1321
+
1322
+ @mixin sizes() {
1323
+ .w-25 {
1324
+ width: 25% !important;
1325
+ }
1326
+
1327
+ .w-50 {
1328
+ width: 50% !important;
1329
+ }
1330
+
1331
+ .w-75 {
1332
+ width: 75% !important;
1333
+ }
1334
+
1335
+ .w-100 {
1336
+ width: 100% !important;
1337
+ }
1338
+
1339
+ .w-auto {
1340
+ width: auto !important;
1341
+ }
1342
+
1343
+ .mw-100 {
1344
+ max-width: 100% !important;
1345
+ }
1346
+
1347
+ .mw-fit-content {
1348
+ max-width: fit-content !important;
1349
+ }
1350
+
1351
+ .mw-content {
1352
+ max-width: var(--content-max-width) !important;
1353
+ }
1354
+
1355
+ .vw-100 {
1356
+ width: 100vw !important;
1357
+ }
1358
+
1359
+ .min-vw-100 {
1360
+ min-width: 100vw !important;
1361
+ }
1362
+
1363
+ .h-25 {
1364
+ height: 25% !important;
1365
+ }
1366
+
1367
+ .h-50 {
1368
+ height: 50% !important;
1369
+ }
1370
+
1371
+ .h-75 {
1372
+ height: 75% !important;
1373
+ }
1374
+
1375
+ .h-100 {
1376
+ height: 100% !important;
1377
+ }
1378
+
1379
+ .h-auto {
1380
+ height: auto !important;
1381
+ }
1382
+
1383
+ .mh-100 {
1384
+ max-height: 100% !important;
1385
+ }
1386
+
1387
+ .vh-100 {
1388
+ height: 100vh !important;
1389
+ }
1390
+
1391
+ .min-vh-100 {
1392
+ min-height: 100vh !important;
1393
+ }
1394
+
1395
+ .min-100 {
1396
+ min-width: 100% !important;
1397
+ }
1398
+
1399
+ .min-fit-content {
1400
+ min-width: fit-content !important;
1401
+ }
1402
+
1403
+ .object-cover {
1404
+ object-fit: cover !important;
1405
+ }
1406
+
1407
+ .object-contain {
1408
+ object-fit: contain !important;
1409
+ }
1410
+ }
1411
+ /* #endregion */
1412
+
1413
+ /* #region Flex */
1414
+ $new_utilities: map.merge(
1415
+ $new_utilities,
1416
+ (
1417
+ 'flex': 'Update the flex rules of an element, can be applied at different breakpoints',
1418
+ )
1419
+ );
1420
+
1421
+ @mixin flex() {
1422
+ @each $breakpoint,$width in $breakpoints {
1423
+ @media screen and (min-width: $width) {
1424
+
1425
+ .flex-#{$breakpoint}-fill {
1426
+ flex: 1 1 auto !important;
1427
+ }
1428
+
1429
+ .flex-#{$breakpoint}-row {
1430
+ flex-direction: row !important;
1431
+ }
1432
+
1433
+ .flex-#{$breakpoint}-column {
1434
+ flex-direction: column !important;
1435
+ }
1436
+
1437
+ .flex-#{$breakpoint}-row-reverse {
1438
+ flex-direction: row-reverse !important;
1439
+ }
1440
+
1441
+ .flex-#{$breakpoint}-column-reverse {
1442
+ flex-direction: column-reverse !important;
1443
+ }
1444
+
1445
+ .flex-#{$breakpoint}-grow-0 {
1446
+ flex-grow: 0 !important;
1447
+ }
1448
+
1449
+ .flex-#{$breakpoint}-grow-1 {
1450
+ flex-grow: 1 !important;
1451
+ }
1452
+
1453
+ .flex-#{$breakpoint}-shrink-0 {
1454
+ flex-shrink: 0 !important;
1455
+ }
1456
+
1457
+ .flex-#{$breakpoint}-shrink-1 {
1458
+ flex-shrink: 1 !important;
1459
+ }
1460
+
1461
+ .flex-#{$breakpoint}-wrap {
1462
+ flex-wrap: wrap !important;
1463
+ }
1464
+
1465
+ .flex-#{$breakpoint}-nowrap {
1466
+ flex-wrap: nowrap !important;
1467
+ }
1468
+
1469
+ .flex-#{$breakpoint}-wrap-reverse {
1470
+ flex-wrap: wrap-reverse !important;
1471
+ }
1472
+
1473
+ .justify-content-#{$breakpoint}-start {
1474
+ justify-content: flex-start !important;
1475
+ }
1476
+
1477
+ .justify-content-#{$breakpoint}-end {
1478
+ justify-content: flex-end !important;
1479
+ }
1480
+
1481
+ .justify-content-#{$breakpoint}-center {
1482
+ justify-content: center !important;
1483
+ }
1484
+
1485
+ .justify-content-#{$breakpoint}-between {
1486
+ justify-content: space-between !important;
1487
+ }
1488
+
1489
+ .justify-content-#{$breakpoint}-around {
1490
+ justify-content: space-around !important;
1491
+ }
1492
+
1493
+ .justify-content-#{$breakpoint}-evenly {
1494
+ justify-content: space-evenly !important;
1495
+ }
1496
+
1497
+ .align-items-#{$breakpoint}-start {
1498
+ align-items: flex-start !important;
1499
+ }
1500
+
1501
+ .align-items-#{$breakpoint}-end {
1502
+ align-items: flex-end !important;
1503
+ }
1504
+
1505
+ .align-items-#{$breakpoint}-center {
1506
+ align-items: center !important;
1507
+ }
1508
+
1509
+ .align-items-#{$breakpoint}-baseline {
1510
+ align-items: baseline !important;
1511
+ }
1512
+
1513
+ .align-items-#{$breakpoint}-stretch {
1514
+ align-items: stretch !important;
1515
+ }
1516
+
1517
+ .align-content-#{$breakpoint}-start {
1518
+ align-content: flex-start !important;
1519
+ }
1520
+
1521
+ .align-content-#{$breakpoint}-end {
1522
+ align-content: flex-end !important;
1523
+ }
1524
+
1525
+ .align-content-#{$breakpoint}-center {
1526
+ align-content: center !important;
1527
+ }
1528
+
1529
+ .align-content-#{$breakpoint}-between {
1530
+ align-content: space-between !important;
1531
+ }
1532
+
1533
+ .align-content-#{$breakpoint}-around {
1534
+ align-content: space-around !important;
1535
+ }
1536
+
1537
+ .align-content-#{$breakpoint}-stretch {
1538
+ align-content: stretch !important;
1539
+ }
1540
+
1541
+ .align-self-#{$breakpoint}-auto {
1542
+ align-self: auto !important;
1543
+ }
1544
+
1545
+ .align-self-#{$breakpoint}-start {
1546
+ align-self: flex-start !important;
1547
+ }
1548
+
1549
+ .align-self-#{$breakpoint}-end {
1550
+ align-self: flex-end !important;
1551
+ }
1552
+
1553
+ .align-self-#{$breakpoint}-center {
1554
+ align-self: center !important;
1555
+ }
1556
+
1557
+ .align-self-#{$breakpoint}-baseline {
1558
+ align-self: baseline !important;
1559
+ }
1560
+
1561
+ .align-self-#{$breakpoint}-stretch {
1562
+ align-self: stretch !important;
1563
+ }
1564
+ }
1565
+ }
1566
+ }
1567
+ /* #endregion */
1568
+
1569
+ /* #region Order */
1570
+ $new_utilities: map.merge(
1571
+ $new_utilities,
1572
+ (
1573
+ 'order': 'Update the order of an element, can be applied at different breakpoints',
1574
+ )
1575
+ );
1576
+
1577
+ @mixin order() {
1578
+ @each $breakpoint,$width in $breakpoints {
1579
+ @media screen and (min-width: $width) {
1580
+
1581
+ .order-#{$breakpoint}-first {
1582
+ order: -1 !important;
1583
+ }
1584
+
1585
+ .order-#{$breakpoint}-0 {
1586
+ order: 0 !important;
1587
+ }
1588
+
1589
+ .order-#{$breakpoint}-1 {
1590
+ order: 1 !important;
1591
+ }
1592
+
1593
+ .order-#{$breakpoint}-2 {
1594
+ order: 2 !important;
1595
+ }
1596
+
1597
+ .order-#{$breakpoint}-3 {
1598
+ order: 3 !important;
1599
+ }
1600
+
1601
+ .order-#{$breakpoint}-4 {
1602
+ order: 4 !important;
1603
+ }
1604
+
1605
+ .order-#{$breakpoint}-5 {
1606
+ order: 5 !important;
1607
+ }
1608
+
1609
+ .order-#{$breakpoint}-last {
1610
+ order: 6 !important;
1611
+ }
1612
+ }
1613
+ }
1614
+ }
1615
+ /* #endregion */
1616
+
1617
+ /* #region Margins */
1618
+ $new_utilities: map.merge(
1619
+ $new_utilities,
1620
+ (
1621
+ 'margins': 'Adjust the margins of an element',
1622
+ )
1623
+ );
1624
+
1625
+ @mixin margins() {
1626
+ @for $key from 0 through 5 {
1627
+ $value: var(--spacer-#{$key});
1628
+
1629
+ .m-#{$key} {
1630
+ margin: #{$value} !important;
1631
+ }
1632
+
1633
+ .mx-#{$key} {
1634
+ margin-left: #{$value} !important;
1635
+ margin-right: #{$value} !important;
1636
+ }
1637
+
1638
+ .mx-minus-#{$key} {
1639
+ margin-left: -#{$value} !important;
1640
+ margin-right: -#{$value} !important;
1641
+ }
1642
+
1643
+ .my-minus-#{$key} {
1644
+ margin-top: -#{$value} !important;
1645
+ margin-bottom: -#{$value} !important;
1646
+ }
1647
+
1648
+ .my-#{$key} {
1649
+ margin-top: #{$value} !important;
1650
+ margin-bottom: #{$value} !important;
1651
+ }
1652
+
1653
+ .mt-#{$key} {
1654
+ margin-top: #{$value} !important;
1655
+ }
1656
+
1657
+ .me-#{$key} {
1658
+ margin-right: #{$value} !important;
1659
+ }
1660
+
1661
+ .mb-#{$key} {
1662
+ margin-bottom: #{$value} !important;
1663
+ }
1664
+
1665
+ .ms-#{$key} {
1666
+ margin-left: #{$value} !important;
1667
+ }
1668
+ }
1669
+
1670
+ .m-auto {
1671
+ margin: auto !important;
1672
+ }
1673
+
1674
+ .mx-auto {
1675
+ margin-right: auto !important;
1676
+ margin-left: auto !important;
1677
+ }
1678
+
1679
+ .my-auto {
1680
+ margin-top: auto !important;
1681
+ margin-bottom: auto !important;
1682
+ }
1683
+
1684
+ .mt-auto {
1685
+ margin-top: auto !important;
1686
+ }
1687
+
1688
+ .me-auto {
1689
+ margin-right: auto !important;
1690
+ }
1691
+
1692
+ .mb-auto {
1693
+ margin-bottom: auto !important;
1694
+ }
1695
+
1696
+ .ms-auto {
1697
+ margin-left: auto !important;
1698
+ }
1699
+ }
1700
+ /* #endregion */
1701
+
1702
+ /* #region Paddings */
1703
+ $new_utilities: map.merge(
1704
+ $new_utilities,
1705
+ (
1706
+ 'paddings': 'Adjust the paddings of an element',
1707
+ )
1708
+ );
1709
+
1710
+ @mixin paddings() {
1711
+ @for $key from 0 through 5 {
1712
+ $value: var(--spacer-#{$key});
1713
+ .p-#{$key} {
1714
+ padding: #{$value} !important;
1715
+ }
1716
+
1717
+ .px-#{$key} {
1718
+ padding-left: #{$value} !important;
1719
+ padding-right: #{$value} !important;
1720
+ }
1721
+
1722
+ .py-#{$key} {
1723
+ padding-top: #{$value} !important;
1724
+ padding-bottom: #{$value} !important;
1725
+ }
1726
+
1727
+ .pt-#{$key} {
1728
+ padding-top: #{$value} !important;
1729
+ }
1730
+
1731
+ .pe-#{$key} {
1732
+ padding-right: #{$value} !important;
1733
+ }
1734
+
1735
+ .pb-#{$key} {
1736
+ padding-bottom: #{$value} !important;
1737
+ }
1738
+
1739
+ .ps-#{$key} {
1740
+ padding-left: #{$value} !important;
1741
+ }
1742
+ }
1743
+ }
1744
+ /* #endregion */
1745
+
1746
+ /* #region Gap */
1747
+ $new_utilities: map.merge(
1748
+ $new_utilities,
1749
+ (
1750
+ 'gap': 'Update the gap sizing of an element with the display flex',
1751
+ )
1752
+ );
1753
+
1754
+ @mixin gap() {
1755
+ @for $key from 0 through 5 {
1756
+ $value: var(--spacer-#{$key});
1757
+ .gap-#{$key} {
1758
+ gap: #{$value} !important;
1759
+ }
1760
+ }
1761
+ }
1762
+ /* #endregion */
1763
+
1764
+ /* #region Text */
1765
+ $new_utilities: map.merge(
1766
+ $new_utilities,
1767
+ (
1768
+ 'text': 'Apply the text settings',
1769
+ )
1770
+ );
1771
+
1772
+ @mixin text() {
1773
+ .font-monospace {
1774
+ font-family: var(--font-monospace) !important;
1775
+ }
1776
+
1777
+ .font-body {
1778
+ font-family: var(--font-body) !important;
1779
+ }
1780
+
1781
+ .fs-1 {
1782
+ font-size: rfs-fluid-value(2.5rem) !important;
1783
+ }
1784
+
1785
+ .fs-2 {
1786
+ font-size: rfs-fluid-value(2rem) !important;
1787
+ }
1788
+
1789
+ .fs-3 {
1790
+ font-size: rfs-fluid-value(1.75rem) !important;
1791
+ }
1792
+
1793
+ .fs-4 {
1794
+ font-size: rfs-fluid-value(1.5rem) !important;
1795
+ }
1796
+
1797
+ .fs-5 {
1798
+ font-size: rfs-fluid-value(1.25rem) !important;
1799
+ }
1800
+
1801
+ .fs-6 {
1802
+ font-size: rfs-fluid-value(1rem) !important;
1803
+ }
1804
+
1805
+ .fst-italic {
1806
+ font-style: italic !important;
1807
+ }
1808
+
1809
+ .fst-normal {
1810
+ font-style: normal !important;
1811
+ }
1812
+
1813
+ .fw-light {
1814
+ font-weight: 300 !important;
1815
+ }
1816
+
1817
+ .fw-lighter {
1818
+ font-weight: lighter !important;
1819
+ }
1820
+
1821
+ .fw-normal {
1822
+ font-weight: 400 !important;
1823
+ }
1824
+
1825
+ .fw-bold {
1826
+ font-weight: 700 !important;
1827
+ }
1828
+
1829
+ .fw-semibold {
1830
+ font-weight: 600 !important;
1831
+ }
1832
+
1833
+ .fw-bolder {
1834
+ font-weight: bolder !important;
1835
+ }
1836
+
1837
+ .lh-0 {
1838
+ line-height: 0 !important;
1839
+ }
1840
+
1841
+ .lh-1 {
1842
+ line-height: 1 !important;
1843
+ }
1844
+
1845
+ .text-start {
1846
+ text-align: left !important;
1847
+ }
1848
+
1849
+ .text-end {
1850
+ text-align: right !important;
1851
+ }
1852
+
1853
+ .text-center {
1854
+ text-align: center !important;
1855
+ }
1856
+
1857
+ .text-decoration-none {
1858
+ text-decoration: none !important;
1859
+ }
1860
+
1861
+ .text-decoration-underline {
1862
+ text-decoration: underline !important;
1863
+ }
1864
+
1865
+ .text-decoration-line-through {
1866
+ text-decoration: line-through !important;
1867
+ }
1868
+
1869
+ .text-lowercase {
1870
+ text-transform: lowercase !important;
1871
+ }
1872
+
1873
+ .text-uppercase {
1874
+ text-transform: uppercase !important;
1875
+ }
1876
+
1877
+ .text-capitalize {
1878
+ text-transform: capitalize !important;
1879
+ }
1880
+
1881
+ .text-wrap {
1882
+ white-space: normal !important;
1883
+ }
1884
+
1885
+ .text-nowrap {
1886
+ white-space: nowrap !important;
1887
+ }
1888
+
1889
+ .text-break {
1890
+ word-wrap: break-word !important;
1891
+ word-break: break-word !important;
1892
+ }
1893
+ }
1894
+ /* #endregion */
1895
+
1896
+ /* #region Colours */
1897
+ $new_utilities: map.merge(
1898
+ $new_utilities,
1899
+ (
1900
+ 'colours': 'Applu our design system colours by either text colour or background',
1901
+ )
1902
+ );
1903
+
1904
+ @mixin colours() {
1905
+
1906
+ .text-heading {
1907
+
1908
+ color: var(--colour-heading) !important;
1909
+ }
1910
+
1911
+ $theme-colors: (
1912
+ 'primary': var(--colour-primary),
1913
+ 'secondary': var(--colour-secondary),
1914
+ 'info': var(--colour-info),
1915
+ 'warning': var(--colour-warning),
1916
+ 'success': var(--colour-success),
1917
+ 'complete': var(--colour-complete),
1918
+ 'danger': var(--colour-danger),
1919
+ 'dark': var(--colour-dark),
1920
+ 'light': var(--colour-light),
1921
+ 'canvas': var(--colour-canvas),
1922
+ 'white': var(--colour-white),
1923
+ );
1924
+
1925
+ @each $color, $value in $theme-colors {
1926
+ .text-#{$color} {
1927
+ --text-opacity: 1;
1928
+ color: var(--colour-#{$color}) !important;
1929
+ }
1930
+
1931
+ .bg-#{$color} {
1932
+ --bg-opacity: 1;
1933
+ --bg-colour: var(--colour-#{$color}) !important;
1934
+ background-color: var(--colour-#{$color}) !important;
1935
+ }
1936
+
1937
+ .hover-#{$color}:is(:hover,:focus,:focus-within) {
1938
+ --bg-opacity: 1;
1939
+ --bg-colour: var(--colour-#{$color}) !important;
1940
+ background-color: var(--colour-#{$color}) !important;
1941
+ }
1942
+
1943
+ .colour-#{$color} {
1944
+ --colour: var(--colour-#{$color}) !important;
1945
+ }
1946
+ }
1947
+ }
1948
+ /* #endregion */
1949
+
1950
+ /* #region gradients */
1951
+ $new_utilities: map.merge(
1952
+ $new_utilities,
1953
+ (
1954
+ 'gradients': 'Add gradients to backgrounds',
1955
+ )
1956
+ );
1957
+
1958
+ @mixin gradients() {
1959
+ .bg-gradient {
1960
+ background-image: var(--gradient) !important;
1961
+ }
1962
+
1963
+ .gradient-success {
1964
+ --gradient-direction: 180deg;
1965
+ background-image: linear-gradient(
1966
+ var(--gradient-direction),
1967
+ var(--colour-success-theme) 0,
1968
+ transparent 100%
1969
+ ) !important;
1970
+ }
1971
+
1972
+ .gradient-primary {
1973
+ --gradient-direction: 180deg;
1974
+ background-image: linear-gradient(
1975
+ var(--gradient-direction),
1976
+ var(--colour-primary-theme) 0,
1977
+ transparent 100%
1978
+ ) !important;
1979
+ }
1980
+
1981
+ .gradient-info {
1982
+ --gradient-direction: 180deg;
1983
+ background-image: linear-gradient(
1984
+ var(--gradient-direction),
1985
+ var(--colour-info-theme) 0,
1986
+ transparent 100%
1987
+ ) !important;
1988
+ }
1989
+
1990
+ .gradient-direction-left {
1991
+ --gradient-direction: 90deg;
1992
+ }
1993
+
1994
+ .gradient-direction-angle {
1995
+ --gradient-direction: 135deg;
1996
+ }
1997
+ }
1998
+ /* #endregion */
1999
+
2000
+ /* #region Pointer-events */
2001
+ $new_utilities: map.merge(
2002
+ $new_utilities,
2003
+ (
2004
+ 'pointer-events': 'Disable or enable point events',
2005
+ )
2006
+ );
2007
+
2008
+ @mixin pointer-events() {
2009
+ .pe-none {
2010
+ pointer-events: none !important;
2011
+ }
2012
+
2013
+ .pe-auto {
2014
+ pointer-events: auto !important;
2015
+ }
2016
+ }
2017
+ /* #endregion */
2018
+
2019
+ /* #region Rounded */
2020
+ $new_utilities: map.merge(
2021
+ $new_utilities,
2022
+ (
2023
+ 'rounded': 'Add rounded corners',
2024
+ )
2025
+ );
2026
+
2027
+ @mixin rounded() {
2028
+ .rounded {
2029
+ border-radius: var(--border-radius) !important;
2030
+ }
2031
+
2032
+ .rounded-0 {
2033
+ border-radius: 0 !important;
2034
+ }
2035
+
2036
+ .rounded-1 {
2037
+ border-radius: var(--border-radius-sm) !important;
2038
+ }
2039
+
2040
+ .rounded-2 {
2041
+ border-radius: var(--border-radius) !important;
2042
+ }
2043
+
2044
+ .rounded-3 {
2045
+ border-radius: var(--border-radius-lg) !important;
2046
+ }
2047
+
2048
+ .rounded-4 {
2049
+ border-radius: var(--border-radius-xl) !important;
2050
+ }
2051
+
2052
+ .rounded-5 {
2053
+ border-radius: var(--border-radius-2xl) !important;
2054
+ }
2055
+
2056
+ .rounded-circle {
2057
+ border-radius: 50% !important;
2058
+ }
2059
+
2060
+ .rounded-pill {
2061
+ border-radius: var(--border-radius-pill) !important;
2062
+ }
2063
+
2064
+ .rounded-top {
2065
+ border-top-left-radius: var(--border-radius) !important;
2066
+ border-top-right-radius: var(--border-radius) !important;
2067
+ }
2068
+
2069
+ .rounded-end {
2070
+ border-top-right-radius: var(--border-radius) !important;
2071
+ border-bottom-right-radius: var(--border-radius) !important;
2072
+ }
2073
+
2074
+ .rounded-bottom {
2075
+ border-bottom-right-radius: var(--border-radius) !important;
2076
+ border-bottom-left-radius: var(--border-radius) !important;
2077
+ }
2078
+
2079
+ .rounded-start {
2080
+ border-bottom-left-radius: var(--border-radius) !important;
2081
+ border-top-left-radius: var(--border-radius) !important;
2082
+ }
2083
+ }
2084
+ /* #endregion */
2085
+
2086
+ /* #region Visible */
2087
+ $new_utilities: map.merge(
2088
+ $new_utilities,
2089
+ (
2090
+ 'visible': 'Change the visibility of elements',
2091
+ )
2092
+ );
2093
+
2094
+ @mixin visible() {
2095
+ .visible {
2096
+ visibility: visible !important;
2097
+ }
2098
+
2099
+ .invisible {
2100
+ visibility: hidden !important;
2101
+ }
2102
+ }
2103
+ /* #endregion */