Kill accent colors, Number input styles for Chrome

This commit is contained in:
henryruhs 2024-11-16 15:13:19 +01:00
parent 5188431d23
commit 96a34ce9ff
2 changed files with 12 additions and 10 deletions

View File

@ -13,11 +13,13 @@
padding: unset
}
:root:root:root:root input[type="number"]:focus-visible,
:root:root:root:root input[type="number"]::-webkit-inner-spin-button
{
appearance: none;
}
:root:root:root:root input[type="number"]:focus
{
box-shadow: unset;
border: unset;
outline: unset;
}
@ -115,10 +117,3 @@
font-size: 0.75rem;
text-transform: uppercase;
}
:root:root:root:root .table-wrap,
:root:root:root:root th,
:root:root:root:root td
{
border: unset;
}

View File

@ -123,6 +123,9 @@ def get_theme() -> gradio.Theme:
),
font = gradio.themes.GoogleFont('Open Sans')
).set(
color_accent = 'transparent',
color_accent_soft = 'transparent',
color_accent_soft_dark = 'transparent',
background_fill_primary = '*neutral_100',
background_fill_primary_dark = '*neutral_950',
background_fill_secondary = '*neutral_50',
@ -147,6 +150,10 @@ def get_theme() -> gradio.Theme:
block_title_text_size = '*text_sm',
block_title_text_weight = '600',
block_padding = '0.5rem',
border_color_accent = 'transparent',
border_color_accent_dark = 'transparent',
border_color_accent_subdued = 'transparent',
border_color_accent_subdued_dark = 'transparent',
border_color_primary = 'transparent',
border_color_primary_dark = 'transparent',
button_large_padding = '2rem 0.5rem',