@trilogy-ds/styles 0.0.1-beta.9 → 0.0.2-alpha-prompt

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 (149) hide show
  1. package/dist/default/assets/icons/all/calendar.svg +1 -0
  2. package/dist/default/assets/icons/all/file-attached.svg +1 -0
  3. package/dist/default/assets/icons/all/micro.svg +1 -0
  4. package/dist/default/assets/icons/all/paperclip.svg +1 -0
  5. package/dist/default/trilogy-mangled.css +1 -1
  6. package/dist/default/trilogy-partials.css +1 -1
  7. package/dist/default/trilogy.css +1 -1
  8. package/framework/src/_all.scss +2 -2
  9. package/framework/src/base/_all.scss +1 -1
  10. package/framework/src/base/_color.scss +1 -52
  11. package/framework/src/base/_elements.scss +1 -1
  12. package/framework/src/base/_generic.scss +9 -1
  13. package/framework/src/base/_helpers.scss +34 -44
  14. package/framework/src/base/_loading.scss +9 -2
  15. package/framework/src/base/_reset.scss +11 -1
  16. package/framework/src/components/_accordion.scss +55 -89
  17. package/framework/src/components/_autocomplete.scss +38 -0
  18. package/framework/src/components/_autolayout.scss +332 -0
  19. package/framework/src/components/_badge.scss +87 -0
  20. package/framework/src/components/_box.scss +168 -0
  21. package/framework/src/components/_breadcrumb.scss +29 -38
  22. package/framework/src/components/_button.scss +79 -0
  23. package/framework/src/components/_calendar.scss +129 -0
  24. package/framework/src/components/_card.scss +33 -87
  25. package/framework/src/components/_checkbox.scss +71 -0
  26. package/framework/src/components/_chips.scss +84 -0
  27. package/framework/src/{elements → components}/_container.scss +7 -46
  28. package/framework/src/components/_countdown.scss +49 -47
  29. package/framework/src/components/_date-picker.scss +58 -0
  30. package/framework/src/components/_divider.scss +48 -14
  31. package/framework/src/components/_dropdown.scss +166 -99
  32. package/framework/src/components/_fab.scss +25 -38
  33. package/framework/src/components/_flex-box.scss +994 -0
  34. package/framework/src/{elements → components}/_icon.scss +4 -4
  35. package/framework/src/components/_image.scss +69 -0
  36. package/framework/src/components/_index.scss +51 -0
  37. package/framework/src/components/_link.scss +58 -0
  38. package/framework/src/components/_list.scss +66 -0
  39. package/framework/src/{elements → components}/_loader.scss +2 -2
  40. package/framework/src/components/_modal.scss +182 -158
  41. package/framework/src/components/_otp.scss +11 -30
  42. package/framework/src/components/_pagination.scss +60 -159
  43. package/framework/src/components/_popover.scss +260 -260
  44. package/framework/src/components/_price.scss +140 -165
  45. package/framework/src/components/_product-tour.scss +2 -4
  46. package/framework/src/components/_prompt.scss +125 -0
  47. package/framework/src/components/_radio.scss +82 -0
  48. package/framework/src/components/_range.scss +73 -72
  49. package/framework/src/components/_segmented-control.scss +55 -53
  50. package/framework/src/components/_select.scss +131 -0
  51. package/framework/src/components/_stepper.scss +42 -222
  52. package/framework/src/{elements → components}/_sticker.scss +25 -28
  53. package/framework/src/components/_switch.scss +97 -191
  54. package/framework/src/components/_table.scss +244 -0
  55. package/framework/src/components/_tabs.scss +114 -98
  56. package/framework/src/components/_tag.scss +114 -0
  57. package/framework/src/components/_text.scss +55 -0
  58. package/framework/src/components/_textarea.scss +46 -0
  59. package/framework/src/components/_timeline.scss +28 -113
  60. package/framework/src/components/_title.scss +151 -0
  61. package/framework/src/{elements → components/alert}/_alert.scss +13 -10
  62. package/framework/src/components/alert/_index.scss +2 -0
  63. package/framework/src/{elements → components/alert}/_toaster.scss +4 -8
  64. package/framework/src/components/input/_entry.scss +135 -0
  65. package/framework/src/{elements → components/input}/_form.scss +42 -33
  66. package/framework/src/components/input/_index.scss +4 -0
  67. package/framework/src/components/input/_input-gauge.scss +44 -0
  68. package/framework/src/components/input/_input-icons.scss +55 -0
  69. package/framework/src/components/progress/_index.scss +2 -0
  70. package/framework/src/components/progress/_progress-radial.scss +28 -0
  71. package/framework/src/{elements → components/progress}/_progress.scss +34 -23
  72. package/framework/src/elements/_index.scss +5 -0
  73. package/framework/src/elements/_other.scss +0 -41
  74. package/framework/src/{components → elements}/_plus-symbol.scss +1 -1
  75. package/framework/src/grid/_columns.scss +278 -763
  76. package/framework/src/grid/_rows.scss +45 -38
  77. package/framework/src/layout/_all.scss +0 -1
  78. package/framework/src/layout/_hero.scss +92 -214
  79. package/framework/src/layout/_section.scss +10 -29
  80. package/framework/src/theming/_all.scss +3 -0
  81. package/framework/src/theming/buttons_partial.scss +32 -0
  82. package/framework/src/theming/common_partials.scss +10 -0
  83. package/framework/src/theming/links_partial.scss +20 -0
  84. package/framework/src/trilogy-mangled.scss +3 -3
  85. package/framework/src/trilogy.scss +2 -2
  86. package/framework/src/utilities/_a11y.scss +13 -0
  87. package/framework/src/utilities/_all.scss +4 -0
  88. package/framework/src/utilities/_background.scss +21 -0
  89. package/framework/src/utilities/_controls.scss +38 -49
  90. package/framework/src/utilities/_derived-variables.scss +0 -103
  91. package/framework/src/utilities/_initial-variables.scss +4 -144
  92. package/framework/src/utilities/_pre.scss +4 -1
  93. package/framework/src/utilities/mixins/_arrow.scss +21 -0
  94. package/framework/src/utilities/mixins/_delete.scss +86 -0
  95. package/framework/src/utilities/mixins/_index.scss +11 -0
  96. package/framework/src/utilities/mixins/_markup-group.scss +27 -0
  97. package/framework/src/utilities/mixins/_mixins.scss +294 -0
  98. package/framework/src/utilities/mixins/_overlay.scss +7 -0
  99. package/framework/src/utilities/mixins/_pattern.scss +10 -0
  100. package/framework/src/utilities/mixins/_responsiveness.scss +174 -0
  101. package/framework/src/utilities/mixins/_spinner.scss +12 -0
  102. package/framework/src/utilities/mixins/_state.scss +25 -0
  103. package/framework/src/utilities/mixins/_unselectable.scss +10 -0
  104. package/framework/src/utilities/mixins/_utils.scss +24 -0
  105. package/framework/src/utilities/variables/_animation.scss +2 -0
  106. package/framework/src/utilities/variables/_color.scss +85 -0
  107. package/framework/src/utilities/variables/_font.scss +97 -0
  108. package/framework/src/utilities/variables/_index.scss +6 -0
  109. package/framework/src/utilities/variables/_responsiveness.scss +7 -0
  110. package/framework/src/utilities/variables/_shadow.scss +3 -0
  111. package/framework/src/utilities/variables/_zindex.scss +14 -0
  112. package/package.json +8 -3
  113. package/framework/src/components/_all.scss +0 -30
  114. package/framework/src/components/_autolayout2.scss +0 -38
  115. package/framework/src/components/_disclaimer.scss +0 -84
  116. package/framework/src/components/_level.scss +0 -120
  117. package/framework/src/components/_media.scss +0 -64
  118. package/framework/src/components/_menu.scss +0 -213
  119. package/framework/src/components/_progress-radial.scss +0 -23
  120. package/framework/src/components/_search-modal.scss +0 -197
  121. package/framework/src/components/_slices.scss +0 -316
  122. package/framework/src/components/_slider.scss +0 -92
  123. package/framework/src/elements/_all.scss +0 -35
  124. package/framework/src/elements/_badge.scss +0 -81
  125. package/framework/src/elements/_box.scss +0 -267
  126. package/framework/src/elements/_button.scss +0 -192
  127. package/framework/src/elements/_checkbox.scss +0 -39
  128. package/framework/src/elements/_checkradio.scss +0 -173
  129. package/framework/src/elements/_chips.scss +0 -100
  130. package/framework/src/elements/_dot.scss +0 -6
  131. package/framework/src/elements/_entry.scss +0 -109
  132. package/framework/src/elements/_image.scss +0 -59
  133. package/framework/src/elements/_input-gauge.scss +0 -37
  134. package/framework/src/elements/_input-icons.scss +0 -41
  135. package/framework/src/elements/_link.scss +0 -79
  136. package/framework/src/elements/_list.scss +0 -61
  137. package/framework/src/elements/_notification.scss +0 -151
  138. package/framework/src/elements/_options.scss +0 -146
  139. package/framework/src/elements/_paragraph.scss +0 -101
  140. package/framework/src/elements/_radio.scss +0 -67
  141. package/framework/src/elements/_select.scss +0 -315
  142. package/framework/src/elements/_switch.scss +0 -108
  143. package/framework/src/elements/_table.scss +0 -298
  144. package/framework/src/elements/_tag.scss +0 -131
  145. package/framework/src/elements/_textarea.scss +0 -125
  146. package/framework/src/elements/_timeline.scss +0 -283
  147. package/framework/src/elements/_title.scss +0 -139
  148. package/framework/src/layout/_toolbar.scss +0 -100
  149. package/framework/src/utilities/_mixins.scss +0 -744
