@ministryofjustice/hmpps-digital-prison-reporting-frontend 2.2.1 → 2.3.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/dpr/all.scss CHANGED
@@ -130,6 +130,122 @@ $govuk-assets-path: "/assets/govuk/";
130
130
  margin-bottom: 0
131
131
  }
132
132
  }
133
+ .accordion-section {
134
+ margin-bottom: govuk-spacing(8);
135
+ position: relative;
136
+ }
137
+
138
+ .accordion-section-row {
139
+ position: relative;
140
+ }
141
+
142
+ .accordion-section-button {
143
+ min-width: 130px;
144
+ padding-right: govuk-spacing(3);
145
+ }
146
+
147
+ .accordion-details {
148
+ padding-top: govuk-spacing(3);
149
+ }
150
+
151
+ .accordion-section-header {
152
+ position: absolute;
153
+ top: 6px;
154
+ width: calc(100% - 100px);
155
+ left: 100px;
156
+ }
157
+
158
+ .accordion-section-header-scroll {
159
+ width: auto;
160
+ position: relative;
161
+ overflow-x: scroll;
162
+ overflow-y: hidden;
163
+ white-space: nowrap;
164
+ }
165
+
166
+ .accordion-summary-remove-button {
167
+ display: inline-block;
168
+ padding: govuk-spacing(2);
169
+ background-color: none;
170
+ position: relative;
171
+ cursor: pointer;
172
+ text-decoration: underline !important;
173
+ text-underline-offset: 4px;
174
+ color: govuk-colour("blue");
175
+ text-decoration-color: govuk-colour("blue");
176
+ text-decoration-thickness: 1px;
177
+ box-shadow: none;
178
+ text-underline-offset: 4px;
179
+
180
+ &:hover {
181
+ box-shadow: none;
182
+ text-decoration: none;
183
+ color: govuk-colour("black");
184
+ }
185
+ }
186
+
187
+ .accordion-summary-remove-button:hover:after {
188
+ background-image: url(#{$dpr-images-path}icon-tag-remove-cross.svg);
189
+ content: "";
190
+ display: inline-block;
191
+ font-weight: bold;
192
+ height: 10px;
193
+ margin-left: 5px;
194
+ vertical-align: middle;
195
+ width: 10px;
196
+ }
197
+
198
+ .accordion-summary-remove-button:after {
199
+ display: none;
200
+ }
201
+
202
+ .accordion-summary-show-accordion-button {
203
+ margin-right: 10px;
204
+ }
205
+
206
+ .selected-accordion-button {
207
+ display: inline-block;
208
+ }
209
+
210
+ @media print {
211
+ .accordion-section {
212
+ margin-bottom: govuk-spacing(3);
213
+ }
214
+
215
+ .accordion-section-details {
216
+ position: relative;
217
+ left: 0px;
218
+ margin-bottom: govuk-spacing(1);
219
+
220
+ .selected-accordion-button {
221
+ display: block;
222
+ }
223
+
224
+ a.govuk-button--inverse.accordion-summary-remove-button {
225
+ text-decoration: none !important;
226
+ color: black;
227
+ font-size: 14px;
228
+ position: relative;
229
+ padding: 0px;
230
+ padding-bottom: govuk-spacing(1);
231
+ }
232
+ }
233
+ }
234
+
235
+ ::-webkit-scrollbar {
236
+ height: 6px;
237
+ width: 0px;
238
+ }
239
+
240
+ /* Track */
241
+ ::-webkit-scrollbar-track {
242
+ background: none;
243
+ }
244
+
245
+ /* Handle */
246
+ ::-webkit-scrollbar-thumb {
247
+ background: govuk-colour("mid-grey");
248
+ }
133
249
  .data-table-page-size {
134
250
  text-align: right;
135
251
  }
@@ -264,7 +380,7 @@ $govuk-assets-path: "/assets/govuk/";
264
380
  .filter-summary-controls,
265
381
  .pagination,
266
382
  .dpr-actions,
267
- .filter-summary-show-filter-button,
383
+ .filter-section-accordion-button,
268
384
  #reset-filter-button,
269
385
  .govuk-phase-banner,
270
386
  .print-hide {
@@ -318,17 +434,27 @@ $govuk-assets-path: "/assets/govuk/";
318
434
  color: black;
319
435
  }
320
436
  }
321
- .filter-summary-remove-button:after {
322
- background-image: url(#{$dpr-images-path}icon-tag-remove-cross.svg);
323
- content: "";
324
- display: inline-block;
325
- font-weight: bold;
326
- height: 10px;
327
- margin-left: 5px;
328
- vertical-align: middle;
329
- width: 10px;
437
+ .filter-container {
438
+ display: flex;
439
+ flex-wrap: wrap;
440
+ gap: 16px;
330
441
  }
331
442
 
332
- .filter-summary-show-filter-button {
333
- margin-right: 10px;
443
+ .filter-item {
444
+ background-color: lighten(govuk-colour("light-grey"), 4%);
445
+ flex-grow: 0;
446
+ width: 30%;
447
+ padding: 1%;
448
+ }
449
+
450
+ .govuk-details__summary-text {
451
+ text-underline-offset: 4px;
452
+ }
453
+
454
+ .filter-actions {
455
+ padding: govuk-spacing(3) 0px;
456
+
457
+ .filter-actions-buttons {
458
+ float: right;
459
+ }
334
460
  }