|
4 | 4 | @layer components { |
5 | 5 | /* standard button */ |
6 | 6 | .btn { |
7 | | - @apply relative type__nav border__button--radius !color__button-primary border__button animation-500 inline-flex w-auto cursor-pointer items-center justify-center overflow-hidden px-6 py-2 text-center animation-300 !no-underline h-[44px]; |
| 7 | + @apply type__nav border__button--radius !color__button-primary border__button animation-500 animation-300 relative inline-flex h-[44px] w-auto cursor-pointer items-center justify-center overflow-hidden px-6 py-2 text-center !no-underline; |
8 | 8 | text-transform: var(--type__button-capiliziation) !important; |
9 | 9 |
|
10 | 10 | * { |
|
13 | 13 | } |
14 | 14 |
|
15 | 15 | &__content { |
16 | | - @apply flex items-center type__nav; |
| 16 | + @apply type__nav flex items-center; |
17 | 17 | } |
18 | 18 |
|
19 | 19 | /* states */ |
|
27 | 27 | } |
28 | 28 | &--disabled, |
29 | 29 | &:disabled { |
30 | | - @apply opacity-50 cursor-not-allowed; |
| 30 | + @apply cursor-not-allowed opacity-50; |
31 | 31 | } |
32 | 32 |
|
33 | 33 | /* sizes */ |
34 | 34 | &--small { |
35 | | - @apply h-auto px-4 type--small max-h-[44px]; |
| 35 | + @apply type--small h-auto max-h-[44px] px-4; |
36 | 36 | } |
37 | 37 | &--small > * { |
38 | 38 | @apply type--small; |
39 | 39 | } |
40 | 40 | &--smaller { |
41 | | - @apply h-auto px-4 py-1 type--smaller max-h-[44px]; |
| 41 | + @apply type--smaller h-auto max-h-[44px] px-4 py-1; |
42 | 42 | } |
43 | 43 | &--smaller > * { |
44 | 44 | @apply type--smaller; |
45 | 45 | } |
46 | 46 | &--big { |
47 | | - @apply py-3 type--big px-9; |
| 47 | + @apply type--big px-9 py-3; |
48 | 48 | } |
49 | 49 | &--big > * { |
50 | 50 | @apply type--big; |
|
66 | 66 | &--transparent { |
67 | 67 | @apply !color__button-transparent; |
68 | 68 | } |
69 | | - &--diff{ |
| 69 | + &--diff { |
70 | 70 | background-color: #fff; |
71 | 71 | border-color: #fff; |
72 | 72 | color: #000; |
|
77 | 77 |
|
78 | 78 | &--outline { |
79 | 79 | @apply border--button-width; |
80 | | - background-color: transparent; |
81 | | - color: var(--color__text-light); |
82 | | - border-color: var(--color__text-light); |
| 80 | + background-color: transparent !important; |
| 81 | + color: var(--color__text-light) !important; |
| 82 | + border-color: var(--color__text-light) !important; |
83 | 83 | &:hover { |
84 | | - background-color: transparent; |
85 | | - border-color: var(--color__text-light); |
| 84 | + background-color: transparent !important; |
| 85 | + border-color: var(--color__text-light) !important; |
86 | 86 | @apply border--focus--underline; |
87 | 87 | } |
88 | 88 | * { |
89 | | - color: var(--color__text-light); |
| 89 | + color: var(--color__text-light) !important; |
90 | 90 | } |
91 | 91 | } |
92 | 92 | &--outline-alt { |
93 | 93 | @apply border--button-width; |
94 | | - background-color: transparent; |
95 | | - color: var(--color__text-dark); |
96 | | - border-color: var(--color__text-dark); |
| 94 | + background-color: transparent !important; |
| 95 | + color: var(--color__text-dark) !important; |
| 96 | + border-color: var(--color__text-dark) !important; |
97 | 97 | &:hover { |
98 | | - background-color: transparent; |
99 | | - border-color: var(--color__text-dark); |
| 98 | + background-color: transparent !important; |
| 99 | + border-color: var(--color__text-dark) !important; |
100 | 100 | @apply border--focus--underline; |
101 | 101 | } |
102 | 102 | * { |
103 | | - color: var(--color__text-dark); |
| 103 | + color: var(--color__text-dark) !important; |
104 | 104 | } |
105 | 105 | } |
106 | 106 |
|
107 | 107 | &--minimal { |
108 | 108 | background-color: transparent !important; |
109 | 109 | color: var(--color__text-light) !important; |
110 | | - @apply min-w-0 min-h-0 p-0 normal-case border-none rounded-none type__body; |
| 110 | + @apply type__body min-h-0 min-w-0 rounded-none border-none p-0 normal-case; |
111 | 111 | &:hover { |
112 | 112 | background-color: transparent !important; |
113 | 113 | @apply border--focus--underline; |
|
123 | 123 | &--minimal-alt { |
124 | 124 | background-color: transparent !important; |
125 | 125 | color: var(--color__text-dark) !important; |
126 | | - @apply min-w-0 min-h-0 p-0 normal-case border-none rounded-none type__body; |
| 126 | + @apply type__body min-h-0 min-w-0 rounded-none border-none p-0 normal-case; |
127 | 127 | &:hover { |
128 | 128 | background-color: transparent !important; |
129 | 129 | @apply border--focus--underline; |
|
146 | 146 | } |
147 | 147 | /* - make sure spinner is spinner */ |
148 | 148 | &__spinner { |
149 | | - @apply absolute flex items-center justify-center invisible w-11/12 transform left-2/4 top-2/4 -translate-y-2/4 -translate-x-2/4 bg-inherit; |
| 149 | + @apply invisible absolute left-2/4 top-2/4 flex w-11/12 -translate-x-2/4 -translate-y-2/4 transform items-center justify-center bg-inherit; |
150 | 150 | svg { |
151 | | - @apply m-0 m-auto animate-spinslow; |
| 151 | + @apply animate-spinslow m-auto; |
152 | 152 | } |
153 | 153 | } |
154 | 154 | /* - when loading class used, hide content and show spinner */ |
|
0 commit comments