@@ -2,7 +2,7 @@
2
2
 
3
3
  @import "utilities/all";
4
4
  @import "base/all";
5
- @import "elements/all";
6
- @import "components/all";
5
+ @import "elements";
6
+ @import "components";
7
7
  @import "grid/all";
8
8
  @import "layout/all";
@@ -1,7 +1,7 @@
1
1
  @charset "utf-8";
2
2
 
3
- @import "reset";
4
3
  @import "color";
4
+ @import "reset";
5
5
  @import "generic";
6
6
  @import "fonts";
7
7
  @import "helpers";
@@ -1,58 +1,7 @@
1
1
  @use "sass:map";
2
2
 
3
- @function getColor( $name ) {
4
- @return var(--color-#{nth(map-get($colors,$name),1)})
5
- }
6
-
7
- @function getColorValue( $name ) {
8
- @return #{nth(map-get($colors,$name),2)}
9
- }
10
-
11
- @function getColorBrandName( $name ) {
12
- @return #{nth(map-get($colors,$name),1)}
13
- }
14
-
15
- @function getVariantColor($name, $n:1) {
16
- @return #{nth(map-get($colors,$name),$n+3)}
17
- };
18
-
19
3
  :root {
20
4
  @each $name, $color in $colors {
21
- --color-#{nth($color,1)}: #{nth($color,2)};
22
- }
23
-
24
- // Colors
25
- @each $name, $color in $colors {
26
- $colorname: nth($color, 1);
27
- $bgcolorval: nth($color, 2);
28
- $colorval: nth($color, 3);
29
- .has-background-#{$colorname} {
30
- background-color: var(--color-#{$colorname}) !important;
31
- color: var(--color-#{$colorval});
32
- }
33
- }
34
- }
35
-
36
- .is-hovered {
37
- background-color: var(--color-hovered);
38
- }
39
-
40
- @function invertColor ($colorName, $context:'') {
41
- $invertcolormap: ('tertiary': 'grey-dark', 'grey-dark': 'grey-light', 'grey-light': 'grey-dark');
42
- $defaultInvert: white;
43
-
44
- @if ($context == 'dark') {
45
- $invertcolormap: ('tertiary':'var(--color-success)');
46
- $defaultInvert: black;
47
- }
48
-
49
- @if ($context == 'accordion') {
50
- $defaultInvert: 'grey-lighter'
51
- }
52
-
53
- $result: map.get($invertcolormap, $colorName);
54
- @if ($result) {
55
- @return $result
5
+ --color-#{nth($color,2)}: #{nth($color,1)};
56
6
  }
57
- @return $defaultInvert
58
7
  }
@@ -6,7 +6,7 @@ body {
6
6
  @extend .main-wrap;
7
7
  @extend .body-wrap;
8
8
  @extend .reset-wrap;
9
- font-family: $family-sans-serif;
9
+ font-family: $family-primary;
10
10
  }
11
11
 
12
12
  header {
@@ -7,7 +7,7 @@ $body-line-height: 1.5 !default;
7
7
  .html-wrap {
8
8
  margin: 0;
9
9
  padding: 0;
10
- background-color: getColor('grey-lighter');
10
+ background-color: getColor('background');
11
11
  font-size: $body-size;
12
12
  -moz-osx-font-smoothing: grayscale;
13
13
  -webkit-font-smoothing: antialiased;
@@ -55,6 +55,9 @@ $body-line-height: 1.5 !default;
55
55
  z-index: zindex('small');
56
56
  }
57
57
  }
58
+ [disabled], [aria-disabled="true"] {
59
+ @include disabledRules;
60
+ }
58
61
  }
59
62
 
60
63
  .body-wrap {
@@ -66,3 +69,8 @@ $body-line-height: 1.5 !default;
66
69
  .header {
67
70
  z-index: zindex('large');
68
71
  }
72
+
73
+ *::before,
74
+ *::after {
75
+ box-sizing: inherit;
76
+ }
@@ -12,7 +12,11 @@
12
12
 
13
13
  // Float
14
14
  .is-clearfix {
15
- @include clearfix;
15
+ &::after {
16
+ clear: both;
17
+ content: ' ';
18
+ display: table;
19
+ }
16
20
  }
17
21
 
18
22
  .is-pulled-left {
@@ -43,6 +47,7 @@ $alignments: (
43
47
  'justified': 'justify',
44
48
  'left': 'left',
45
49
  'right': 'right',
50
+ 'stretch': 'stretch'
46
51
  );
47
52
 
48
53
  @each $alignment, $text-align in $alignments {
@@ -195,47 +200,26 @@ $alignments: (
195
200
  font-weight: $weight-semibold !important;
196
201
  }
197
202
 
198
- @mixin typography-colors($target: '') {
203
+ @mixin typography-colors() {
199
204
  @each $name, $color in $colors {
200
- $brandName:nth($color, 1);
201
- $color: nth($color, 2);
205
+ $brandName: nth($color, 2);
206
+ $color: nth($color, 1);
202
207
  $color-invert: invertColor($name);
203
208
 
204
- .has-text-#{$brandName}#{if($target == '', '', '-' + $target)} {
209
+ .has-text-#{$brandName} {
205
210
  color: $color !important;
206
211
  }
207
- .has-text-#{$brandName}-invert#{if($target == '', '', '-' + $target)} {
212
+ .has-text-#{$brandName}-invert {
208
213
  color: $color-invert !important;
209
214
  }
215
+ .has-background-#{$brandName} {
216
+ background-color: getColor($name) !important;
217
+ }
210
218
  }
211
219
  }
212
220
 
213
221
  @include typography-colors;
214
222
 
215
- @include mobile {
216
- @include typography-colors('mobile');
217
- }
218
-
219
- @include tablet {
220
- @include typography-colors('tablet');
221
- }
222
-
223
- @include touch {
224
- @include typography-colors('touch');
225
- }
226
-
227
- @include desktop {
228
- @include typography-colors('desktop');
229
- }
230
-
231
- @include widescreen {
232
- @include typography-colors('widescreen');
233
- }
234
-
235
- @include fullhd {
236
- @include typography-colors('fullhd');
237
- }
238
-
239
223
  // Visibility
240
224
  $displays: 'block' 'flex' 'inline' 'inline-block' 'inline-flex';
241
225
 
@@ -441,11 +425,11 @@ $displays: 'block' 'flex' 'inline' 'inline-block' 'inline-flex';
441
425
  }
442
426
 
443
427
  .is-rounded {
444
- border-radius: 50% !important;
428
+ border-radius: 9999px !important;
445
429
  }
446
430
 
447
431
  .is-bordered {
448
- border: 1px solid getColor('grey-light');
432
+ border: var(--border);
449
433
  }
450
434
 
451
435
  .is-vertical-paddingless {
@@ -454,15 +438,11 @@ $displays: 'block' 'flex' 'inline' 'inline-block' 'inline-flex';
454
438
  }
455
439
 
456
440
  // Radius
457
- $radius-list: (
458
- 'radius-small': $radius-small,
459
- 'radius': $radius,
460
- 'radius-large': $radius-large,
461
- );
441
+ $radius-list: ['radius-large', 'radius-medium', 'radius-small', 'radius'];
462
442
 
463
- @each $label, $radius-size in $radius-list {
443
+ @each $label in $radius-list {
464
444
  .has-border-#{$label} {
465
- border-radius: $radius-size;
445
+ border-radius: var(--#{$label});
466
446
  }
467
447
  }
468
448
 
@@ -638,15 +618,25 @@ $radius-list: (
638
618
  }
639
619
  }
640
620
 
641
- $positions: (
621
+ $justify-values: (
622
+ 'center': 'center',
623
+ 'end': 'flex-end',
624
+ 'space-between': 'space-between',
625
+ 'space-around': 'space-around',
626
+ 'space-evenly': 'space-evenly',
627
+ 'start': 'flex-start'
628
+ );
629
+
630
+ $align-values: (
642
631
  'center': 'center',
643
- 'start': 'flex-start',
644
632
  'end': 'flex-end',
633
+ 'start': 'flex-start',
634
+ 'stretch': 'stretch'
645
635
  );
646
636
 
647
- @each $justification, $justify-content in $positions {
637
+ @each $justification, $justify-content in $justify-values {
648
638
 
649
- .is-justified-self {
639
+ .is-justified-self-#{$justification} {
650
640
  justify-self: #{$justify-content} !important;
651
641
  }
652
642
 
@@ -795,7 +785,7 @@ $positions: (
795
785
  }
796
786
  }
797
787
 
798
- @each $alignment, $align-items in $positions {
788
+ @each $alignment, $align-items in $align-values {
799
789
  .is-aligned-#{$alignment} {
800
790
  align-items: #{$align-items} !important;
801
791
  }
@@ -35,6 +35,11 @@ p.is-loading,
35
35
  .is-checkradio[type="checkbox"] + label::after {
36
36
  visibility: hidden;
37
37
  }
38
+ &::after {
39
+ @include spinner();
40
+ @include center(1em);
41
+ position: absolute !important;
42
+ }
38
43
 
39
44
  &.field,
40
45
  .field {
@@ -54,11 +59,13 @@ p.is-loading,
54
59
 
55
60
  filter: grayscale(1);
56
61
  cursor: default !important;
62
+ color: transparent !important;
63
+ pointer-events: none;
57
64
 
58
65
  // make the text elements like subtle animated lines
59
66
  @include text-tags {
60
67
  display: inline;
61
- border-radius: 99em;
68
+ border-radius: 9999px;
62
69
  background: currentColor !important;
63
70
  box-decoration-break: clone;
64
71
  font-size: 70%;
@@ -74,7 +81,7 @@ p.is-loading,
74
81
 
75
82
  // we need the headings to have margins AND be inline
76
83
  @include heading-tags {
77
- display: table; // FIXME: well... `@include clearfix;` didn't do the trick
84
+ display: table;
78
85
  }
79
86
 
80
87
  & & {
@@ -42,9 +42,19 @@
42
42
  }
43
43
 
44
44
  a {
45
- cursor: pointer;
45
+ color: unset;
46
46
  text-decoration: none;
47
47
  }
48
+
49
+ a.link {
50
+ color: getColor('font');
51
+ cursor: pointer;
52
+ text-decoration: none;
53
+
54
+ strong {
55
+ color: currentColor;
56
+ }
57
+ }
48
58
 
49
59
  // List
50
60
  ul {
@@ -1,63 +1,82 @@
1
- .accordions#{$suffix} {
1
+ .accordion#{$suffix} {
2
2
  padding-left: 0;
3
3
  padding-right: 0;
4
- margin: $spacing-4 0;
5
4
 
6
- .accordion {
5
+ /* Chrome + Webkit */
6
+ details.accordion-item ::-webkit-details-marker {
7
+ display: none;
8
+ content: "";
9
+ }
10
+
11
+ details.accordion-item summary {
12
+ list-style-image: none;
13
+ }
14
+
15
+ .accordion-item {
7
16
  box-sizing: border-box;
8
17
  display: flex;
9
18
  flex-direction: column;
10
- background-color: invertColor(currentColor, 'accordion');
19
+ background-color: getColor('background');
11
20
  font-size: $size-normal;
12
- border: 1px solid getColor('grey-disabled');
13
- border-radius: 8px;
21
+ border: var(--border);
22
+ border-radius: var(--radius);
14
23
  margin: 8px 0;
15
24
  min-height: 56px;
16
25
  max-height: max-content;
26
+ transition: margin 0.3s;
27
+
28
+ .accordion-header {
29
+ font-weight: bold;
30
+ }
17
31
 
18
32
  .accordion-body {
19
- display: none;
20
33
  padding: $spacing-4;
21
34
  padding-top: 0 !important;
35
+ box-sizing: border-box;
22
36
  }
23
37
 
24
- &.is-active > .accordion-header:first-child, [data-accordion-toggle]:checked ~ .accordion-header {
25
- font-weight: bold;
26
- & .toggle {
27
- &::before {
28
- @include arrow(getColor('font'), 'up');
29
- }
30
- }
38
+ &:has(summary:hover):not(.is-disabled) {
39
+ @include hoverRules();
31
40
  }
32
41
 
33
- &.is-active > .accordion-header:first-child ~ .accordion-body, [data-accordion-toggle]:checked ~ .accordion-body {
34
- display: block;
42
+ &:has(summary:focus-visible) {
43
+ outline: var(--border-active);
44
+ outline-offset: -2px;
35
45
  }
36
46
 
37
- &:hover:not(.is-disabled) {
38
- border: 2px solid getColor('alternate');
47
+ .accordion-header:after {
48
+ max-width: $arrow-size;
49
+ max-height: $arrow-size;
50
+ position: absolute;
51
+ margin-top: 0;
52
+ right: 20px;
53
+ }
39
54
 
40
- .accordion-header {
41
- color: getColor('alternate');
42
- padding: 15px;
43
- }
55
+ &[open]:not([aria-disabled="true"]) .accordion-header:after {
56
+ transform: rotate(180deg);
57
+ }
44
58
 
45
- .accordion-body {
46
- padding: 15px;
47
- padding-top: 1px !important;
48
- }
59
+ .accordion-header:after, &[aria-disabled="true"] .accordion-header:after {
60
+ @include arrow();
61
+ transition: transform 0.3s;
49
62
  }
50
63
 
51
- &:not(:first-child) {
52
- .accordion-header {
53
- border-radius: 0;
54
- }
64
+ &[aria-disabled="true"] .accordion-body {
65
+ display: none !important;
55
66
  }
56
67
 
57
- &:not(:last-child) {
58
- .accordion-content {
59
- border-radius: 0;
68
+ .accordion-header {
69
+ border-radius: var(--radius);
70
+ transition: margin 300ms ease-out;
71
+
72
+ &:focus-visible{
73
+ outline: none;
60
74
  }
75
+
76
+ }
77
+
78
+ &[open] .accordion-header {
79
+ margin-bottom: 4px;
61
80
  }
62
81
 
63
82
  &:first-child {
@@ -68,29 +87,13 @@
68
87
  margin-bottom: 0;
69
88
  }
70
89
 
71
- &.is-disabled {
72
- background-color: getColor('bg-disabled');
73
- cursor: no-drop;
74
- .accordion-header,
75
- .accordion-header .toggle::before {
76
- color: getColor('disabled');
77
- cursor: no-drop;
78
- }
79
-
80
- &.is-active {
81
- .accordion-header:not(input) + .accordion-body {
82
- color: getColor('grey');
83
- }
84
- }
85
- }
86
-
87
90
  .accordion-header {
88
91
  align-items: center;
89
92
  display: flex;
90
93
  position: relative;
91
94
  height: auto;
92
95
  cursor: pointer;
93
- padding: $spacing-4;
96
+ padding: $spacing-4 calc($spacing-4 * 2 + $arrow-size) $spacing-4 $spacing-4;
94
97
 
95
98
  &.is-grouped {
96
99
  > *:first-child {
@@ -112,52 +115,15 @@
112
115
  }
113
116
  }
114
117
 
115
- .toggle {
116
- -moz-appearance: none;
117
- -webkit-appearance: none;
118
- user-select: none;
119
- border: none;
120
- background-color: transparent;
121
- cursor: pointer;
122
- display: inline-block;
123
- flex-grow: 0;
124
- flex-shrink: 0;
125
- height: 20px;
126
- width: 20px;
127
- max-height: 20px;
128
- max-width: 20px;
129
- min-height: 20px;
130
- min-width: 20px;
131
- outline-offset: 8px;
132
- position: relative;
133
- vertical-align: top;
134
- margin-left: auto;
135
- padding: 0 0 0 10px;
136
-
137
- &::after {
138
- display: none;
139
- }
140
-
141
- &::before {
142
- @include arrow(getColor('grey-dark'));
143
- top: -0.25em;
144
- left: 0;
145
- right: 0;
146
- bottom: 0;
147
- width: 15px;
148
- height: 5px;
149
- margin: auto;
150
- }
151
- }
152
-
153
118
  p {
154
119
  margin-bottom: 0;
155
120
  }
156
121
 
157
122
  & + .accordion-body {
158
123
  overflow-y: hidden;
124
+
159
125
  .accordion-content {
160
- border-radius: $radius;
126
+ border-radius: var(--radius);
161
127
  margin-bottom: 10px;
162
128
 
163
129
  @include mobile() {
@@ -0,0 +1,38 @@
1
+ @import "../utilities/spacing";
2
+
3
+ .is-autocomplete-container {
4
+ position: relative;
5
+
6
+ .is-autocomplete {
7
+ .autocomplete-menu {
8
+ display: none;
9
+ }
10
+
11
+ &.is-active {
12
+ .autocomplete-menu {
13
+ display: block;
14
+ border: var(--border);
15
+ padding: calc($spacing-1 + 1px) calc($spacing-2 + 2px);
16
+ border-radius: 4px;
17
+ max-height: 220px;
18
+ overflow-y: auto;
19
+ background-color: getColor('background');
20
+ z-index: 10000;
21
+ }
22
+
23
+ .autocomplete-item {
24
+ cursor: pointer;
25
+ padding: calc($spacing-1 - 0.25px) calc($spacing-1 + 1px);
26
+
27
+ &.is-active, &[data-autocomplete-item-hover] {
28
+ @include hoverRules();
29
+ margin-left: calc(2px - $spacing-3);
30
+ margin-right: calc(2px - $spacing-3);
31
+ border-top: 1px solid getColor('neutral-fade');
32
+ border-bottom: 1px solid getColor('neutral-fade');
33
+ padding: calc($spacing-1 - 1.25px) calc($spacing-4 - 1px);
34
+ }
35
+ }
36
+ }
37
+ }
38
+ }