mirror of
https://github.com/muerrilla/sd-webui-detail-daemon.git
synced 2026-01-26 11:19:46 +00:00
use class for css
remove unused rules CSS
This commit is contained in:
@@ -30,8 +30,8 @@ class Script(scripts.Script):
|
||||
gr_bias = gr.Slider(minimum=0.0, maximum=1.0, step=.01, value=0.5, label="Bias ")
|
||||
with gr.Column(scale=1, min_width=275):
|
||||
preview = self.visualize(False, 0, 1, 0.5, 0.5, 1, 0, 0, 0, True)
|
||||
z_vis = gr.Plot(value=preview, elem_id='detail-daemon-vis', show_label=False)
|
||||
with gr.Accordion("More Knobs:", elem_id="detail-daemon-more-accordion", open=False):
|
||||
z_vis = gr.Plot(value=preview, elem_classes=['detail-daemon-vis'], show_label=False)
|
||||
with gr.Accordion("More Knobs:", elem_classes=['detail-daemon-more-accordion'], open=False):
|
||||
with gr.Row():
|
||||
with gr.Column(scale=2):
|
||||
with gr.Row():
|
||||
@@ -41,8 +41,8 @@ class Script(scripts.Script):
|
||||
gr_exponent = gr.Slider(minimum=0.0, maximum=10.0, step=.05, value=1.0, label="Exponent", min_width=0)
|
||||
gr_fade = gr.Slider(minimum=0.0, maximum=1.0, step=.05, value=0.0, label="Fade")
|
||||
with gr.Column(scale=1, min_width=275):
|
||||
gr_smooth = gr.Checkbox(label="Smooth", value=True, min_width=0)
|
||||
gr_help = gr.Markdown("## [Ⓗ Help](https://github.com/muerrilla/sd-webui-detail-daemon)", elem_id="detail-daemon-help")
|
||||
gr_smooth = gr.Checkbox(label="Smooth", value=True, min_width=0, elem_classes=['detail-daemon-smooth'])
|
||||
gr.Markdown("## [Ⓗ Help](https://github.com/muerrilla/sd-webui-detail-daemon)", elem_classes=['detail-daemon-help'])
|
||||
|
||||
vis_args = [gr_enabled, gr_start, gr_end, gr_bias, gr_amount, gr_exponent, gr_start_offset, gr_end_offset, gr_fade, gr_smooth]
|
||||
for vis_arg in vis_args:
|
||||
|
||||
28
style.css
28
style.css
@@ -1,30 +1,16 @@
|
||||
#detail-daemon-more-accordion {
|
||||
.detail-daemon-more-accordion {
|
||||
box-shadow: 0px 1px 6px 2px #00000024 !important;
|
||||
margin-top: 1em;
|
||||
margin-top: 1em !important;
|
||||
}
|
||||
|
||||
#detail-daemon-more-accordion input[type="checkbox"]{
|
||||
margin-left: 3em;
|
||||
.detail-daemon-smooth {
|
||||
margin-left: 3em !important;
|
||||
}
|
||||
|
||||
#detail-daemon-vis {
|
||||
margin: auto;
|
||||
.detail-daemon-vis {
|
||||
margin: auto !important;
|
||||
}
|
||||
|
||||
#detail-daemon-enabled {
|
||||
margin-bottom: 0.75em;
|
||||
}
|
||||
|
||||
#detail-daemon-help {
|
||||
.detail-daemon-help {
|
||||
margin: auto 1.5em !important;
|
||||
}
|
||||
|
||||
#detail-daemon.dd-inactive > div > span {
|
||||
color: unset;
|
||||
}
|
||||
|
||||
#detail-daemon.dd-active > div > span {
|
||||
/*color: #79c700;*/
|
||||
/*color: #ffba00;*/
|
||||
color: #ff5500;
|
||||
}
|
||||
Reference in New Issue
Block a user