@trilogy-ds/styles 0.0.1-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.
- package/README.md +47 -0
- package/dist/default/assets/icons/all/alert.svg +1 -0
- package/dist/default/assets/icons/all/arrow-down.svg +1 -0
- package/dist/default/assets/icons/all/arrow-left.svg +1 -0
- package/dist/default/assets/icons/all/arrow-right.svg +1 -0
- package/dist/default/assets/icons/all/arrow-up.svg +1 -0
- package/dist/default/assets/icons/all/attachment.svg +1 -0
- package/dist/default/assets/icons/all/bell.svg +1 -0
- package/dist/default/assets/icons/all/calendar.svg +1 -0
- package/dist/default/assets/icons/all/check-circle.svg +1 -0
- package/dist/default/assets/icons/all/check.svg +1 -0
- package/dist/default/assets/icons/all/exclamation-circle.svg +1 -0
- package/dist/default/assets/icons/all/eye-slash.svg +1 -0
- package/dist/default/assets/icons/all/eye.svg +1 -0
- package/dist/default/assets/icons/all/file-attached.svg +1 -0
- package/dist/default/assets/icons/all/infos-circle.svg +1 -0
- package/dist/default/assets/icons/all/micro.svg +1 -0
- package/dist/default/assets/icons/all/search.svg +1 -0
- package/dist/default/assets/icons/all/times.svg +1 -0
- package/dist/default/assets/icons/all/trash.svg +1 -0
- package/dist/default/trilogy-mangled.css +1 -0
- package/dist/default/trilogy-partials.css +1 -0
- package/dist/default/trilogy.css +1 -0
- package/framework/src/_all.scss +8 -0
- package/framework/src/base/_all.scss +9 -0
- package/framework/src/base/_color.scss +7 -0
- package/framework/src/base/_elements.scss +34 -0
- package/framework/src/base/_fonts.scss +2 -0
- package/framework/src/base/_generic.scss +76 -0
- package/framework/src/base/_helpers.scss +875 -0
- package/framework/src/base/_loading.scss +109 -0
- package/framework/src/base/_reset.scss +148 -0
- package/framework/src/components/_accordion.scss +144 -0
- package/framework/src/components/_autocomplete.scss +38 -0
- package/framework/src/components/_autolayout.scss +332 -0
- package/framework/src/components/_badge.scss +87 -0
- package/framework/src/components/_box.scss +168 -0
- package/framework/src/components/_breadcrumb.scss +36 -0
- package/framework/src/components/_button.scss +79 -0
- package/framework/src/components/_calendar.scss +129 -0
- package/framework/src/components/_card.scss +244 -0
- package/framework/src/components/_checkbox.scss +71 -0
- package/framework/src/components/_chips.scss +84 -0
- package/framework/src/components/_container.scss +69 -0
- package/framework/src/components/_countdown.scss +57 -0
- package/framework/src/components/_date-picker.scss +58 -0
- package/framework/src/components/_divider.scss +52 -0
- package/framework/src/components/_dropdown.scss +195 -0
- package/framework/src/components/_fab.scss +47 -0
- package/framework/src/components/_flex-box.scss +994 -0
- package/framework/src/components/_icon.scss +384 -0
- package/framework/src/components/_image.scss +69 -0
- package/framework/src/components/_index.scss +51 -0
- package/framework/src/components/_link.scss +58 -0
- package/framework/src/components/_list.scss +66 -0
- package/framework/src/components/_loader.scss +126 -0
- package/framework/src/components/_modal.scss +232 -0
- package/framework/src/components/_otp.scss +73 -0
- package/framework/src/components/_pagination.scss +83 -0
- package/framework/src/components/_popover.scss +340 -0
- package/framework/src/components/_price.scss +184 -0
- package/framework/src/components/_product-tour.scss +129 -0
- package/framework/src/components/_prompt.scss +125 -0
- package/framework/src/components/_radio.scss +82 -0
- package/framework/src/components/_range.scss +85 -0
- package/framework/src/components/_scroll-view.scss +19 -0
- package/framework/src/components/_segmented-control.scss +62 -0
- package/framework/src/components/_select.scss +131 -0
- package/framework/src/components/_stepper.scss +217 -0
- package/framework/src/components/_sticker.scss +148 -0
- package/framework/src/components/_switch.scss +115 -0
- package/framework/src/components/_table.scss +244 -0
- package/framework/src/components/_tabs.scss +228 -0
- package/framework/src/components/_tag.scss +114 -0
- package/framework/src/components/_text.scss +55 -0
- package/framework/src/components/_textarea.scss +46 -0
- package/framework/src/components/_timeline.scss +282 -0
- package/framework/src/components/_title.scss +151 -0
- package/framework/src/components/alert/_alert.scss +94 -0
- package/framework/src/components/alert/_index.scss +2 -0
- package/framework/src/components/alert/_toaster.scss +124 -0
- package/framework/src/components/input/_entry.scss +135 -0
- package/framework/src/components/input/_form.scss +602 -0
- package/framework/src/components/input/_index.scss +4 -0
- package/framework/src/components/input/_input-gauge.scss +44 -0
- package/framework/src/components/input/_input-icons.scss +55 -0
- package/framework/src/components/progress/_index.scss +2 -0
- package/framework/src/components/progress/_progress-radial.scss +28 -0
- package/framework/src/components/progress/_progress.scss +223 -0
- package/framework/src/elements/_index.scss +5 -0
- package/framework/src/elements/_other.scss +3 -0
- package/framework/src/elements/_plus-symbol.scss +32 -0
- package/framework/src/grid/_all.scss +3 -0
- package/framework/src/grid/_columns.scss +467 -0
- package/framework/src/grid/_rows.scss +54 -0
- package/framework/src/grid/_tiles.scss +78 -0
- package/framework/src/layout/_all.scss +5 -0
- package/framework/src/layout/_hero.scss +146 -0
- package/framework/src/layout/_main.scss +36 -0
- package/framework/src/layout/_section.scss +46 -0
- package/framework/src/theming/_all.scss +3 -0
- package/framework/src/theming/buttons_partial.scss +32 -0
- package/framework/src/theming/common_partials.scss +10 -0
- package/framework/src/theming/links_partial.scss +20 -0
- package/framework/src/trilogy-core.scss +16 -0
- package/framework/src/trilogy-mangled.scss +14 -0
- package/framework/src/trilogy-namespaced.scss +14 -0
- package/framework/src/trilogy.scss +8 -0
- package/framework/src/utilities/_a11y.scss +13 -0
- package/framework/src/utilities/_all.scss +13 -0
- package/framework/src/utilities/_animations.scss +71 -0
- package/framework/src/utilities/_background.scss +21 -0
- package/framework/src/utilities/_controls.scss +56 -0
- package/framework/src/utilities/_derived-variables.scss +1 -0
- package/framework/src/utilities/_functions.scss +94 -0
- package/framework/src/utilities/_initial-variables.scss +10 -0
- package/framework/src/utilities/_post.scss +6 -0
- package/framework/src/utilities/_pre.scss +8 -0
- package/framework/src/utilities/_spacing.scss +10 -0
- package/framework/src/utilities/_tools.scss +3 -0
- package/framework/src/utilities/mixins/_arrow.scss +21 -0
- package/framework/src/utilities/mixins/_delete.scss +86 -0
- package/framework/src/utilities/mixins/_index.scss +11 -0
- package/framework/src/utilities/mixins/_markup-group.scss +27 -0
- package/framework/src/utilities/mixins/_mixins.scss +294 -0
- package/framework/src/utilities/mixins/_overlay.scss +7 -0
- package/framework/src/utilities/mixins/_pattern.scss +10 -0
- package/framework/src/utilities/mixins/_responsiveness.scss +174 -0
- package/framework/src/utilities/mixins/_spinner.scss +12 -0
- package/framework/src/utilities/mixins/_state.scss +25 -0
- package/framework/src/utilities/mixins/_unselectable.scss +10 -0
- package/framework/src/utilities/mixins/_utils.scss +24 -0
- package/framework/src/utilities/variables/_animation.scss +2 -0
- package/framework/src/utilities/variables/_color.scss +85 -0
- package/framework/src/utilities/variables/_font.scss +97 -0
- package/framework/src/utilities/variables/_index.scss +6 -0
- package/framework/src/utilities/variables/_responsiveness.scss +7 -0
- package/framework/src/utilities/variables/_shadow.scss +3 -0
- package/framework/src/utilities/variables/_zindex.scss +14 -0
- package/package.json +28 -0
- package/themes/default/src/_all.scss +1 -0
- package/themes/default/src/assets.scss +11 -0
- package/themes/default/src/utilities/_all.scss +0 -0
- package/themes/default/src/utilities/_post.scss +0 -0
- package/themes/default/src/utilities/_pre.scss +3 -0
|
@@ -0,0 +1,109 @@
|
|
|
1
|
+
@use "sass:math";
|
|
2
|
+
|
|
3
|
+
@keyframes loading-pulse {
|
|
4
|
+
100% {
|
|
5
|
+
opacity: .1;
|
|
6
|
+
}
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
@mixin text-blocks() {
|
|
10
|
+
p.suptitle {
|
|
11
|
+
@content;
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
@mixin loading {
|
|
16
|
+
&.is-loading,
|
|
17
|
+
.is-loading & {
|
|
18
|
+
@content;
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
p.is-loading,
|
|
23
|
+
.is-loading p {
|
|
24
|
+
@include text-tags {
|
|
25
|
+
visibility: hidden;
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
.is-loading {
|
|
30
|
+
@include unselectable;
|
|
31
|
+
|
|
32
|
+
&.is-checkradio[type="checkbox"] + label::before,
|
|
33
|
+
.is-checkradio[type="checkbox"] + label::before,
|
|
34
|
+
&.is-checkradio[type="checkbox"] + label::after,
|
|
35
|
+
.is-checkradio[type="checkbox"] + label::after {
|
|
36
|
+
visibility: hidden;
|
|
37
|
+
}
|
|
38
|
+
&::after {
|
|
39
|
+
@include spinner();
|
|
40
|
+
@include center(1em);
|
|
41
|
+
position: absolute !important;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
&.field,
|
|
45
|
+
.field {
|
|
46
|
+
.icon {
|
|
47
|
+
display: none;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
.input {
|
|
51
|
+
border: 0;
|
|
52
|
+
pointer-events: none;
|
|
53
|
+
|
|
54
|
+
&::placeholder {
|
|
55
|
+
color: transparent;
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
filter: grayscale(1);
|
|
61
|
+
cursor: default !important;
|
|
62
|
+
color: transparent !important;
|
|
63
|
+
pointer-events: none;
|
|
64
|
+
|
|
65
|
+
// make the text elements like subtle animated lines
|
|
66
|
+
@include text-tags {
|
|
67
|
+
display: inline;
|
|
68
|
+
border-radius: 9999px;
|
|
69
|
+
background: currentColor !important;
|
|
70
|
+
box-decoration-break: clone;
|
|
71
|
+
font-size: 70%;
|
|
72
|
+
letter-spacing: 2px;
|
|
73
|
+
-webkit-animation: loading-pulse 1.5s ease-out infinite alternate;
|
|
74
|
+
-moz-animation: none;
|
|
75
|
+
opacity: .2;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
@include text-blocks {
|
|
79
|
+
display: block;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
// we need the headings to have margins AND be inline
|
|
83
|
+
@include heading-tags {
|
|
84
|
+
display: table;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
& & {
|
|
88
|
+
@include disable-animation;
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
// skeleton transitions
|
|
93
|
+
//
|
|
94
|
+
.is-loaded {
|
|
95
|
+
/**
|
|
96
|
+
The shape of the animation are designed so that the final state appears
|
|
97
|
+
as quick as possible. This should enhance the speed index
|
|
98
|
+
*/
|
|
99
|
+
@include text-tags {
|
|
100
|
+
transition-duration: math.div($animation-duration, 2);
|
|
101
|
+
transition-timing-function: $animation-timing-function;
|
|
102
|
+
transition-property: font-size, letter-spacing;
|
|
103
|
+
|
|
104
|
+
/**
|
|
105
|
+
Animations are too slow on FF. We choose to disable it until they fix the problem
|
|
106
|
+
*/
|
|
107
|
+
-moz-transition: none;
|
|
108
|
+
}
|
|
109
|
+
}
|
|
@@ -0,0 +1,148 @@
|
|
|
1
|
+
/*! minireset.css v0.0.6 | MIT License | github.com/jgthms/minireset.css */
|
|
2
|
+
// Blocks
|
|
3
|
+
.reset-wrap {
|
|
4
|
+
p,
|
|
5
|
+
ol,
|
|
6
|
+
ul,
|
|
7
|
+
li,
|
|
8
|
+
dl,
|
|
9
|
+
dt,
|
|
10
|
+
dd,
|
|
11
|
+
blockquote,
|
|
12
|
+
figure,
|
|
13
|
+
fieldset,
|
|
14
|
+
legend,
|
|
15
|
+
textarea,
|
|
16
|
+
pre,
|
|
17
|
+
iframe,
|
|
18
|
+
hr,
|
|
19
|
+
h1,
|
|
20
|
+
h2,
|
|
21
|
+
h3,
|
|
22
|
+
h4,
|
|
23
|
+
h5,
|
|
24
|
+
h6 {
|
|
25
|
+
margin: 0;
|
|
26
|
+
padding: 0;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
// Headings
|
|
30
|
+
h1,
|
|
31
|
+
h2,
|
|
32
|
+
h3,
|
|
33
|
+
h4,
|
|
34
|
+
h5,
|
|
35
|
+
h6 {
|
|
36
|
+
font-size: 100%;
|
|
37
|
+
font-weight: normal;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
p:not(:last-child) {
|
|
41
|
+
margin-bottom: 10px;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
a {
|
|
45
|
+
color: unset;
|
|
46
|
+
text-decoration: none;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
a.link {
|
|
50
|
+
color: getColor('font');
|
|
51
|
+
cursor: pointer;
|
|
52
|
+
text-decoration: none;
|
|
53
|
+
|
|
54
|
+
strong {
|
|
55
|
+
color: currentColor;
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
// List
|
|
60
|
+
ul {
|
|
61
|
+
list-style: none;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
// Form
|
|
65
|
+
button,
|
|
66
|
+
input,
|
|
67
|
+
select,
|
|
68
|
+
textarea {
|
|
69
|
+
margin: 0;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
// Media
|
|
73
|
+
img,
|
|
74
|
+
audio,
|
|
75
|
+
video {
|
|
76
|
+
height: auto;
|
|
77
|
+
max-width: 100%;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
// Iframe
|
|
81
|
+
iframe {
|
|
82
|
+
border: 0;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
// Table
|
|
86
|
+
table {
|
|
87
|
+
border-collapse: collapse;
|
|
88
|
+
border-spacing: 0;
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
td,
|
|
92
|
+
th {
|
|
93
|
+
padding: 0;
|
|
94
|
+
text-align: left;
|
|
95
|
+
|
|
96
|
+
&:not([align]) {
|
|
97
|
+
text-align: left;
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
span {
|
|
102
|
+
font-style: inherit;
|
|
103
|
+
font-weight: inherit;
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
strong {
|
|
107
|
+
color: inherit;
|
|
108
|
+
font-weight: $weight-bold;
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
sup {
|
|
112
|
+
line-height: 0;
|
|
113
|
+
position: relative;
|
|
114
|
+
vertical-align: baseline;
|
|
115
|
+
top: -.4em;
|
|
116
|
+
font-size: .7em;
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
small {
|
|
120
|
+
font-size: 0.875em;
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
code {
|
|
124
|
+
font-size: $size-7;
|
|
125
|
+
padding: 4px 8px;
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
code,
|
|
129
|
+
pre {
|
|
130
|
+
-moz-osx-font-smoothing: auto;
|
|
131
|
+
-webkit-font-smoothing: auto;
|
|
132
|
+
font-family: $family-code;
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
pre {
|
|
136
|
+
@include overflow-touch;
|
|
137
|
+
font-size: 0.875em;
|
|
138
|
+
overflow-x: auto;
|
|
139
|
+
padding: 12.5px 15px;
|
|
140
|
+
white-space: pre;
|
|
141
|
+
word-wrap: normal;
|
|
142
|
+
|
|
143
|
+
code {
|
|
144
|
+
font-size: 1em;
|
|
145
|
+
padding: 0;
|
|
146
|
+
}
|
|
147
|
+
}
|
|
148
|
+
}
|
|
@@ -0,0 +1,144 @@
|
|
|
1
|
+
.accordion#{$suffix} {
|
|
2
|
+
padding-left: 0;
|
|
3
|
+
padding-right: 0;
|
|
4
|
+
|
|
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 {
|
|
16
|
+
box-sizing: border-box;
|
|
17
|
+
display: flex;
|
|
18
|
+
flex-direction: column;
|
|
19
|
+
background-color: getColor('background');
|
|
20
|
+
font-size: $size-normal;
|
|
21
|
+
border: var(--border);
|
|
22
|
+
border-radius: var(--radius);
|
|
23
|
+
margin: 8px 0;
|
|
24
|
+
min-height: 56px;
|
|
25
|
+
max-height: max-content;
|
|
26
|
+
transition: margin 0.3s;
|
|
27
|
+
|
|
28
|
+
.accordion-header {
|
|
29
|
+
font-weight: bold;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
.accordion-body {
|
|
33
|
+
padding: $spacing-4;
|
|
34
|
+
padding-top: 0 !important;
|
|
35
|
+
box-sizing: border-box;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
&:has(summary:hover):not(.is-disabled) {
|
|
39
|
+
@include hoverRules();
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
&:has(summary:focus-visible) {
|
|
43
|
+
outline: var(--border-active);
|
|
44
|
+
outline-offset: -2px;
|
|
45
|
+
}
|
|
46
|
+
|
|
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
|
+
}
|
|
54
|
+
|
|
55
|
+
&[open]:not([aria-disabled="true"]) .accordion-header:after {
|
|
56
|
+
transform: rotate(180deg);
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
.accordion-header:after, &[aria-disabled="true"] .accordion-header:after {
|
|
60
|
+
@include arrow();
|
|
61
|
+
transition: transform 0.3s;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
&[aria-disabled="true"] .accordion-body {
|
|
65
|
+
display: none !important;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
.accordion-header {
|
|
69
|
+
border-radius: var(--radius);
|
|
70
|
+
transition: margin 300ms ease-out;
|
|
71
|
+
|
|
72
|
+
&:focus-visible{
|
|
73
|
+
outline: none;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
&[open] .accordion-header {
|
|
79
|
+
margin-bottom: 4px;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
&:first-child {
|
|
83
|
+
margin-top: 0;
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
&:last-child {
|
|
87
|
+
margin-bottom: 0;
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
.accordion-header {
|
|
91
|
+
align-items: center;
|
|
92
|
+
display: flex;
|
|
93
|
+
position: relative;
|
|
94
|
+
height: auto;
|
|
95
|
+
cursor: pointer;
|
|
96
|
+
padding: $spacing-4 calc($spacing-4 * 2 + $arrow-size) $spacing-4 $spacing-4;
|
|
97
|
+
|
|
98
|
+
&.is-grouped {
|
|
99
|
+
> *:first-child {
|
|
100
|
+
flex-grow: 0;
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
.field:not(:last-child) {
|
|
105
|
+
margin-bottom: 0;
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
.accordion-title {
|
|
109
|
+
.title {
|
|
110
|
+
margin: 0;
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
@include mobile() {
|
|
114
|
+
flex-grow: 1;
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
p {
|
|
119
|
+
margin-bottom: 0;
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
& + .accordion-body {
|
|
123
|
+
overflow-y: hidden;
|
|
124
|
+
|
|
125
|
+
.accordion-content {
|
|
126
|
+
border-radius: var(--radius);
|
|
127
|
+
margin-bottom: 10px;
|
|
128
|
+
|
|
129
|
+
@include mobile() {
|
|
130
|
+
padding: 15px;
|
|
131
|
+
}
|
|
132
|
+
}
|
|
133
|
+
}
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
.accordion-body {
|
|
137
|
+
.accordion-content,
|
|
138
|
+
p:last-child {
|
|
139
|
+
margin-bottom: 0 !important;
|
|
140
|
+
padding: 0 !important;
|
|
141
|
+
}
|
|
142
|
+
}
|
|
143
|
+
}
|
|
144
|
+
}
|
|
@@ -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
|
+
}
|