@nice-digital/nds-core 1.3.3-alpha.0 → 2.0.0-alpha.0

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 (42) hide show
  1. package/package.json +5 -5
  2. package/scss/colours/_index.scss +1 -0
  3. package/scss/colours/tokens/_alias.scss +163 -0
  4. package/scss/colours/tokens/_global.scss +47 -0
  5. package/scss/{helpers/_helpers-focus.scss → focus/_index.scss} +15 -11
  6. package/scss/{helpers/_helpers-glyphs.scss → glyphs/_index.scss} +12 -10
  7. package/scss/layout/_index.scss +43 -0
  8. package/scss/media-queries/_index.scss +29 -0
  9. package/scss/media-queries/vendor/_mq.scss +307 -0
  10. package/scss/{settings/_settings-modular-scale.scss → modular-scale/_index.scss} +9 -7
  11. package/scss/spacing/_index.scss +31 -0
  12. package/scss/typography/{_typography-headings.scss → _headings.scss} +20 -19
  13. package/scss/typography/_helpers.scss +172 -0
  14. package/scss/typography/_index.scss +4 -0
  15. package/scss/typography/_links.scss +78 -0
  16. package/scss/{settings/_settings-typography.scss → typography/_settings.scss} +38 -34
  17. package/scss/{helpers/_helpers-utils.scss → utils/_index.scss} +22 -19
  18. package/scss/{vendor/_vendor-is.scss → utils/vendor/_is.scss} +8 -6
  19. package/scss/visibility/_index.scss +65 -0
  20. package/scss/core.scss +0 -4
  21. package/scss/helpers/_helpers-clearfix.scss +0 -23
  22. package/scss/helpers/_helpers-lists.scss +0 -45
  23. package/scss/helpers/_helpers-print.scss +0 -35
  24. package/scss/helpers/_helpers-text.scss +0 -21
  25. package/scss/helpers/_helpers-visibility.scss +0 -37
  26. package/scss/helpers/_helpers.scss +0 -2
  27. package/scss/layout/_layout-container.scss +0 -12
  28. package/scss/layout/_layout.scss +0 -1
  29. package/scss/settings/_settings-breakpoints.scss +0 -25
  30. package/scss/settings/_settings-colours-nice.scss +0 -80
  31. package/scss/settings/_settings-colours-semantic.scss +0 -247
  32. package/scss/settings/_settings-glyphs.scss +0 -3
  33. package/scss/settings/_settings-layout.scss +0 -15
  34. package/scss/settings/_settings-mq.scss +0 -17
  35. package/scss/settings/_settings-print.scss +0 -5
  36. package/scss/settings/_settings-spacing.scss +0 -43
  37. package/scss/settings/_settings.scss +0 -4
  38. package/scss/typography/_typography-helpers.scss +0 -148
  39. package/scss/typography/_typography-links.scss +0 -73
  40. package/scss/typography/_typography.scss +0 -1
  41. package/scss/vendor/_vendor-math.scss +0 -79
  42. package/scss/vendor/_vendor.scss +0 -2
