dso-toolkit 67.1.0 → 67.2.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.
@@ -43,128 +43,85 @@
43
43
  font-size: 0;
44
44
  }
45
45
  }
46
- }
47
46
 
48
- dso-card {
49
- .dso-card-heading a {
50
- text-decoration: none;
47
+ .dso-card-container {
48
+ padding-block: units.$u2;
49
+ padding-inline: units.$u2;
50
+ inline-size: 100%;
51
51
 
52
- dso-icon:last-child {
53
- align-self: flex-start;
52
+ &.dso-card-active {
53
+ background-color: card-variables.$background-color-active;
54
54
  }
55
- }
56
55
 
57
- h2[slot="heading"],
58
- h3[slot="heading"],
59
- h4[slot="heading"],
60
- h5[slot="heading"] {
61
- font-size: 1.125em;
62
- margin-block-end: 0;
63
- margin-block-start: 0;
64
-
65
- span {
66
- margin-inline-end: units.$u1 * 0.5;
67
-
68
- + dso-icon,
69
- + svg.di {
70
- flex-shrink: 0;
71
- position: relative;
72
- }
56
+ .dso-card-selectable {
57
+ grid-row: span 2;
73
58
  }
74
59
  }
75
60
 
76
- div[slot="content"] {
77
- --_dt-rich-content-margin-block: #{units.$u1};
78
- --_dt-rich-content-margin-block-end: 0;
79
- --_dt-rich-content-margin-block-start: 0;
80
- }
81
-
82
- dso-selectable {
83
- label {
84
- font-size: 0;
85
- }
86
- }
87
- }
88
-
89
- .dso-card-container {
90
- padding-block: units.$u2;
91
- padding-inline: units.$u2;
92
- inline-size: 100%;
93
-
94
- &.dso-card-active {
95
- background-color: card-variables.$background-color-active;
96
- }
97
-
98
- .dso-card-selectable {
99
- grid-row: span 2;
100
- }
101
- }
102
-
103
- .dso-card-heading {
104
- align-items: center;
105
- display: flex;
106
- margin-block-end: units.$u1;
107
-
108
- h2:first-child,
109
- h3:first-child,
110
- h4:first-child,
111
- h5:first-child {
61
+ .dso-card-heading {
112
62
  align-items: center;
113
63
  display: flex;
114
- font-size: 1.125em;
115
- margin-block-end: 0;
116
- margin-block-start: 0;
64
+ margin-block-end: units.$u1;
65
+
66
+ h2:first-child,
67
+ h3:first-child,
68
+ h4:first-child,
69
+ h5:first-child {
70
+ align-items: center;
71
+ display: flex;
72
+ font-size: 1.125em;
73
+ margin-block-end: 0;
74
+ margin-block-start: 0;
117
75
 
118
- span {
119
- margin-inline-end: units.$u1 * 0.5;
76
+ span {
77
+ margin-inline-end: units.$u1 * 0.5;
120
78
 
121
- + dso-icon,
122
- + svg.di {
123
- flex-shrink: 0;
124
- position: relative;
79
+ + dso-icon,
80
+ + svg.di {
81
+ flex-shrink: 0;
82
+ position: relative;
83
+ }
125
84
  }
126
85
  }
127
- }
128
86
 
129
- a {
130
- text-decoration: none;
87
+ a {
88
+ text-decoration: none;
131
89
 
132
- &,
133
- &#{button.$not-dso-buttons}:visited,
134
- &:active,
135
- &:focus-visible {
136
- color: card-variables.$heading-anchor-color;
90
+ &,
91
+ &#{button.$not-dso-buttons}:visited,
92
+ &:active,
93
+ &:focus-visible {
94
+ color: card-variables.$heading-anchor-color;
95
+ }
137
96
  }
138
- }
139
97
 
140
- @media screen and (max-width: media-query-breakpoints.$screen-xs-min) {
141
- flex-wrap: wrap;
98
+ @media screen and (max-width: media-query-breakpoints.$screen-xs-min) {
99
+ flex-wrap: wrap;
100
+ }
142
101
  }
143
- }
144
-
145
- .dso-card-interactions,
146
- [slot="interactions"],
147
- [slot="interaction"] {
148
- display: flex;
149
- justify-content: space-between;
150
- margin-inline-start: auto;
151
102
 
152
- .dso-card-interaction {
153
- align-items: center;
103
+ .dso-card-interactions {
154
104
  display: flex;
155
- text-align: center;
105
+ justify-content: space-between;
106
+ margin-inline-start: auto;
156
107
 
157
- p {
158
- margin-block-end: 0;
108
+ .dso-card-interaction {
109
+ align-items: center;
110
+ display: flex;
111
+ text-align: center;
112
+
113
+ p {
114
+ margin-block-end: 0;
115
+ }
159
116
  }
160
- }
161
117
 
162
- .dso-info-button {
163
- margin: 0;
164
- }
118
+ .dso-info-button {
119
+ margin: 0;
120
+ }
165
121
 
166
- @media screen and (max-width: media-query-breakpoints.$screen-xs-min) {
167
- flex-basis: 100%;
168
- margin-block-start: units.$u2;
122
+ @media screen and (max-width: media-query-breakpoints.$screen-xs-min) {
123
+ flex-basis: 100%;
124
+ margin-block-start: units.$u2;
125
+ }
169
126
  }
170
127
  }
package/src/dso.scss CHANGED
@@ -42,7 +42,6 @@
42
42
  @use "components/form/form";
43
43
  @use "components/form-control/form-control";
44
44
  @use "components/grid/grid";
45
- @use "components/header/header";
46
45
  @use "components/heading/heading";
47
46
  @use "components/highlight-box/highlight-box";
48
47
  @use "components/horizontal-rule/horizontal-rule";
@@ -1,79 +0,0 @@
1
- @use "../../variables/media-query-breakpoints";
2
-
3
- @use "../../di";
4
-
5
- header {
6
- display: block;
7
- }
8
-
9
- dso-header {
10
- .dso-header:not(.has-sub-logo) {
11
- div[slot="logo"] {
12
- img {
13
- @media screen and (min-width: media-query-breakpoints.$screen-sm-min) {
14
- max-block-size: 48px;
15
- }
16
-
17
- @media screen and (max-width: media-query-breakpoints.$screen-xs-max) {
18
- max-block-size: 40px;
19
- }
20
- }
21
- }
22
- }
23
-
24
- .dso-header.has-sub-logo {
25
- div[slot="logo"] {
26
- img {
27
- max-block-size: 40px;
28
- }
29
- }
30
- }
31
-
32
- dso-dropdown-menu {
33
- > button:not(.dso-primary):not(.dso-secondary):not(.dso-tertiary) {
34
- &,
35
- &:hover,
36
- &:active {
37
- &::after {
38
- @include di.variant("chevron-down-grasgroen");
39
- }
40
- }
41
- }
42
-
43
- &[open] {
44
- > button:not(.dso-primary):not(.dso-secondary):not(.dso-tertiary) {
45
- &,
46
- &:hover,
47
- &:active {
48
- &::after {
49
- @include di.variant("chevron-up-grasgroen");
50
- }
51
- }
52
- }
53
- }
54
- }
55
-
56
- nav dso-dropdown-menu {
57
- > button:not(.dso-primary):not(.dso-secondary):not(.dso-tertiary) {
58
- &,
59
- &:hover,
60
- &:active {
61
- &::after {
62
- @include di.variant("chevron-down-bosgroen");
63
- }
64
- }
65
- }
66
-
67
- &[open] {
68
- > button:not(.dso-primary):not(.dso-secondary):not(.dso-tertiary) {
69
- &,
70
- &:hover,
71
- &:active {
72
- &::after {
73
- @include di.variant("chevron-up-bosgroen");
74
- }
75
- }
76
- }
77
- }
78
- }
79
- }