dso-toolkit 62.10.0 → 62.12.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 (59) hide show
  1. package/CHANGELOG.md +34 -0
  2. package/assets/fonts/Asap/Asap-Italic-VariableFont_wdth,wght.ttf +0 -0
  3. package/assets/fonts/Asap/Asap-VariableFont_wdth,wght.ttf +0 -0
  4. package/dist/dso-icons.svg +315 -259
  5. package/dist/dso.css +799 -331
  6. package/dist/dso.css.map +1 -1
  7. package/dist/dso.min.css +1 -1
  8. package/dist/dso.min.css.map +1 -1
  9. package/package.json +1 -1
  10. package/src/components/action-list/action-list.scss +6 -0
  11. package/src/components/alert/alert.mixins.scss +20 -33
  12. package/src/components/alert/alert.scss +0 -28
  13. package/src/components/alert/alert.variables.scss +0 -4
  14. package/src/components/anchor/anchor.mixins.scss +43 -36
  15. package/src/components/anchor/anchor.scss +2 -17
  16. package/src/components/anchor/anchor.variables.scss +30 -0
  17. package/src/components/badge/badge.mixins.scss +14 -27
  18. package/src/components/banner/banner.mixins.scss +5 -14
  19. package/src/components/banner/banner.scss +0 -10
  20. package/src/components/banner/banner.variables.scss +0 -4
  21. package/src/components/delete/delete.mixins.scss +3 -6
  22. package/src/components/document-header/document-header.scss +3 -6
  23. package/src/components/footer/footer.scss +4 -19
  24. package/src/components/form/form-buttons/form-buttons.scss +43 -15
  25. package/src/components/form/form-explanation.scss +25 -0
  26. package/src/components/form/form-groups/files/form-group-files.scss +88 -22
  27. package/src/components/form/form.mixins.scss +1 -3
  28. package/src/components/form/form.scss +1 -0
  29. package/src/components/grid/grid.scss +28 -7
  30. package/src/components/highlight-box/highlight-box.mixins.scss +27 -22
  31. package/src/components/highlight-box/highlight-box.scss +29 -3
  32. package/src/components/info/info.mixins.scss +3 -2
  33. package/src/components/insert/insert.mixins.scss +3 -6
  34. package/src/components/label/label.mixins.scss +13 -18
  35. package/src/components/list-button/list-button.mixins.scss +5 -0
  36. package/src/components/modal/modal.mixins.scss +2 -2
  37. package/src/components/shopping-cart/shopping-cart.scss +6 -3
  38. package/src/components/step-counter/step-counter.mixins.scss +8 -14
  39. package/src/components/whitebox/whitebox.mixins.scss +9 -0
  40. package/src/global/font-faces.scss +8 -77
  41. package/src/global/functions/contrast-color.functions.scss +48 -0
  42. package/src/global/mixins/set-colors.mixin.scss +73 -0
  43. package/src/variables/colors.scss +3 -0
  44. package/assets/fonts/Asap/Asap-Bold.woff +0 -0
  45. package/assets/fonts/Asap/Asap-Bold.woff2 +0 -0
  46. package/assets/fonts/Asap/Asap-BoldItalic.woff +0 -0
  47. package/assets/fonts/Asap/Asap-BoldItalic.woff2 +0 -0
  48. package/assets/fonts/Asap/Asap-Italic.woff +0 -0
  49. package/assets/fonts/Asap/Asap-Italic.woff2 +0 -0
  50. package/assets/fonts/Asap/Asap-Medium.woff +0 -0
  51. package/assets/fonts/Asap/Asap-Medium.woff2 +0 -0
  52. package/assets/fonts/Asap/Asap-MediumItalic.woff +0 -0
  53. package/assets/fonts/Asap/Asap-MediumItalic.woff2 +0 -0
  54. package/assets/fonts/Asap/Asap-Regular.woff +0 -0
  55. package/assets/fonts/Asap/Asap-Regular.woff2 +0 -0
  56. package/assets/fonts/Asap/Asap-SemiBold.woff +0 -0
  57. package/assets/fonts/Asap/Asap-SemiBold.woff2 +0 -0
  58. package/assets/fonts/Asap/Asap-SemiBoldItalic.woff +0 -0
  59. package/assets/fonts/Asap/Asap-SemiBoldItalic.woff2 +0 -0
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "dso-toolkit",
3
3
  "description": "DSO Toolkit",
