120 lines
2.2 KiB
SCSS
120 lines
2.2 KiB
SCSS
.trigger {
|
|
display: flex;
|
|
width: 100%;
|
|
align-items: center;
|
|
gap: 0.5rem;
|
|
padding: 0.5rem;
|
|
border: 1px solid var(--color-fd-border);
|
|
background-color: var(--color-fd-popover);
|
|
color: var(--color-fd-secondary-foreground);
|
|
text-align: start;
|
|
cursor: pointer;
|
|
transition: background-color 0.2s, color 0.2s;
|
|
|
|
&:hover,
|
|
&[data-state="open"] {
|
|
background-color: var(--color-fd-accent);
|
|
color: var(--color-fd-accent-foreground);
|
|
}
|
|
|
|
.label {
|
|
font-size: 0.8rem;
|
|
font-weight: 500;
|
|
}
|
|
|
|
.chevron {
|
|
margin-inline-start: auto;
|
|
flex-shrink: 0;
|
|
width: 1rem;
|
|
height: 1rem;
|
|
color: var(--color-fd-muted-foreground);
|
|
}
|
|
}
|
|
|
|
// Override the global `#nd-sidebar a, button` padding so the trigger keeps
|
|
// its own padding instead of the tight sidebar-row padding.
|
|
:global(#nd-sidebar) .trigger,
|
|
:global(#nd-sidebar-mobile) .trigger {
|
|
padding: 0.5rem;
|
|
}
|
|
|
|
.icon {
|
|
display: inline-flex;
|
|
flex-shrink: 0;
|
|
width: 1.25rem;
|
|
height: 1.25rem;
|
|
object-fit: contain;
|
|
}
|
|
|
|
.content {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 0.25rem;
|
|
width: var(--radix-popover-trigger-width);
|
|
padding: 0.25rem;
|
|
|
|
.item {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 0.5rem;
|
|
padding: 0.375rem;
|
|
border: none;
|
|
background: none;
|
|
color: inherit;
|
|
font: inherit;
|
|
text-align: start;
|
|
cursor: pointer;
|
|
|
|
.itemContent {
|
|
display: flex;
|
|
align-items: start;
|
|
gap: 0.5rem;
|
|
}
|
|
|
|
&:hover {
|
|
background-color: var(--color-fd-accent);
|
|
color: var(--color-fd-accent-foreground);
|
|
}
|
|
|
|
&.disabled {
|
|
cursor: default;
|
|
opacity: 0.6;
|
|
|
|
&:hover {
|
|
background-color: transparent;
|
|
color: inherit;
|
|
}
|
|
}
|
|
|
|
.text {
|
|
display: flex;
|
|
flex-direction: column;
|
|
}
|
|
|
|
.label {
|
|
font-size: 0.8rem;
|
|
font-weight: 500;
|
|
line-height: 1;
|
|
}
|
|
|
|
.description {
|
|
margin-top: 0.25rem;
|
|
font-size: 0.7rem;
|
|
line-height: 1;
|
|
color: var(--color-fd-muted-foreground);
|
|
}
|
|
|
|
.check {
|
|
margin-inline-start: auto;
|
|
flex-shrink: 0;
|
|
width: 0.875rem;
|
|
height: 0.875rem;
|
|
color: var(--color-fd-primary);
|
|
|
|
&.hidden {
|
|
visibility: hidden;
|
|
}
|
|
}
|
|
}
|
|
}
|