|
1 | | -.custom-select__button, |
2 | | -.tree-select__button { |
3 | | - @apply pl-2 |
| 1 | +@layer components { |
| 2 | + .custom-select__button, |
| 3 | + .tree-select__button { |
| 4 | + @apply pl-2 |
4 | 5 | pr-1 |
5 | 6 | border |
6 | 7 | border-blue-gray-300 |
|
11 | 12 | table-fixed |
12 | 13 | h-[38px] |
13 | 14 | w-full; |
14 | | -} |
| 15 | + } |
15 | 16 |
|
16 | | -.custom-select__button.disabled, |
17 | | -.tree-select__button.disabled { |
18 | | - @apply bg-blue-gray-50 cursor-not-allowed; |
19 | | -} |
| 17 | + .custom-select__button.disabled, |
| 18 | + .tree-select__button.disabled { |
| 19 | + @apply bg-blue-gray-50 cursor-not-allowed; |
| 20 | + } |
20 | 21 |
|
21 | | -.custom-select-menu, |
22 | | -.tree-select-menu { |
23 | | - @apply absolute |
| 22 | + .custom-select-menu, |
| 23 | + .tree-select-menu { |
| 24 | + @apply absolute |
24 | 25 | origin-top-right |
25 | 26 | right-0 |
26 | 27 | rounded-md |
|
29 | 30 | w-full |
30 | 31 | border |
31 | 32 | border-blue-300; |
32 | | -} |
33 | | - |
34 | | -.custom-select-menu[data-popper-placement="top-start"], |
35 | | -.tree-select-menu[data-popper-placement="top-start"] { |
36 | | - @apply rounded-b-none border-b-0; |
37 | | -} |
38 | | - |
39 | | -.custom-select-menu[data-popper-placement="top-start"] .custom-select-menu__container, |
40 | | -.tree-select-menu[data-popper-placement="top-start"] .tree-select-menu__container { |
41 | | - @apply rounded-b-none; |
42 | | -} |
43 | | - |
44 | | -.custom-select-menu[data-popper-placement="bottom-start"], |
45 | | -.tree-select-menu[data-popper-placement="bottom-start"] { |
46 | | - @apply rounded-t-none border-t-0; |
47 | | -} |
48 | | - |
49 | | -.custom-select-menu[data-popper-placement="bottom-start"] .custom-select-menu__container, |
50 | | -.tree-select-menu[data-popper-placement="bottom-start"] .tree-select-menu__container { |
51 | | - @apply rounded-t-none; |
52 | | -} |
53 | | - |
54 | | -.custom-select-menu:not(.invisible) + .custom-select__button, |
55 | | -.tree-select-menu:not(.invisible) + .tree-select__button { |
56 | | - @apply border-blue-300; |
57 | | -} |
58 | | - |
59 | | -.custom-select-menu:not(.invisible)[data-popper-placement="bottom-start"] + .custom-select__button, |
60 | | -.tree-select-menu:not(.invisible)[data-popper-placement="bottom-start"] + .tree-select__button { |
61 | | - @apply rounded-b-none border-b-blue-gray-200; |
62 | | -} |
63 | | - |
64 | | -.custom-select-menu:not(.invisible)[data-popper-placement="top-start"] + .custom-select__button, |
65 | | -.tree-select-menu:not(.invisible)[data-popper-placement="top-start"] + .tree-select__button { |
66 | | - @apply rounded-t-none border-t-blue-gray-200; |
67 | | -} |
68 | | - |
69 | | -.custom-select-option, |
70 | | -.tree-select-option { |
71 | | - @apply w-full focus:outline-none; |
72 | | -} |
73 | | - |
74 | | -.custom-select-option__container, |
75 | | -.tree-select-option__container { |
76 | | - @apply px-2.5 text-sm text-blue-gray-600 flex items-center; |
77 | | -} |
78 | | - |
79 | | -.custom-select-option:not(.disabled).has-focus > .custom-select-option__container, |
80 | | -.tree-select-option:not(.disabled).has-focus > .tree-select-option__container{ |
81 | | - @apply bg-blue-gray-100 outline-none; |
82 | | -} |
83 | | - |
84 | | -.custom-select-option.disabled > .custom-select-option__container, |
85 | | -.tree-select-option.disabled > .tree-select-option__container { |
86 | | - @apply bg-gray-100 opacity-50 cursor-not-allowed; |
87 | | -} |
88 | | - |
89 | | -.custom-select-option__label, |
90 | | -.tree-select-option__label { |
91 | | - @apply py-3.5; |
92 | | -} |
93 | | - |
94 | | -.custom-select-option--opt-group .custom-select-option__container { |
95 | | - @apply text-blue-gray-400 font-semibold; |
96 | | -} |
97 | | - |
98 | | -.custom-select-option--opt-group .custom-select-option__label { |
99 | | - @apply py-2; |
100 | | -} |
101 | | - |
102 | | -.custom-select-option--opt-group:not(:first-child) { |
103 | | - @apply border-t border-t-blue-gray-300; |
104 | | -} |
105 | | - |
106 | | -.custom-select-option.selected > .custom-select-option__container, |
107 | | -.tree-select-option.selected > .tree-select-option__container { |
108 | | - @apply bg-blue-200 font-semibold; |
| 33 | + } |
| 34 | + |
| 35 | + .custom-select-menu[data-popper-placement="top-start"], |
| 36 | + .tree-select-menu[data-popper-placement="top-start"] { |
| 37 | + @apply rounded-b-none border-b-0; |
| 38 | + } |
| 39 | + |
| 40 | + .custom-select-menu[data-popper-placement="top-start"] .custom-select-menu__container, |
| 41 | + .tree-select-menu[data-popper-placement="top-start"] .tree-select-menu__container { |
| 42 | + @apply rounded-b-none; |
| 43 | + } |
| 44 | + |
| 45 | + .custom-select-menu[data-popper-placement="bottom-start"], |
| 46 | + .tree-select-menu[data-popper-placement="bottom-start"] { |
| 47 | + @apply rounded-t-none border-t-0; |
| 48 | + } |
| 49 | + |
| 50 | + .custom-select-menu[data-popper-placement="bottom-start"] .custom-select-menu__container, |
| 51 | + .tree-select-menu[data-popper-placement="bottom-start"] .tree-select-menu__container { |
| 52 | + @apply rounded-t-none; |
| 53 | + } |
| 54 | + |
| 55 | + .custom-select-menu:not(.invisible) + .custom-select__button, |
| 56 | + .tree-select-menu:not(.invisible) + .tree-select__button { |
| 57 | + @apply border-blue-300; |
| 58 | + } |
| 59 | + |
| 60 | + .custom-select-menu:not(.invisible)[data-popper-placement="bottom-start"] + .custom-select__button, |
| 61 | + .tree-select-menu:not(.invisible)[data-popper-placement="bottom-start"] + .tree-select__button { |
| 62 | + @apply rounded-b-none border-b-blue-gray-200; |
| 63 | + } |
| 64 | + |
| 65 | + .custom-select-menu:not(.invisible)[data-popper-placement="top-start"] + .custom-select__button, |
| 66 | + .tree-select-menu:not(.invisible)[data-popper-placement="top-start"] + .tree-select__button { |
| 67 | + @apply rounded-t-none border-t-blue-gray-200; |
| 68 | + } |
| 69 | + |
| 70 | + .custom-select-option, |
| 71 | + .tree-select-option { |
| 72 | + @apply w-full focus:outline-none; |
| 73 | + } |
| 74 | + |
| 75 | + .custom-select-option__container, |
| 76 | + .tree-select-option__container { |
| 77 | + @apply px-2.5 text-sm text-blue-gray-600 flex items-center; |
| 78 | + } |
| 79 | + |
| 80 | + .custom-select-option:not(.disabled).has-focus > .custom-select-option__container, |
| 81 | + .tree-select-option:not(.disabled).has-focus > .tree-select-option__container{ |
| 82 | + @apply bg-blue-gray-100 outline-none; |
| 83 | + } |
| 84 | + |
| 85 | + .custom-select-option.disabled > .custom-select-option__container, |
| 86 | + .tree-select-option.disabled > .tree-select-option__container { |
| 87 | + @apply bg-gray-100 opacity-50 cursor-not-allowed; |
| 88 | + } |
| 89 | + |
| 90 | + .custom-select-option__label, |
| 91 | + .tree-select-option__label { |
| 92 | + @apply py-3.5; |
| 93 | + } |
| 94 | + |
| 95 | + .custom-select-option--opt-group .custom-select-option__container { |
| 96 | + @apply text-blue-gray-400 font-semibold; |
| 97 | + } |
| 98 | + |
| 99 | + .custom-select-option--opt-group .custom-select-option__label { |
| 100 | + @apply py-2; |
| 101 | + } |
| 102 | + |
| 103 | + .custom-select-option--opt-group:not(:first-child) { |
| 104 | + @apply border-t border-t-blue-gray-300; |
| 105 | + } |
| 106 | + |
| 107 | + .custom-select-option.selected > .custom-select-option__container, |
| 108 | + .tree-select-option.selected > .tree-select-option__container { |
| 109 | + @apply bg-blue-200 font-semibold; |
| 110 | + } |
109 | 111 | } |
0 commit comments