4
4
  "license": "SEE LICENSE IN DISCLAIMER.txt",
5
- "version": "62.10.0",
5
+ "version": "62.12.0",
6
6
  "scripts": {
7
7
  "watch": "gulp"
8
8
  },
@@ -12,6 +12,12 @@ dso-action-list {
12
12
  margin-inline-start: calc(
13
13
  (action-list-variables.$content-indent - action-list-item-variables.$step-counter-margin) * -1
14
14
  );
15
+
16
+ + .dso-rich-content {
17
+ @media screen and (min-width: media-query-breakpoints.$screen-xs-min) {
18
+ margin-inline-start: units.$u1;
19
+ }
20
+ }
15
21
  }
16
22
 
17
23
  .flow-line {
@@ -5,6 +5,7 @@
5
5
 
6
6
  @use "../button";
7
7
  @use "alert.variables" as alert-variables;
8
+ @use "../../global/mixins/set-colors.mixin" as set-colors;
8
9
 
9
10
  @mixin icon-position() {
10
11
  left: alert-variables.$horizontal-padding - 1px; // 1px border
@@ -45,28 +46,30 @@
45
46
  }
46
47
 
47
48
  a {
48
- &,
49
- &:not(.dso-alert-button):visited {
50
- color: colors.$zwart;
51
- }
52
-
53
- &:hover,
54
- &:focus,
55
- &:active,
56
- &:visited {
57
- color: colors.$zwart;
58
- }
59
-
60
49
  &:active {
61
50
  text-decoration: none;
62
51
  }
63
52
  }
64
- }
65
53
 
66
- @mixin _variant($background, $border, $text-color) {
67
- color: $text-color;
68
- background-color: $background;
69
- border-color: $border;
54
+ &.alert-success,
55
+ &[status="success"] {
56
+ @include set-colors.apply(alert-variables.$success-bg, alert-variables.$success-border);
57
+ }
58
+
59
+ &.alert-error,
60
+ &[status="error"] {
61
+ @include set-colors.apply(alert-variables.$danger-bg, alert-variables.$danger-border);
62
+ }
63
+
64
+ &.alert-warning,
65
+ &[status="warning"] {
66
+ @include set-colors.apply(alert-variables.$warning-bg, alert-variables.$warning-border);
67
+ }
68
+
69
+ &.alert-info,
70
+ &[status="info"] {
71
+ @include set-colors.apply(alert-variables.$info-bg, alert-variables.$info-border);
72
+ }
70
73
  }
71
74
 
72
75
  @mixin root() {
@@ -88,20 +91,4 @@
88
91
  &:not(:first-child) {
89
92
  margin-top: units.$u3;
90
93
  }
91
-
92
- &.alert-success {
93
- @include _variant(alert-variables.$success-bg, alert-variables.$success-border, alert-variables.$success-text);
94
- }
95
-
96
- &.alert-error {
97
- @include _variant(alert-variables.$danger-bg, alert-variables.$danger-border, alert-variables.$danger-text);
98
- }
99
-
100
- &.alert-warning {
101
- @include _variant(alert-variables.$warning-bg, alert-variables.$warning-border, alert-variables.$warning-text);
102
- }
103
-
104
- &.alert-info {
105
- @include _variant(alert-variables.$info-bg, alert-variables.$info-border, alert-variables.$info-text);
106
- }
107
94
  }
@@ -37,37 +37,9 @@
37
37
  @include di.base("status-info", alert.$icon-size);
38
38
  }
39
39
  }
40
-
41
- a {
42
- &.download {
43
- &::after {
44
- @include di.variant("download-grijs90");
45
- }
46
- }
47
-
48
- &.extern {
49
- &::after {
50
- @include di.variant("external-link-grijs90");
51
- }
52
- }
53
- }
54
40
  }
