fix: first css customized button
Browse files- app/dead.py +1 -0
- app/theme.py +5 -1
- app/top_section.py +1 -1
app/dead.py
CHANGED
|
@@ -1,6 +1,7 @@
|
|
| 1 |
import gradio as gr
|
| 2 |
from top_section import create_top_section, create_dropdown
|
| 3 |
|
|
|
|
| 4 |
def show_section_dead(visible):
|
| 5 |
with gr.Column(visible=visible) as section_dead:
|
| 6 |
gr.Markdown("# Dead Animal")
|
|
|
|
| 1 |
import gradio as gr
|
| 2 |
from top_section import create_top_section, create_dropdown
|
| 3 |
|
| 4 |
+
|
| 5 |
def show_section_dead(visible):
|
| 6 |
with gr.Column(visible=visible) as section_dead:
|
| 7 |
gr.Markdown("# Dead Animal")
|
app/theme.py
CHANGED
|
@@ -1,6 +1,10 @@
|
|
| 1 |
import gradio as gr
|
| 2 |
|
| 3 |
-
css = "
|
|
|
|
|
|
|
|
|
|
|
|
|
| 4 |
|
| 5 |
theme = gr.themes.Soft(primary_hue="teal", secondary_hue="teal", neutral_hue="emerald",
|
| 6 |
font=[gr.themes.GoogleFont("Inconsolata"), "Arial", "sans-serif"])
|
|
|
|
| 1 |
import gradio as gr
|
| 2 |
|
| 3 |
+
css = """
|
| 4 |
+
.gradio-container {background: url(https://openclipart.org/image/2000px/279687)}
|
| 5 |
+
#warning {background-color: #FFCCCB}
|
| 6 |
+
.feedback textarea {font-size: 24px !important}
|
| 7 |
+
"""
|
| 8 |
|
| 9 |
theme = gr.themes.Soft(primary_hue="teal", secondary_hue="teal", neutral_hue="emerald",
|
| 10 |
font=[gr.themes.GoogleFont("Inconsolata"), "Arial", "sans-serif"])
|
app/top_section.py
CHANGED
|
@@ -7,7 +7,7 @@ def create_top_section(visible):
|
|
| 7 |
with gr.Row() as image_row:
|
| 8 |
with gr.Column(scale=1, min_width="50px"):
|
| 9 |
img1 = gr.Image(value=PATH + '/assets/logos/van.png', show_download_button=False, show_label=False, height="150px")
|
| 10 |
-
button_collision = gr.Button("Collision with a means of transport", visible=visible)
|
| 11 |
|
| 12 |
with gr.Column(scale=1, min_width="50px"):
|
| 13 |
img2 = gr.Image(value=PATH + '/assets/logos/destruction.png', show_download_button=False, show_label=False, height="150px")
|
|
|
|
| 7 |
with gr.Row() as image_row:
|
| 8 |
with gr.Column(scale=1, min_width="50px"):
|
| 9 |
img1 = gr.Image(value=PATH + '/assets/logos/van.png', show_download_button=False, show_label=False, height="150px")
|
| 10 |
+
button_collision = gr.Button("Collision with a means of transport", visible=visible, elem_id="warning", elem_classes=".feedback")
|
| 11 |
|
| 12 |
with gr.Column(scale=1, min_width="50px"):
|
| 13 |
img2 = gr.Image(value=PATH + '/assets/logos/destruction.png', show_download_button=False, show_label=False, height="150px")
|