@aarhus-university/au-lib-react-components 11.4.0 → 11.4.2

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.
Files changed (97) hide show
  1. package/.eslintrc.js +34 -34
  2. package/.storybook/main.js +20 -20
  3. package/.storybook/preview.js +17 -17
  4. package/README.md +19 -19
  5. package/__tests__/jest/AUButtonComponent.test.tsx +165 -165
  6. package/__tests__/jest/AUErrorComponent.test.tsx +142 -142
  7. package/__tests__/jest/AUModalComponent.test.tsx +186 -186
  8. package/__tests__/jest/AUNotificationComponent.test.tsx +115 -115
  9. package/__tests__/jest/AUSpinnerComponent.test.tsx +57 -57
  10. package/__tests__/jest/AUToolbarComponent.test.tsx +46 -46
  11. package/__tests__/jest/context.test.ts +25 -25
  12. package/__tests__/jest/helpers.test.ts +15 -15
  13. package/__tests__/jest/setupTests.ts +2 -2
  14. package/babel.config.js +8 -8
  15. package/build/umd/all.css +2 -2
  16. package/build/umd/all.js +1 -1
  17. package/build/umd/alphabox.js +1 -1
  18. package/build/umd/databox.js +1 -1
  19. package/build/umd/diagramme.js +1 -1
  20. package/build/umd/flowbox.js +1 -1
  21. package/build/umd/universe.js +1 -1
  22. package/build-storybook.log +367 -367
  23. package/package.json +114 -114
  24. package/src/components/AUAlertComponent.tsx +70 -70
  25. package/src/components/AUAutoSuggestComponent.js +158 -158
  26. package/src/components/AUButtonComponent.tsx +84 -84
  27. package/src/components/AUCalendarComponent.tsx +493 -493
  28. package/src/components/AUContentToggleComponent.tsx +47 -47
  29. package/src/components/AUDatepickerComponent.tsx +121 -121
  30. package/src/components/AUErrorComponent.tsx +78 -78
  31. package/src/components/AUMobilePrefixComponent.tsx +15 -15
  32. package/src/components/AUModalComponent.tsx +68 -68
  33. package/src/components/AUNotificationComponent.tsx +43 -43
  34. package/src/components/AUReceiptComponent.tsx +33 -33
  35. package/src/components/AUSpinnerComponent.tsx +36 -36
  36. package/src/components/AUStepComponent.tsx +47 -47
  37. package/src/components/AUSubNavComponent.tsx +48 -48
  38. package/src/components/AUSubmitButtonContainerComponent.tsx +29 -29
  39. package/src/components/AUTabbedContentComponent.tsx +145 -145
  40. package/src/components/AUTableComponent.tsx +24 -24
  41. package/src/components/AUToastComponent.tsx +104 -104
  42. package/src/components/AUToolbarComponent.tsx +101 -101
  43. package/src/components/AUTruncatorComponent.tsx +124 -124
  44. package/src/components/wrapping/AUEmbedComponent.js +47 -47
  45. package/src/layout-2016/components/alphabox/AlphaBoxComponent.js +143 -143
  46. package/src/layout-2016/components/alphabox/AlphaBoxContentComponent.js +136 -136
  47. package/src/layout-2016/components/common/AUCollapsibleComponent.js +152 -152
  48. package/src/layout-2016/components/common/AUSpinnerComponent.js +103 -103
  49. package/src/layout-2016/components/databox/DataBoxAlphabetComponent.js +144 -144
  50. package/src/layout-2016/components/databox/DataBoxAssociationComponent.js +122 -122
  51. package/src/layout-2016/components/databox/DataBoxButtonComponent.js +157 -157
  52. package/src/layout-2016/components/databox/DataBoxComponent.js +297 -297
  53. package/src/layout-2016/components/databox/DataBoxGroupingComponent.js +64 -64
  54. package/src/layout-2016/components/databox/DataBoxSearchResultComponent.js +36 -36
  55. package/src/layout-2016/components/databox/DataBoxStackedAssociationComponent.js +54 -54
  56. package/src/layout-2016/components/databox/DataBoxSuggestionComponent.js +39 -39
  57. package/src/layout-2016/components/diagramme/AUDiagrammeComponent.js +309 -309
  58. package/src/layout-2016/components/flowbox/FlowBoxComponent.js +126 -126
  59. package/src/layout-2016/components/flowbox/FlowBoxPhoneComponent.js +104 -104
  60. package/src/layout-2016/components/profile/AUProfileAvatar2016Component.js +103 -103
  61. package/src/layout-2016/components/universe/StaffTopComponent.js +363 -363
  62. package/src/layout-2016/components/universe/StudentTopComponent.js +137 -137
  63. package/src/layout-2016/components/universe/UniverseContainerComponent.js +65 -65
  64. package/src/layout-2016/lib/all.js +3 -3
  65. package/src/layout-2016/lib/au-alphabox.js +100 -100
  66. package/src/layout-2016/lib/au-databox.js +400 -400
  67. package/src/layout-2016/lib/au-diagramme.js +85 -85
  68. package/src/layout-2016/lib/au-flowbox.js +93 -93
  69. package/src/layout-2016/lib/universe.js +9 -9
  70. package/src/lib/context.tsx +51 -51
  71. package/src/lib/dates.ts +50 -50
  72. package/src/lib/helpers.ts +208 -208
  73. package/src/lib/hooks.ts +75 -75
  74. package/src/lib/i18n.ts +600 -600
  75. package/src/lib/portals.tsx +119 -119
  76. package/src/lib/tracking.ts +69 -69
  77. package/src/lib/wrapping.ts +21 -21
  78. package/src/styles/_settings.scss +10 -10
  79. package/src/styles/alphabox.scss +222 -222
  80. package/src/styles/app.scss +7 -7
  81. package/src/styles/autosuggest.scss +57 -57
  82. package/src/styles/databox.scss +563 -563
  83. package/src/styles/diagramme.scss +119 -119
  84. package/src/styles/flowbox.scss +72 -72
  85. package/src/styles/maps.scss +395 -395
  86. package/stories/AUButtonComponent.stories.tsx +127 -127
  87. package/stories/AUContentToggleComponent.stories.tsx +63 -63
  88. package/stories/AUErrorComponent.stories.tsx +98 -98
  89. package/stories/AUModalComponent.stories.tsx +83 -83
  90. package/stories/AUNotificationComponent.stories.tsx +116 -116
  91. package/stories/AUSpinnerComponent.stories.tsx +41 -41
  92. package/stories/AUStepComponent.stories.tsx +40 -40
  93. package/stories/AUToolbarComponent.stories.tsx +326 -326
  94. package/stories/AUTruncatorComponent.stories.tsx +101 -101
  95. package/stories/lib/helpers.tsx +128 -128
  96. package/tsconfig.json +46 -46
  97. package/webpack.config.js +89 -89
