dso-toolkit 62.11.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.
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.11.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 {
@@ -64,48 +64,77 @@
64
64
 
65
65
  .dso-filelist {
66
66
  list-style: none;
67
+
67
68
  margin-bottom: 0;
68
69
  padding-left: 0;
69
70
 
70
71
  li {
72
+ display: flex;
73
+ flex-wrap: nowrap;
74
+ align-items: flex-end;
75
+
71
76
  background-color: colors.$grijs-5;
72
77
  border: 1px solid colors.$grijs-10;
73
78
  border-radius: button.$border-radius;
74
- display: flex;
79
+
75
80
  padding: #{units.$u1 * 0.5 - 1} #{units.$u1 - 1} #{units.$u1 * 0.5 - 2};
76
81
 
77
82
  + li {
78
83
  margin-top: units.$u1;
79
84
  }
80
85
 
86
+ @media screen and (max-width: media-query-breakpoints.$screen-sm-max) {
87
+ flex-wrap: wrap;
88
+ }
89
+
81
90
  .dso-filename {
82
- font-weight: 600;
91
+ flex-grow: 1;
92
+
83
93
  padding-right: units.$u1;
84
- width: calc(100% - #{units.$u1});
94
+
95
+ font-weight: 600;
85
96
  word-break: break-all;
97
+
98
+ @media screen and (max-width: media-query-breakpoints.$screen-sm-max) {
99
+ inline-size: 100%;
100
+
101
+ padding-inline-end: 0;
102
+ }
86
103
  }
87
104
 
88
105
  .dso-selectable,
89
106
  dso-selectable {
90
107
  + .dso-remove {
91
- margin-left: units.$u4;
108
+ margin-inline-start: units.$u4 + units.$u1;
92
109
  }
93
110
  }
94
111
 
95
- .dso-remove {
112
+ .dso-remove,
113
+ .dso-download {
96
114
  font-size: 0;
97
115
  min-width: auto;
98
116
  padding: units.$u1 * 0.5;
117
+ margin-inline-start: units.$u1 * 0.5;
99
118
 
100
119
  &::before {
101
- @include di.base("times-bosgroen");
102
-
103
120
  content: "";
104
121
  display: block;
105
122
  font-size: typography.$root-font-size-base;
106
123
  }
107
124
  }
108
125
 
126
+ .dso-remove {
127
+ &::before {
128
+ @include di.base("trash-bosgroen");
129
+ }
130
+ }
131
+
132
+ .dso-download {
133
+ &::before {
134
+ @include di.base("download-bosgroen");
135
+ }
136
+ }
137
+
109
138
  .dso-filename,
110
139
  .dso-confidential {
111
140
  margin: #{units.$u1 * 0.5} 0;
@@ -115,30 +144,67 @@
115
144
  > svg.di {
116
145
  flex: 0 0 24px;
117
146
  height: 24px;
118
- margin: #{units.$u1 * 0.5} 0 #{units.$u1 * 0.5} units.$u1;
147
+ margin: #{units.$u1 * 0.5} #{units.$u1 * 0.5} #{units.$u1 * 0.5} units.$u1;
119
148
  }
149
+ }
120
150
 
121
- @media screen and (max-width: media-query-breakpoints.$screen-sm-max) {
122
- @include utilities.clearfix();
151
+ + .dso-file-upload {
152
+ margin-top: units.$u2;
153
+ }
123
154
 
124
- display: block;
155
+ &:has(.dso-download) {
156
+ .dso-selectable,
157
+ dso-selectable {
158
+ + .dso-remove {
159
+ margin-inline-start: (units.$u4 * 2) + (units.$u1 * 1.5);
160
+ }
161
+ + .dso-download {
162
+ margin-inline-start: units.$u4 + units.$u1;
163
+ }
164
+ }
125
165
 
126
- .dso-confidential,
127
- > dso-icon,
128
- > svg.di,
129
- .dso-remove {
130
- display: block;
131
- float: left;
166
+ dso-icon,
167
+ svg.di {
168
+ + .dso-remove {
169
+ margin-inline-start: units.$u4 + units.$u1;
132
170
  }
171
+ }
133
172
 
134
- .dso-confidential {
135
- width: calc(100% - #{units.$u8});
173
+ @media screen and (max-width: media-query-breakpoints.$screen-sm-max) {
174
+ li:has(.dso-download) {
175
+ .dso-selectable,
176
+ dso-selectable,
177
+ dso-icon,
178
+ svg.di {
179
+ + .dso-download {
180
+ margin-inline-start: auto;
181
+ }
182
+ }
183
+ }
184
+
185
+ li:not(:has(.dso-download)) {
186
+ .dso-selectable,
187
+ dso-selectable,
188
+ dso-icon,
189
+ svg.di {
190
+ + .dso-remove {
191
+ margin-inline-start: auto;
192
+ }
193
+ }
136
194
  }
137
195
  }
138
196
  }
139
-
140
- + .dso-file-upload {
141
- margin-top: units.$u2;
197
+ &:not(:has(.dso-download)) {
198
+ @media screen and (max-width: media-query-breakpoints.$screen-sm-max) {
199
+ .dso-selectable,
200
+ dso-selectable,
201
+ dso-icon,
202
+ svg.di {
203
+ + .dso-remove {
204
+ margin-inline-start: auto;
205
+ }
206
+ }
207
+ }
142
208
  }
143
209
  }
144
210
  }
@@ -79,17 +79,16 @@ form {
79
79
  &.dso-banner {
80
80
  @include css-grid-mixins.full-width-row(css-grid-variables.$grid-gutter-width);
81
81
 
82
- background-color: colors.$grasgroen-10;
83
- background-position: center;
84
- background-repeat: no-repeat;
85
- background-size: cover;
86
82
  min-height: 352px;
87
- padding-top: units.$u3;
88
83
 
89
- @media only screen and (max-width: media-query-breakpoints.$screen-sm-max) {
90
- padding-top: units.$u1;
84
+ @media only screen and (min-width: media-query-breakpoints.$screen-sm-min) {
85
+ position: relative;
86
+
87
+ padding-block-start: units.$u3;
91
88
  }
92
89
 
90
+ background-size: 0; // background image killed off here, to be shown in the ::before
91
+
93
92
  &.no-button-banner {
94
93
  min-height: 296px;
95
94
  }
@@ -101,6 +100,28 @@ form {
101
100
  margin-top: 0;
102
101
  }
103
102
  }
103
+
104
+ &::before {
105
+ content: "";
106
+
107
+ display: block;
108
+
109
+ inline-size: 100%;
110
+ min-block-size: calc(100 / 6) + dvi;
111
+
112
+ background-image: inherit; // inherits from parent, external style set by implememnter
113
+ background-color: colors.$grasgroen-10;
114
+ background-position: center;
115
+ background-repeat: no-repeat;
116
+ background-size: cover;
117
+
118
+ @media only screen and (min-width: media-query-breakpoints.$screen-sm-min) {
119
+ position: absolute;
120
+ inset: 0;
121
+
122
+ min-block-size: unset;
123
+ }
124
+ }
104
125
  }
105
126
 
106
127
  &.dso-featured {
@@ -105,6 +105,7 @@
105
105
  text-align: left;
106
106
  white-space: normal;
107
107
  width: 100%;
108
+ cursor: pointer;
108
109
 
109
110
  &:hover,
110
111
  &:focus {
@@ -147,6 +148,10 @@
147
148
  }
148
149
  }
149
150
 
151
+ label {
152
+ cursor: inherit;
153
+ }
154
+
150
155
  > span {
151
156
  display: block;
152
157
  }