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
18c03cde
Commit
18c03cde
authored
Jan 03, 2023
by
AUTOMATIC
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
styling rework to make things more compact
parent
269f6e86
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
89 additions
and
74 deletions
+89
-74
ui.py
modules/ui.py
+61
-60
ui_components.py
modules/ui_components.py
+7
-0
style.css
style.css
+21
-14
No files found.
modules/ui.py
View file @
18c03cde
This diff is collapsed.
Click to expand it.
modules/ui_components.py
View file @
18c03cde
...
...
@@ -16,3 +16,10 @@ class FormRow(gr.Row, gr.components.FormComponent):
def
get_block_name
(
self
):
return
"row"
class
FormGroup
(
gr
.
Group
,
gr
.
components
.
FormComponent
):
"""Same as gr.Row but fits inside gradio forms"""
def
get_block_name
(
self
):
return
"group"
style.css
View file @
18c03cde
...
...
@@ -74,7 +74,8 @@
}
[
id
$
=
_random_seed
],
[
id
$
=
_random_subseed
],
[
id
$
=
_reuse_seed
],
[
id
$
=
_reuse_subseed
],
#open_folder
{
min-width
:
auto
;
min-width
:
2.3em
;
height
:
2.5em
;
flex-grow
:
0
;
padding-left
:
0.25em
;
padding-right
:
0.25em
;
...
...
@@ -86,6 +87,7 @@
[
id
$
=
_seed_row
],
[
id
$
=
_subseed_row
]
{
gap
:
0.5rem
;
padding
:
0.6em
;
}
[
id
$
=
_subseed_show_box
]
{
...
...
@@ -206,24 +208,24 @@ button{
fieldset
span
.text-gray-500
,
.gr-block.gr-box
span
.text-gray-500
,
label
.block
span
{
position
:
absolute
;
top
:
-0.
6
em
;
top
:
-0.
5
em
;
line-height
:
1.2em
;
padding
:
0
0.5em
;
margin
:
0
;
padding
:
0
;
margin
:
0
0.5em
;
background-color
:
white
;
border-top
:
1px
solid
#eee
;
border-left
:
1px
solid
#eee
;
border-right
:
1px
solid
#eee
;
box-shadow
:
0
0
5px
5px
white
;
z-index
:
300
;
}
.dark
fieldset
span
.text-gray-500
,
.dark
.gr-block.gr-box
span
.text-gray-500
,
.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
);
box-shadow
:
0
0
5px
5px
rgb
(
31
,
41
,
55
);
}
#txt2img_column_batch
,
#img2img_column_batch
{
min-width
:
min
(
13.5em
,
100%
)
!important
;
}
#settings
fieldset
span
.text-gray-500
,
#settings
.gr-block.gr-box
span
.text-gray-500
,
#settings
label
.block
span
{
...
...
@@ -232,10 +234,6 @@ fieldset span.text-gray-500, .gr-block.gr-box span.text-gray-500, label.block s
margin-right
:
8em
;
}
.gr-panel
div
.flex-col
div
.justify-between
label
span
{
margin
:
0
;
}
#settings
.gr-panel
div
.flex-col
div
.justify-between
div
{
position
:
relative
;
z-index
:
200
;
...
...
@@ -609,6 +607,15 @@ img2maskimg, #img2maskimg > .h-60, #img2maskimg > .h-60 > div, #img2maskimg > .h
}
#img2img_settings
>
div
.gr-form
,
#txt2img_settings
>
div
.gr-form
{
padding-top
:
0.9em
;
}
#img2img_settings
div
.gr-form
.gr-form
,
#txt2img_settings
div
.gr-form
.gr-form
{
border
:
none
;
padding-bottom
:
0.5em
;
}
/* The following handles localization for right-to-left (RTL) languages like Arabic.
The rtl media type will only be activated by the logic in javascript/localization.js.
...
...
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