@@ -1,564 +1,564 @@
1
- $span-height: 20px;
2
- $span-minimum-padding: $span-height - 6px;
3
- $span-factor: 2;
4
- $span-padding-tb: $span-factor+$span-minimum-padding;
5
- $span-border-top: 1px;
6
- $span-total-height: $span-height+2 * $span-padding-tb;
7
- $span-height-responsive: 51px;
8
- $span-minimum-padding-responsive: 0px;
9
- $span-padding-tb-responsive: $span-factor+$span-minimum-padding-responsive;
10
- $span-total-height-responsive: $span-height-responsive+2 * $span-padding-tb-responsive;
11
- $input-text-top: 11px;
12
- $input-text-top-responsive: $span-padding-tb-responsive - $span-minimum-padding-responsive;
13
- $box-height-1: 1 * $span-height-responsive;
14
- $box-height-2: 2 * $span-height-responsive;
15
- $box-height-3: 3 * $span-height-responsive;
16
- $box-height-4: 4 * $span-height-responsive;
17
- $box-height-5: 5 * $span-height-responsive;
18
- $box-height-6: 6 * $span-height-responsive;
19
- $content-color: #f0f0f0;
20
- $box-text-indent: 1rem;
21
- $focus-indent: 24px;
22
- $focus-bottom-1: $box-height-1+$focus-indent;
23
- $focus-bottom-2: $box-height-2+$focus-indent;
24
- $focus-bottom-3: $box-height-3+$focus-indent;
25
- $focus-bottom-4: $box-height-4+$focus-indent;
26
- .au_databox {
27
- margin-bottom: 2em;
28
- position: relative;
29
- .button-wrapper {
30
- position: relative;
31
- >div {
32
- width: 100%;
33
- position: absolute;
34
- bottom: 0;
35
- }
36
- @media (max-width: 640px) {
37
- background-image: none !important;
38
- height: auto !important;
39
- position: static;
40
- overflow: auto;
41
- >div {
42
- position: static;
43
- }
44
- .db-button {
45
- float: none;
46
- width: 100% !important;
47
- >span {
48
- border-left: 0 !important;
49
- height: $span-height-responsive; //padding: $span-padding-tb-responsive 0px;
50
- }
51
- >input[type=text] {
52
- left: 70px;
53
- top: 11px;
54
- }
55
- }
56
- .buttons-5 {
57
- &.first-line-full {
58
- .button-wrapper {
59
- height: auto;
60
- }
61
- }
62
- }
63
- .buttons-6 {
64
- .button-wrapper {
65
- height: auto;
66
- }
67
- }
68
- }
69
- .au_focus {
70
- margin-bottom: 0;
71
- padding-left: 1rem;
72
- }
73
- }
74
- .content {
75
- width: 100%;
76
- background: $content-color;
77
- padding: $box-text-indent 0;
78
- overflow: auto;
79
- >div {
80
- padding: 0 $box-text-indent;
81
- position: relative;
82
- .expandall {
83
- position: absolute;
84
- right: 10px;
85
- top: 0;
86
- text-decoration: underline;
87
- cursor: pointer;
88
- }
89
- }
90
- ul {
91
- margin-top: 0;
92
- margin-left: 0;
93
- ul {
94
- margin-top: .65rem;
95
- }
96
- li {
97
- a {
98
- text-decoration: none;
99
- &:hover {
100
- text-decoration: underline;
101
- }
102
- }
103
- }
104
- }
105
- ul.letters {
106
- display: flex;
107
- justify-content: flex-start;
108
- flex-flow: row wrap;
109
- font-size: 1.1rem;
110
- margin-top: .15rem;
111
- margin-bottom: .75rem;
112
- margin-left: 0;
113
- padding-bottom: .75rem;
114
- border-bottom: 1px solid #ccc;
115
- li {
116
- padding: 0;
117
- margin: 2px 2px;
118
- background-color: #aaa;
119
- text-align: center;
120
- font-size: 1.2rem;
121
- &.available {
122
- button {
123
- cursor: pointer;
124
- color: #fff;
125
- }
126
- }
127
- &.active {
128
- font-weight: bold;
129
- }
130
- &:before {
131
- content: '';
132
- }
133
- button {
134
- font-family: $font-passata-regular;
135
- color: #ccc;
136
- text-transform: uppercase;
137
- width: 20px;
138
- line-height: inherit;
139
- }
140
- }
141
- }
142
- .au_collapsible {
143
- margin-bottom: 0;
144
- padding: .6rem 0;
145
- >.csc-header {
146
- margin-bottom: 1rem;
147
- &:after {
148
- font-size: 24px;
149
- }
150
- h3 {
151
- margin: 0;
152
- }
153
- }
154
- &.au_collapsed {
155
- >.csc-header {
156
- margin-bottom: 0;
157
- }
158
- }
159
- }
160
- }
161
- & .au_focus {
162
- margin-left: 24px;
163
- position: absolute;
164
- margin-bottom: 0;
165
- &.before {
166
- position: static;
167
- padding: 1.5em 0 1.5em 14px;
168
- margin-left: 0;
169
- }
170
- }
171
- .clear {
172
- clear: both;
173
- }
174
- &.width-full {
175
- width: 100%;
176
- }
177
- .db-button {
178
- float: left;
179
- text-indent: $box-text-indent;
180
- color: #fff;
181
- position: relative;
182
- text-align: left;
183
- padding: 0;
184
- margin: 0;
185
- border: 0;
186
- font: 1.7272727273rem $font-passata-regular;
187
- &:not(.db-search),
188
- &.search-filter {
189
- cursor: pointer;
190
- }
191
- >span {
192
- display: block;
193
- border-top: $span-border-top solid #fff;
194
- padding: $span-padding-tb 0px;
195
- line-height: 1;
196
- a {
197
- color: #fff;
198
- text-decoration: none;
199
- &:hover {
200
- text-decoration: underline;
201
- }
202
- }
203
- }
204
- $input-left: 65px;
205
- input[type=text] {
206
- font-size: 1.25rem;
207
- position: absolute;
208
- top: $input-text-top;
209
- left: $input-left;
210
- background: #fff url($findicon) no-repeat right center;
211
- background: rgba(255, 255, 255, .75) url($findicon) no-repeat right center;
212
- border: 0;
213
- width: calc(100% - #{$input-left} - #{$box-text-indent});
214
- padding: 0;
215
- margin: 0;
216
- height: 32px;
217
- text-indent: 10px;
218
- &.active {
219
- background: #fff;
220
- background: rgba(255, 255, 255, .75);
221
- }
222
- }
223
- &.overlay {
224
- background: rgb(204, 204, 204);
225
- background: rgba(204, 204, 204, .25);
226
- }
227
- &.active {
228
- background: $content-color;
229
- color: #000;
230
- a {
231
- color: #000;
232
- }
233
- }
234
- }
235
- &.collapse {
236
- .db-button {
237
- &:after {
238
- color: #fff;
239
- opacity: 0.8;
240
- font-family: 'au_icons';
241
- content: '+';
242
- float: right;
243
- font-size: 32px;
244
- position: absolute;
245
- top: 10px;
246
- right: 0;
247
- margin-right: .3em;
248
- }
249
- &.active:after {
250
- color: #000;
251
- opacity: 1;
252
- content: '-'
253
- }
254
- &.db-search:after {
255
- content: '';
256
- }
257
- }
258
- }
259
- &.stacked {
260
- .button-wrapper {
261
- background-image: none !important;
262
- height: auto !important;
263
- position: static;
264
- >div {
265
- position: static;
266
- }
267
- .db-button {
268
- float: none;
269
- width: 100% !important;
270
- >span {
271
- border-left: 0 !important;
272
- height: $span-height-responsive; //padding: $span-padding-tb-responsive 0px;
273
- }
274
- >input[type=text] {
275
- left: 70px;
276
- top: 11px;
277
- }
278
- }
279
- .buttons-5 {
280
- &.first-line-full {
281
- .button-wrapper {
282
- height: auto;
283
- }
284
- }
285
- }
286
- .buttons-6 {
287
- .button-wrapper {
288
- height: auto;
289
- }
290
- }
291
- }
292
- .content {
293
- padding-top: 0;
294
- }
295
- }
296
- &.buttons-1 {
297
- .au_focus {
298
- bottom: $focus-bottom-1;
299
- }
300
- .button-wrapper {
301
- height: $box-height-1;
302
- }
303
- .db-button {
304
- width: 100%;
305
- >span {
306
- text-indent: -9999px;
307
- }
308
- >input[type=text] {
309
- left: 14px;
310
- }
311
- }
312
- }
313
- &.buttons-2 {
314
- .button-wrapper {
315
- height: $box-height-1;
316
- }
317
- .au_focus {
318
- bottom: $focus-bottom-1;
319
- }
320
- .db-button {
321
- width: 50%;
322
- &:nth-child(2) span {
323
- border-left: 1px solid #fff;
324
- }
325
- }
326
- }
327
- &.buttons-3 {
328
- .button-wrapper {
329
- height: $box-height-1;
330
- }
331
- .au_focus {
332
- bottom: $focus-bottom-1;
333
- }
334
- &.first-line-full {
335
- .button-wrapper {
336
- height: $box-height-2;
337
- }
338
- .au_focus {
339
- bottom: $focus-bottom-2;
340
- }
341
- .button-1 {
342
- width: 100%;
343
- }
344
- .button-2,
345
- .button-3 {
346
- width: 50%;
347
- }
348
- .button-2 span {
349
- border-left: 0;
350
- }
351
- .button-3 span {
352
- border-left: 1px solid #fff;
353
- }
354
- }
355
- .button-1,
356
- .button-3 {
357
- width: 33%;
358
- }
359
- .button-2 {
360
- width: 34%;
361
- }
362
- .button-2,
363
- .button-3 {
364
- span {
365
- border-left: 1px solid #fff;
366
- }
367
- }
368
- }
369
- &.buttons-4 {
370
- .button-wrapper {
371
- height: $box-height-2;
372
- }
373
- .au_focus {
374
- bottom: $focus-bottom-2;
375
- }
376
- &.first-line-full {
377
- .button-1 {
378
- width: 100%;
379
- }
380
- .button-2 span {
381
- border-left: 0;
382
- }
383
- .button-2,
384
- .button-4 {
385
- width: 33%;
386
- }
387
- .button-3 {
388
- width: 34%;
389
- }
390
- .button-3,
391
- .button-4 {
392
- span {
393
- border-left: 1px solid #fff;
394
- }
395
- }
396
- }
397
- .db-button {
398
- width: 50%;
399
- }
400
- .button-2,
401
- .button-4 {
402
- span {
403
- border-left: 1px solid #fff;
404
- }
405
- }
406
- }
407
- &.buttons-5 {
408
- .button-wrapper {
409
- height: $box-height-3;
410
- }
411
- .au_focus {
412
- bottom: $focus-bottom-3;
413
- }
414
- &.first-line-full {
415
- .button-wrapper {
416
- height: $box-height-2;
417
- }
418
- .au_focus {
419
- bottom: $focus-bottom-2;
420
- }
421
- .button-1 {
422
- width: 100%;
423
- }
424
- .button-2,
425
- .button-3,
426
- .button-4,
427
- .button-5 {
428
- width: 25%;
429
- }
430
- .button-3,
431
- .button-4,
432
- .button-5 {
433
- span {
434
- border-left: 1px solid #fff;
435
- }
436
- }
437
- }
438
- .button-1 {
439
- width: 100%;
440
- }
441
- .button-2,
442
- .button-3,
443
- .button-4,
444
- .button-5 {
445
- width: 50%;
446
- }
447
- .button-3,
448
- .button-5 {
449
- span {
450
- border-left: 1px solid #fff;
451
- }
452
- }
453
- }
454
- &.buttons-6 {
455
- &.first-line-full {
456
- .button-wrapper {
457
- height: $box-height-2;
458
- }
459
- .au_focus {
460
- bottom: $focus-bottom-2;
461
- }
462
- .button-1 {
463
- width: 100%;
464
- }
465
- .db-button.button-2 {
466
- span {
467
- border-left: none;
468
- }
469
- }
470
- .button-2,
471
- .button-3,
472
- .button-4,
473
- .button-5,
474
- .button-6 {
475
- width: 20%;
476
- }
477
- .button-3,
478
- .button-4,
479
- .button-5,
480
- .button-6 {
481
- span {
482
- border-left: 1px solid #fff;
483
- }
484
- }
485
- }
486
- .button-wrapper {
487
- height: $box-height-3;
488
- }
489
- .au_focus {
490
- bottom: $focus-bottom-3;
491
- }
492
- .db-button {
493
- width: 50%;
494
- &:nth-child(even) span {
495
- border-left: 1px solid #fff;
496
- }
497
- }
498
- }
499
- &.buttons-7 {
500
- .button-wrapper {
501
- height: $box-height-3;
502
- }
503
- .au_focus {
504
- bottom: $focus-bottom-3;
505
- }
506
- &.first-line-full {
507
- .button-wrapper {
508
- height: $box-height-2;
509
- }
510
- .au_focus {
511
- bottom: $focus-bottom-2;
512
- }
513
- .button-1 {
514
- width: 100%;
515
- }
516
- .button-2,
517
- .button-3,
518
- .button-4,
519
- .button-5,
520
- .button-6,
521
- .button-7 {
522
- width: 16.66667%;
523
- }
524
- .button-3,
525
- .button-4,
526
- .button-5,
527
- .button-6,
528
- .button-7 {
529
- span {
530
- border-left: 1px solid #fff;
531
- }
532
- }
533
- }
534
- .button-1 {
535
- width: 100%;
536
- }
537
- .button-2,
538
- .button-4,
539
- .button-5,
540
- .button-7 {
541
- width: 33%;
542
- }
543
- .button-3,
544
- .button-6 {
545
- width: 34%;
546
- }
547
- .button-3,
548
- .button-4,
549
- .button-6,
550
- .button-7 {
551
- span {
552
- border-left: 1px solid #fff;
553
- }
554
- }
555
- }
556
- }
557
-
558
- .utility-links .au_databox.stacked {
559
- margin-bottom: 0;
560
- .content {
561
- max-height: 200px;
562
- overflow: auto;
563
- }
1
+ $span-height: 20px;
2
+ $span-minimum-padding: $span-height - 6px;
3
+ $span-factor: 2;
4
+ $span-padding-tb: $span-factor+$span-minimum-padding;
5
+ $span-border-top: 1px;
6
+ $span-total-height: $span-height+2 * $span-padding-tb;
7
+ $span-height-responsive: 51px;
8
+ $span-minimum-padding-responsive: 0px;
9
+ $span-padding-tb-responsive: $span-factor+$span-minimum-padding-responsive;
10
+ $span-total-height-responsive: $span-height-responsive+2 * $span-padding-tb-responsive;
11
+ $input-text-top: 11px;
12
+ $input-text-top-responsive: $span-padding-tb-responsive - $span-minimum-padding-responsive;
13
+ $box-height-1: 1 * $span-height-responsive;
14
+ $box-height-2: 2 * $span-height-responsive;
15
+ $box-height-3: 3 * $span-height-responsive;
16
+ $box-height-4: 4 * $span-height-responsive;
17
+ $box-height-5: 5 * $span-height-responsive;
18
+ $box-height-6: 6 * $span-height-responsive;
19
+ $content-color: #f0f0f0;
20
+ $box-text-indent: 1rem;
21
+ $focus-indent: 24px;
22
+ $focus-bottom-1: $box-height-1+$focus-indent;
23
+ $focus-bottom-2: $box-height-2+$focus-indent;
24
+ $focus-bottom-3: $box-height-3+$focus-indent;
25
+ $focus-bottom-4: $box-height-4+$focus-indent;
26
+ .au_databox {
27
+ margin-bottom: 2em;
28
+ position: relative;
29
+ .button-wrapper {
30
+ position: relative;
31
+ >div {
32
+ width: 100%;
33
+ position: absolute;
34
+ bottom: 0;
35
+ }
36
+ @media (max-width: 640px) {
37
+ background-image: none !important;
38
+ height: auto !important;
39
+ position: static;
40
+ overflow: auto;
41
+ >div {
42
+ position: static;
43
+ }
44
+ .db-button {
45
+ float: none;
46
+ width: 100% !important;
47
+ >span {
48
+ border-left: 0 !important;
49
+ height: $span-height-responsive; //padding: $span-padding-tb-responsive 0px;
50
+ }
51
+ >input[type=text] {
52
+ left: 70px;
53
+ top: 11px;
54
+ }
55
+ }
56
+ .buttons-5 {
57
+ &.first-line-full {
58
+ .button-wrapper {
59
+ height: auto;
60
+ }
61
+ }
62
+ }
63
+ .buttons-6 {
64
+ .button-wrapper {
65
+ height: auto;
66
+ }
67
+ }
68
+ }
69
+ .au_focus {
70
+ margin-bottom: 0;
71
+ padding-left: 1rem;
72
+ }
73
+ }
74
+ .content {
75
+ width: 100%;
76
+ background: $content-color;
77
+ padding: $box-text-indent 0;
78
+ overflow: auto;
79
+ >div {
80
+ padding: 0 $box-text-indent;
81
+ position: relative;
82
+ .expandall {
83
+ position: absolute;
84
+ right: 10px;
85
+ top: 0;
86
+ text-decoration: underline;
87
+ cursor: pointer;
88
+ }
89
+ }
90
+ ul {
91
+ margin-top: 0;
92
+ margin-left: 0;
93
+ ul {
94
+ margin-top: .65rem;
95
+ }
96
+ li {
97
+ a {
98
+ text-decoration: none;
99
+ &:hover {
100
+ text-decoration: underline;
101
+ }
102
+ }
103
+ }
104
+ }
105
+ ul.letters {
106
+ display: flex;
107
+ justify-content: flex-start;
108
+ flex-flow: row wrap;
109
+ font-size: 1.1rem;
110
+ margin-top: .15rem;
111
+ margin-bottom: .75rem;
112
+ margin-left: 0;
113
+ padding-bottom: .75rem;
114
+ border-bottom: 1px solid #ccc;
115
+ li {
116
+ padding: 0;
117
+ margin: 2px 2px;
118
+ background-color: #aaa;
119
+ text-align: center;
120
+ font-size: 1.2rem;
121
+ &.available {
122
+ button {
123
+ cursor: pointer;
124
+ color: #fff;
125
+ }
126
+ }
127
+ &.active {
128
+ font-weight: bold;
129
+ }
130
+ &:before {
131
+ content: '';
132
+ }
133
+ button {
134
+ font-family: $font-passata-regular;
135
+ color: #ccc;
136
+ text-transform: uppercase;
137
+ width: 20px;
138
+ line-height: inherit;
139
+ }
140
+ }
141
+ }
142
+ .au_collapsible {
143
+ margin-bottom: 0;
144
+ padding: .6rem 0;
145
+ >.csc-header {
146
+ margin-bottom: 1rem;
147
+ &:after {
148
+ font-size: 24px;
149
+ }
150
+ h3 {
151
+ margin: 0;
152
+ }
153
+ }
154
+ &.au_collapsed {
155
+ >.csc-header {
156
+ margin-bottom: 0;
157
+ }
158
+ }
159
+ }
160
+ }
161
+ & .au_focus {
162
+ margin-left: 24px;
163
+ position: absolute;
164
+ margin-bottom: 0;
165
+ &.before {
166
+ position: static;
167
+ padding: 1.5em 0 1.5em 14px;
168
+ margin-left: 0;
169
+ }
170
+ }
171
+ .clear {
172
+ clear: both;
173
+ }
174
+ &.width-full {
175
+ width: 100%;
176
+ }
177
+ .db-button {
178
+ float: left;
179
+ text-indent: $box-text-indent;
180
+ color: #fff;
181
+ position: relative;
182
+ text-align: left;
183
+ padding: 0;
184
+ margin: 0;
185
+ border: 0;
186
+ font: 1.7272727273rem $font-passata-regular;
187
+ &:not(.db-search),
188
+ &.search-filter {
189
+ cursor: pointer;
190
+ }
191
+ >span {
192
+ display: block;
193
+ border-top: $span-border-top solid #fff;
194
+ padding: $span-padding-tb 0px;
195
+ line-height: 1;
196
+ a {
197
+ color: #fff;
198
+ text-decoration: none;
199
+ &:hover {
200
+ text-decoration: underline;
201
+ }
202
+ }
203
+ }
204
+ $input-left: 65px;
205
+ input[type=text] {
206
+ font-size: 1.25rem;
207
+ position: absolute;
208
+ top: $input-text-top;
209
+ left: $input-left;
210
+ background: #fff url($findicon) no-repeat right center;
211
+ background: rgba(255, 255, 255, .75) url($findicon) no-repeat right center;
212
+ border: 0;
213
+ width: calc(100% - #{$input-left} - #{$box-text-indent});
214
+ padding: 0;
215
+ margin: 0;
216
+ height: 32px;
217
+ text-indent: 10px;
218
+ &.active {
219
+ background: #fff;
220
+ background: rgba(255, 255, 255, .75);
221
+ }
222
+ }
223
+ &.overlay {
224
+ background: rgb(204, 204, 204);
225
+ background: rgba(204, 204, 204, .25);
226
+ }
227
+ &.active {
228
+ background: $content-color;
229
+ color: #000;
230
+ a {
231
+ color: #000;
232
+ }
233
+ }
234
+ }
235
+ &.collapse {
236
+ .db-button {
237
+ &:after {
238
+ color: #fff;
239
+ opacity: 0.8;
240
+ font-family: 'au_icons';
241
+ content: '+';
242
+ float: right;
243
+ font-size: 32px;
244
+ position: absolute;
245
+ top: 10px;
246
+ right: 0;
247
+ margin-right: .3em;
248
+ }
249
+ &.active:after {
250
+ color: #000;
251
+ opacity: 1;
252
+ content: '-'
253
+ }
254
+ &.db-search:after {
255
+ content: '';
256
+ }
257
+ }
258
+ }
259
+ &.stacked {
260
+ .button-wrapper {
261
+ background-image: none !important;
262
+ height: auto !important;
263
+ position: static;
264
+ >div {
265
+ position: static;
266
+ }
267
+ .db-button {
268
+ float: none;
269
+ width: 100% !important;
270
+ >span {
271
+ border-left: 0 !important;
272
+ height: $span-height-responsive; //padding: $span-padding-tb-responsive 0px;
273
+ }
274
+ >input[type=text] {
275
+ left: 70px;
276
+ top: 11px;
277
+ }
278
+ }
279
+ .buttons-5 {
280
+ &.first-line-full {
281
+ .button-wrapper {
282
+ height: auto;
283
+ }
284
+ }
285
+ }
286
+ .buttons-6 {
287
+ .button-wrapper {
288
+ height: auto;
289
+ }
290
+ }
291
+ }
292
+ .content {
293
+ padding-top: 0;
294
+ }
295
+ }
296
+ &.buttons-1 {
297
+ .au_focus {
298
+ bottom: $focus-bottom-1;
299
+ }
300
+ .button-wrapper {
301
+ height: $box-height-1;
302
+ }
303
+ .db-button {
304
+ width: 100%;
305
+ >span {
306
+ text-indent: -9999px;
307
+ }
308
+ >input[type=text] {
309
+ left: 14px;
310
+ }
311
+ }
312
+ }
313
+ &.buttons-2 {
314
+ .button-wrapper {
315
+ height: $box-height-1;
316
+ }
317
+ .au_focus {
318
+ bottom: $focus-bottom-1;
319
+ }
320
+ .db-button {
321
+ width: 50%;
322
+ &:nth-child(2) span {
323
+ border-left: 1px solid #fff;
324
+ }
325
+ }
326
+ }
327
+ &.buttons-3 {
328
+ .button-wrapper {
329
+ height: $box-height-1;
330
+ }
331
+ .au_focus {
332
+ bottom: $focus-bottom-1;
333
+ }
334
+ &.first-line-full {
335
+ .button-wrapper {
336
+ height: $box-height-2;
337
+ }
338
+ .au_focus {
339
+ bottom: $focus-bottom-2;
340
+ }
341
+ .button-1 {
342
+ width: 100%;
343
+ }
344
+ .button-2,
345
+ .button-3 {
346
+ width: 50%;
347
+ }
348
+ .button-2 span {
349
+ border-left: 0;
350
+ }
351
+ .button-3 span {
352
+ border-left: 1px solid #fff;
353
+ }
354
+ }
355
+ .button-1,
356
+ .button-3 {
357
+ width: 33%;
358
+ }
359
+ .button-2 {
360
+ width: 34%;
361
+ }
362
+ .button-2,
363
+ .button-3 {
364
+ span {
365
+ border-left: 1px solid #fff;
366
+ }
367
+ }
368
+ }
369
+ &.buttons-4 {
370
+ .button-wrapper {
371
+ height: $box-height-2;
372
+ }
373
+ .au_focus {
374
+ bottom: $focus-bottom-2;
375
+ }
376
+ &.first-line-full {
377
+ .button-1 {
378
+ width: 100%;
379
+ }
380
+ .button-2 span {
381
+ border-left: 0;
382
+ }
383
+ .button-2,
384
+ .button-4 {
385
+ width: 33%;
386
+ }
387
+ .button-3 {
388
+ width: 34%;
389
+ }
390
+ .button-3,
391
+ .button-4 {
392
+ span {
393
+ border-left: 1px solid #fff;
394
+ }
395
+ }
396
+ }
397
+ .db-button {
398
+ width: 50%;
399
+ }
400
+ .button-2,
401
+ .button-4 {
402
+ span {
403
+ border-left: 1px solid #fff;
404
+ }
405
+ }
406
+ }
407
+ &.buttons-5 {
408
+ .button-wrapper {
409
+ height: $box-height-3;
410
+ }
411
+ .au_focus {
412
+ bottom: $focus-bottom-3;
413
+ }
414
+ &.first-line-full {
415
+ .button-wrapper {
416
+ height: $box-height-2;
417
+ }
418
+ .au_focus {
419
+ bottom: $focus-bottom-2;
420
+ }
421
+ .button-1 {
422
+ width: 100%;
423
+ }
424
+ .button-2,
425
+ .button-3,
426
+ .button-4,
427
+ .button-5 {
428
+ width: 25%;
429
+ }
430
+ .button-3,
431
+ .button-4,
432
+ .button-5 {
433
+ span {
434
+ border-left: 1px solid #fff;
435
+ }
436
+ }
437
+ }
438
+ .button-1 {
439
+ width: 100%;
440
+ }
441
+ .button-2,
442
+ .button-3,
443
+ .button-4,
444
+ .button-5 {
445
+ width: 50%;
446
+ }
447
+ .button-3,
448
+ .button-5 {
449
+ span {
450
+ border-left: 1px solid #fff;
451
+ }
452
+ }
453
+ }
454
+ &.buttons-6 {
455
+ &.first-line-full {
456
+ .button-wrapper {
457
+ height: $box-height-2;
458
+ }
459
+ .au_focus {
460
+ bottom: $focus-bottom-2;
461
+ }
462
+ .button-1 {
463
+ width: 100%;
464
+ }
465
+ .db-button.button-2 {
466
+ span {
467
+ border-left: none;
468
+ }
469
+ }
470
+ .button-2,
471
+ .button-3,
472
+ .button-4,
473
+ .button-5,
474
+ .button-6 {
475
+ width: 20%;
476
+ }
477
+ .button-3,
478
+ .button-4,
479
+ .button-5,
480
+ .button-6 {
481
+ span {
482
+ border-left: 1px solid #fff;
483
+ }
484
+ }
485
+ }
486
+ .button-wrapper {
487
+ height: $box-height-3;
488
+ }
489
+ .au_focus {
490
+ bottom: $focus-bottom-3;
491
+ }
492
+ .db-button {
493
+ width: 50%;
494
+ &:nth-child(even) span {
495
+ border-left: 1px solid #fff;
496
+ }
497
+ }
498
+ }
499
+ &.buttons-7 {
500
+ .button-wrapper {
501
+ height: $box-height-3;
502
+ }
503
+ .au_focus {
504
+ bottom: $focus-bottom-3;
505
+ }
506
+ &.first-line-full {
507
+ .button-wrapper {
508
+ height: $box-height-2;
509
+ }
510
+ .au_focus {
511
+ bottom: $focus-bottom-2;
512
+ }
513
+ .button-1 {
514
+ width: 100%;
515
+ }
516
+ .button-2,
517
+ .button-3,
518
+ .button-4,
519
+ .button-5,
520
+ .button-6,
521
+ .button-7 {
522
+ width: 16.66667%;
523
+ }
524
+ .button-3,
525
+ .button-4,
526
+ .button-5,
527
+ .button-6,
528
+ .button-7 {
529
+ span {
530
+ border-left: 1px solid #fff;
531
+ }
532
+ }
533
+ }
534
+ .button-1 {
535
+ width: 100%;
536
+ }
537
+ .button-2,
538
+ .button-4,
539
+ .button-5,
540
+ .button-7 {
541
+ width: 33%;
542
+ }
543
+ .button-3,
544
+ .button-6 {
545
+ width: 34%;
546
+ }
547
+ .button-3,
548
+ .button-4,
549
+ .button-6,
550
+ .button-7 {
551
+ span {
552
+ border-left: 1px solid #fff;
553
+ }
554
+ }
555
+ }
556
+ }
557
+
558
+ .utility-links .au_databox.stacked {
559
+ margin-bottom: 0;
560
+ .content {
561
+ max-height: 200px;
562
+ overflow: auto;
563
+ }
564
564
  }