@iamproperty/components 7.6.0 → 7.6.2

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 (364) hide show
  1. package/assets/css/components/actionbar.component.css +1 -1
  2. package/assets/css/components/actionbar.component.css.map +1 -1
  3. package/assets/css/components/actionbar.global.css +1 -1
  4. package/assets/css/components/actionbar.global.css.map +1 -1
  5. package/assets/css/components/address-lookup.component.css +1 -1
  6. package/assets/css/components/address-lookup.component.css.map +1 -1
  7. package/assets/css/components/address-lookup.preload.css +1 -1
  8. package/assets/css/components/address-lookup.preload.css.map +1 -1
  9. package/assets/css/components/applied-filters.css +1 -1
  10. package/assets/css/components/applied-filters.css.map +1 -1
  11. package/assets/css/components/barchart.component.css +1 -1
  12. package/assets/css/components/barchart.component.css.map +1 -1
  13. package/assets/css/components/calendar.component.css +1 -1
  14. package/assets/css/components/calendar.component.css.map +1 -1
  15. package/assets/css/components/calendar.config.css +1 -1
  16. package/assets/css/components/calendar.config.css.map +1 -1
  17. package/assets/css/components/card.component.css +1 -1
  18. package/assets/css/components/card.component.css.map +1 -1
  19. package/assets/css/components/carousel.component.css +1 -1
  20. package/assets/css/components/carousel.component.css.map +1 -1
  21. package/assets/css/components/carousel.config.css.map +1 -1
  22. package/assets/css/components/charts.config.css +1 -1
  23. package/assets/css/components/charts.config.css.map +1 -1
  24. package/assets/css/components/charts.css +1 -1
  25. package/assets/css/components/charts.css.map +1 -1
  26. package/assets/css/components/charts.module.css +1 -1
  27. package/assets/css/components/charts.module.css.map +1 -1
  28. package/assets/css/components/collapsible-side.css +1 -1
  29. package/assets/css/components/collapsible-side.css.map +1 -1
  30. package/assets/css/components/content.component.css +1 -1
  31. package/assets/css/components/content.component.css.map +1 -1
  32. package/assets/css/components/darkmode.component.css +1 -1
  33. package/assets/css/components/darkmode.component.css.map +1 -1
  34. package/assets/css/components/doughnutchart.component.css +1 -1
  35. package/assets/css/components/doughnutchart.component.css.map +1 -1
  36. package/assets/css/components/fileupload.css +1 -1
  37. package/assets/css/components/fileupload.css.map +1 -1
  38. package/assets/css/components/filter-card.component.css +1 -1
  39. package/assets/css/components/filter-card.component.css.map +1 -1
  40. package/assets/css/components/header.css +1 -1
  41. package/assets/css/components/header.css.map +1 -1
  42. package/assets/css/components/inline-edit.css +1 -1
  43. package/assets/css/components/inline-edit.css.map +1 -1
  44. package/assets/css/components/inline-edit.preload.css.map +1 -1
  45. package/assets/css/components/input-range.component.css.map +1 -1
  46. package/assets/css/components/input.component.css +1 -1
  47. package/assets/css/components/input.component.css.map +1 -1
  48. package/assets/css/components/marketing.component.css +1 -1
  49. package/assets/css/components/marketing.component.css.map +1 -1
  50. package/assets/css/components/menu.global.css.map +1 -1
  51. package/assets/css/components/milestone.css +1 -1
  52. package/assets/css/components/milestone.css.map +1 -1
  53. package/assets/css/components/modal.component.css +1 -1
  54. package/assets/css/components/modal.component.css.map +1 -1
  55. package/assets/css/components/multi-step-modal.component.css +1 -1
  56. package/assets/css/components/multi-step-modal.component.css.map +1 -1
  57. package/assets/css/components/multi-step-modal.global.css.map +1 -1
  58. package/assets/css/components/multi-step.component.css.map +1 -1
  59. package/assets/css/components/multiselect.css +1 -1
  60. package/assets/css/components/multiselect.css.map +1 -1
  61. package/assets/css/components/multiselect.preload.css +1 -1
  62. package/assets/css/components/multiselect.preload.css.map +1 -1
  63. package/assets/css/components/nav.component.css +1 -1
  64. package/assets/css/components/nav.component.css.map +1 -1
  65. package/assets/css/components/nav.docs.css.map +1 -1
  66. package/assets/css/components/nav.global.css +1 -1
  67. package/assets/css/components/nav.global.css.map +1 -1
  68. package/assets/css/components/nav.preload.css.map +1 -1
  69. package/assets/css/components/notification.css +1 -1
  70. package/assets/css/components/notification.css.map +1 -1
  71. package/assets/css/components/pagination.css +1 -1
  72. package/assets/css/components/pagination.css.map +1 -1
  73. package/assets/css/components/password.component.css +1 -1
  74. package/assets/css/components/password.component.css.map +1 -1
  75. package/assets/css/components/popover.component.css +1 -1
  76. package/assets/css/components/popover.component.css.map +1 -1
  77. package/assets/css/components/property-searchbar.css +1 -1
  78. package/assets/css/components/property-searchbar.css.map +1 -1
  79. package/assets/css/components/rank.component.css +1 -1
  80. package/assets/css/components/rank.component.css.map +1 -1
  81. package/assets/css/components/rankings.component.css +1 -1
  82. package/assets/css/components/rankings.component.css.map +1 -1
  83. package/assets/css/components/rankings.global.css +1 -1
  84. package/assets/css/components/rankings.global.css.map +1 -1
  85. package/assets/css/components/slider.css +1 -1
  86. package/assets/css/components/slider.css.map +1 -1
  87. package/assets/css/components/snapshot.css.map +1 -1
  88. package/assets/css/components/split-button.component.css +1 -1
  89. package/assets/css/components/split-button.component.css.map +1 -1
  90. package/assets/css/components/stepper.css.map +1 -1
  91. package/assets/css/components/table-basic.component.css +1 -1
  92. package/assets/css/components/table-basic.component.css.map +1 -1
  93. package/assets/css/components/table-basic.global.css +1 -1
  94. package/assets/css/components/table-basic.global.css.map +1 -1
  95. package/assets/css/components/table.component.css +1 -1
  96. package/assets/css/components/table.component.css.map +1 -1
  97. package/assets/css/components/table.global.css +1 -1
  98. package/assets/css/components/table.global.css.map +1 -1
  99. package/assets/css/components/tabs.component.css +1 -1
  100. package/assets/css/components/tabs.component.css.map +1 -1
  101. package/assets/css/components/tabs.config.css +1 -1
  102. package/assets/css/components/tabs.config.css.map +1 -1
  103. package/assets/css/components/testimonial.css.map +1 -1
  104. package/assets/css/components/timeline.css +1 -1
  105. package/assets/css/components/timeline.css.map +1 -1
  106. package/assets/css/components/tooltip.component.css.map +1 -1
  107. package/assets/css/core.min.css +1 -1
  108. package/assets/css/core.min.css.map +1 -1
  109. package/assets/css/style.min.css +1 -1
  110. package/assets/css/style.min.css.map +1 -1
  111. package/assets/js/components/accordion/accordion.component.min.js +1 -1
  112. package/assets/js/components/actionbar/actionbar.component.js +1 -1
  113. package/assets/js/components/actionbar/actionbar.component.min.js +7 -7
  114. package/assets/js/components/actionbar/actionbar.component.min.js.map +1 -1
  115. package/assets/js/components/address-lookup/address-lookup.component.js +18 -2
  116. package/assets/js/components/address-lookup/address-lookup.component.min.js +5 -5
  117. package/assets/js/components/address-lookup/address-lookup.component.min.js.map +1 -1
  118. package/assets/js/components/advanced-select/advanced-select.component.min.js +1 -1
  119. package/assets/js/components/applied-filters/applied-filters.component.min.js +2 -2
  120. package/assets/js/components/barchart/barchart.component.min.js +7 -7
  121. package/assets/js/components/barchart/barchart.component.min.js.map +1 -1
  122. package/assets/js/components/bento-grid/bento-grid.component.js +1 -0
  123. package/assets/js/components/bento-grid/bento-grid.component.min.js +2 -2
  124. package/assets/js/components/bento-grid/bento-grid.component.min.js.map +1 -1
  125. package/assets/js/components/calendar/calendar.component.min.js +5 -5
  126. package/assets/js/components/card/card.component.min.js +5 -5
  127. package/assets/js/components/card/card.component.min.js.map +1 -1
  128. package/assets/js/components/carousel/carousel.component.min.js +2 -2
  129. package/assets/js/components/collapsible-side/collapsible-side.component.min.js +4 -4
  130. package/assets/js/components/content/content.component.min.js +2 -2
  131. package/assets/js/components/darkmode/darkmode.component.js +42 -34
  132. package/assets/js/components/darkmode/darkmode.component.min.js +4 -4
  133. package/assets/js/components/darkmode/darkmode.component.min.js.map +1 -1
  134. package/assets/js/components/doughnutchart/doughnutchart.component.min.js +6 -6
  135. package/assets/js/components/doughnutchart/doughnutchart.component.min.js.map +1 -1
  136. package/assets/js/components/fileupload/fileupload.component.min.js +4 -4
  137. package/assets/js/components/filter-card/filter-card.component.min.js +2 -2
  138. package/assets/js/components/filterlist/filterlist.component.min.js +1 -1
  139. package/assets/js/components/header/header.component.min.js +4 -4
  140. package/assets/js/components/inline-edit/inline-edit.component.min.js +3 -3
  141. package/assets/js/components/input/input.component.min.js +2 -2
  142. package/assets/js/components/input-range/input-range.component.min.js +1 -1
  143. package/assets/js/components/marketing/marketing.component.min.js +2 -2
  144. package/assets/js/components/menu/menu.component.min.js +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.min.js +2 -2
  148. package/assets/js/components/multi-step/multi-step.component.min.js +1 -1
  149. package/assets/js/components/multi-step-modal/multi-step-modal.component.min.js +2 -2
  150. package/assets/js/components/multiselect/multiselect.component.min.js +4 -4
  151. package/assets/js/components/nav/nav.component.js +1 -1
  152. package/assets/js/components/nav/nav.component.min.js +7 -7
  153. package/assets/js/components/nav/nav.component.min.js.map +1 -1
  154. package/assets/js/components/notification/notification.component.min.js +2 -2
  155. package/assets/js/components/pagination/pagination.component.min.js +5 -5
  156. package/assets/js/components/password/password.component.min.js +5 -5
  157. package/assets/js/components/popover/popover.component.min.js +2 -2
  158. package/assets/js/components/rank/rank.component.min.js +1 -1
  159. package/assets/js/components/rankings/rankings.component.min.js +7 -7
  160. package/assets/js/components/record-card/record-card.component.min.js +1 -1
  161. package/assets/js/components/search/search.component.min.js +1 -1
  162. package/assets/js/components/slider/slider.component.min.js +2 -2
  163. package/assets/js/components/split-button/split-button.component.min.js +2 -2
  164. package/assets/js/components/std-address-lookup/std-address-lookup.component.js +30 -3
  165. package/assets/js/components/std-address-lookup/std-address-lookup.component.min.js +11 -11
  166. package/assets/js/components/std-address-lookup/std-address-lookup.component.min.js.map +1 -1
  167. package/assets/js/components/table/table.component.min.js +6 -6
  168. package/assets/js/components/table-ajax/table-ajax.component.min.js +6 -6
  169. package/assets/js/components/table-basic/table-basic.component.min.js +3 -3
  170. package/assets/js/components/table-no-submit/table-no-submit.component.min.js +6 -6
  171. package/assets/js/components/table-no-submit/table-no-submit.component.min.js.map +1 -1
  172. package/assets/js/components/table-submit/table-submit.component.min.js +6 -6
  173. package/assets/js/components/tabs/tabs.component.min.js +4 -4
  174. package/assets/js/components/tooltip/tooltip.component.min.js +1 -1
  175. package/assets/js/components/video-card/video-card.component.min.js +1 -1
  176. package/assets/js/components/word-count/word-count.component.min.js +1 -1
  177. package/assets/js/modules/chart.module.js +1 -1
  178. package/assets/js/scripts.bundle.js +1 -1
  179. package/assets/js/scripts.bundle.min.js +1 -1
  180. package/assets/sass/_bs_grid.scss +6 -4
  181. package/assets/sass/_bs_utilities.scss +51 -0
  182. package/assets/sass/_components.scss +16 -53
  183. package/assets/sass/_corefiles.scss +10 -40
  184. package/assets/sass/_elements.scss +25 -118
  185. package/assets/sass/_fonts.scss +3 -3
  186. package/assets/sass/_func.scss +0 -8
  187. package/assets/sass/_functions/bs_functions.scss +487 -0
  188. package/assets/sass/_functions/bs_mixins.scss +2103 -0
  189. package/assets/sass/_functions/bs_utilities.scss +1 -1
  190. package/assets/sass/_functions/{variables_old.scss → bs_variables.scss} +11 -9
  191. package/assets/sass/_functions/functions.scss +9 -449
  192. package/assets/sass/_functions/mixins.scss +1 -643
  193. package/assets/sass/_functions/utility-mixins.scss +1 -1506
  194. package/assets/sass/_functions/variables.scss +1 -809
  195. package/assets/sass/_grid.scss +51 -39
  196. package/assets/sass/_utilities.scss +28 -50
  197. package/assets/sass/components/actionbar.component.scss +35 -41
  198. package/assets/sass/components/actionbar.global.scss +8 -8
  199. package/assets/sass/components/address-lookup.component.scss +4 -9
  200. package/assets/sass/components/address-lookup.preload.scss +13 -3
  201. package/assets/sass/components/barchart.component.scss +14 -14
  202. package/assets/sass/components/calendar.component.scss +20 -20
  203. package/assets/sass/components/calendar.config.scss +19 -19
  204. package/assets/sass/components/card.component.scss +8 -10
  205. package/assets/sass/components/card.module.scss +9 -9
  206. package/assets/sass/components/carousel.component.scss +15 -15
  207. package/assets/sass/components/carousel.config.scss +5 -5
  208. package/assets/sass/components/charts.config.scss +6 -6
  209. package/assets/sass/components/charts.module.scss +16 -69
  210. package/assets/sass/components/charts.scss +8 -8
  211. package/assets/sass/components/collapsible-side.scss +43 -48
  212. package/assets/sass/components/darkmode.component.scss +3 -5
  213. package/assets/sass/components/doughnutchart.component.scss +4 -4
  214. package/assets/sass/components/fileupload.scss +23 -24
  215. package/assets/sass/components/filter-card.component.scss +10 -10
  216. package/assets/sass/components/header.scss +4 -4
  217. package/assets/sass/components/inline-edit.preload.scss +5 -5
  218. package/assets/sass/components/inline-edit.scss +1 -1
  219. package/assets/sass/components/input-range.component.scss +2 -2
  220. package/assets/sass/components/input.component.scss +2 -3
  221. package/assets/sass/components/marketing.component.scss +1 -1
  222. package/assets/sass/components/menu.component.scss +6 -6
  223. package/assets/sass/components/menu.global.scss +6 -6
  224. package/assets/sass/components/milestone.scss +2 -2
  225. package/assets/sass/components/modal.component.scss +9 -9
  226. package/assets/sass/components/multi-step-modal.component.scss +14 -14
  227. package/assets/sass/components/multi-step-modal.global.scss +2 -2
  228. package/assets/sass/components/multi-step.component.scss +10 -10
  229. package/assets/sass/components/multiselect.preload.scss +5 -5
  230. package/assets/sass/components/multiselect.scss +11 -16
  231. package/assets/sass/components/nav.component.scss +81 -97
  232. package/assets/sass/components/nav.docs.scss +2 -2
  233. package/assets/sass/components/nav.global.scss +131 -65
  234. package/assets/sass/components/nav.preload.scss +8 -8
  235. package/assets/sass/components/notification.scss +30 -45
  236. package/assets/sass/components/pagination.scss +15 -15
  237. package/assets/sass/components/password.component.scss +6 -10
  238. package/assets/sass/components/popover.component.scss +5 -5
  239. package/assets/sass/components/property-searchbar.scss +10 -10
  240. package/assets/sass/components/rank.component.scss +3 -3
  241. package/assets/sass/components/rankings.component.scss +2 -2
  242. package/assets/sass/components/rankings.global.scss +7 -7
  243. package/assets/sass/components/record-card.component.scss +4 -4
  244. package/assets/sass/components/slider.scss +3 -3
  245. package/assets/sass/components/snapshot.scss +2 -2
  246. package/assets/sass/components/stepper.scss +7 -7
  247. package/assets/sass/components/table-basic.component.scss +6 -5
  248. package/assets/sass/components/table-basic.global.scss +18 -19
  249. package/assets/sass/components/table.component.scss +1 -1
  250. package/assets/sass/components/table.global.scss +7 -14
  251. package/assets/sass/components/tabs.config.scss +10 -10
  252. package/assets/sass/components/testimonial.scss +7 -7
  253. package/assets/sass/components/timeline.scss +2 -2
  254. package/assets/sass/components/tooltip.component.scss +3 -3
  255. package/assets/sass/core.scss +1 -13
  256. package/assets/sass/elements/admin-panel.scss +20 -24
  257. package/assets/sass/elements/badge-tag.scss +9 -9
  258. package/assets/sass/elements/brand.css +80 -0
  259. package/assets/sass/elements/buttons--action.scss +8 -8
  260. package/assets/sass/elements/buttons--compact.scss +20 -20
  261. package/assets/sass/elements/buttons--global.scss +31 -33
  262. package/assets/sass/elements/buttons--secondary.scss +4 -4
  263. package/assets/sass/elements/buttons--special.scss +3 -3
  264. package/assets/sass/elements/buttons--tertiary.scss +7 -7
  265. package/assets/sass/elements/buttons.scss +9 -33
  266. package/assets/sass/elements/code.css +46 -0
  267. package/assets/sass/elements/container.scss +14 -63
  268. package/assets/sass/elements/details.scss +35 -35
  269. package/assets/sass/elements/dialog.scss +7 -7
  270. package/assets/sass/elements/feature.scss +4 -4
  271. package/assets/sass/elements/forms.scss +125 -92
  272. package/assets/sass/elements/{hr.scss → hr.css} +1 -10
  273. package/assets/sass/elements/{icons.scss → icons.css} +6 -12
  274. package/assets/sass/elements/input.scss +58 -8
  275. package/assets/sass/elements/links.scss +27 -26
  276. package/assets/sass/elements/lists--breadcrumbs.scss +26 -0
  277. package/assets/sass/elements/lists--steps.css +171 -0
  278. package/assets/sass/elements/lists--tick-list.scss +81 -0
  279. package/assets/sass/elements/lists.scss +19 -310
  280. package/assets/sass/elements/media.css +20 -0
  281. package/assets/sass/elements/modal.scss +23 -23
  282. package/assets/sass/elements/popover.scss +13 -13
  283. package/assets/sass/elements/prefix.scss +9 -9
  284. package/assets/sass/elements/progress.scss +24 -24
  285. package/assets/sass/elements/table.element.scss +19 -19
  286. package/assets/sass/elements/toggle-button.scss +4 -4
  287. package/assets/sass/elements/tooltips.scss +41 -49
  288. package/assets/sass/elements/type.css +158 -0
  289. package/assets/sass/email.scss +7 -6
  290. package/assets/sass/error.scss +7 -14
  291. package/assets/sass/foundations/colours.scss +91 -0
  292. package/assets/sass/foundations/reboot.scss +17 -71
  293. package/assets/sass/foundations/root.scss +293 -125
  294. package/assets/sass/main.scss +3 -13
  295. package/assets/sass/templates/auth.scss +14 -18
  296. package/assets/sass/templates/form.scss +13 -18
  297. package/assets/sass/utilities/align.scss +25 -0
  298. package/assets/sass/utilities/border.scss +81 -0
  299. package/assets/sass/utilities/clearfix.scss +9 -0
  300. package/assets/sass/utilities/colours.scss +43 -0
  301. package/assets/sass/utilities/display.scss +90 -0
  302. package/assets/sass/utilities/fixed.scss +17 -0
  303. package/assets/sass/utilities/flex.scss +150 -0
  304. package/assets/sass/utilities/gap.scss +8 -0
  305. package/assets/sass/utilities/gradients.scss +40 -0
  306. package/assets/sass/utilities/js-display.scss +13 -0
  307. package/assets/sass/utilities/line-clamp.scss +25 -0
  308. package/assets/sass/utilities/margins.scss +75 -0
  309. package/assets/sass/utilities/max-height.scss +94 -0
  310. package/assets/sass/utilities/opacity.scss +21 -0
  311. package/assets/sass/utilities/order.scss +43 -0
  312. package/assets/sass/utilities/overflow.scss +17 -0
  313. package/assets/sass/utilities/paddings.scss +34 -0
  314. package/assets/sass/utilities/pointer-events.scss +9 -0
  315. package/assets/sass/utilities/position.scss +90 -0
  316. package/assets/sass/utilities/ratio.scss +33 -0
  317. package/assets/sass/utilities/rounded.scss +57 -0
  318. package/assets/sass/utilities/sizes.scss +89 -0
  319. package/assets/sass/utilities/sticky.scss +39 -0
  320. package/assets/sass/utilities/text-truncate.scss +7 -0
  321. package/assets/sass/utilities/text.scss +122 -0
  322. package/assets/sass/utilities/visible.scss +9 -0
  323. package/assets/sass/utilities/visually-hidden.scss +14 -0
  324. package/assets/sass/utilities/wider-colours.scss +10 -0
  325. package/assets/ts/components/actionbar/actionbar.component.ts +1 -1
  326. package/assets/ts/components/address-lookup/address-lookup.component.ts +24 -3
  327. package/assets/ts/components/bento-grid/bento-grid.component.ts +1 -0
  328. package/assets/ts/components/darkmode/darkmode.component.ts +55 -36
  329. package/assets/ts/components/input/input.component.ts +3 -3
  330. package/assets/ts/components/modal/modal.component.ts +2 -2
  331. package/assets/ts/components/multi-step-modal/multi-step-modal.component.ts +2 -2
  332. package/assets/ts/components/multiselect/multiselect.component.ts +1 -1
  333. package/assets/ts/components/nav/nav.component.ts +1 -1
  334. package/assets/ts/components/std-address-lookup/std-address-lookup.component.ts +38 -5
  335. package/assets/ts/modules/advanced-select.ts +1 -1
  336. package/assets/ts/modules/applied-filters.ts +2 -2
  337. package/assets/ts/modules/chart.module.ts +1 -1
  338. package/dist/components.es.js +28 -28
  339. package/dist/components.umd.js +186 -186
  340. package/package.json +6 -7
  341. package/src/components/Snapshot/Snapshot.vue +1 -1
  342. package/assets/css/mobile-core.min.css +0 -1
  343. package/assets/css/mobile-core.min.css.map +0 -1
  344. package/assets/css/mobile.min.css +0 -1
  345. package/assets/css/mobile.min.css.map +0 -1
  346. package/assets/sass/_example.scss +0 -61
  347. package/assets/sass/_tests/colours.spec.js +0 -9
  348. package/assets/sass/_tests/colours.spec.scss +0 -32
  349. package/assets/sass/_tests/func.spec.js +0 -9
  350. package/assets/sass/_tests/func.spec.scss +0 -196
  351. package/assets/sass/_tests/mixins.spec.js +0 -9
  352. package/assets/sass/_tests/mixins.spec.scss +0 -113
  353. package/assets/sass/_tests/typography.spec.js +0 -9
  354. package/assets/sass/_tests/typography.spec.scss +0 -35
  355. package/assets/sass/_utility-mixins.scss +0 -38
  356. package/assets/sass/elements/brand.scss +0 -83
  357. package/assets/sass/elements/media.scss +0 -26
  358. package/assets/sass/elements/type.scss +0 -174
  359. package/assets/sass/helpers/dynamic.scss +0 -15
  360. package/assets/sass/helpers/line-clamp.scss +0 -0
  361. package/assets/sass/helpers/max-height.scss +0 -86
  362. package/assets/sass/helpers/wider-colours.scss +0 -8
  363. package/assets/sass/mobile-core.scss +0 -14
  364. package/assets/sass/mobile.scss +0 -16
