-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathadvanced.css
1237 lines (1114 loc) · 28 KB
/
advanced.css
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
@charset "UTF-8";
/*------------------------------------*\
#Amplify: advanced styles for browsers selected by mustard cut
\*------------------------------------*/
/*------------------------------------*\
#Settings
\*------------------------------------*/
/*------------------------------------*\
#Breakpoints
The measurements presented here are for guidance only
and should be updated to reflect the design/content needs.
1. Sets a max-inline-size for improved readability
\*------------------------------------*/
/* 1 */
/*------------------------------------*\
#Colors
Review and edit these default colours, then add further colors
as required for your project.
The ideal color contrast range for meeting WCAG AAA is 7:1 - 15:1
1. A contrast higher than 15:1 can be triggering, which is why we
avoid using pure white with pure black.
\*------------------------------------*/
/**
Brand
*/
/**
Accent
*/
/**
Neutrals
*/
/* 1 */
/* 1 */
/**
Links
*/
/**
Focus
*/
/**
Borders
*/
/**
Semantics - used sparingly and purposefully
*/
/*------------------------------------*\
#Typesetting
\*------------------------------------*/
/**
Use https://www.cssfontstack.com/ and https://meowni.ca/font-style-matcher/ to pick
system fonts that are reasonably close to any web fonts needed for the project.
This improves performance, avoids Flash Of Invisible Text (FOIT) and minimises
Flash of Unstyled Text (FOUT) - see https://www.filamentgroup.com/lab/font-events.html
Be sure to include fonts for both Mac OS and Windows. Use quote marks around
fonts with white space in their name.
When Font Face Observer has detected that the @font-face files are loaded, then we
can safely use the web fonts instead of the system fonts.
*/
/*------------------------------------*\
#Functions
\*------------------------------------*/
/*------------------------------------*\
#CSS unit functions
\*------------------------------------*/
/**
#em
*/
/**
#rem
*/
/**
#px
*/
/**
#Return a number without a unit
*/
/**
#Remove any unit present to return a unitless number
*/
/*------------------------------------*\
#Mixins
\*------------------------------------*/
/*------------------------------------*\
#Font sizes
Base uses a Major Second scale
Fluid type calculations generated using https://utopia.fyi/type/calculator at 320px and 1120px widths
1. Fallback for browsers not supporting clamp().
\*------------------------------------*/
/* 32px → 40px */
/* 28px → 36px */
/* 25px → 32px */
/* 22px → 28px */
/* 20px → 25px */
/* 18px → 22px */
/* 16px → 20px */
/* 14px → 17px */
/*------------------------------------*\
#Media query
\*------------------------------------*/
/*------------------------------------*\
#Stack
\*------------------------------------*/
/**
This mixin allows us to add vertical spacing between a container's direct children,
much like the 'axiomatic owl' technique but limited to specific use cases.
By applying Flexbox to the parent container, we can use auto margin on a specific
child element. This way, we can choose to group elements inside the stack to the
top/bottom of the vertical space, which is useful for card-like components.
Use with a specific measure, or without for the default measure, e.g.
main {
@include stack(4rem);
}
article {
@include stack;
}
*/
/*------------------------------------*\
#Base
Repeated to allow for extending placeholders
\*------------------------------------*/
/*------------------------------------*\
#Hide and show items inclusively
See https://www.scottohara.me/blog/2017/04/14/inclusively-hidden.html
\*------------------------------------*/
/*
* Hide from everybody and remove from the document flow, using the hidden
* attribute.
*
* Use if a component should remain hidden regardless of CSS being
* available or not (the style below provides support for legacy browsers).
*/
[hidden] {
display: none !important;
}
/*
* Hide from everybody and remove from the document flow, using the %hidden
* placeholder (extend the placeholder with Sass to avoid it appearing
* repeatedly in your markup).
*
* Use if a component requires a basic show and hide interaction, and the
* content should become available were CSS to fail.
*/
/*
* Hide from everybody while maintaining layout, using the %invisible
* placeholder (extend the placeholder with Sass to avoid it appearing
* repeatedly in your markup).
*
* Use if a more complex transition is required, like when transitioning an
* off-screen navigation into the viewport. Best paired with other CSS
* properties that negate its position in the DOM e.g. `position: absolute;`
*/
/*
* Hide visually only - remains available to Assistive Technology -
* using the %visually-hidden placeholder (extend the placeholder with
* Sass to avoid it appearing repeatedly in your markup).
*/
.visuallyhidden:not(:focus, :active) {
block-size: 1px;
border: 0;
clip: rect(0 0 0 0);
-webkit-clip-path: inset(100%);
clip-path: inset(100%);
inline-size: 1px;
overflow: hidden;
padding: 0;
position: absolute;
white-space: nowrap;
}
/*
*The :not portions of the following selector allow a means for any
* focusable element to become visible when focused/active by a user.
*/
br {
margin-block-start: 0;
}
/*
* Restore an element that has been visually hidden, using the %visually-hidden
* placeholder (extend the placeholder with Sass to avoid it appearing
* repeatedly in your markup).
*/
/*------------------------------------*\
#Advanced components
For JS enhancements
\*------------------------------------*/
/*------------------------------------*\
#Cards advanced
\*------------------------------------*/
.js [data-component=card] {
cursor: pointer;
}
.js [data-component=card]:hover .card__link {
text-decoration: underline; /* 1 */
-webkit-text-decoration-skip: auto;
text-decoration-skip: auto;
-webkit-text-decoration-skip: ink;
text-decoration-skip-ink: auto;
}
/*------------------------------------*\
#Collapsible sections advanced
\*------------------------------------*/
.js .component--collapsibles__panel {
padding: 0;
}
.js [data-heading=collapsibles] button {
align-items: flex-start;
flex-direction: column;
inline-size: 100%;
padding: 1.5625rem;
}
.js [data-heading=collapsibles] button .js-collapsible-heading {
font-size: 1.375rem; /* 1 */
font-size: clamp(1.125rem, 1.025rem + 0.5vw, 1.375rem);
line-height: 1.5;
font-weight: 600;
text-align: start;
}
.js [data-heading=collapsibles] button .js-collapsible-toggle {
color: #1371c2;
}
.js [data-heading=collapsibles] button .js-collapsible-label {
font-size: 1.0625rem; /* 1 */
font-size: clamp(0.875rem, 0.8rem + 0.375vw, 1.0625rem);
line-height: 1.5;
}
.js [data-heading=collapsibles] button:hover .js-collapsible-heading {
color: #1371c2;
}
.js [data-heading=collapsibles] button:hover .js-collapsible-label {
text-decoration: underline;
-webkit-text-decoration-skip: auto;
text-decoration-skip: auto;
-webkit-text-decoration-skip: ink;
text-decoration-skip-ink: auto;
}
.js [data-heading=collapsibles] button[aria-expanded=false] .circle-up {
display: none;
}
.js [data-heading=collapsibles] button[aria-expanded=true] .circle-down {
display: none;
}
.js .component--collapsibles__panel__content {
padding: 1.5625rem;
padding-block-start: 0;
}
.js .component--collapsibles__panel__content[aria-hidden=true] {
display: none;
}
/*------------------------------------*\
#Disclosure widget
\*------------------------------------*/
[data-toggle=true] svg {
pointer-events: none;
}
[data-toggle=true] + * {
margin-block-start: 1rem;
}
[data-toggle=true][aria-expanded=false] .expand-less {
display: none;
}
[data-toggle=true][aria-expanded=false] + * {
display: none;
}
[data-toggle=true][aria-expanded=true] .expand-more {
display: none;
}
[data-toggle=true][aria-expanded=true] + * {
display: block;
}
.no-js [data-toggle=true] {
display: none;
}
.no-js [data-toggle=true] + * {
display: initial;
}
/*------------------------------------*\
#Sortable table
\*------------------------------------*/
amplify-table-sort .arrow-wrapper {
display: flex;
flex-direction: column;
inline-size: 0.9375rem;
margin-inline-start: 0.75rem;
pointer-events: none;
}
amplify-table-sort th {
white-space: nowrap;
}
amplify-table-sort th[data-type=no-sort]:hover {
cursor: not-allowed;
}
amplify-table-sort th button svg {
stroke: currentcolor;
stroke-width: 1.25rem;
}
amplify-table-sort [aria-sort=ascending] button:focus > .arrow-wrapper .asc {
stroke-width: 3.125rem;
}
amplify-table-sort [aria-sort=ascending] button:focus > .arrow-wrapper .desc {
opacity: 0.3;
}
amplify-table-sort [aria-sort=descending] button:focus > .arrow-wrapper .asc {
opacity: 0.3;
}
amplify-table-sort [aria-sort=descending] button:focus > .arrow-wrapper .desc {
stroke-width: 3.125rem;
}
amplify-table-sort col.js-sorted {
background-color: rgba(255, 220, 0, 0.1490196078);
}
/*------------------------------------*\
#Advanced navigation
Where JS is involved
\*------------------------------------*/
/*------------------------------------*\
#Navigation advanced
Starting styles for all advanced navigation patterns.
Should be accompanied by either /65-advanced-navigation/_nav-double or
/65-advanced-navigation/_nav-double-with-intro depending on your requirements
N.B. aria-expanded attribute is managed by JS
\*------------------------------------*/
.js .global-nav {
/* Prevent offscreen-submenus */
}
.js .global-nav [data-trigger] > * {
pointer-events: none;
}
.js .global-nav [data-trigger=mobile-nav] > * {
pointer-events: none;
}
.js .global-nav [data-trigger=mobile-nav] .close {
display: none;
}
.js .global-nav [data-trigger=mobile-nav] .open {
display: block;
}
.js .global-nav [data-trigger=mobile-nav][aria-expanded=true] .close {
display: block;
}
.js .global-nav [data-trigger=mobile-nav][aria-expanded=true] .open {
display: none;
}
.js .global-nav [aria-expanded=false] + * {
display: none;
}
.js .global-nav > ul {
background-color: #fcfcfc;
inline-size: 100%;
inset-inline-start: 0;
position: absolute;
}
@media screen and (min-width: 48em) {
.js .global-nav > ul {
align-items: center;
display: flex;
inline-size: auto;
position: static;
}
}
@media screen and (min-width: 48em) {
.js .global-nav > ul > li {
position: relative;
}
}
@media screen and (min-width: 48em) {
.js .global-nav > ul > li + li {
margin-inline-start: 0.3125rem;
}
}
.js .global-nav [data-nav=submenu] {
background-color: #fcfcfc;
padding-inline-start: 0;
}
@media screen and (min-width: 48em) {
.js .global-nav [data-nav=submenu] {
inset-inline-start: 0;
position: absolute;
}
}
.js .global-nav [data-nav=submenu].js-sub-menu-right {
inset-inline: auto 0;
}
/*------------------------------------*\
#Navigation advanced: double level
There are styles for two versions of navigation here:
- A "simple" version, where sub menus expand vertically when opened
on smaller screens.
- A version where sub menus have a visible "back" button to close them
on smaller screens because when open they are absolutely positioned
to cover their parent control.
Make sure to comment out whichever version is not needed in your project.
N.B. aria-expanded attribute is managed by JS
\*------------------------------------*/
/* stylelint-disable no-descending-specificity */
/* (Because the order reflects the DOM order, which Stylelint doesn't understand) */
/* Simple double level nav with vertical expansion */
#js-click-nav-vertical [data-trigger=sub-nav] {
inline-size: 100%;
justify-content: space-between;
}
#js-click-nav-vertical [data-trigger=sub-nav][aria-expanded=true] svg {
transform: scaleY(-1);
}
@media screen and (min-width: 48em) {
#js-click-nav-vertical [data-nav=submenu] {
box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.25);
}
}
/* Double level nav with a "back" button in each sub menu */
#js-click-nav-horizontal [data-trigger=sub-nav] {
inline-size: 100%;
justify-content: space-between;
}
#js-click-nav-horizontal [data-trigger=sub-nav] svg {
transform: rotate(-90deg);
}
@media screen and (min-width: 48em) {
#js-click-nav-horizontal [data-trigger=sub-nav] svg {
transform: none;
}
}
@media screen and (min-width: 48em) {
#js-click-nav-horizontal [data-trigger=sub-nav][aria-expanded=true] svg {
transform: scaleY(-1);
}
}
#js-click-nav-horizontal [data-nav=submenu] {
inline-size: 100%;
inset-block-start: 0;
min-block-size: 100%;
position: absolute;
z-index: 5;
}
@media screen and (min-width: 48em) {
#js-click-nav-horizontal [data-nav=submenu] {
box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.25);
inline-size: auto;
inset-block-start: auto;
min-block-size: auto;
}
}
#js-click-nav-horizontal [data-button=mobile-back] {
inline-size: 100%;
justify-content: flex-start;
}
@media screen and (min-width: 48em) {
#js-click-nav-horizontal [data-button=mobile-back] {
display: none;
}
}
#js-click-nav-horizontal [data-button=mobile-back] svg {
transform: rotate(90deg);
}
/* stylelint-enable no-descending-specificity */
/*------------------------------------*\
#Navigation advanced: double level with both links and buttons
A navigation where a button to toggle a sub menu is inserted directly after
each top level link.
N.B. aria-expanded attribute is managed by JS
\*------------------------------------*/
/* (Because the order reflects the DOM order, which Stylelint doesn't understand) */
#js-click-nav-both [data-trigger=sub-nav] {
padding-inline: 0.5rem;
}
#js-click-nav-both [data-trigger=sub-nav][aria-expanded=true] svg {
transform: scaleY(-1);
}
#js-click-nav-both ul > li:has([data-nav=submenu]) {
align-items: center;
display: flex;
flex-wrap: wrap;
justify-content: space-between;
}
#js-click-nav-both ul > li:has([data-nav=submenu]) a {
inline-size: calc(100% - 2.75rem);
}
@media screen and (min-width: 48em) {
#js-click-nav-both ul > li:has([data-nav=submenu]) a {
inline-size: auto;
}
}
#js-click-nav-both [data-nav=submenu] {
flex-basis: 100%;
}
@media screen and (min-width: 48em) {
#js-click-nav-both [data-nav=submenu] {
box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.25);
inset-block-start: 100%;
}
}
/*------------------------------------*\
#Navigation advanced: double level with intro text
The introductory text is hidden on smaller screens.
On larger screens, the sub menus span the full viewport width.
N.B. aria-expanded attribute is managed by JS
\*------------------------------------*/
/* stylelint-disable no-descending-specificity */
/* (Because the order reflects the DOM order, which Stylelint doesn't understand) */
#js-click-nav-intro [data-trigger=sub-nav] {
inline-size: 100%;
justify-content: space-between;
}
#js-click-nav-intro [data-trigger=sub-nav] svg {
transform: rotate(-90deg);
}
@media screen and (min-width: 48em) {
#js-click-nav-intro [data-trigger=sub-nav] svg {
transform: none;
}
}
@media screen and (min-width: 48em) {
#js-click-nav-intro [data-trigger=sub-nav][aria-expanded=true] svg {
transform: scaleY(-1);
}
}
@media screen and (min-width: 48em) {
#js-click-nav-intro > ul > li {
position: static;
}
}
#js-click-nav-intro [data-nav=submenu] {
border-block-end: solid 3px;
inline-size: 100%;
inset-block-start: 0;
min-block-size: 100%;
padding: 1.25rem 0;
position: absolute;
z-index: 5;
}
@media screen and (min-width: 48em) {
#js-click-nav-intro [data-nav=submenu] {
inline-size: 100vw !important;
inset-block-start: auto;
inset-inline-start: 50%;
min-block-size: auto;
padding: 3.125rem 1.25rem;
transform: translateX(-50%);
}
}
@media screen and (min-width: 48em) {
#js-click-nav-intro [data-nav=submenu] .l-center {
display: flex;
justify-content: space-between;
}
}
#js-click-nav-intro [data-button=mobile-back] {
inline-size: 100%;
justify-content: flex-start;
}
@media screen and (min-width: 48em) {
#js-click-nav-intro [data-button=mobile-back] {
display: none;
}
}
#js-click-nav-intro [data-button=mobile-back] svg {
transform: rotate(90deg);
}
@media screen and (min-width: 48em) {
#js-click-nav-intro [data-nav=submenu] .nav__intro {
inline-size: 40%;
}
}
#js-click-nav-intro [data-nav=submenu] .nav__intro + * {
margin-block-start: 0;
}
#js-click-nav-intro .nav__intro p {
display: none;
}
@media screen and (min-width: 48em) {
#js-click-nav-intro .nav__intro p {
display: block;
}
}
@media screen and (min-width: 48em) {
#js-click-nav-intro [data-nav=submenu] ul {
column-gap: 2.5rem;
columns: 2;
inline-size: 50%;
}
}
/* stylelint-enable no-descending-specificity */
/*------------------------------------*\
#Plugins
Add third-party plugins here.
Add custom styles directly after the original in a separate file
\*------------------------------------*/
.autocomplete__wrapper {
position: relative;
}
.autocomplete__hint,
.autocomplete__input {
-webkit-appearance: none;
appearance: none;
border: 2px solid #0b0c0c;
border-radius: 0; /* Safari 10 on iOS adds implicit border rounding. */
box-sizing: border-box;
margin-bottom: 0; /* BUG: Safari 10 on macOS seems to add an implicit margin. */
line-height: 1.25;
height: 2.5rem;
width: 100%;
}
.autocomplete__input {
background-color: transparent;
position: relative;
}
.autocomplete__hint {
color: #505a5f;
position: absolute;
}
.autocomplete__input--default {
padding: 5px;
}
.autocomplete__input--focused {
outline: 3px solid #fd0;
outline-offset: 0;
box-shadow: inset 0 0 0 2px;
}
.autocomplete__input--show-all-values {
padding: 5px 35px 5px 5px; /* Space for arrow. Other padding should match .autocomplete__input--default. */
cursor: pointer;
}
.autocomplete__dropdown-arrow-down {
z-index: -1;
display: inline-block;
position: absolute;
right: 8px;
width: 24px;
height: 24px;
top: 10px;
}
.autocomplete__menu {
background-color: #ffffff;
border: 2px solid #0b0c0c;
border-top: 0;
color: #0b0c0c;
margin: 0;
max-height: 342px;
overflow-x: hidden;
padding: 0;
width: 100%;
width: calc(100% - 4px);
}
.autocomplete__menu--visible {
display: block;
}
.autocomplete__menu--hidden {
display: none;
}
.autocomplete__menu--overlay {
box-shadow: rgba(0, 0, 0, 0.256863) 0px 2px 6px;
left: 0;
position: absolute;
top: 100%;
z-index: 100;
}
.autocomplete__menu--inline {
position: relative;
}
.autocomplete__option {
border-bottom: solid #b1b4b6;
border-width: 1px 0;
cursor: pointer;
display: block;
position: relative;
}
.autocomplete__option > * {
pointer-events: none;
}
.autocomplete__option:first-of-type {
border-top-width: 0;
}
.autocomplete__option:last-of-type {
border-bottom-width: 0;
}
.autocomplete__option--odd {
background-color: #f3f2f1;
}
.autocomplete__option--focused,
.autocomplete__option:hover {
background-color: #1d70b8;
border-color: #1d70b8;
color: white;
outline: none;
}
@media (-ms-high-contrast: active), (forced-colors: active) {
.autocomplete__menu {
border-color: FieldText;
}
.autocomplete__option {
background-color: Field;
color: FieldText;
}
.autocomplete__option--focused,
.autocomplete__option:hover {
forced-color-adjust: none; /* prevent backplate from obscuring text */
background-color: Highlight;
border-color: Highlight;
color: HighlightText;
/* Prefer SelectedItem / SelectedItemText in browsers that support it */
background-color: SelectedItem;
border-color: SelectedItem;
color: SelectedItemText;
outline-color: SelectedItemText;
}
}
.autocomplete__option--no-results {
background-color: #f3f2f1;
color: #505a5f;
cursor: not-allowed;
}
.autocomplete__hint,
.autocomplete__input,
.autocomplete__option {
font-size: 1rem;
font-weight: 400;
}
.autocomplete__hint,
.autocomplete__option {
padding: 5px;
}
@media (min-width: 641px) {
.autocomplete__hint,
.autocomplete__input,
.autocomplete__option {
font-size: 1.1875rem;
line-height: 1.3157894737;
}
}
/*------------------------------------*\
#S24 accessible autocomplete overrides
\*------------------------------------*/
.autocomplete__hint,
.autocomplete__input {
-webkit-appearance: none;
appearance: none;
border: 2px solid #8d8d8d;
}
.autocomplete__hint {
color: #c6c6c6;
}
.autocomplete__input--focused {
background-color: #fcfcfc;
box-shadow: 0 0 0 4px #000;
outline: 2px solid #ffdc00; /* 2 */
outline-offset: 0; /* 2 */
}
[dir=rtl] .autocomplete__input--show-all-values {
padding-left: 34px;
padding-right: 5px;
}
.autocomplete__dropdown-arrow-down {
pointer-events: none;
z-index: initial;
}
[dir=rtl] .autocomplete__dropdown-arrow-down {
left: 8px;
right: auto;
}
.autocomplete__menu {
border: 2px solid #8d8d8d;
}
.autocomplete__menu--overlay {
top: calc(100% + 4px);
}
.autocomplete__option {
margin-block-start: 0;
}
.autocomplete__option--odd {
background-color: #e0e0e0;
}
.autocomplete__option--no-results {
background-color: #c6c6c6;
color: #252525;
}
.autocomplete__hint,
.autocomplete__input,
.autocomplete__option {
font-size: 1.0625rem; /* 1 */
font-size: clamp(0.875rem, 0.8rem + 0.375vw, 1.0625rem);
line-height: 1.5;
line-height: 1.25;
}
.autocomplete__option--focused,
.autocomplete__option:hover {
background-color: #063a69;
border-color: #063a69;
}
@media (width >= 641px) {
.autocomplete__hint,
.autocomplete__input,
.autocomplete__option {
font-size: 1.0625rem; /* 1 */
font-size: clamp(0.875rem, 0.8rem + 0.375vw, 1.0625rem);
line-height: 1.5;
line-height: 1.25;
}
}
@keyframes splide-loading {
0% {
transform: rotateZ(0);
}
100% {
transform: rotateZ(360deg);
}
}
.splide__track--draggable {
-webkit-touch-callout: none;
-webkit-user-select: none;
-ms-user-select: none;
user-select: none;
}
.splide__track--fade > .splide__list > .splide__slide {
margin: 0 !important;
opacity: 0;
z-index: 0;
}
.splide__track--fade > .splide__list > .splide__slide.is-active {
opacity: 1;
z-index: 1;
}
.splide--rtl {
direction: rtl;
}
.splide__track--ttb > .splide__list {
display: block;
}
.splide__container {
box-sizing: border-box;
position: relative;
}
.splide__list {
-webkit-backface-visibility: hidden;
backface-visibility: hidden;
display: flex;
height: 100%;
margin: 0 !important;
padding: 0 !important;
}
.splide.is-initialized:not(.is-active) .splide__list {
display: block;
}
.splide__pagination {
align-items: center;
display: flex;
flex-wrap: wrap;
justify-content: center;
margin: 0;
pointer-events: none;
}
.splide__pagination li {
display: inline-block;
line-height: 1;
list-style-type: none;
margin: 0;
pointer-events: auto;
}
.splide:not(.is-overflow) .splide__pagination {
display: none;
}
.splide__progress__bar {
width: 0;
}
.splide {
position: relative;
visibility: hidden;
}
.splide.is-initialized, .splide.is-rendered {
visibility: visible;
}
.splide__slide {
-webkit-backface-visibility: hidden;
backface-visibility: hidden;
box-sizing: border-box;
flex-shrink: 0;
list-style-type: none !important;
margin: 0;
position: relative;
}
.splide__slide img {
vertical-align: bottom;
}
.splide__spinner {
animation: splide-loading 1s infinite linear;
border: 2px solid #999;
border-left-color: transparent;
border-radius: 50%;
bottom: 0;
contain: strict;
display: inline-block;
height: 20px;
left: 0;
margin: auto;
position: absolute;
right: 0;
top: 0;
width: 20px;
}