@ministryofjustice/hmpps-digital-prison-reporting-frontend 2.3.0 → 2.4.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
@@ -5,6 +5,122 @@ $govuk-assets-path: "/assets/govuk/";
5
5
 
6
6
  @import 'govuk/all';
7
7
  @import 'moj/all';
8
+ .accordion-section {
9
+ margin-bottom: govuk-spacing(8);
10
+ position: relative;
11
+ }
12
+
13
+ .accordion-section-row {
14
+ position: relative;
15
+ }
16
+
17
+ .accordion-section-button {
18
+ min-width: 130px;
19
+ padding-right: govuk-spacing(3);
20
+ }
21
+
22
+ .accordion-details {
23
+ padding-top: govuk-spacing(3);
24
+ }
25
+
26
+ .accordion-section-header {
27
+ position: absolute;
28
+ top: 6px;
29
+ width: calc(100% - 120px);
30
+ left: 120px;
31
+ }
32
+
33
+ .accordion-section-header-scroll {
34
+ width: auto;
35
+ position: relative;
36
+ overflow-x: scroll;
37
+ overflow-y: hidden;
38
+ white-space: nowrap;
39
+ }
40
+
41
+ .accordion-summary-remove-button {
42
+ display: inline-block;
43
+ padding: govuk-spacing(2);
44
+ background-color: none;
45
+ position: relative;
46
+ cursor: pointer;
47
+ text-decoration: underline !important;
48
+ text-underline-offset: 4px;
49
+ color: govuk-colour("blue");
50
+ text-decoration-color: govuk-colour("blue");
51
+ text-decoration-thickness: 1px;
52
+ box-shadow: none;
53
+ text-underline-offset: 4px;
54
+
55
+ &:hover {
56
+ box-shadow: none;
57
+ text-decoration: none;
58
+ color: govuk-colour("black");
59
+ }
60
+ }
61
+
62
+ .accordion-summary-remove-button:hover:after {
63
+ background-image: url(#{$dpr-images-path}icon-tag-remove-cross.svg);
64
+ content: "";
65
+ display: inline-block;
66
+ font-weight: bold;
67
+ height: 10px;
68
+ margin-left: 5px;
69
+ vertical-align: middle;
70
+ width: 10px;
71
+ }
72
+
73
+ .accordion-summary-remove-button:after {
74
+ display: none;
75
+ }
76
+
77
+ .accordion-summary-show-accordion-button {
78
+ margin-right: 10px;
79
+ }
80
+
81
+ .selected-accordion-button {
82
+ display: inline-block;
83
+ }
84
+
85
+ @media print {
86
+ .accordion-section {
87
+ margin-bottom: govuk-spacing(3);
88
+ }
89
+
90
+ .accordion-section-details {
91
+ position: relative;
92
+ left: 0px;
93
+ margin-bottom: govuk-spacing(1);
94
+
95
+ .selected-accordion-button {
96
+ display: block;
97
+ }
98
+
99
+ a.govuk-button--inverse.accordion-summary-remove-button {
100
+ text-decoration: none !important;
101
+ color: black;
102
+ font-size: 14px;
103
+ position: relative;
104
+ padding: 0px;
105
+ padding-bottom: govuk-spacing(1);
106
+ }
107
+ }
108
+ }
109
+
110
+ ::-webkit-scrollbar {
111
+ height: 6px;
112
+ width: 0px;
113
+ }
114
+
115
+ /* Track */
116
+ ::-webkit-scrollbar-track {
117
+ background: none;
118
+ }
119
+
120
+ /* Handle */
121
+ ::-webkit-scrollbar-thumb {
122
+ background: govuk-colour("mid-grey");
123
+ }
8
124
  .autocomplete-text-input {
9
125
  position: relative;
10
126
 
@@ -130,121 +246,20 @@ $govuk-assets-path: "/assets/govuk/";
130
246
  margin-bottom: 0
131
247
  }
132
248
  }
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 {
249
+ .columns-container .govuk-checkboxes--small .govuk-checkboxes__item {
207
250
  display: inline-block;
251
+ width: 28%;
252
+ vertical-align:top;
253
+ float: none;
208
254
  }
209
255
 
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;
256
+ .columns-container {
257
+ position: relative;
238
258
  }
239
259
 
240
- /* Track */
241
- ::-webkit-scrollbar-track {
242
- background: none;
243
- }
244
-
245
- /* Handle */
246
- ::-webkit-scrollbar-thumb {
247
- background: govuk-colour("mid-grey");
260
+ .columns-header {
261
+ padding-left: 10px;
262
+ padding-top: 10px;
248
263
  }
249
264
  .data-table-page-size {
250
265
  text-align: right;
@@ -320,6 +335,10 @@ $govuk-assets-path: "/assets/govuk/";
320
335
  .data-table-empty-message {
321
336
  text-align: center;
322
337
  }
338
+
339
+ .table-container {
340
+ position: relative;
341
+ }
323
342
  .dropdown-button {
324
343
  position: relative;
325
344
  float: right;
@@ -438,6 +457,7 @@ $govuk-assets-path: "/assets/govuk/";
438
457
  display: flex;
439
458
  flex-wrap: wrap;
440
459
  gap: 16px;
460
+ position: relative;
441
461
  }
442
462
 
443
463
  .filter-item {
@@ -457,4 +477,104 @@ $govuk-assets-path: "/assets/govuk/";
457
477
  .filter-actions-buttons {
458
478
  float: right;
459
479
  }
460
- }
480
+ }
481
+ .loading-panel {
482
+ display: none;
483
+ width: 100%;
484
+ height: 100%;
485
+ position: absolute;
486
+ top: 0px;
487
+ left: 0px;
488
+ z-index: 2;
489
+ justify-content: center;
490
+ align-items: center;
491
+ background-color: rgba(255,255,255,0.8);
492
+ }
493
+
494
+ .loading-panel.show {
495
+ display: flex;
496
+ }
497
+
498
+ .dpr-loading-anim {
499
+ display: inline-block;
500
+ position: relative;
501
+ width: 80px;
502
+ height: 80px;
503
+ }
504
+ .dpr-loading-anim div {
505
+ position: absolute;
506
+ width: 6px;
507
+ height: 6px;
508
+ background: govuk-colour("light-blue");
509
+ border-radius: 50%;
510
+ animation: dpr-loading-anim 1.2s linear infinite;
511
+ }
512
+ .dpr-loading-anim div:nth-child(1) {
513
+ animation-delay: 0s;
514
+ top: 37px;
515
+ left: 66px;
516
+ }
517
+ .dpr-loading-anim div:nth-child(2) {
518
+ animation-delay: -0.1s;
519
+ top: 22px;
520
+ left: 62px;
521
+ }
522
+ .dpr-loading-anim div:nth-child(3) {
523
+ animation-delay: -0.2s;
524
+ top: 11px;
525
+ left: 52px;
526
+ }
527
+ .dpr-loading-anim div:nth-child(4) {
528
+ animation-delay: -0.3s;
529
+ top: 7px;
530
+ left: 37px;
531
+ }
532
+ .dpr-loading-anim div:nth-child(5) {
533
+ animation-delay: -0.4s;
534
+ top: 11px;
535
+ left: 22px;
536
+ }
537
+ .dpr-loading-anim div:nth-child(6) {
538
+ animation-delay: -0.5s;
539
+ top: 22px;
540
+ left: 11px;
541
+ }
542
+ .dpr-loading-anim div:nth-child(7) {
543
+ animation-delay: -0.6s;
544
+ top: 37px;
545
+ left: 7px;
546
+ }
547
+ .dpr-loading-anim div:nth-child(8) {
548
+ animation-delay: -0.7s;
549
+ top: 52px;
550
+ left: 11px;
551
+ }
552
+ .dpr-loading-anim div:nth-child(9) {
553
+ animation-delay: -0.8s;
554
+ top: 62px;
555
+ left: 22px;
556
+ }
557
+ .dpr-loading-anim div:nth-child(10) {
558
+ animation-delay: -0.9s;
559
+ top: 66px;
560
+ left: 37px;
561
+ }
562
+ .dpr-loading-anim div:nth-child(11) {
563
+ animation-delay: -1s;
564
+ top: 62px;
565
+ left: 52px;
566
+ }
567
+ .dpr-loading-anim div:nth-child(12) {
568
+ animation-delay: -1.1s;
569
+ top: 52px;
570
+ left: 62px;
571
+ }
572
+ @keyframes dpr-loading-anim {
573
+ 0%, 20%, 80%, 100% {
574
+ transform: scale(1);
575
+ }
576
+ 50% {
577
+ transform: scale(1.5);
578
+ }
579
+ }
580
+