55
41
 
56
42
  // Web Component
57
43
  dso-alert {
58
44
  @include alert.children();
59
-
60
- a {
61
- &.download {
62
- &::after {
63
- @include di.variant("download-grijs90");
64
- }
65
- }
66
-
67
- &.extern {
68
- &::after {
69
- @include di.variant("external-link-grijs90");
70
- }
71
- }
72
- }
73
45
  }
@@ -9,17 +9,13 @@ $small-padding: units.$u2;
9
9
  $small-padding-top: 2 * $horizontal-padding + $icon-size - 1px;
10
10
 
11
11
  $success-bg: states.$success-bg;
12
- $success-text: states.$success-text;
13
12
  $success-border: states.$success-border;
14
13
 
15
14
  $info-bg: states.$info-bg;
16
- $info-text: states.$info-text;
17
15
  $info-border: states.$info-border;
18
16
 
19
17
  $warning-bg: states.$warning-bg;
20
- $warning-text: states.$warning-text;
21
18
  $warning-border: states.$warning-border;
22
19
 
23
20
  $danger-bg: states.$danger-bg;
24
- $danger-text: states.$danger-text;
25
21
  $danger-border: states.$danger-border;
@@ -1,9 +1,11 @@
1
+ @use "sass:map";
2
+
1
3
  @use "../../di";
2
4
  @use "anchor.variables" as anchor-variables;
3
5
 
