| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495 |
- @use 'sass:map';
-
- @use 'mixins/mixins' as *;
- @use 'mixins/utils' as *;
- @use 'common/var' as *;
-
- @include b(autocomplete) {
- @include set-component-css-var('input', $input);
- }
-
- @include b(autocomplete) {
- width: getCssVar('input-width');
- position: relative;
- display: inline-block;
-
- @include e(popper) {
- @include picker-popper(
- getCssVar('bg-color', 'overlay'),
- 1px solid getCssVar('border-color', 'light'),
- getCssVar('box-shadow', 'light')
- );
- }
- }
-
- @include b(autocomplete-suggestion) {
- border-radius: getCssVar('border-radius', 'base');
- box-sizing: border-box;
-
- @include e(header) {
- padding: 10px;
- border-bottom: 1px solid getCssVar('border-color', 'lighter');
- }
-
- @include e(footer) {
- padding: 10px;
- border-top: 1px solid getCssVar('border-color', 'lighter');
- }
-
- @include e(wrap) {
- max-height: 280px;
- padding: 10px 0;
- box-sizing: border-box;
- }
-
- @include e(list) {
- margin: 0;
- padding: 0;
- }
-
- & li {
- padding: 0 20px;
- margin: 0;
- line-height: 34px;
- cursor: pointer;
- color: getCssVar('text-color', 'regular');
- font-size: getCssVar('font-size', 'base');
- list-style: none;
- text-align: left;
- @include utils-ellipsis;
-
- &:hover {
- background-color: map.get($select-option, 'hover-background');
- }
-
- &.highlighted {
- background-color: map.get($select-option, 'hover-background');
- }
-
- &.divider {
- margin-top: 6px;
- border-top: 1px solid getCssVar('color', 'black');
- }
-
- &.divider:last-child {
- margin-bottom: -6px;
- }
- }
-
- @include when(loading) {
- li {
- cursor: default;
- height: 100px;
- display: flex;
- align-items: center;
- justify-content: center;
-
- font-size: 20px;
- color: getCssVar('text-color', 'secondary');
-
- &:hover {
- background-color: getCssVar('bg-color', 'overlay');
- }
- }
- }
- }
|