ui: add styles for chip component on songs page
This commit is contained in:
@@ -135,6 +135,30 @@
|
||||
@apply inline-flex h-8 w-8 items-center justify-center rounded border;
|
||||
}
|
||||
|
||||
.chip-group {
|
||||
@apply flex flex-wrap items-stretch border border-input rounded-md overflow-hidden bg-background w-fit h-fit;
|
||||
}
|
||||
|
||||
.chip-group legend {
|
||||
@apply flex items-center px-3 py-1.5 text-sm font-semibold border-r border-input;
|
||||
}
|
||||
|
||||
.chip {
|
||||
@apply relative inline-flex items-center px-4 py-2 border-r border-input last:border-r-0 bg-background cursor-pointer text-sm font-medium transition-colors hover:bg-muted/50;
|
||||
}
|
||||
|
||||
.chip input {
|
||||
@apply appearance-none;
|
||||
cursor: inherit;
|
||||
}
|
||||
|
||||
.chip:has(input:checked) {
|
||||
@apply bg-primary text-primary-foreground;
|
||||
}
|
||||
|
||||
.chip input:checked + span {
|
||||
@apply font-semibold;
|
||||
}
|
||||
}
|
||||
|
||||
@layer scn {
|
||||
|
||||
Reference in New Issue
Block a user