4
6
  @mixin pseudo() {
5
7
  &:hover,
6
- &:focus {
8
+ &:focus-visible {
7
9
  color: var(--link-hover-color);
8
10
  text-decoration: underline;
9
11
  }
@@ -33,7 +35,7 @@
33
35
  text-decoration: none;
34
36
 
35
37
  &:hover,
36
- &:focus {
38
+ &:focus-visible {
37
39
  text-decoration: none;
38
40
  }
39
41
 
@@ -46,68 +48,73 @@
46
48
  text-decoration: none;
47
49
 
48
50
  &:hover,
49
- &:focus,
51
+ &:focus-visible,
50
52
  &:active {
51
53
  text-decoration: underline;
52
54
  }
53
55
  }
54
56
 
55
- // provide base styling icon placement (before or after)
56
- @mixin mode-base($pos) {
57
- @if $pos != "after" and $pos != "before" {
57
+ @mixin anchorIcons() {
58
+ @each $mode, $value in anchor-variables.$anchorIcons {
59
+ &#{map.get($value, "selector")} {
60
+ @include _mode-base($value);
61
+ }
62
+ }
63
+ }
64
+
65
+ @mixin _mode-base($anchor-map) {
66
+ $icon-placement: map.get($anchor-map, "icon-placement");
67
+
68
+ @if $icon-placement != "after" and $icon-placement != "before" {
58
69
  @error 'Use mixin argument "before" or "after".';
59
70
  }
60
71
 
61
72
  background-repeat: no-repeat;
62
73
  background-size: 1.25em 1.25em;
63
74
 
64
- @if $pos == before {
75
+ @if $icon-placement == "before" {
65
76
  padding-inline-start: 1.5em;
66
77
  background-position: bottom 0 left 0;
67
78
  }
68
79
 
69
- @if $pos == after {
80
+ @if $icon-placement == "after" {
70
81
  padding-inline-end: 1.5em;
71
82
  background-position: bottom 0 right 0;
72
83
  }
84
+
85
+ $icon: if(
86
+ map.has-key($anchor-map, "icon-color"),
87
+ map.get($anchor-map, "icon") + "-" + map.get($anchor-map, "icon-color"),
88
+ map.get($anchor-map, "icon")
89
+ );
90
+ $icon-hover: if(
91
+ map.has-key($anchor-map, "icon-hover-color"),
92
+ map.get($anchor-map, "icon") + "-" + map.get($anchor-map, "icon-hover-color"),
93
+ map.get($anchor-map, "icon")
94
+ );
95
+
96
+ @include di.variant($icon);
97
+
98
+ @if ($icon != $icon-hover) {
99
+ &:hover,
100
+ &:focus-visible {
101
+ @include di.variant($icon-hover);
102
+ }
103
+ }
73
104
  }
74
105
 
75
106
  @mixin mode-download() {
76
- @include mode-base("after");
77
- @include di.variant("download");
78
-
79
- &:hover,
80
- &:focus {
81
- @include di.variant("download-scampi");
82
- }
107
+ @include _mode-base(map.get(anchor-variables.$anchorIcons, "download"));
83
108
  }
84
109
 
85
110
  @mixin mode-extern() {
86
- @include mode-base("after");
87
- @include di.variant("external-link");
88
-
89
- &:hover,
90
- &:focus {
91
- @include di.variant("external-link-scampi");
92
- }
111
+ @include _mode-base(map.get(anchor-variables.$anchorIcons, "extern"));
93
112
  }
94
113
 
95
114
  @mixin mode-phone() {
96
- @include mode-base("before");
97
- @include di.variant("call-grasgroen");
98
-
99
- &:hover,
100
- &:focus {
101
- @include di.variant("call-scampi");
102
- }
115
+ @include _mode-base(map.get(anchor-variables.$anchorIcons, "phone"));
103
116
  }
104
117
 
105
118
  @mixin mode-email() {
106
- @include mode-base("before");
107
- @include di.variant("email-grasgroen");
108
-
109
- &:hover,
110
- &:focus {
111
- @include di.variant("email-scampi");
112
- }
119
+ @include _mode-base(map.get(anchor-variables.$anchorIcons, "mail"));
113
120
  }
@@ -3,22 +3,7 @@
3
3
  a {
4
4
  @include anchor-mixins.root();
5
5
 
6
- &:not(.dso-primary, .dso-secondary, .dso-tertiary) {
7
- // todo: alternative for :not
8
- &.download {
9
- @include anchor-mixins.mode-download();
10
- }
11
-
12
- &.extern {
13
- @include anchor-mixins.mode-extern();
14
- }
15
-
16
- &[href^="tel:"] {
17
- @include anchor-mixins.mode-phone();
18
- }
19
-
20
- &[href^="mailto:"] {
21
- @include anchor-mixins.mode-email();
22
- }
6
+ &:where(:not(.dso-primary, .dso-secondary, .dso-tertiary)) {
7
+ @include anchor-mixins.anchorIcons();
23
8
  }
24
9
  }
@@ -5,3 +5,33 @@ $link-hover-color: colors.$scampi;
5
5
  $link-visited-color: colors.$mauve;
6
6
 
7
7
  $spacer-width: 4px;
8
+
9
+ // anchor icons and their properties
10
+ $anchorIcons: (
11
+ "download": (
12
+ "selector": ".download",
13
+ "icon": "download",
14
+ "icon-hover-color": "scampi",
15
+ "icon-placement": "after",
16
+ ),
17
+ "extern": (
18
+ "selector": ".extern",
19
+ "icon": "external-link",
20
+ "icon-hover-color": "scampi",
21
+ "icon-placement": "after",
22
+ ),
23
+ "phone": (
24
+ "selector": "[href^='tel:']",
25
+ "icon": "call",
26
+ "icon-color": "grasgroen",
27
+ "icon-hover-color": "scampi",
28
+ "icon-placement": "before",
29
+ ),
30
+ "mail": (
31
+ "selector": "[href^='mailto:']",
32
+ "icon": "email",
33
+ "icon-color": "grasgroen",
34
+ "icon-hover-color": "scampi",
35
+ "icon-placement": "before",
36
+ ),
37
+ );
@@ -1,13 +1,12 @@
1
1
  @use "../../variables/units";
2
2
  @use "../../variables/colors";
3
+ @use "../../global/mixins/set-colors.mixin" as set-colors;
3
4
 
4
5
  @use "badge.variables" as badge-variables;
5
6
 
6
7
  @mixin root() {
7
- background-color: badge-variables.$default-bg-color;
8
- border: 1px solid badge-variables.$default-bg-color;
8
+ border: 1px solid;
9
9
  border-radius: 1em;
10
- color: colors.$wit;
11
10
  display: inline-block;
12
11
  font-size: 0.875em;
13
12
  line-height: badge-variables.$line-height;
@@ -15,51 +14,39 @@
15
14
  padding: #{units.$u1 * 0.5} units.$u1;
16
15
  text-align: center;
17
16
 
17
+ & {
18
+ @include set-colors.apply(badge-variables.$default-bg-color, $icons: false, $links: false);
19
+ }
20
+
18
21
  &.badge-info {
19
- background-color: badge-variables.$info-bg-color;
20
- border-color: badge-variables.$info-bg-color;
21
- color: colors.$zwart;
22
+ @include set-colors.apply(badge-variables.$info-bg-color, $icons: false, $links: false);
22
23
  }
23
24
 
24
25
  &.badge-primary {
25
- background-color: badge-variables.$primary-bg-color;
26
- border-color: badge-variables.$primary-bg-color;
27
- color: colors.$wit;
26
+ @include set-colors.apply(badge-variables.$primary-bg-color, $icons: false, $links: false);
28
27
  }
29
28
 
30
29
  &.badge-success {
31
- background-color: badge-variables.$success-bg-color;
32
- border-color: badge-variables.$success-bg-color;
33
- color: colors.$wit;
30
+ @include set-colors.apply(badge-variables.$success-bg-color, $icons: false, $links: false);
34
31
  }
35
32
 
36
33
  &.badge-warning {
37
- background-color: badge-variables.$warning-bg-color;
38
- border-color: badge-variables.$warning-bg-color;
39
- color: colors.$zwart;
34
+ @include set-colors.apply(badge-variables.$warning-bg-color, $icons: false, $links: false);
40
35
  }
41
36
 
42
37
  &.badge-danger {
43
- background-color: badge-variables.$danger-bg-color;
44
- border-color: badge-variables.$danger-bg-color;
45
- color: colors.$wit;
38
+ @include set-colors.apply(badge-variables.$danger-bg-color, $icons: false, $links: false);
46
39
  }
47
40
 
48
41
  &.badge-error {
49
- background-color: badge-variables.$error-bg-color;
50
- border-color: badge-variables.$error-bg-color;
51
- color: colors.$wit;
42
+ @include set-colors.apply(badge-variables.$error-bg-color, $icons: false, $links: false);
52
43
  }
53
44
 
54
45
  &.badge-outline {
55
- background-color: colors.$wit;
56
- border-color: colors.$grijs-90;
57
- color: colors.$grijs-90;
46
+ @include set-colors.apply(colors.$wit, colors.$grijs-90, $icons: false, $links: false);
58
47
  }
59
48
 
60
49
  &.badge-attention {
61
- background-color: badge-variables.$attention-bg-color;
62
- border-color: badge-variables.$attention-bg-color;
63
- color: colors.$wit;
50
+ @include set-colors.apply(badge-variables.$attention-bg-color, $icons: false, $links: false);
64
51
  }
65
52
  }
@@ -6,6 +6,7 @@
6
6
  @use "../../di";
7
7
 
8
8
  @use "banner.variables" as banner-variables;
9
+ @use "../../global/mixins/set-colors.mixin" as set-colors;
9
10
 
10
11
  @mixin _variant($background, $border, $text-color) {
11
12
  color: $text-color;
@@ -14,19 +15,9 @@
14
15
  }
15
16
 
16
17
  @mixin children() {
17
- --link-color: #{colors.$zwart};
18
-
19
18
  a {
20
19
  text-decoration: underline;
21
20
 
22
- &,
23
- &:hover,
24
- &:focus,
25
- &:active,
26
- &:visited {
27
- color: var(--link-color);
28
- }
29
-
30
21
  &:active {
31
22
  text-decoration: none;
32
23
  }
@@ -89,19 +80,19 @@
89
80
  }
90
81
 
91
82
  @mixin danger() {
92
- @include _variant(banner-variables.$danger-bg, banner-variables.$danger-border, banner-variables.$danger-text);
83
+ @include set-colors.apply(banner-variables.$danger-bg, banner-variables.$danger-border);
93
84
  }
94
85
 
95
86
  @mixin error() {
96
- @include _variant(banner-variables.$error-bg, banner-variables.$error-border, banner-variables.$error-text);
87
+ @include set-colors.apply(banner-variables.$error-bg, banner-variables.$error-border);
97
88
  }
98
89
 
99
90
  @mixin info() {
100
- @include _variant(banner-variables.$info-bg, banner-variables.$info-border, banner-variables.$info-text);
91
+ @include set-colors.apply(banner-variables.$info-bg, banner-variables.$info-border);
101
92
  }
102
93
 
103
94
  @mixin warning() {
104
- @include _variant(banner-variables.$warning-bg, banner-variables.$warning-border, banner-variables.$warning-text);
95
+ @include set-colors.apply(banner-variables.$warning-bg, banner-variables.$warning-border);
105
96
  }
106
97
 
107
98
  @mixin root() {
@@ -139,14 +139,4 @@ dso-banner {
139
139
  @include banner-mixins.with-icon("warning");
140
140
  }
141
141
  }
142
-
143
- a {
144
- &.download {
145
- @include di.variant("download-grijs90");
146
- }
147
-
148
- &.extern {
149
- @include di.variant("external-link-grijs90");
150
- }
151
- }
152
142
  }
@@ -6,17 +6,13 @@ $left-padding: units.$u6;
6
6
  $small-padding-top: units.$u5 - 1px;
7
7
 
8
8
  $warning-bg: states.$warning-bg;
9
- $warning-text: states.$warning-text;
10
9
  $warning-border: states.$warning-border;
11
10
 
12
11
  $danger-bg: states.$danger-bg;
13
- $danger-text: states.$danger-text;
14
12
  $danger-border: states.$danger-border;
15
13
 
16
14
  $error-bg: states.$error-bg;
17
- $error-text: states.$error-text;
18
15
  $error-border: states.$error-border;
19
16
 
20
17
  $info-bg: states.$info-bg;
21
- $info-text: states.$info-text;
22
18
  $info-border: states.$info-border;
@@ -1,11 +1,8 @@
1
1
  @use "../../variables/colors";
2
+ @use "../../global/mixins/set-colors.mixin" as set-colors;
2
3
 
3
4
  @mixin root() {
4
- background-color: colors.$danger-bg-color;
5
- color: colors.$zwart;
6
- text-decoration: line-through;
5
+ @include set-colors.apply(colors.$rood-20);
7
6
 
8
- a {
9
- color: colors.$zwart;
10
- }
7
+ text-decoration: line-through;
11
8
  }
@@ -8,10 +8,11 @@
8
8
  @use "../icon";
9
9
 
10
10
  @use "../grid/grid.variables.scss" as grid-variables;
11
+ @use "../../global/mixins/set-colors.mixin" as set-colors;
11
12
 
12
13
  .dso-document-header {
13
- background-color: colors.$grijs-5;
14
- color: colors.$zwart;
14
+ @include set-colors.apply(colors.$grijs-5);
15
+
15
16
  padding: grid-variables.$grid-gutter-width * 0.5;
16
17
  margin-left: grid-variables.$grid-gutter-width * -0.5;
17
18
  margin-right: grid-variables.$grid-gutter-width * -0.5;
@@ -68,10 +69,6 @@
68
69
  }
69
70
  }
70
71
 
71
- a {
72
- color: colors.$zwart;
73
- }
74
-
75
72
  > :first-child {
76
73
  margin-top: 0;
77
74
  }
@@ -7,13 +7,14 @@
7
7
 
8
8
  @use "../grid" as css-grid;
9
9
  @use "footer.variables" as css-footer-variables;
10
+ @use "../../global/mixins/set-colors.mixin" as set-colors;
10
11
 
11
12
  footer {
12
13
  @include css-grid.full-width-row();
13
14
 
14
- background-color: colors.$grijs-5;
15
+ @include set-colors.apply(colors.$grijs-5);
16
+
15
17
  border-top: 1px solid css-footer-variables.$border-color;
16
- color: colors.$zwart;
17
18
  display: block;
18
19
  margin-top: units.$u6;
19
20
  padding-bottom: units.$u6;
@@ -31,14 +32,6 @@ footer {
31
32
  @include di.base("chevron-right-zwart");
32
33
  }
33
34
  }
34
-
35
- &.download {
36
- @include di.variant("download-zwart");
37
- }
38
-
39
- &.extern {
40
- @include di.variant("external-link-zwart");
41
- }
42
35
  }
43
36
  }
44
37
 
@@ -53,21 +46,13 @@ footer {
53
46
  }
54
47
 
55
48
  a {
56
- &,
57
- &:hover,
58
- &.active,
59
- &:active,
60
- &:focus {
61
- color: colors.$zwart;
62
- }
63
-
64
49
  &#{button.$not-dso-buttons}:visited {
65
50
  &,
66
51
  &:hover,
67
52
  &.active,
68
53
  &:active,
69
54
  &:focus {
70
- color: colors.$zwart;
55
+ color: currentColor;
71
56
  }
72
57
  }
73
58
  }
@@ -1,37 +1,65 @@
1
- @use "../../../utilities";
2
1
  @use "../../../variables/units";
3
2
  @use "../../../variables/typography";
4
3
  @use "../../button";
4
+ @use "../../../variables/media-query-breakpoints";
5
+ @use "../../../variables/colors.scss";
5
6
 
6
7
  .dso-form-buttons {
7
- @include utilities.clearfix();
8
+ display: flex;
9
+ justify-content: flex-end;
10
+ gap: units.$u2;
8
11
 
9
- margin-bottom: units.$vertical-spacing-medium;
10
- text-align: right;
12
+ @media screen and (max-width: media-query-breakpoints.$screen-xs-min) {
13
+ flex-direction: column;
14
+ }
15
+
16
+ margin-block-end: units.$vertical-spacing-medium;
11
17
 
12
18
  &:last-child {
13
- margin-bottom: units.$vertical-spacing-xlarge;
19
+ margin-block-end: units.$vertical-spacing-xlarge;
20
+ }
21
+
22
+ :is(.dso-primary, .dso-secondary, .dso-tertiary) {
23
+ text-align: center;
24
+ }
25
+
26
+ :is(.dso-primary, .dso-secondary, .dso-tertiary) + :is(.dso-primary, .dso-secondary, .dso-tertiary) {
27
+ margin-inline: 0; // reset
14
28
  }
15
29
 
16
30
  a,
17
31
  button {
18
32
  &.dso-tertiary {
33
+ padding-block: button.$vertical-padding;
34
+ padding-inline-end: button.$horizontal-padding;
35
+
19
36
  line-height: typography.$line-height-base;
20
- padding: button.$vertical-padding 0; // $horizontal??
37
+
38
+ @media screen and (max-width: media-query-breakpoints.$screen-xs-min) {
39
+ display: block;
40
+
41
+ inline-size: 100%;
42
+
43
+ padding-inline-start: button.$horizontal-padding;
44
+
45
+ background-color: colors.$grasgroen-10;
46
+
47
+ border-radius: button.$border-radius;
48
+
49
+ color: colors.$bosgroen;
50
+ }
21
51
  }
22
52
  }
23
53
 
24
54
  .dso-aside {
25
- clear: both;
26
- float: left;
27
- }
28
- }
55
+ @media screen and (min-width: media-query-breakpoints.$screen-xs-min + 1) {
56
+ display: inline-block;
29
57
 
30
- .dso-single-page {
31
- &.dso-form-buttons,
32
- .dso-form-buttons {
33
- #{button.$buttons} {
34
- float: left;
58
+ margin-inline-end: auto;
35
59
  }
36
60
  }
61
+
62
+ .dso-single-page & {
63
+ justify-content: flex-start;
64
+ }
37
65
  }