Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
S
stable-diffusion-webui
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
stable-diffusion-webui
Commits
94e041fd
Commit
94e041fd
authored
Sep 01, 2022
by
AUTOMATIC
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
style changes related to the gradio update
parent
d28c94b8
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
23 additions
and
15 deletions
+23
-15
style.css
style.css
+21
-13
webui.py
webui.py
+2
-2
No files found.
style.css
View file @
94e041fd
.output-html
p
{
margin
:
0
0.5em
;}
.output-html
p
{
margin
:
0
0.5em
;}
.performance
{
font-size
:
0.85em
;
color
:
#444
;
}
.performance
{
font-size
:
0.85em
;
color
:
#444
;
}
#txt2img_generate
,
#img2img_generate
{
max-width
:
13em
;
}
button
{
button
{
align-self
:
stretch
!important
;
align-self
:
stretch
!important
;
}
}
...
@@ -23,24 +27,28 @@ button{
...
@@ -23,24 +27,28 @@ button{
overflow
:
visible
!important
;
overflow
:
visible
!important
;
}
}
fieldset
span
.text-gray-500
{
fieldset
span
.text-gray-500
,
.gr-panel
div
.flex-col
div
.justify-between
label
,
label
.block
span
{
position
:
absolute
;
position
:
absolute
;
top
:
-0.425em
;
top
:
-0.6em
;
background-color
:
rgb
(
249
250
251
);
line-height
:
1.2em
;
line-height
:
0.7em
;
padding
:
0
0.5em
;
padding
:
0
0.5em
;
margin
:
0
;
}
}
.dark
fieldset
span
.text-gray-500
{
background-color
:
rgb
(
17
24
39
);
}
.gr-panel
div
.flex-col
div
.justify-between
label
,
label
.block
span
{
fieldset
span
.text-gray-500
,
.gr-panel
div
.flex-col
div
.justify-between
label
,
label
.block
span
{
position
:
absolute
;
background-color
:
white
;
top
:
-0.4em
;
border-top
:
1px
solid
#eee
;
background-color
:
rgb
(
249
250
251
);
border-left
:
1px
solid
#eee
;
line-height
:
0.7em
;
border-right
:
1px
solid
#eee
;
padding
:
0
0.5em
;
}
margin
:
0
;
.dark
fieldset
span
.text-gray-500
,
.dark
.gr-panel
div
.flex-col
div
.justify-between
label
,
.dark
label
.block
span
{
background-color
:
rgb
(
31
,
41
,
55
);
border-top
:
1px
solid
rgb
(
55
65
81
);
border-left
:
1px
solid
rgb
(
55
65
81
);
border-right
:
1px
solid
rgb
(
55
65
81
);
}
}
.dark
.gr-panel
div
.flex-col
div
.justify-between
label
,
.dark
label
.block
span
{
background-color
:
rgb
(
17
24
39
);
}
.gr-panel
div
.flex-col
div
.justify-between
label
span
{
.gr-panel
div
.flex-col
div
.justify-between
label
span
{
margin
:
0
;
margin
:
0
;
...
...
webui.py
View file @
94e041fd
...
@@ -1227,7 +1227,7 @@ with gr.Blocks(analytics_enabled=False) as txt2img_interface:
...
@@ -1227,7 +1227,7 @@ with gr.Blocks(analytics_enabled=False) as txt2img_interface:
with
gr
.
Row
():
with
gr
.
Row
():
prompt
=
gr
.
Textbox
(
label
=
"Prompt"
,
elem_id
=
"txt2img_prompt"
,
show_label
=
False
,
placeholder
=
"Prompt"
,
lines
=
1
)
prompt
=
gr
.
Textbox
(
label
=
"Prompt"
,
elem_id
=
"txt2img_prompt"
,
show_label
=
False
,
placeholder
=
"Prompt"
,
lines
=
1
)
negative_prompt
=
gr
.
Textbox
(
label
=
"Negative prompt"
,
elem_id
=
"txt2img_negative_prompt"
,
show_label
=
False
,
placeholder
=
"Negative prompt"
,
lines
=
1
,
visible
=
False
)
negative_prompt
=
gr
.
Textbox
(
label
=
"Negative prompt"
,
elem_id
=
"txt2img_negative_prompt"
,
show_label
=
False
,
placeholder
=
"Negative prompt"
,
lines
=
1
,
visible
=
False
)
submit
=
gr
.
Button
(
'Generate'
,
variant
=
'primary'
)
submit
=
gr
.
Button
(
'Generate'
,
elem_id
=
"txt2img_generate"
,
variant
=
'primary'
)
with
gr
.
Row
()
.
style
(
equal_height
=
False
):
with
gr
.
Row
()
.
style
(
equal_height
=
False
):
with
gr
.
Column
(
variant
=
'panel'
):
with
gr
.
Column
(
variant
=
'panel'
):
...
@@ -1575,7 +1575,7 @@ sample_img2img = sample_img2img if os.path.exists(sample_img2img) else None
...
@@ -1575,7 +1575,7 @@ sample_img2img = sample_img2img if os.path.exists(sample_img2img) else None
with
gr
.
Blocks
(
analytics_enabled
=
False
)
as
img2img_interface
:
with
gr
.
Blocks
(
analytics_enabled
=
False
)
as
img2img_interface
:
with
gr
.
Row
():
with
gr
.
Row
():
prompt
=
gr
.
Textbox
(
label
=
"Prompt"
,
elem_id
=
"img2img_prompt"
,
show_label
=
False
,
placeholder
=
"Prompt"
,
lines
=
1
)
prompt
=
gr
.
Textbox
(
label
=
"Prompt"
,
elem_id
=
"img2img_prompt"
,
show_label
=
False
,
placeholder
=
"Prompt"
,
lines
=
1
)
submit
=
gr
.
Button
(
'Generate'
,
variant
=
'primary'
)
submit
=
gr
.
Button
(
'Generate'
,
elem_id
=
"img2img_generate"
,
variant
=
'primary'
)
with
gr
.
Row
()
.
style
(
equal_height
=
False
):
with
gr
.
Row
()
.
style
(
equal_height
=
False
):
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment