1+ @use " sass:map" ;
2+ @use " ../../variables" as * ;
3+ @use " ../../functions" as fn ;
4+ @use " ../../colors" as c ;
5+ @use " ../../mixins" as mx ;
6+
17// Hide elements, for screen readers only
28.screen-reader {
39 position : absolute ;
410 width : 1px ;
511 height : 1px ;
612 padding : 0 ;
713 overflow : hidden ;
8- clip : rect (0 ,0 , 0 , 0 );
14+ clip : rect (0 , 0 , 0 , 0 );
915 white-space : nowrap ;
1016 border : 0 ;
1117}
2228
2329// Text alignment
2430.ta-l {
25- text-align : left ;
31+ text-align : left ;
2632}
2733
2834.ta-c {
29- text-align : center ;
35+ text-align : center ;
3036}
3137
3238.ta-r {
33- text-align : right ;
39+ text-align : right ;
3440}
3541
3642// Font weight
5258
5359// Text color
5460.text-color-high {
55- color : color ( high-contrast );
61+ color : map . get ( c . $colors , text , high-contrast );
5662}
5763
5864.text-color-mid {
59- color : color ( mid-contrast );
65+ color : map . get ( c . $colors , text , mid-contrast );
6066}
6167
6268.text-color-low {
63- color : color ( low-contrast );
69+ color : map . get ( c . $colors , text , low-contrast );
6470}
6571
6672.text-color-primary {
67- color : color ( primary );
73+ color : map . get ( c . $colors , text , primary );
6874}
6975
7076.text-color-secondary {
71- color : color ( secondary );
77+ color : map . get ( c . $colors , text , secondary );
7278}
7379
7480.text-color-error {
75- color : color ( error );
81+ color : map . get ( c . $colors , text , error );
7682}
7783
7884.text-color-warning {
79- color : color ( warning );
85+ color : map . get ( c . $colors , text , warning );
8086}
8187
8288.text-color-success {
83- color : color ( success );
89+ color : map . get ( c . $colors , text , success );
8490}
8591
8692.invert-color {
87-
8893 .text-color-high {
89- color : color ( high-contrast-inverse );
94+ color : map . get ( c . $colors , text , high-contrast-inverse );
9095 }
9196
9297 .text-color-mid {
93- color : color ( mid-contrast-inverse );
98+ color : map . get ( c . $colors , text , mid-contrast-inverse );
9499 }
95100
96101 .text-color-low {
97- color : color ( low-contrast-inverse );
102+ color : map . get ( c . $colors , text , low-contrast-inverse );
98103 }
99104}
100105
119124// Helper class for coloured bg
120125.has-bg-color {
121126 position : relative ;
122- background-color : color-bg ( bg-color );
127+ background-color : map . get ( c . $colors , bg , bg-color );
123128 z-index : 0 ;
124129}
125130
126131// Helper class for box shadow
127132.has-shadow {
128- box-shadow : color-bg ( shadow );
133+ box-shadow : map . get ( c . $colors , bg , shadow );
129134}
130135
131136img .has-shadow {
@@ -134,21 +139,20 @@ img.has-shadow {
134139
135140// Dividers
136141.has-top-divider {
137- @include divider (before );
142+ @include mx . divider (before );
138143}
139144
140145.has-bottom-divider {
141- @include divider (after );
146+ @include mx . divider (after );
142147}
143148
144149.invert-color {
145-
146150 .has-top-divider {
147- @include divider (before , inverse);
151+ @include mx . divider (before , inverse);
148152 }
149153
150154 .has-bottom-divider {
151- @include divider (after , inverse);
155+ @include mx . divider (after , inverse);
152156 }
153157}
154158
@@ -184,7 +188,7 @@ img.has-shadow {
184188 left : 0 ;
185189 width : 100% ;
186190 height : 100% ;
187- }
191+ }
188192}
189193
190194// Spacing, margin
@@ -502,8 +506,7 @@ img.has-shadow {
502506 padding-top : 64px ;
503507}
504508
505- @include media ( ' <=medium' ) {
506-
509+ @include mx .media (" <=medium" ) {
507510 .ta-l-mobile {
508511 text-align : left ;
509512 }
@@ -562,11 +565,10 @@ img.has-shadow {
562565
563566 .spacer-64-mobile {
564567 padding-top : 64px ;
565- }
568+ }
566569}
567570
568- @include media ( ' >medium' ) {
569-
571+ @include mx .media (" >medium" ) {
570572 .ta-l-desktop {
571573 text-align : left ;
572574 }
0 commit comments