reformat css from latest commits, change color for dropdown selection to more neutral one

This commit is contained in:
AUTOMATIC 2023-03-27 07:30:38 +03:00
parent 8a454dab33
commit b40538a7fe

View file

@ -54,13 +54,6 @@ div.compact{
gap: 1em; gap: 1em;
} }
.gradio-dropdown ul.options{
z-index: 3000;
min-width: fit-content;
max-width: inherit;
white-space: nowrap;
}
.gradio-dropdown label span:not(.has-info), .gradio-dropdown label span:not(.has-info),
.gradio-textbox label span:not(.has-info), .gradio-textbox label span:not(.has-info),
.gradio-number label span:not(.has-info) .gradio-number label span:not(.has-info)
@ -69,8 +62,10 @@ div.compact{
} }
.gradio-dropdown ul.options{ .gradio-dropdown ul.options{
max-height: 35em;
z-index: 3000; z-index: 3000;
min-width: fit-content;
max-width: inherit;
white-space: nowrap;
} }
.gradio-dropdown ul.options li.item { .gradio-dropdown ul.options li.item {
@ -78,7 +73,11 @@ div.compact{
} }
.gradio-dropdown ul.options li.item.selected { .gradio-dropdown ul.options li.item.selected {
background-color: var(--secondary-500); background-color: var(--neutral-100);
}
.dark .gradio-dropdown ul.options li.item.selected {
background-color: var(--neutral-900);
} }
.gradio-dropdown div.wrap.wrap.wrap.wrap{ .gradio-dropdown div.wrap.wrap.wrap.wrap{