@@ -1,1506 +1 @@
1
- @use 'sass:map';
2
-
3
- @use 'functions' as *;
4
- @use 'variables' as *;
5
-
6
- @use 'mixins' as *;
7
-
8
- $layers: 'true' !default;
9
-
10
- $mobileOnly: 'false' !default;
11
-
12
- $new_utilities: ();
13
-
14
- $style_breakpoints: ();
15
-
16
- @each $bp, $value in $grid-breakpoints {
17
- @if $bp != 'xs' {
18
- $style_breakpoints: map.merge((#{$bp}: ''), $style_breakpoints);
19
- } @else {
20
- $style_breakpoints: map.merge((#{$bp}: -#{$bp}), $style_breakpoints);
21
- }
22
- }
23
-
24
- // #region Clearfix
25
- $new_utilities: map.merge(
26
- $new_utilities,
27
- (
28
- 'clearfix': 'Clear the floats from both sides',
29
- )
30
- );
31
-
32
- @mixin clearfix() {
33
- .clearfix {
34
- &::after {
35
- display: block;
36
- clear: both;
37
- content: '';
38
- }
39
- }
40
- }
41
- // #endregion
42
-
43
- // #region visually-hidden
44
- $new_utilities: map.merge(
45
- $new_utilities,
46
- (
47
- 'visually-hidden': 'Hide an element from the standard user but not from screen readers',
48
- )
49
- );
50
-
51
- @mixin visually-hidden() {
52
- .visually-hidden,
53
- .visually-hidden-focusable:not(:focus):not(:focus-within) {
54
- position: absolute !important;
55
- width: 1px !important;
56
- height: 1px !important;
57
- padding: 0 !important;
58
- margin: -1px !important; // Fix for https://github.com/twbs/bootstrap/issues/25686
59
- overflow: hidden !important;
60
- clip: rect(0, 0, 0, 0) !important;
61
- white-space: nowrap !important;
62
- border: 0 !important;
63
- }
64
- }
65
- // #endregion
66
-
67
- // #region text-truncate
68
- $new_utilities: map.merge(
69
- $new_utilities,
70
- (
71
- 'text-truncate': 'Keep the text onto one line and add an ellipsis if needed',
72
- )
73
- );
74
-
75
- @mixin text-truncate() {
76
- .text-truncate {
77
- overflow: hidden;
78
- text-overflow: ellipsis;
79
- white-space: nowrap;
80
- }
81
- }
82
- // #endregion
83
-
84
- // #region ratio
85
- $new_utilities: map.merge(
86
- $new_utilities,
87
- (
88
- 'ratio': 'Use pre-defined aspect ratios to generate the sizing or elements',
89
- )
90
- );
91
-
92
- @mixin ratio() {
93
- .ratio {
94
- position: relative;
95
- width: 100%;
96
-
97
- &::before {
98
- display: block;
99
- padding-top: var(--aspect-ratio);
100
- content: '';
101
- }
102
-
103
- > * {
104
- position: absolute;
105
- top: 0;
106
- left: 0;
107
- width: 100%;
108
- height: 100%;
109
- }
110
- }
111
-
112
- @each $key, $ratio in $aspect-ratios {
113
- .ratio-#{$key} {
114
- --aspect-ratio: #{$ratio};
115
- }
116
- }
117
- }
118
- // #endregion
119
-
120
- // #region fixed
121
- $new_utilities: map.merge(
122
- $new_utilities,
123
- (
124
- 'fixed': 'Fix elements to either the top or bottom',
125
- )
126
- );
127
-
128
- @mixin fixed() {
129
- .fixed-top {
130
- position: fixed;
131
- top: 0;
132
- right: 0;
133
- left: 0;
134
- z-index: $zindex-fixed;
135
- }
136
-
137
- .fixed-bottom {
138
- position: fixed;
139
- right: 0;
140
- bottom: 0;
141
- left: 0;
142
- z-index: $zindex-fixed;
143
- }
144
- }
145
- // #endregion
146
-
147
- // #region sticky
148
- $new_utilities: map.merge(
149
- $new_utilities,
150
- (
151
- 'sticky': 'Make elements stick to either the top or bottom',
152
- )
153
- );
154
-
155
- @mixin sticky() {
156
- @each $breakpoint in map.keys($grid-breakpoints) {
157
- @include media-breakpoint-up($breakpoint, $mobileOnly) {
158
- $infix: breakpoint-infix($breakpoint, $grid-breakpoints);
159
-
160
- .sticky#{$infix}-top {
161
- position: sticky;
162
- top: 0;
163
- z-index: $zindex-sticky;
164
- }
165
-
166
- .sticky#{$infix}-bottom {
167
- position: sticky;
168
- bottom: 0;
169
- z-index: $zindex-sticky;
170
- }
171
- }
172
- }
173
- }
174
- // #endregion
175
-
176
- // #region max-height
177
- $new_utilities: map.merge(
178
- $new_utilities,
179
- (
180
- 'max-height':
181
- '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.',
182
- )
183
- );
184
-
185
- @mixin max-height() {
186
- :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) {
187
- &:not(iam-table):not(.table__wrapper) {
188
- padding-inline: var(--mh-padding-inline, 0);
189
- margin-inline: calc(var(--mh-padding-inline, 0) * -1);
190
- }
191
-
192
- &::before {
193
- top: calc(100% - 1.5rem);
194
- bottom: 0;
195
- left: 0;
196
- right: 0;
197
- height: 1.5rem;
198
- position: sticky;
199
- display: block;
200
- background: linear-gradient(180deg, transparent 0%, var(--colour-canvas-2) 100%);
201
- z-index: 2;
202
- margin-bottom: -1.5rem;
203
- }
204
- }
205
-
206
- :is(.mh-sm, .mh-md, .mh-lg, .mh-fluid) {
207
- overflow: auto;
208
- overscroll-behavior: contain;
209
-
210
- &::before {
211
- content: '';
212
- }
213
- }
214
-
215
- .mh-sm {
216
- max-height: calc(#{rem(200)} - var(--mh-modifier, 0rem));
217
- }
218
-
219
- .mh-md {
220
- max-height: calc(#{rem(400)} - var(--mh-modifier, 0rem));
221
- }
222
-
223
- .mh-lg {
224
- max-height: calc(#{rem(600)} - var(--mh-modifier, 0rem));
225
- }
226
-
227
- .mh-fluid {
228
- max-height: 100%;
229
- }
230
-
231
- @include media-breakpoint-up(sm, $mobileOnly) {
232
- :is(.mh-sm-sm, .mh-sm-md, .mh-sm-lg) {
233
- overflow: auto;
234
- overscroll-behavior: contain;
235
-
236
- &::before {
237
- content: '';
238
- }
239
- }
240
-
241
- .mh-sm-sm {
242
- max-height: calc(#{rem(200)} - var(--mh-modifier, 0rem));
243
- }
244
-
245
- .mh-sm-md {
246
- max-height: calc(#{rem(400)} - var(--mh-modifier, 0rem));
247
- }
248
-
249
- .mh-sm-lg {
250
- max-height: calc(#{rem(600)} - var(--mh-modifier, 0rem));
251
- }
252
- }
253
-
254
- @include media-breakpoint-up(md, $mobileOnly) {
255
- :is(.mh-md-sm, .mh-md-md, .mh-md-lg) {
256
- overflow: auto;
257
- overscroll-behavior: contain;
258
-
259
- &::before {
260
- content: '';
261
- }
262
- }
263
-
264
- .mh-md-sm {
265
- max-height: calc(#{rem(200)} - var(--mh-modifier, 0rem));
266
- }
267
-
268
- .mh-md-md {
269
- max-height: calc(#{rem(400)} - var(--mh-modifier, 0rem));
270
- }
271
-
272
- .mh-md-lg {
273
- max-height: calc(#{rem(600)} - var(--mh-modifier, 0rem));
274
- }
275
- }
276
- }
277
- // #endregion
278
-
279
- // #region js-display
280
- $new_utilities: map.merge(
281
- $new_utilities,
282
- (
283
- 'js-display': 'Show and hide elements depending upon if javascript is running or not',
284
- )
285
- );
286
-
287
- @mixin js-display() {
288
- @media (scripting: enabled) {
289
- .js-show {
290
- display: none !important;
291
- }
292
- }
293
-
294
- @media (scripting: none) {
295
- .js-hide {
296
- display: none !important;
297
- }
298
- }
299
- }
300
- // #endregion
301
-
302
- // #region Line clamp
303
- $new_utilities: map.merge(
304
- $new_utilities,
305
- (
306
- 'line-clamp': 'Restricts a texts height to a number of lines (1-5)',
307
- )
308
- );
309
-
310
- @mixin line-clamp() {
311
- .line-clamp {
312
- display: -webkit-box;
313
- -webkit-box-orient: vertical;
314
- -webkit-line-clamp: 1;
315
- text-overflow: hidden;
316
- overflow: hidden;
317
- }
318
-
319
- .line-clamp--2 {
320
- -webkit-line-clamp: 2;
321
- }
322
-
323
- .line-clamp--3 {
324
- -webkit-line-clamp: 3;
325
- }
326
-
327
- .line-clamp--4 {
328
- -webkit-line-clamp: 4;
329
- }
330
-
331
- .line-clamp--5 {
332
- -webkit-line-clamp: 5;
333
- }
334
- }
335
- // #endregion
336
-
337
- // #region Wider colours
338
- $new_utilities: map.merge(
339
- $new_utilities,
340
- (
341
- 'wider-colours': 'Apply the wider range of colours in our design system',
342
- )
343
- );
344
-
345
- @mixin wider-colours() {
346
- @each $colour, $value in $wider-colours {
347
- .wider-colour-#{$colour} {
348
- --wider-colour: var(--wider-colour-#{$colour});
349
- --wider-colour-hover: var(--wider-colour-#{$colour}-hover);
350
- --wider-colour-active: var(--wider-colour-#{$colour}-active);
351
- color: #262626 !important;
352
- }
353
- }
354
- }
355
- // #endregion
356
-
357
- // #region Align
358
- $new_utilities: map.merge(
359
- $new_utilities,
360
- (
361
- 'align': 'Change the alignment of the text ',
362
- )
363
- );
364
-
365
- @mixin align() {
366
- .align-baseline {
367
- vertical-align: baseline !important;
368
- }
369
-
370
- .align-top {
371
- vertical-align: top !important;
372
- }
373
-
374
- .align-middle {
375
- vertical-align: middle !important;
376
- }
377
-
378
- .align-bottom {
379
- vertical-align: bottom !important;
380
- }
381
-
382
- .align-text-bottom {
383
- vertical-align: text-bottom !important;
384
- }
385
-
386
- .align-text-top {
387
- vertical-align: text-top !important;
388
- }
389
- }
390
- // #endregion
391
-
392
- // #region Opacity
393
- $new_utilities: map.merge(
394
- $new_utilities,
395
- (
396
- 'opacity': 'Apply the opacity of an element by intervals of 25%',
397
- )
398
- );
399
-
400
- @mixin opacity() {
401
- .opacity-0 {
402
- opacity: 0 !important;
403
- }
404
-
405
- .opacity-25 {
406
- opacity: 0.25 !important;
407
- }
408
-
409
- .opacity-50 {
410
- opacity: 0.5 !important;
411
- }
412
-
413
- .opacity-75 {
414
- opacity: 0.75 !important;
415
- }
416
-
417
- .opacity-100 {
418
- opacity: 1 !important;
419
- }
420
- }
421
- // #endregion
422
-
423
- // #region Overflow
424
- $new_utilities: map.merge(
425
- $new_utilities,
426
- (
427
- 'overflow': 'Update the overflow of an element',
428
- )
429
- );
430
-
431
- @mixin overflow() {
432
- .overflow-auto {
433
- overflow: auto !important;
434
- }
435
-
436
- .overflow-hidden {
437
- overflow: hidden !important;
438
- }
439
-
440
- .overflow-visible {
441
- overflow: visible !important;
442
- }
443
-
444
- .overflow-scroll {
445
- overflow: scroll !important;
446
- }
447
- }
448
- // #endregion
449
-
450
- // #region Display
451
- $new_utilities: map.merge(
452
- $new_utilities,
453
- (
454
- 'display': 'Update the display of an element, can be applied at different breakpoints',
455
- )
456
- );
457
-
458
- @mixin display() {
459
- .d-inline {
460
- display: inline !important;
461
- }
462
-
463
- .d-inline-block {
464
- display: inline-block !important;
465
- }
466
-
467
- .d-block {
468
- display: block !important;
469
- }
470
-
471
- .d-grid {
472
- display: grid !important;
473
- }
474
-
475
- .d-table {
476
- display: table !important;
477
- }
478
-
479
- .d-table-row {
480
- display: table-row !important;
481
- }
482
-
483
- .d-table-cell {
484
- display: table-cell !important;
485
- }
486
-
487
- .d-flex {
488
- display: flex !important;
489
- }
490
-
491
- .d-inline-flex {
492
- display: inline-flex !important;
493
- }
494
-
495
- .d-none {
496
- display: none !important;
497
- }
498
-
499
- @each $breakpoint in map.keys($grid-breakpoints) {
500
- @include media-breakpoint-up($breakpoint, $mobileOnly) {
501
- $infix: breakpoint-infix($breakpoint, $grid-breakpoints);
502
-
503
- .d#{$infix}-inline {
504
- display: inline !important;
505
- }
506
-
507
- .d#{$infix}-inline-block {
508
- display: inline-block !important;
509
- }
510
-
511
- .d#{$infix}-block {
512
- display: block !important;
513
- }
514
-
515
- .d#{$infix}-grid {
516
- display: grid !important;
517
- }
518
-
519
- .d#{$infix}-table {
520
- display: table !important;
521
- }
522
-
523
- .d#{$infix}-table-row {
524
- display: table-row !important;
525
- }
526
-
527
- .d#{$infix}-table-cell {
528
- display: table-cell !important;
529
- }
530
-
531
- .d#{$infix}-flex {
532
- display: flex !important;
533
- }
534
-
535
- .d#{$infix}-inline-flex {
536
- display: inline-flex !important;
537
- }
538
-
539
- .d#{$infix}-none {
540
- display: none !important;
541
- }
542
- }
543
- }
544
- }
545
- // #endregion
546
-
547
- // #region Position
548
- $new_utilities: map.merge(
549
- $new_utilities,
550
- (
551
- 'position': 'Update the position of an element, can be applied at different breakpoints',
552
- )
553
- );
554
-
555
- @mixin position() {
556
- @each $breakpoint in map.keys($grid-breakpoints) {
557
- @include media-breakpoint-up($breakpoint, $mobileOnly) {
558
- $infix: breakpoint-infix($breakpoint, $grid-breakpoints);
559
- .position#{$infix}-static {
560
- position: static !important;
561
- }
562
-
563
- .position#{$infix}-relative {
564
- position: relative !important;
565
- }
566
-
567
- .position#{$infix}-absolute {
568
- position: absolute !important;
569
- }
570
-
571
- .position#{$infix}-fixed {
572
- position: fixed !important;
573
- }
574
-
575
- .position#{$infix}-sticky {
576
- position: sticky !important;
577
- }
578
-
579
- .top#{$infix}-0 {
580
- top: 0 !important;
581
- }
582
-
583
- .top#{$infix}-50 {
584
- top: 50% !important;
585
- }
586
-
587
- .top#{$infix}-100 {
588
- top: 100% !important;
589
- }
590
-
591
- .bottom#{$infix}-0 {
592
- bottom: 0 !important;
593
- }
594
-
595
- .bottom#{$infix}-50 {
596
- bottom: 50% !important;
597
- }
598
-
599
- .bottom#{$infix}-100 {
600
- bottom: 100% !important;
601
- }
602
-
603
- .start#{$infix}-0 {
604
- left: 0 !important;
605
- }
606
-
607
- .start#{$infix}-50 {
608
- left: 50% !important;
609
- }
610
-
611
- .start#{$infix}-100 {
612
- left: 100% !important;
613
- }
614
-
615
- .end#{$infix}-0 {
616
- right: 0 !important;
617
- }
618
-
619
- .end#{$infix}-50 {
620
- right: 50% !important;
621
- }
622
-
623
- .end#{$infix}-100 {
624
- right: 100% !important;
625
- }
626
-
627
- .translate#{$infix}-middle {
628
- transform: translate(-50%, -50%) !important;
629
- }
630
-
631
- .translate#{$infix}-middle-x {
632
- transform: translateX(-50%) !important;
633
- }
634
-
635
- .translate#{$infix}-middle-y {
636
- transform: translateY(-50%) !important;
637
- }
638
- }
639
- }
640
- }
641
- // #endregion
642
-
643
- // #region Border
644
- $new_utilities: map.merge(
645
- $new_utilities,
646
- (
647
- 'border': 'Apply a border and adjust its settings',
648
- )
649
- );
650
-
651
- @mixin border() {
652
- .border {
653
- border: var(--border-width) var(--border-style) var(--border-color) !important;
654
- }
655
-
656
- .border-0 {
657
- border: 0 !important;
658
- }
659
-
660
- .border-top {
661
- border-top: var(--border-width) var(--border-style) var(--border-color) !important;
662
- }
663
-
664
- .border-top-0 {
665
- border-top: 0 !important;
666
- }
667
-
668
- .border-end {
669
- border-right: var(--border-width) var(--border-style) var(--border-color) !important;
670
- }
671
-
672
- .border-end-0 {
673
- border-right: 0 !important;
674
- }
675
-
676
- .border-bottom {
677
- border-bottom: var(--border-width) var(--border-style) var(--border-color) !important;
678
- }
679
-
680
- .border-bottom-0 {
681
- border-bottom: 0 !important;
682
- }
683
-
684
- .border-start {
685
- border-left: var(--border-width) var(--border-style) var(--border-color) !important;
686
- }
687
-
688
- .border-start-0 {
689
- border-left: 0 !important;
690
- }
691
-
692
- .border-1 {
693
- --border-width: 1px;
694
- }
695
-
696
- .border-2 {
697
- --border-width: 2px;
698
- }
699
-
700
- .border-3 {
701
- --border-width: 3px;
702
- }
703
-
704
- .border-4 {
705
- --border-width: 4px;
706
- }
707
-
708
- .border-5 {
709
- --border-width: 5px;
710
- }
711
-
712
- .border-opacity-10 {
713
- --border-opacity: 0.1;
714
- }
715
-
716
- .border-opacity-25 {
717
- --border-opacity: 0.25;
718
- }
719
-
720
- .border-opacity-50 {
721
- --border-opacity: 0.5;
722
- }
723
-
724
- .border-opacity-75 {
725
- --border-opacity: 0.75;
726
- }
727
-
728
- .border-opacity-100 {
729
- --border-opacity: 1;
730
- }
731
- }
732
- // #endregion
733
-
734
- // #region Sizes
735
- $new_utilities: map.merge(
736
- $new_utilities,
737
- (
738
- 'sizes': 'Apply sizing rules to an element',
739
- )
740
- );
741
-
742
- @mixin sizes() {
743
- .w-25 {
744
- width: 25% !important;
745
- }
746
-
747
- .w-50 {
748
- width: 50% !important;
749
- }
750
-
751
- .w-75 {
752
- width: 75% !important;
753
- }
754
-
755
- .w-100 {
756
- width: 100% !important;
757
- }
758
-
759
- .w-auto {
760
- width: auto !important;
761
- }
762
-
763
- .mw-100 {
764
- max-width: 100% !important;
765
- }
766
-
767
- .mw-fit-content {
768
- max-width: fit-content !important;
769
- }
770
-
771
- .mw-content {
772
- max-width: var(--content-max-width) !important;
773
- }
774
-
775
- .vw-100 {
776
- width: 100vw !important;
777
- }
778
-
779
- .min-vw-100 {
780
- min-width: 100vw !important;
781
- }
782
-
783
- .h-25 {
784
- height: 25% !important;
785
- }
786
-
787
- .h-50 {
788
- height: 50% !important;
789
- }
790
-
791
- .h-75 {
792
- height: 75% !important;
793
- }
794
-
795
- .h-100 {
796
- height: 100% !important;
797
- }
798
-
799
- .h-auto {
800
- height: auto !important;
801
- }
802
-
803
- .mh-100 {
804
- max-height: 100% !important;
805
- }
806
-
807
- .vh-100 {
808
- height: 100vh !important;
809
- }
810
-
811
- .min-vh-100 {
812
- min-height: 100vh !important;
813
- }
814
-
815
- .min-100 {
816
- min-width: 100% !important;
817
- }
818
-
819
- .min-fit-content {
820
- min-width: fit-content !important;
821
- }
822
-
823
- .object-cover {
824
- object-fit: cover !important;
825
- }
826
-
827
- .object-contain {
828
- object-fit: contain !important;
829
- }
830
- }
831
- // #endregion
832
-
833
- // #region Flex
834
- $new_utilities: map.merge(
835
- $new_utilities,
836
- (
837
- 'flex': 'Update the flex rules of an element, can be applied at different breakpoints',
838
- )
839
- );
840
-
841
- @mixin flex() {
842
- @each $breakpoint in map.keys($grid-breakpoints) {
843
- @include media-breakpoint-up($breakpoint, $mobileOnly) {
844
- $infix: breakpoint-infix($breakpoint, $grid-breakpoints);
845
-
846
- .flex#{$infix}-fill {
847
- flex: 1 1 auto !important;
848
- }
849
-
850
- .flex#{$infix}-row {
851
- flex-direction: row !important;
852
- }
853
-
854
- .flex#{$infix}-column {
855
- flex-direction: column !important;
856
- }
857
-
858
- .flex#{$infix}-row-reverse {
859
- flex-direction: row-reverse !important;
860
- }
861
-
862
- .flex#{$infix}-column-reverse {
863
- flex-direction: column-reverse !important;
864
- }
865
-
866
- .flex#{$infix}-grow-0 {
867
- flex-grow: 0 !important;
868
- }
869
-
870
- .flex#{$infix}-grow-1 {
871
- flex-grow: 1 !important;
872
- }
873
-
874
- .flex#{$infix}-shrink-0 {
875
- flex-shrink: 0 !important;
876
- }
877
-
878
- .flex#{$infix}-shrink-1 {
879
- flex-shrink: 1 !important;
880
- }
881
-
882
- .flex#{$infix}-wrap {
883
- flex-wrap: wrap !important;
884
- }
885
-
886
- .flex#{$infix}-nowrap {
887
- flex-wrap: nowrap !important;
888
- }
889
-
890
- .flex#{$infix}-wrap-reverse {
891
- flex-wrap: wrap-reverse !important;
892
- }
893
-
894
- .justify-content#{$infix}-start {
895
- justify-content: flex-start !important;
896
- }
897
-
898
- .justify-content#{$infix}-end {
899
- justify-content: flex-end !important;
900
- }
901
-
902
- .justify-content#{$infix}-center {
903
- justify-content: center !important;
904
- }
905
-
906
- .justify-content#{$infix}-between {
907
- justify-content: space-between !important;
908
- }
909
-
910
- .justify-content#{$infix}-around {
911
- justify-content: space-around !important;
912
- }
913
-
914
- .justify-content#{$infix}-evenly {
915
- justify-content: space-evenly !important;
916
- }
917
-
918
- .align-items#{$infix}-start {
919
- align-items: flex-start !important;
920
- }
921
-
922
- .align-items#{$infix}-end {
923
- align-items: flex-end !important;
924
- }
925
-
926
- .align-items#{$infix}-center {
927
- align-items: center !important;
928
- }
929
-
930
- .align-items#{$infix}-baseline {
931
- align-items: baseline !important;
932
- }
933
-
934
- .align-items#{$infix}-stretch {
935
- align-items: stretch !important;
936
- }
937
-
938
- .align-content#{$infix}-start {
939
- align-content: flex-start !important;
940
- }
941
-
942
- .align-content#{$infix}-end {
943
- align-content: flex-end !important;
944
- }
945
-
946
- .align-content#{$infix}-center {
947
- align-content: center !important;
948
- }
949
-
950
- .align-content#{$infix}-between {
951
- align-content: space-between !important;
952
- }
953
-
954
- .align-content#{$infix}-around {
955
- align-content: space-around !important;
956
- }
957
-
958
- .align-content#{$infix}-stretch {
959
- align-content: stretch !important;
960
- }
961
-
962
- .align-self#{$infix}-auto {
963
- align-self: auto !important;
964
- }
965
-
966
- .align-self#{$infix}-start {
967
- align-self: flex-start !important;
968
- }
969
-
970
- .align-self#{$infix}-end {
971
- align-self: flex-end !important;
972
- }
973
-
974
- .align-self#{$infix}-center {
975
- align-self: center !important;
976
- }
977
-
978
- .align-self#{$infix}-baseline {
979
- align-self: baseline !important;
980
- }
981
-
982
- .align-self#{$infix}-stretch {
983
- align-self: stretch !important;
984
- }
985
- }
986
- }
987
- }
988
- // #endregion
989
-
990
- // #region Order
991
- $new_utilities: map.merge(
992
- $new_utilities,
993
- (
994
- 'order': 'Update the order of an element, can be applied at different breakpoints',
995
- )
996
- );
997
-
998
- @mixin order() {
999
- @each $breakpoint in map.keys($grid-breakpoints) {
1000
- @include media-breakpoint-up($breakpoint, $mobileOnly) {
1001
- $infix: breakpoint-infix($breakpoint, $grid-breakpoints);
1002
-
1003
- .order#{$infix}-first {
1004
- order: -1 !important;
1005
- }
1006
-
1007
- .order#{$infix}-0 {
1008
- order: 0 !important;
1009
- }
1010
-
1011
- .order#{$infix}-1 {
1012
- order: 1 !important;
1013
- }
1014
-
1015
- .order#{$infix}-2 {
1016
- order: 2 !important;
1017
- }
1018
-
1019
- .order#{$infix}-3 {
1020
- order: 3 !important;
1021
- }
1022
-
1023
- .order#{$infix}-4 {
1024
- order: 4 !important;
1025
- }
1026
-
1027
- .order#{$infix}-5 {
1028
- order: 5 !important;
1029
- }
1030
-
1031
- .order#{$infix}-last {
1032
- order: 6 !important;
1033
- }
1034
- }
1035
- }
1036
- }
1037
- // #endregion
1038
-
1039
- // #region Margins
1040
- $new_utilities: map.merge(
1041
- $new_utilities,
1042
- (
1043
- 'margins': 'Adjust the margins of an element',
1044
- )
1045
- );
1046
-
1047
- @mixin margins() {
1048
- @each $key, $value in $spacers {
1049
- .m-#{$key} {
1050
- margin: #{$value} !important;
1051
- }
1052
-
1053
- .mx-#{$key} {
1054
- margin-left: #{$value} !important;
1055
- margin-right: #{$value} !important;
1056
- }
1057
-
1058
- .mx-minus-#{$key} {
1059
- margin-left: -#{$value} !important;
1060
- margin-right: -#{$value} !important;
1061
- }
1062
-
1063
- .my-minus-#{$key} {
1064
- margin-top: -#{$value} !important;
1065
- margin-bottom: -#{$value} !important;
1066
- }
1067
-
1068
- .my-#{$key} {
1069
- margin-top: #{$value} !important;
1070
- margin-bottom: #{$value} !important;
1071
- }
1072
-
1073
- .mt-#{$key} {
1074
- margin-top: #{$value} !important;
1075
- }
1076
-
1077
- .me-#{$key} {
1078
- margin-right: #{$value} !important;
1079
- }
1080
-
1081
- .mb-#{$key} {
1082
- margin-bottom: #{$value} !important;
1083
- }
1084
-
1085
- .ms-#{$key} {
1086
- margin-left: #{$value} !important;
1087
- }
1088
- }
1089
-
1090
- .m-auto {
1091
- margin: auto !important;
1092
- }
1093
-
1094
- .mx-auto {
1095
- margin-right: auto !important;
1096
- margin-left: auto !important;
1097
- }
1098
-
1099
- .my-auto {
1100
- margin-top: auto !important;
1101
- margin-bottom: auto !important;
1102
- }
1103
-
1104
- .mt-auto {
1105
- margin-top: auto !important;
1106
- }
1107
-
1108
- .me-auto {
1109
- margin-right: auto !important;
1110
- }
1111
-
1112
- .mb-auto {
1113
- margin-bottom: auto !important;
1114
- }
1115
-
1116
- .ms-auto {
1117
- margin-left: auto !important;
1118
- }
1119
- }
1120
- // #endregion
1121
-
1122
- // #region Paddings
1123
- $new_utilities: map.merge(
1124
- $new_utilities,
1125
- (
1126
- 'paddings': 'Adjust the paddings of an element',
1127
- )
1128
- );
1129
-
1130
- @mixin paddings() {
1131
- @each $key, $value in $spacers {
1132
- .p-#{$key} {
1133
- padding: #{$value} !important;
1134
- }
1135
-
1136
- .px-#{$key} {
1137
- padding-left: #{$value} !important;
1138
- padding-right: #{$value} !important;
1139
- }
1140
-
1141
- .py-#{$key} {
1142
- padding-top: #{$value} !important;
1143
- padding-bottom: #{$value} !important;
1144
- }
1145
-
1146
- .pt-#{$key} {
1147
- padding-top: #{$value} !important;
1148
- }
1149
-
1150
- .pe-#{$key} {
1151
- padding-right: #{$value} !important;
1152
- }
1153
-
1154
- .pb-#{$key} {
1155
- padding-bottom: #{$value} !important;
1156
- }
1157
-
1158
- .ps-#{$key} {
1159
- padding-left: #{$value} !important;
1160
- }
1161
- }
1162
- }
1163
- // #endregion
1164
-
1165
- // #region Gap
1166
- $new_utilities: map.merge(
1167
- $new_utilities,
1168
- (
1169
- 'gap': 'Update the gap sizing of an element with the display flex',
1170
- )
1171
- );
1172
-
1173
- @mixin gap() {
1174
- @each $key, $value in $spacers {
1175
- .gap-#{$key} {
1176
- gap: #{$value} !important;
1177
- }
1178
- }
1179
- }
1180
- // #endregion
1181
-
1182
- // #region Text
1183
- $new_utilities: map.merge(
1184
- $new_utilities,
1185
- (
1186
- 'text': 'Apply the text settings',
1187
- )
1188
- );
1189
-
1190
- @mixin text() {
1191
- .font-monospace {
1192
- font-family: var(--font-monospace) !important;
1193
- }
1194
-
1195
- .font-body {
1196
- font-family: var(--font-body) !important;
1197
- }
1198
-
1199
- .fs-1 {
1200
- font-size: rfs-fluid-value(2.5rem) !important;
1201
- }
1202
-
1203
- .fs-2 {
1204
- font-size: rfs-fluid-value(2rem) !important;
1205
- }
1206
-
1207
- .fs-3 {
1208
- font-size: rfs-fluid-value(1.75rem) !important;
1209
- }
1210
-
1211
- .fs-4 {
1212
- font-size: rfs-fluid-value(1.5rem) !important;
1213
- }
1214
-
1215
- .fs-5 {
1216
- font-size: rfs-fluid-value(1.25rem) !important;
1217
- }
1218
-
1219
- .fs-6 {
1220
- font-size: rfs-fluid-value(1rem) !important;
1221
- }
1222
-
1223
- .fst-italic {
1224
- font-style: italic !important;
1225
- }
1226
-
1227
- .fst-normal {
1228
- font-style: normal !important;
1229
- }
1230
-
1231
- .fw-light {
1232
- font-weight: 300 !important;
1233
- }
1234
-
1235
- .fw-lighter {
1236
- font-weight: lighter !important;
1237
- }
1238
-
1239
- .fw-normal {
1240
- font-weight: 400 !important;
1241
- }
1242
-
1243
- .fw-bold {
1244
- font-weight: 700 !important;
1245
- }
1246
-
1247
- .fw-semibold {
1248
- font-weight: 600 !important;
1249
- }
1250
-
1251
- .fw-bolder {
1252
- font-weight: bolder !important;
1253
- }
1254
-
1255
- .lh-0 {
1256
- line-height: 0 !important;
1257
- }
1258
-
1259
- .lh-1 {
1260
- line-height: 1 !important;
1261
- }
1262
-
1263
- .text-start {
1264
- text-align: left !important;
1265
- }
1266
-
1267
- .text-end {
1268
- text-align: right !important;
1269
- }
1270
-
1271
- .text-center {
1272
- text-align: center !important;
1273
- }
1274
-
1275
- .text-decoration-none {
1276
- text-decoration: none !important;
1277
- }
1278
-
1279
- .text-decoration-underline {
1280
- text-decoration: underline !important;
1281
- }
1282
-
1283
- .text-decoration-line-through {
1284
- text-decoration: line-through !important;
1285
- }
1286
-
1287
- .text-lowercase {
1288
- text-transform: lowercase !important;
1289
- }
1290
-
1291
- .text-uppercase {
1292
- text-transform: uppercase !important;
1293
- }
1294
-
1295
- .text-capitalize {
1296
- text-transform: capitalize !important;
1297
- }
1298
-
1299
- .text-wrap {
1300
- white-space: normal !important;
1301
- }
1302
-
1303
- .text-nowrap {
1304
- white-space: nowrap !important;
1305
- }
1306
-
1307
- .text-break {
1308
- word-wrap: break-word !important;
1309
- word-break: break-word !important;
1310
- }
1311
- }
1312
- // #endregion
1313
-
1314
- // #region Colours
1315
- $new_utilities: map.merge(
1316
- $new_utilities,
1317
- (
1318
- 'colours': 'Applu our design system colours by either text colour or background',
1319
- )
1320
- );
1321
-
1322
- @mixin colours() {
1323
- @each $color, $value in $theme-colors {
1324
- .text-#{$color} {
1325
- --text-opacity: 1;
1326
- color: var(--colour-#{$color}) !important;
1327
- }
1328
-
1329
- .text-heading {
1330
-
1331
- color: var(--colour-heading) !important;
1332
- }
1333
-
1334
- .bg-#{$color} {
1335
- --bg-opacity: 1;
1336
- --bg-colour: var(--colour-#{$color}) !important;
1337
- background-color: var(--colour-#{$color}) !important;
1338
- }
1339
-
1340
- .hover-#{$color}:is(:hover,:focus,:focus-within) {
1341
- --bg-opacity: 1;
1342
- --bg-colour: var(--colour-#{$color}) !important;
1343
- background-color: var(--colour-#{$color}) !important;
1344
- }
1345
-
1346
- .colour-#{$color} {
1347
- --colour: var(--colour-#{$color}) !important;
1348
- }
1349
- }
1350
- }
1351
- // #endregion
1352
-
1353
- // #region gradients
1354
- $new_utilities: map.merge(
1355
- $new_utilities,
1356
- (
1357
- 'gradients': 'Add gradients to backgrounds',
1358
- )
1359
- );
1360
-
1361
- @mixin gradients() {
1362
- .bg-gradient {
1363
- background-image: var(--gradient) !important;
1364
- }
1365
-
1366
- .gradient-success {
1367
- --gradient-direction: 180deg;
1368
- background-image: linear-gradient(
1369
- var(--gradient-direction),
1370
- var(--colour-success-theme) 0,
1371
- transparent 100%
1372
- ) !important;
1373
- }
1374
-
1375
- .gradient-primary {
1376
- --gradient-direction: 180deg;
1377
- background-image: linear-gradient(
1378
- var(--gradient-direction),
1379
- var(--colour-primary-theme) 0,
1380
- transparent 100%
1381
- ) !important;
1382
- }
1383
-
1384
- .gradient-info {
1385
- --gradient-direction: 180deg;
1386
- background-image: linear-gradient(
1387
- var(--gradient-direction),
1388
- var(--colour-info-theme) 0,
1389
- transparent 100%
1390
- ) !important;
1391
- }
1392
-
1393
- .gradient-direction-left {
1394
- --gradient-direction: 90deg;
1395
- }
1396
-
1397
- .gradient-direction-angle {
1398
- --gradient-direction: 135deg;
1399
- }
1400
- }
1401
- // #endregion
1402
-
1403
- // #region Pointer-events
1404
- $new_utilities: map.merge(
1405
- $new_utilities,
1406
- (
1407
- 'pointer-events': 'Disable or enable point events',
1408
- )
1409
- );
1410
-
1411
- @mixin pointer-events() {
1412
- .pe-none {
1413
- pointer-events: none !important;
1414
- }
1415
-
1416
- .pe-auto {
1417
- pointer-events: auto !important;
1418
- }
1419
- }
1420
- // #endregion
1421
-
1422
- // #region Rounded
1423
- $new_utilities: map.merge(
1424
- $new_utilities,
1425
- (
1426
- 'rounded': 'Add rounded corners',
1427
- )
1428
- );
1429
-
1430
- @mixin rounded() {
1431
- .rounded {
1432
- border-radius: var(--border-radius) !important;
1433
- }
1434
-
1435
- .rounded-0 {
1436
- border-radius: 0 !important;
1437
- }
1438
-
1439
- .rounded-1 {
1440
- border-radius: var(--border-radius-sm) !important;
1441
- }
1442
-
1443
- .rounded-2 {
1444
- border-radius: var(--border-radius) !important;
1445
- }
1446
-
1447
- .rounded-3 {
1448
- border-radius: var(--border-radius-lg) !important;
1449
- }
1450
-
1451
- .rounded-4 {
1452
- border-radius: var(--border-radius-xl) !important;
1453
- }
1454
-
1455
- .rounded-5 {
1456
- border-radius: var(--border-radius-2xl) !important;
1457
- }
1458
-
1459
- .rounded-circle {
1460
- border-radius: 50% !important;
1461
- }
1462
-
1463
- .rounded-pill {
1464
- border-radius: var(--border-radius-pill) !important;
1465
- }
1466
-
1467
- .rounded-top {
1468
- border-top-left-radius: var(--border-radius) !important;
1469
- border-top-right-radius: var(--border-radius) !important;
1470
- }
1471
-
1472
- .rounded-end {
1473
- border-top-right-radius: var(--border-radius) !important;
1474
- border-bottom-right-radius: var(--border-radius) !important;
1475
- }
1476
-
1477
- .rounded-bottom {
1478
- border-bottom-right-radius: var(--border-radius) !important;
1479
- border-bottom-left-radius: var(--border-radius) !important;
1480
- }
1481
-
1482
- .rounded-start {
1483
- border-bottom-left-radius: var(--border-radius) !important;
1484
- border-top-left-radius: var(--border-radius) !important;
1485
- }
1486
- }
1487
- // #endregion
1488
-
1489
- // #region Visible
1490
- $new_utilities: map.merge(
1491
- $new_utilities,
1492
- (
1493
- 'visible': 'Change the visibility of elements',
1494
- )
1495
- );
1496
-
1497
- @mixin visible() {
1498
- .visible {
1499
- visibility: visible !important;
1500
- }
1501
-
1502
- .invisible {
1503
- visibility: hidden !important;
1504
- }
1505
- }
1506
- // #endregion
1
+ /* Empty */