|
37 | 37 |
|
38 | 38 | &::after { |
39 | 39 | background-color: var(--#{$rd-prefix}background-color-disabled); |
40 | | - opacity: 1; |
41 | 40 | } |
42 | 41 | } |
43 | 42 |
|
|
47 | 46 | border-left-color: var(--#{$rd-prefix}color-disabled); |
48 | 47 | } |
49 | 48 | } |
| 49 | + |
| 50 | + @include e(indeterminate) { |
| 51 | + background-color: var(--#{$rd-prefix}color-disabled); |
| 52 | + } |
50 | 53 | } |
51 | 54 |
|
52 | 55 | @include when(checked) { |
|
60 | 63 | animation: wave-spread 0.36s linear; |
61 | 64 | animation-fill-mode: backwards; |
62 | 65 | } |
| 66 | + |
| 67 | + &::after { |
| 68 | + background-color: var(--#{$rd-prefix}color-primary); |
| 69 | + } |
63 | 70 | } |
64 | 71 |
|
65 | 72 | @include e(tick) { |
66 | 73 | animation: checkbox-tick 133ms linear; |
67 | 74 | animation-fill-mode: backwards; |
68 | 75 | } |
69 | 76 | } |
70 | | - |
71 | | - @include e(state-container) { |
72 | | - &::after { |
73 | | - opacity: 1; |
74 | | - } |
75 | | - } |
76 | 77 | } |
77 | 78 |
|
78 | 79 | @include when(indeterminate) { |
79 | 80 | &:not(.is-disabled) { |
80 | 81 | @include e(input) { |
81 | 82 | border-color: var(--#{$rd-prefix}color-primary); |
82 | 83 | } |
83 | | - } |
84 | 84 |
|
85 | | - @include e(state-container) { |
86 | | - &::before { |
87 | | - animation: wave-spread 0.36s linear; |
88 | | - animation-fill-mode: backwards; |
89 | | - } |
| 85 | + @include e(state-container) { |
| 86 | + &::before { |
| 87 | + animation: wave-spread 0.36s linear; |
| 88 | + animation-fill-mode: backwards; |
| 89 | + } |
90 | 90 |
|
91 | | - &::after { |
92 | | - opacity: 1; |
| 91 | + &::after { |
| 92 | + background-color: var(--#{$rd-prefix}color-primary); |
| 93 | + } |
93 | 94 | } |
94 | 95 | } |
95 | 96 | } |
|
110 | 111 | position: absolute; |
111 | 112 | inset: 0; |
112 | 113 | content: ''; |
113 | | - border: 1px solid var(--#{$rd-prefix}color-primary); |
| 114 | + border: 1px solid transparent; |
114 | 115 | border-radius: var(--#{$rd-prefix}border-radius); |
115 | | - opacity: 0; |
116 | 116 | } |
117 | 117 |
|
118 | 118 | &::after { |
119 | 119 | position: absolute; |
120 | 120 | inset: 0; |
121 | 121 | content: ''; |
122 | | - background-color: var(--#{$rd-prefix}color-primary); |
| 122 | + background-color: transparent; |
123 | 123 | border-radius: var(--#{$rd-prefix}border-radius); |
124 | | - opacity: 0; |
125 | | - transition: transform var(--#{$rd-prefix}animation-duration-fast) linear, opacity var(--#{$rd-prefix}animation-duration-fast) linear; |
| 124 | + transition: transform var(--#{$rd-prefix}animation-duration-fast) linear, |
| 125 | + background-color var(--#{$rd-prefix}animation-duration-fast) linear; |
126 | 126 | } |
127 | 127 | } |
128 | 128 |
|
|
0 commit comments