Make slider inputs and reset like a unit

This commit is contained in:
henryruhs 2024-10-25 13:16:43 +02:00
parent d0bab20755
commit 0aef1a99e6
2 changed files with 18 additions and 1 deletions

View File

@ -6,7 +6,22 @@
:root:root:root:root input[type="number"]
{
max-width: 6rem;
appearance: textfield;
text-align: center;
order: 1;
}
:root:root:root:root input[type="number"]:focus-visible,
:root:root:root:root input[type="number"]:focus
{
box-shadow: unset;
border: unset;
outline: unset;
}
:root:root:root:root .reset-button
{
background: var(--background-fill-secondary);
}
:root:root:root:root [type="checkbox"],

View File

@ -122,6 +122,8 @@ def get_theme() -> gradio.Theme:
).set(
background_fill_primary = '*neutral_100',
background_fill_primary_dark = '*neutral_950',
background_fill_secondary = '*neutral_50',
background_fill_secondary_dark = '*neutral_800',
block_background_fill = 'white',
block_background_fill_dark = '*neutral_900',
block_border_width = '0',