|
182 | 182 | opacity: 0; |
183 | 183 | } |
184 | 184 | } |
| 185 | + |
| 186 | +@custom-variant data-open { |
| 187 | + &:where([data-state='open']), |
| 188 | + &:where([data-open]:not([data-open='false'])) { |
| 189 | + @slot; |
| 190 | + } |
| 191 | +} |
| 192 | + |
| 193 | +@custom-variant data-closed { |
| 194 | + &:where([data-state='closed']), |
| 195 | + &:where([data-closed]:not([data-closed='false'])) { |
| 196 | + @slot; |
| 197 | + } |
| 198 | +} |
| 199 | + |
| 200 | +@custom-variant data-checked { |
| 201 | + &:where([data-state='checked']), |
| 202 | + &:where([data-checked]:not([data-checked='false'])) { |
| 203 | + @slot; |
| 204 | + } |
| 205 | +} |
| 206 | + |
| 207 | +@custom-variant data-unchecked { |
| 208 | + &:where([data-state='unchecked']), |
| 209 | + &:where([data-unchecked]:not([data-unchecked='false'])) { |
| 210 | + @slot; |
| 211 | + } |
| 212 | +} |
| 213 | + |
| 214 | +@custom-variant data-selected { |
| 215 | + &:where([data-selected]) { |
| 216 | + @slot; |
| 217 | + } |
| 218 | +} |
| 219 | + |
| 220 | +@custom-variant data-disabled { |
| 221 | + &:where([data-disabled='true']), |
| 222 | + &:where([data-disabled]:not([data-disabled='false'])) { |
| 223 | + @slot; |
| 224 | + } |
| 225 | +} |
| 226 | + |
| 227 | +@custom-variant data-active { |
| 228 | + &:where([data-state='active']), |
| 229 | + &:where([data-active]:not([data-active='false'])) { |
| 230 | + @slot; |
| 231 | + } |
| 232 | +} |
| 233 | + |
| 234 | +@custom-variant data-horizontal { |
| 235 | + &:where([data-orientation='horizontal']) { |
| 236 | + @slot; |
| 237 | + } |
| 238 | +} |
| 239 | + |
| 240 | +@custom-variant data-vertical { |
| 241 | + &:where([data-orientation='vertical']) { |
| 242 | + @slot; |
| 243 | + } |
| 244 | +} |
| 245 | + |
| 246 | +@utility no-scrollbar { |
| 247 | + -ms-overflow-style: none; |
| 248 | + scrollbar-width: none; |
| 249 | + &::-webkit-scrollbar { |
| 250 | + display: none; |
| 251 | + } |
| 252 | +} |
0 commit comments