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