@@ -1,80 +0,0 @@
1
- ////
2
- /// @group colors
3
- ////
4
-
5
- // PRIMARY PALETTE
6
-
7
- /// NICE Black. Part of the primary palette.
8
- /// @since 0.2.0
9
- $nds-colour-nice-black: #222;
10
-
11
- /// NICE White. Part of the primary palette
12
- /// @since 0.2.0
13
- $nds-colour-nice-white: #fff;
14
-
15
- /// NICE Teal. Part of the primary palette.
16
- /// First choice of colour for supporting
17
- /// @since 0.2.0
18
- $nds-colour-nice-teal: #004650;
19
-
20
- // SECONDARY PALETTE
21
-
22
- /// Purple. Part of the secondary palette. Purple should be used sparingly and only used as a
23
- /// panel background to highlight a particular section of content,
24
- /// in which case font colour must be pure white (NICE White) to make text legible.
25
- /// @since 0.2.0
26
- $nds-colour-nice-purple: #451551;
27
-
28
- /// Cool Teal. Part of the secondary palette.
29
- /// @since 0.2.0
30
- $nds-colour-nice-cool-teal: #00506a;
31
-
32
- /// Rich Black. Part of the secondary palette.
33
- /// @since 0.2.0
34
- $nds-colour-nice-rich-black: #0e0e0e;
35
-
36
- /// Dark Grey. Part of the secondary palette.
37
- /// @since 0.2.0
38
- $nds-colour-nice-dark-grey: #393939;
39
-
40
- /// Grey 1. Part of the secondary palette.
41
- /// @since 0.2.0
42
- $nds-colour-nice-grey-1: #adadad;
43
-
44
- /// Grey 2. Part of the secondary palette.
45
- /// @since 0.2.0
46
- $nds-colour-nice-grey-2: #d6d6d6;
47
-
48
- /// Grey 3. Part of the secondary palette.
49
- /// @since 0.2.0
50
- $nds-colour-nice-grey-3: #e9e9e9;
51
-
52
- // TERTIARY PALETTE
53
-
54
- /// Blue 1. Part of the tertiary palette.
55
- /// @since 0.2.0
56
- $nds-colour-nice-blue-1: #233746;
57
-
58
- /// Blue 2. Part of the tertiary palette.
59
- /// @since 0.2.0
60
- $nds-colour-nice-blue-2: #314c60;
61
-
62
- /// Blue 3. Part of the tertiary palette.
63
- /// @since 0.2.0
64
- $nds-colour-nice-blue-3: #517489;
65
-
66
- /// Ice Teal. Part of the tertiary palette.
67
- /// @since 0.2.0
68
- $nds-colour-nice-ice-teal: #a2bdc1;
69
-
70
- /// Teal 1. Part of the tertiary palette.
71
- /// @since 0.2.0
72
- $nds-colour-nice-teal-1: #4f7d83;
73
-
74
- /// Teal 2. Part of the tertiary palette.
75
- /// @since 0.2.0
76
- $nds-colour-nice-teal-2: #18646e;
77
-
78
- /// Teal 3. Part of the tertiary palette.
79
- /// @since 0.2.0
80
- $nds-colour-nice-teal-3: #15434a;
@@ -1,247 +0,0 @@
1
- ////
2
- /// @group colors
3
- ////
4
-
5
- @import 'settings-colours-nice';
6
-
7
- /// True black, used for print styles
8
- /// @since 0.2.0
9
- $nds-colour-true-black: #000;
10
-
11
- /// True white, used for print styles
12
- /// @since 0.2.0
13
- $nds-colour-true-white: #fff;
14
-
15
- // GLOBAL
16
-
17
- /// Page background colour. It's off-white in an attempt to make
18
- /// text easier to read for those with 'visual stress', 50% of
19
- /// which happen to be dyslexic (British Dyslexia association), by
20
- /// reducing contrast. See https://ux.stackexchange.com/a/73918/92081
21
- /// for a more detailed explanation.
22
- /// @since 0.2.0
23
- $nds-colour-body: #f4f4f4;
24
-
25
- /// Standard, primary body text colour. Off-black, to slightly reduce
26
- /// contrast in an attempt to make text easier to read for those with
27
- /// 'visual stress', see also $nds-colour-body.
28
- /// @since 0.2.0
29
- $nds-colour-text: $nds-colour-nice-black;
30
-
31
- /// Subtle text colour
32
- /// @since 0.2.0
33
- $nds-colour-text-subtle: $nds-colour-nice-grey-1;
34
-
35
- /// Inverse body text colour for use on dark background
36
- /// @since 0.2.2
37
- $nds-colour-text-inverse: $nds-colour-nice-white;
38
-
39
- /// Icons colour
40
- /// @since 0.2.0
41
- $nds-colour-icons: $nds-colour-nice-teal;
42
-
43
- // LINKS
44
-
45
- /// Link text colour
46
- /// @since 0.2.0
47
- $nds-colour-link: #005ea5;
48
-
49
- /// Link hover colour
50
- /// @since 0.2.0
51
- $nds-colour-link-hover: #003761;
52
-
53
- /// Link visited colour
54
- /// @since 0.2.0
55
- $nds-colour-link-visited: #4c2c92;
56
-
57
- /// Link active colour
58
- /// @since 0.2.0
59
- $nds-colour-link-active: $nds-colour-text;
60
-
61
- /// Link focus text colour
62
- /// @since 0.2.11
63
- $nds-colour-link-focus-text: $nds-colour-link;
64
-
65
- // INVERSE LINKS
66
-
67
- /// Inverse link text colour
68
- /// @since 0.2.9
69
- $nds-colour-link-inverse: $nds-colour-text-inverse;
70
-
71
- /// Inverse link hover text colour
72
- /// @since 0.2.9
73
- $nds-colour-link-inverse-hover: $nds-colour-nice-grey-2;
74
-
75
- /// Inverse link visited text colour. Same as normal inverse link colour to ensure minimum 4.5:1 colour contrast across various dark backgrounds.
76
- /// @since 0.2.9
77
- $nds-colour-link-inverse-visited: $nds-colour-link-inverse;
78
-
79
- /// Inverse link active text colour
80
- /// @since 0.2.9
81
- $nds-colour-link-inverse-active: $nds-colour-link-inverse-hover;
82
-
83
- /// Inverse link focus text colour
84
- /// @since 0.2.9
85
- $nds-colour-link-inverse-focus-text: $nds-colour-link-inverse;
86
-
87
- // FOCUS
88
-
89
- /// Focus colour
90
- /// @since 0.2.0
91
- $nds-colour-focus: #0092a6;
92
-
93
- /// Focus colour
94
- /// @since 0.3.1
95
- $nds-colour-focus-inverse: $nds-colour-link-inverse;
96
-
97
- // CTA BUTTONS
98
-
99
- /// CTA button background colour
100
- /// @since 0.2.2
101
- $nds-colour-btn-cta: $nds-colour-nice-purple;
102
-
103
- /// CTA button hover colour
104
- /// @since 0.2.2
105
- $nds-colour-btn-cta-hover: #260b2d;
106
-
107
- /// CTA button text colour
108
- /// @since 0.2.2
109
- $nds-colour-btn-cta-text: $nds-colour-nice-white;
110
-
111
- // PRIMARY BUTTONS
112
-
113
- /// Primary button background colour
114
- /// @since 0.2.2
115
- $nds-colour-btn-primary: $nds-colour-nice-dark-grey;
116
-
117
- /// Primary button hover colour
118
- /// @since 0.2.2
119
- $nds-colour-btn-primary-hover: $nds-colour-nice-rich-black;
120
-
121
- /// Primary button text colour
122
- /// @since 0.2.2
123
- $nds-colour-btn-primary-text: $nds-colour-nice-white;
124
-
125
- // SECONDARY BUTTONS
126
-
127
- /// Secondary button background colour
128
- /// @since 0.2.2
129
- $nds-colour-btn-secondary: #666;
130
-
131
- /// Secondary button hover colour
132
- /// @since 0.2.2
133
- $nds-colour-btn-secondary-hover: #333;
134
-
135
- /// Primary button text colour
136
- /// @since 0.2.2
137
- $nds-colour-btn-secondary-text: $nds-colour-nice-white;
138
-
139
- // LIGHT BUTTONS
140
-
141
- /// Inverse (light) button background colour
142
- /// @since 0.2.2
143
- $nds-colour-btn-inverse: $nds-colour-nice-white;
144
-
145
- /// Inverse (light) button hover colour
146
- /// @since 0.2.2
147
- $nds-colour-btn-inverse-hover: $nds-colour-nice-grey-3;
148
-
149
- /// Inverse (light) button text colour
150
- /// @since 0.2.2
151
- $nds-colour-btn-inverse-text: $nds-colour-nice-rich-black;
152
-
153
- // BACKGROUNDS/BORDERS
154
-
155
- /// Borders, separators, rules, keylines etc.
156
- /// @since 0.2.0
157
- $nds-colour-border: $nds-colour-nice-grey-1;
158
-
159
- /// Focused Borders, separators, rules, keylines etc.
160
- /// @since 0.4.2
161
- $nds-colour-border-focus: $nds-colour-nice-blue-3;
162
-
163
- // NOTIFICATIONS/BANNERS
164
-
165
- /// Agile lifecycle phase banner
166
- /// @since 0.2.2
167
- $nds-colour-agile-phase: #009ae9;
168
-
169
- /// Discovery agile lifecycle phase
170
- /// @since 0.2.0
171
- /// @deprecated Use $nds-colour-agile-phase instead
172
- $nds-colour-discovery: #b8008e;
173
-
174
- /// Alpha badges and banners
175
- /// @since 0.2.0
176
- /// @deprecated Use $nds-colour-agile-phase instead
177
- $nds-colour-alpha: #d5367f;
178
-
179
- /// Beta badges and banners
180
- /// @since 0.2.0
181
- /// @deprecated Use $nds-colour-agile-phase instead
182
- $nds-colour-beta: #bd5826;
183
-
184
- /// Live badges and banners
185
- /// @since 0.2.0
186
- /// @deprecated Use $nds-colour-agile-phase instead
187
- $nds-colour-live: #578137;
188
-
189
- /// Error text and border colour
190
- /// @since 1.7.0
191
- $nds-colour-error: #b50f23;
192
-
193
- /// Error background colour
194
- /// @since 1.7.0
195
- $nds-colour-error-background: #f9eced;
196
-
197
- /// Caution text and border colour
198
- /// @since 1.7.0
199
- $nds-colour-caution: #dc8a07;
200
-
201
- /// Caution background colour
202
- /// @since 1.7.0
203
- $nds-colour-caution-background: #fbf7f1;
204
-
205
- /// Info text and border colour
206
- /// @since 1.7.0
207
- $nds-colour-info: #3479d0;
208
-
209
- /// Info background colour
210
- /// @since 1.7.0
211
- $nds-colour-info-background: #eff4fc;
212
-
213
- /// Success text and border colour
214
- /// @since 1.7.0
215
- $nds-colour-success: #68c103;
216
-
217
- /// Success background colour
218
- /// @since 1.7.0
219
- $nds-colour-success-background: #f3faeb;
220
-
221
- /// <mark> tag highlighter colour
222
- /// @since 1.2.4
223
- $nds-colour-mark: #fff999;
224
-
225
- // GUIDANCE TYPES
226
-
227
- /// New guidance colour
228
- /// @since 0.3.0
229
- $nds-colour-guidance-new: $nds-colour-nice-purple;
230
-
231
- /// Updated guidance colour
232
- /// @since 0.3.0
233
- $nds-colour-guidance-updated: $nds-colour-nice-blue-3;
234
-
235
- /// In consultation guidance colour
236
- /// @since 0.3.0
237
- $nds-colour-guidance-consultation: #557021;
238
-
239
- // HERO
240
-
241
- /// Background colour for the hero component
242
- /// @since 0.5.2
243
- $nds-colour-hero-background: $nds-colour-nice-teal-2;
244
-
245
- /// Colour for the border in the hero component
246
- /// @since 0.5.2
247
- $nds-colour-hero-border: $nds-colour-nice-teal-3;
@@ -1,3 +0,0 @@
1
- /// Whether to output the classes for the UTF-8 glyphs.
2
- /// @since 0.2.0
3
- $nds-output-glyph-classes: false !default;
@@ -1,15 +0,0 @@
1
- ////
2
- /// @group grid
3
- ////
4
-
5
- /// The maximum width of the default container, in pixels
6
- /// @since 0.5.2
7
- $nds-container-max-width: 1170;
8
-
9
- /// The gutter for the default container
10
- /// @since 1.0.0
11
- $nds-container-gutter: $nds-spacing-medium;
12
-
13
- /// The maximum content width to ensure good readability
14
- /// @since 1.7.0
15
- $nds-readable-width: 66ch;
@@ -1,17 +0,0 @@
1
- // SASS MQ OVERRIDES
2
-
3
- // A map of breakpoints (name: px) required for SASS MQ
4
- $mq-breakpoints: (
5
- xs: $nds-breakpoint-xs,
6
- sm: $nds-breakpoint-sm,
7
- md: $nds-breakpoint-md,
8
- lg: $nds-breakpoint-lg,
9
- xl: $nds-breakpoint-xl
10
- );
11
-
12
- // Base font size
13
- $mq-base-font-size: $nds-base-font-size * 1px;
14
-
15
- $mq-static-breakpoint: lg;
16
-
17
- $mq-responsive: $nds-responsive;
@@ -1,5 +0,0 @@
1
- /// Whether to output a default set of generic print styles for things
2
- /// like avoiding page breaks after headings etc. If you disabled this,
3
- /// be sure to add your own print styles.
4
- /// @since 0.2.0
5
- $nds-output-default-print-styles: true !default;
@@ -1,43 +0,0 @@
1
- ////
2
- /// @group spacing
3
- ////
4
-
5
- /// Extra extra small spacing
6
- /// @since 0.2.0
7
- $nds-spacing-xx-small: 2;
8
-
9
- /// Extra small spacing
10
- /// @since 0.2.0
11
- $nds-spacing-x-small: 4;
12
-
13
- /// Small spacing
14
- /// @since 0.2.0
15
- $nds-spacing-small: 8;
16
-
17
- /// Medium spacing
18
- /// @since 0.2.0
19
- $nds-spacing-medium: 16;
20
-
21
- /// Large spacing
22
- /// @since 0.2.0
23
- $nds-spacing-large: 32;
24
-
25
- /// Extra large spacing
26
- /// @since 0.2.0
27
- $nds-spacing-x-large: 48;
28
-
29
- /// Extra extra large spacing
30
- /// @since 0.2.0
31
- $nds-spacing-xx-large: 64;
32
-
33
- /// A map of spacing values
34
- /// @since 0.2.15
35
- $nds-spacings: (
36
- xx-small: $nds-spacing-xx-small,
37
- x-small: $nds-spacing-x-small,
38
- small: $nds-spacing-small,
39
- medium: $nds-spacing-medium,
40
- large: $nds-spacing-large,
41
- x-large: $nds-spacing-x-large,
42
- xx-large: $nds-spacing-xx-large
43
- );
@@ -1,4 +0,0 @@
1
- @import 'settings-colours-nice', 'settings-colours-semantic',
2
- 'settings-modular-scale', 'settings-spacing', 'settings-breakpoints',
3
- 'settings-glyphs', 'settings-layout', 'settings-print', 'settings-typography',
4
- 'settings-mq';
@@ -1,148 +0,0 @@
1
- ////
2
- /// @group Typography
3
- ////
4
-
5
- /// Gets a font family from the `$nds-font-families` map, given a name
6
- /// @param {String} $stack The stack name e.g. sans, serif or mono
7
- /// @since 0.1.0
8
- @function nds-get-font-family($stack) {
9
- $result: map-get($nds-font-families, $stack);
10
- @return unquote($result);
11
- }
12
-
13
- /// Gets a numeric scale
14
- /// @param $scale {Integer|Name} The integer ratio or named font-size.
15
- /// @since 0.1.0
16
- @function nds-get-scale-integer($scale) {
17
- @if map-has-key($nds-named-font-sizes, $scale) {
18
- @return map-get($nds-named-font-sizes, $scale);
19
- } @else if is-integer($scale) {
20
- @return $scale;
21
- }
22
-
23
- @error '`$scale` must either be an integer or exist as a named font size in `$nds-named-font-sizes`';
24
- }
25
-
26
- /// Gets a numeric font size (in px) from a given scale multiplier.
27
- /// Usually not used directly - the font-size or font mixin is usually used instead.
28
- /// @param $scale {Integer|Name} The integer ratio or named font-size.
29
- /// @return {Number} Numeric font size (in px)
30
- /// @example
31
- /// $font-size: nds-get-font-size(2)
32
- /// @example
33
- /// $font-size: nds-get-font-size(h1)
34
- /// @since 0.1.0
35
- @function nds-get-font-size($scale) {
36
- $scale-integer: nds-get-scale-integer($scale);
37
- $font-map: map-get($nds-font-sizes, $scale-integer);
38
- @return map-get($font-map, fs);
39
- }
40
-
41
- /// Gets a numeric line height (in px) from a given scale multiplier.
42
- /// Usually not used directly - the font-size or font mixin is usually used instead.
43
- /// @param $scale {Integer|Name} The integer ratio or named font-size.
44
- /// @return {Number} Numeric line-height (in px)
45
- /// @example
46
- /// $line-height: nds-get-line-height(2)
47
- /// @example
48
- /// $line-height: nds-get-line-height(h1)
49
- /// @since 0.1.0
50
- @function nds-get-line-height($scale) {
51
- $scale-integer: nds-get-scale-integer($scale);
52
- $font-map: map-get($nds-font-sizes, $scale-integer);
53
- @return map-get($font-map, lh);
54
- }
55
-
56
- /// Applies font size and line-height for the given scale.
57
- /// @param $scale {Integer|Name} The integer ratio or named font-size.
58
- /// @param $important {Boolean} Whether to add an important declaration to the CSS rules.
59
- /// @example
60
- /// .test {
61
- /// @include nds-font-size(-2);
62
- /// }
63
- /// @example
64
- /// .test {
65
- /// @include nds-font-size(h1, true);
66
- /// }
67
- /// @since 0.1.0
68
- @mixin nds-font-size($scale: 0, $important: false) {
69
- $font-size: nds-get-font-size($scale);
70
- $line-height: nds-get-line-height($scale);
71
-
72
- @if $important {
73
- font-size: rem($font-size) !important;
74
- line-height: rem($line-height) !important;
75
- } @else {
76
- font-size: rem($font-size);
77
- line-height: rem($line-height);
78
- }
79
- }
80
-
81
- /// Nice font: includes font size, line height, and margins.
82
- /// @param $scale {Integer|Name} The integer ratio or named font-size.
83
- /// @param $important {Boolean} Whether to add an important declaration to the CSS rules.
84
- /// @example
85
- /// .test {
86
- /// @include nds-font(3);
87
- /// }
88
- /// @example
89
- /// .test {
90
- /// @include nds-font(h1, true);
91
- /// }
92
- /// @since 0.1.0
93
- @mixin nds-font($scale, $important: false) {
94
- $scale-integer: nds-get-scale-integer($scale);
95
- $font-map: map-get($nds-font-sizes, $scale-integer);
96
- @include nds-font-size($scale, $important);
97
-
98
- @if $important {
99
- margin-bottom: rem(map-get($font-map, mb)) !important;
100
- margin-top: rem(map-get($font-map, mt)) !important;
101
- } @else {
102
- margin-bottom: rem(map-get($font-map, mb));
103
- margin-top: rem(map-get($font-map, mt));
104
- }
105
- }
106
-
107
- /// Default paragraph style
108
- /// @since 0.5.2
109
- @mixin nds-p {
110
- @include nds-font(p);
111
- font-feature-settings: 'kern', 'onum', 'liga';
112
- font-weight: normal;
113
- max-width: 66ch;
114
- }
115
-
116
- /// Lead paragraph style
117
- /// @since 0.2.12
118
- @mixin nds-lead {
119
- @include nds-font(lead);
120
- font-weight: normal;
121
- max-width: 66ch;
122
- }
123
-
124
- /// Base list style
125
- /// @since 0.1.0
126
- @mixin nds-list {
127
- font-feature-settings: 'kern', 'onum', 'liga';
128
- margin-left: rem($nds-spacing-medium);
129
- max-width: 66ch;
130
- padding: 0;
131
- }
132
-
133
- // TODO: default-error-style probably belongs elsewhere?
134
-
135
- /// The highlight style used for elements like inputs and textareas
136
- /// if there's an error on the field
137
- /// @param {Boolean} $rounded whether to use box shadow for border (outline can't be styled to have radius corners)
138
- /// @output default styling for form elements in an errored state
139
- /// @since 1.0
140
- @mixin nds-default-error-style($rounded: false) {
141
- @if $rounded {
142
- box-shadow: 0 0 0 rem($nds-spacing-x-small) $nds-colour-error;
143
- outline: $nds-spacing-x-small solid transparent;
144
- outline-offset: $nds-spacing-x-small;
145
- } @else {
146
- outline: rem($nds-spacing-x-small) solid $nds-colour-error;
147
- }
148
- }
@@ -1,73 +0,0 @@
1
- ////
2
- /// @group Typography
3
- ////
4
-
5
- /// Default link style for use on a normal (light) background
6
- /// @since 0.3.1
7
- @mixin nds-link-default {
8
- color: $nds-colour-link;
9
- -webkit-tap-highlight-color: rgba($nds-colour-focus, 0.333);
10
- text-decoration: underline;
11
- text-decoration-skip-ink: auto;
12
-
13
- &:visited {
14
- color: $nds-colour-link-visited;
15
- }
16
-
17
- &:hover {
18
- color: $nds-colour-link-hover;
19
- text-decoration-thickness: 0.15rem;
20
- }
21
-
22
- &:focus {
23
- @include nds-default-focus-style;
24
- color: $nds-colour-link-focus-text;
25
- }
26
-
27
- &:active {
28
- color: $nds-colour-link-active;
29
- }
30
- }
31
- /// Default links for use on a light background
32
- /// @require {mixin} link-default
33
- /// @since 0.5.0
34
- @mixin nds-links-default {
35
- a {
36
- @include nds-link-default;
37
- }
38
- }
39
-
40
- /// Inverse link style for use on an inverse (dark) background
41
- /// @since 0.3.1
42
- @mixin nds-link-inverse {
43
- color: $nds-colour-link-inverse;
44
- -webkit-tap-highlight-color: rgba($nds-colour-focus, 0.333);
45
- text-decoration: underline;
46
- text-decoration-skip-ink: auto;
47
-
48
- &:visited {
49
- color: $nds-colour-link-inverse-visited;
50
- }
51
-
52
- &:hover {
53
- color: $nds-colour-link-inverse-hover;
54
- }
55
-
56
- &:focus {
57
- @include nds-inverse-focus-style;
58
- color: $nds-colour-link-inverse-focus-text;
59
- }
60
-
61
- &:active {
62
- color: $nds-colour-link-inverse-active;
63
- }
64
- }
65
-
66
- /// Inverse links for use on a dark background
67
- /// @require {mixin} link-inverse
68
- /// @since 0.3.1
69
- @mixin nds-links-inverse {
70
- a {
71
- @include nds-link-inverse;
72
- }
73
- }
@@ -1 +0,0 @@
1
- @import 'typography-helpers', 'typography-links', 'typography-headings';