mirror of
https://github.com/Tria-plc/emaui.git
synced 2026-08-27 12:01:00 +00:00
217 lines
5.9 KiB
CSS
217 lines
5.9 KiB
CSS
.m_88b62a41 {
|
|
--combobox-padding: 4px;
|
|
padding: var(--combobox-padding);
|
|
}
|
|
|
|
.m_88b62a41:has([data-mantine-scrollbar]) .m_985517d8 {
|
|
max-width: calc(100% + var(--combobox-padding));
|
|
}
|
|
|
|
.m_88b62a41[data-composed] {
|
|
padding-inline-end: 0;
|
|
}
|
|
|
|
.m_88b62a41[data-hidden] {
|
|
display: none;
|
|
}
|
|
|
|
/* Variables must be both on dropdown and options to support usage of Combobox.Options without Combobox.Dropdown */
|
|
.m_88b62a41,
|
|
.m_b2821a6e {
|
|
--combobox-option-padding-xs: 4px 8px;
|
|
--combobox-option-padding-sm: 6px 10px;
|
|
--combobox-option-padding-md: 8px 12px;
|
|
--combobox-option-padding-lg: 10px 16px;
|
|
--combobox-option-padding-xl: 14px 20px;
|
|
--combobox-option-padding: var(--combobox-option-padding-sm);
|
|
}
|
|
|
|
.m_92253aa5 {
|
|
padding: var(--combobox-option-padding);
|
|
font-size: var(--combobox-option-fz, var(--mantine-font-size-sm));
|
|
border-radius: var(--mantine-radius-default);
|
|
background-color: transparent;
|
|
color: inherit;
|
|
cursor: pointer;
|
|
overflow-wrap: break-word;
|
|
}
|
|
|
|
.m_92253aa5:where([data-combobox-selected]) {
|
|
background-color: var(--mantine-primary-color-filled);
|
|
color: var(--mantine-color-white);
|
|
}
|
|
|
|
.m_92253aa5:where([data-combobox-disabled]) {
|
|
cursor: not-allowed;
|
|
opacity: 0.35;
|
|
}
|
|
|
|
@media (hover: hover) {
|
|
:where([data-mantine-color-scheme='light']) .m_92253aa5:hover:where(:not([data-combobox-selected], [data-combobox-disabled])) {
|
|
background-color: var(--mantine-color-gray-0);
|
|
}
|
|
|
|
:where([data-mantine-color-scheme='dark']) .m_92253aa5:hover:where(:not([data-combobox-selected], [data-combobox-disabled])) {
|
|
background-color: var(--mantine-color-dark-7);
|
|
}
|
|
}
|
|
|
|
@media (hover: none) {
|
|
:where([data-mantine-color-scheme='light']) .m_92253aa5:active:where(:not([data-combobox-selected], [data-combobox-disabled])) {
|
|
background-color: var(--mantine-color-gray-0);
|
|
}
|
|
|
|
:where([data-mantine-color-scheme='dark']) .m_92253aa5:active:where(:not([data-combobox-selected], [data-combobox-disabled])) {
|
|
background-color: var(--mantine-color-dark-7);
|
|
}
|
|
}
|
|
|
|
.m_985517d8 {
|
|
margin-inline: calc(var(--combobox-padding) * -1);
|
|
margin-top: calc(var(--combobox-padding) * -1);
|
|
width: calc(100% + var(--combobox-padding) * 2);
|
|
border-top-width: 0;
|
|
border-inline-width: 0;
|
|
border-end-start-radius: 0;
|
|
border-end-end-radius: 0;
|
|
margin-bottom: var(--combobox-padding);
|
|
position: relative;
|
|
}
|
|
|
|
:where([data-mantine-color-scheme='light']) .m_985517d8, :where([data-mantine-color-scheme='light']) .m_985517d8:focus {
|
|
border-color: var(--mantine-color-gray-2);
|
|
}
|
|
|
|
:where([data-mantine-color-scheme='dark']) .m_985517d8, :where([data-mantine-color-scheme='dark']) .m_985517d8:focus {
|
|
border-color: var(--mantine-color-dark-4);
|
|
}
|
|
|
|
:where([data-mantine-color-scheme='light']) .m_985517d8 {
|
|
background-color: var(--mantine-color-white);
|
|
}
|
|
|
|
:where([data-mantine-color-scheme='dark']) .m_985517d8 {
|
|
background-color: var(--mantine-color-dark-7);
|
|
}
|
|
|
|
.m_2530cd1d {
|
|
font-size: var(--combobox-option-fz, var(--mantine-font-size-sm));
|
|
text-align: center;
|
|
padding: var(--combobox-option-padding);
|
|
color: var(--mantine-color-dimmed);
|
|
}
|
|
|
|
.m_858f94bd,
|
|
.m_82b967cb {
|
|
font-size: var(--combobox-option-fz, var(--mantine-font-size-sm));
|
|
border: 0 solid transparent;
|
|
margin-inline: calc(var(--combobox-padding) * -1);
|
|
padding: var(--combobox-option-padding);
|
|
}
|
|
|
|
:where([data-mantine-color-scheme='light']) .m_858f94bd, :where([data-mantine-color-scheme='light']) .m_82b967cb {
|
|
border-color: var(--mantine-color-gray-2);
|
|
}
|
|
|
|
:where([data-mantine-color-scheme='dark']) .m_858f94bd, :where([data-mantine-color-scheme='dark']) .m_82b967cb {
|
|
border-color: var(--mantine-color-dark-4);
|
|
}
|
|
|
|
.m_82b967cb {
|
|
border-top-width: 1px;
|
|
margin-top: var(--combobox-padding);
|
|
margin-bottom: calc(var(--combobox-padding) * -1);
|
|
}
|
|
|
|
.m_858f94bd {
|
|
border-bottom-width: 1px;
|
|
margin-bottom: var(--combobox-padding);
|
|
margin-top: calc(var(--combobox-padding) * -1);
|
|
}
|
|
|
|
.m_254f3e4f:has(.m_2bb2e9e5:only-child) {
|
|
display: none;
|
|
}
|
|
|
|
.m_2bb2e9e5 {
|
|
color: var(--mantine-color-dimmed);
|
|
font-size: calc(var(--combobox-option-fz, var(--mantine-font-size-sm)) * 0.85);
|
|
padding: var(--combobox-option-padding);
|
|
font-weight: 500;
|
|
position: relative;
|
|
display: flex;
|
|
align-items: center;
|
|
}
|
|
|
|
.m_2bb2e9e5::after {
|
|
content: '';
|
|
flex: 1;
|
|
inset-inline: 0;
|
|
height: 1px;
|
|
margin-inline-start: var(--mantine-spacing-xs);
|
|
}
|
|
|
|
:where([data-mantine-color-scheme='light']) .m_2bb2e9e5::after {
|
|
background-color: var(--mantine-color-gray-2);
|
|
}
|
|
|
|
:where([data-mantine-color-scheme='dark']) .m_2bb2e9e5::after {
|
|
background-color: var(--mantine-color-dark-4);
|
|
}
|
|
|
|
.m_2bb2e9e5:only-child {
|
|
display: none;
|
|
}
|
|
|
|
/* ------- Combobox.Chevron ------- */
|
|
.m_2943220b {
|
|
--combobox-chevron-size-xs: 14px;
|
|
--combobox-chevron-size-sm: 18px;
|
|
--combobox-chevron-size-md: 20px;
|
|
--combobox-chevron-size-lg: 24px;
|
|
--combobox-chevron-size-xl: 28px;
|
|
--combobox-chevron-size: var(--combobox-chevron-size-sm);
|
|
}
|
|
:where([data-mantine-color-scheme='light']) .m_2943220b {
|
|
--_combobox-chevron-color: var(--combobox-chevron-color, var(--mantine-color-gray-6));
|
|
}
|
|
:where([data-mantine-color-scheme='dark']) .m_2943220b {
|
|
--_combobox-chevron-color: var(--combobox-chevron-color, var(--mantine-color-dark-3));
|
|
}
|
|
.m_2943220b {
|
|
|
|
width: var(--combobox-chevron-size);
|
|
height: var(--combobox-chevron-size);
|
|
color: var(--_combobox-chevron-color);
|
|
}
|
|
.m_2943220b:where([data-error]) {
|
|
color: var(--combobox-chevron-color, var(--mantine-color-error));
|
|
}
|
|
|
|
/* ------- OptionsDropdown ------- */
|
|
.m_390b5f4 {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
}
|
|
.m_390b5f4:where([data-reverse]) {
|
|
justify-content: space-between;
|
|
}
|
|
|
|
.m_8ee53fc2 {
|
|
opacity: 0.4;
|
|
width: 0.8em;
|
|
min-width: 0.8em;
|
|
height: 0.8em;
|
|
}
|
|
|
|
:where([data-combobox-selected]) .m_8ee53fc2 {
|
|
opacity: 1;
|
|
}
|
|
|
|
.m_a530ee0a {
|
|
width: 0.8em;
|
|
min-width: 0.8em;
|
|
height: 0.8em;
|
|
}
|