Sebastiankay commited on
Commit
9bd6547
1 Parent(s): c833ed0

Update _res/_custom.css

Browse files
Files changed (1) hide show
  1. _res/_custom.css +280 -280
_res/_custom.css CHANGED
@@ -1,281 +1,281 @@
1
- /* :root {
2
- --primary-700: rgb(250, 179, 135);
3
- --primary-50: color-mix(in srgb, var(--primary-700) 5%, white);
4
- --primary-100: color-mix(in srgb, var(--primary-700) 10%, white);
5
- --primary-200: color-mix(in srgb, var(--primary-700) 20%, white);
6
- --primary-300: color-mix(in srgb, var(--primary-700) 60%, white);
7
- --primary-400: color-mix(in srgb, var(--primary-700) 70%, white);
8
- --primary-500: color-mix(in srgb, var(--primary-700) 80%, white);
9
- --primary-600: color-mix(in srgb, var(--primary-700) 90%, white);
10
- --primary-800: color-mix(in srgb, var(--primary-700) 70%, black);
11
- --primary-900: color-mix(in srgb, var(--primary-700) 80%, black);
12
- --primary-950: color-mix(in srgb, var(--primary-700) 90%, black);
13
- }
14
-
15
- .dark {
16
- --primary-700: rgb(250, 179, 135);
17
- --primary-50: color-mix(in srgb, var(--primary-700) 5%, white);
18
- --primary-100: color-mix(in srgb, var(--primary-700) 10%, white);
19
- --primary-200: color-mix(in srgb, var(--primary-700) 20%, white);
20
- --primary-300: color-mix(in srgb, var(--primary-700) 60%, white);
21
- --primary-400: color-mix(in srgb, var(--primary-700) 70%, white);
22
- --primary-500: color-mix(in srgb, var(--primary-700) 80%, white);
23
- --primary-600: color-mix(in srgb, var(--primary-700) 90%, white);
24
- --primary-800: color-mix(in srgb, var(--primary-700) 70%, black);
25
- --primary-900: color-mix(in srgb, var(--primary-700) 80%, black);
26
- --primary-950: color-mix(in srgb, var(--primary-700) 90%, black);
27
- } */
28
-
29
- /* width */
30
- ::-webkit-scrollbar {
31
- width: 0px;
32
- }
33
-
34
- body::-webkit-scrollbar {
35
- width: 8px;
36
- }
37
-
38
- /* Track */
39
- ::-webkit-scrollbar-track {
40
- background: var(--neutral-900);
41
- }
42
-
43
- /* Handle */
44
- ::-webkit-scrollbar-thumb {
45
- background: var(--primary-600);
46
- border-radius: 3px;
47
- }
48
-
49
- /* Handle on hover */
50
- ::-webkit-scrollbar-thumb:hover {
51
- background: var(--primary-800);
52
- }
53
-
54
- body {
55
- min-height: 101vh;
56
- }
57
-
58
- body>gradio-app {
59
- /* background: var(--primary-950);
60
- background-image: linear-gradient(180deg, color-mix(in srgb, var(--primary-950), transparent 50%) 0%, color-mix(in srgb, var(--primary-950), transparent 50%) 28%, var(--neutral-950) 28%, var(--neutral-950) 100%) !important; */
61
- padding-top: 120px;
62
- min-width: 900px;
63
- transition: opacity 0.4s linear;
64
- position: relative;
65
- }
66
-
67
- body>gradio-app::before {
68
- position: absolute;
69
- content: "";
70
- background: var(--primary-950);
71
- width: 100%;
72
- height: 355px;
73
- top: 0;
74
- z-index: 0;
75
- }
76
-
77
- body>gradio-app.has-bg-image::before {
78
- /* --bg-image-path: none; */
79
- /* --bg-image-path: url("https://image.pollinations.ai/prompt/A%20midnight%20blue%20stallion%20gallops%20across%20a%20misty%2C%20moonlit%20meadow%2C%20its%20mane%20and%20tail%20flowing%20in%20the%20wind%20like%20a%20celestial%20river%2C%20as%20stars%20twinkle%20in%20the%20sky%20above%20-%20Expressionist%20Watercolor%20Painting?model=flux&width=1024&height=683&nologo=true&enhance=false&nofeed=true&seed=42"); */
80
- background-image: var(--bg-image-path);
81
- background-size: cover;
82
- background-position: center;
83
- background-repeat: no-repeat;
84
- filter: blur(12px);
85
-
86
- }
87
-
88
- gradio-app .gradio-container {
89
- max-width: 80% !important;
90
- }
91
-
92
- div.tabs>div.tab-nav>button.selected {
93
- border-width: 0 !important;
94
- background: var(--primary-600) !important;
95
- color: var(--neutral-950);
96
- font-weight: 600;
97
- }
98
-
99
- div.tabs>div.tab-nav {
100
- border-bottom: none !important;
101
- padding: 0 0.25rem 0 0.25rem !important;
102
- }
103
-
104
- div.tabs div.tabitem {
105
- background-color: var(--neutral-900) !important;
106
- border-width: 0 !important;
107
- border-top: 8px solid var(--primary-600) !important;
108
- border-radius: var(--container-radius) !important;
109
- }
110
-
111
- .top-description h1 {
112
- color: var(--neutral-400);
113
- font-size: 2rem;
114
- }
115
-
116
- .prompt-input textarea {
117
- font-size: 1.05rem;
118
- color: var(--neutral-300);
119
- resize: none;
120
- }
121
-
122
- .ratio_buttons_wrapper {
123
- display: flex !important;
124
- flex-grow: 0 !important;
125
- min-width: min(48px, 30%) !important;
126
- flex: 1 1 0%;
127
- flex-wrap: nowrap;
128
- }
129
-
130
- .image_size_selctor_wrapper {
131
- flex-grow: 2 !important;
132
- min-width: min(120px, 10%) !important;
133
- }
134
-
135
- .info-text-wrapper {
136
- padding: calc(var(--spacing-xl) / 2) calc(var(--spacing-xl) + 2px);
137
- }
138
-
139
- span.info-text {
140
- margin-bottom: var(--spacing-lg);
141
- color: var(--block-info-text-color);
142
- font-weight: var(--block-info-text-weight);
143
- font-size: var(--block-info-text-size);
144
- line-height: var(--line-sm);
145
- }
146
-
147
- .image-input-read-exfi {
148
- max-height: 120px;
149
- }
150
-
151
- .image-input-read-exfi>button {
152
- transform: scale(.8);
153
- }
154
-
155
- .image-ratio-buttons {
156
- height: 120px;
157
-
158
- & label {
159
- width: calc(25% - calc(var(--spacing-xl) + 2px) * 2 / 4);
160
- justify-content: center;
161
- align-items: end;
162
-
163
- & input {
164
- display: none;
165
- }
166
- }
167
-
168
- & label span {
169
- margin-left: 0;
170
- }
171
- }
172
-
173
- span.has-info+div {
174
- margin-top: var(--spacing-lg);
175
- margin-bottom: var(--spacing-lg);
176
- }
177
-
178
- .switch-ratio-btn {
179
- /* max-width: 38px;
180
- min-width: 38px !important;
181
- height: 33px; */
182
- --icon-ratio: 3/2;
183
- aspect-ratio: 1;
184
- min-width: 40px;
185
- max-width: 120px;
186
-
187
- & svg {
188
- fill: var(--block-title-text-color);
189
- width: 70%;
190
- transition: transform 0.2s ease-in-out;
191
- }
192
-
193
- & svg.portrait {
194
- transform: rotate(90deg) rotateX(180deg);
195
- }
196
- }
197
-
198
- .switch-ratio-btn:hover {
199
- & svg {
200
- transform: rotate(40deg);
201
- }
202
-
203
- & svg.portrait {
204
- transform: rotate(40deg) rotateX(180deg);
205
- }
206
- }
207
-
208
- .output-dominant-image-color {
209
- display: none;
210
- }
211
-
212
- .image-info-wrapper {
213
- transition: opacity 0.4s linear;
214
- }
215
-
216
- .tb-img-width input[type=text],
217
- .tb-img-height input[type=text],
218
- .tb-img-seed input[type=text] {
219
- display: block;
220
- position: relative;
221
- outline: none !important;
222
- box-shadow: var(--input-shadow);
223
- border: var(--input-border-width) solid var(--input-border-color);
224
- border-radius: var(--input-radius);
225
- background: var(--input-background-fill);
226
- padding: var(--size-2) var(--size-2);
227
- height: var(--size-6);
228
- color: var(--body-text-color);
229
- font-size: var(--input-text-size);
230
- line-height: var(--line-sm);
231
- text-align: center;
232
- }
233
-
234
- #output_image>div.image-container>div.icon-buttons {
235
-
236
-
237
- /* display: flex;
238
- position: absolute;
239
- top: var(--block-label-margin);
240
- right: var(--block-label-margin);
241
- align-items: center; */
242
- & button,
243
- a button {
244
- display: inline-block;
245
- position: relative;
246
- z-index: var(--layer-4);
247
- border: solid var(--block-title-border-width) var(--block-title-border-color);
248
- border-radius: var(--block-title-radius);
249
- background: var(--block-title-background-fill);
250
- padding: var(--block-title-padding);
251
- color: var(--block-title-text-color);
252
- font-weight: var(--block-title-text-weight);
253
- font-size: var(--block-title-text-size);
254
- line-height: var(--line-sm);
255
- }
256
- }
257
-
258
- .random-prompt-btn,
259
- .enhance-prompt-btn,
260
- .run-btn {
261
- min-width: 110px;
262
-
263
- & svg {
264
- fill: var(--block-title-text-color);
265
- width: 1.8rem;
266
- }
267
-
268
- }
269
-
270
- .image-height-selector>label,
271
- .image-width-selector>label {
272
- display: flex;
273
- justify-content: space-between;
274
-
275
- & input {
276
- min-width: 100px;
277
- width: 50%;
278
- height: var(--size-9);
279
- }
280
-
281
  }
 
1
+ /* :root {
2
+ --primary-700: rgb(250, 179, 135);
3
+ --primary-50: color-mix(in srgb, var(--primary-700) 5%, white);
4
+ --primary-100: color-mix(in srgb, var(--primary-700) 10%, white);
5
+ --primary-200: color-mix(in srgb, var(--primary-700) 20%, white);
6
+ --primary-300: color-mix(in srgb, var(--primary-700) 60%, white);
7
+ --primary-400: color-mix(in srgb, var(--primary-700) 70%, white);
8
+ --primary-500: color-mix(in srgb, var(--primary-700) 80%, white);
9
+ --primary-600: color-mix(in srgb, var(--primary-700) 90%, white);
10
+ --primary-800: color-mix(in srgb, var(--primary-700) 70%, black);
11
+ --primary-900: color-mix(in srgb, var(--primary-700) 80%, black);
12
+ --primary-950: color-mix(in srgb, var(--primary-700) 90%, black);
13
+ }
14
+
15
+ .dark {
16
+ --primary-700: rgb(250, 179, 135);
17
+ --primary-50: color-mix(in srgb, var(--primary-700) 5%, white);
18
+ --primary-100: color-mix(in srgb, var(--primary-700) 10%, white);
19
+ --primary-200: color-mix(in srgb, var(--primary-700) 20%, white);
20
+ --primary-300: color-mix(in srgb, var(--primary-700) 60%, white);
21
+ --primary-400: color-mix(in srgb, var(--primary-700) 70%, white);
22
+ --primary-500: color-mix(in srgb, var(--primary-700) 80%, white);
23
+ --primary-600: color-mix(in srgb, var(--primary-700) 90%, white);
24
+ --primary-800: color-mix(in srgb, var(--primary-700) 70%, black);
25
+ --primary-900: color-mix(in srgb, var(--primary-700) 80%, black);
26
+ --primary-950: color-mix(in srgb, var(--primary-700) 90%, black);
27
+ } */
28
+
29
+ /* width */
30
+ ::-webkit-scrollbar {
31
+ width: 0px;
32
+ }
33
+
34
+ body::-webkit-scrollbar {
35
+ width: 8px;
36
+ }
37
+
38
+ /* Track */
39
+ ::-webkit-scrollbar-track {
40
+ background: var(--neutral-900);
41
+ }
42
+
43
+ /* Handle */
44
+ ::-webkit-scrollbar-thumb {
45
+ background: var(--primary-600);
46
+ border-radius: 3px;
47
+ }
48
+
49
+ /* Handle on hover */
50
+ ::-webkit-scrollbar-thumb:hover {
51
+ background: var(--primary-800);
52
+ }
53
+
54
+ body {
55
+ /* min-height: 101vh; */
56
+ }
57
+
58
+ body>gradio-app {
59
+ /* background: var(--primary-950);
60
+ background-image: linear-gradient(180deg, color-mix(in srgb, var(--primary-950), transparent 50%) 0%, color-mix(in srgb, var(--primary-950), transparent 50%) 28%, var(--neutral-950) 28%, var(--neutral-950) 100%) !important; */
61
+ padding-top: 120px;
62
+ /* min-width: 900px; */
63
+ transition: opacity 0.4s linear;
64
+ position: relative;
65
+ }
66
+
67
+ body>gradio-app::before {
68
+ position: absolute;
69
+ content: "";
70
+ background: var(--primary-950);
71
+ width: 100%;
72
+ height: 355px;
73
+ top: 0;
74
+ z-index: 0;
75
+ }
76
+
77
+ body>gradio-app.has-bg-image::before {
78
+ /* --bg-image-path: none; */
79
+ /* --bg-image-path: url("https://image.pollinations.ai/prompt/A%20midnight%20blue%20stallion%20gallops%20across%20a%20misty%2C%20moonlit%20meadow%2C%20its%20mane%20and%20tail%20flowing%20in%20the%20wind%20like%20a%20celestial%20river%2C%20as%20stars%20twinkle%20in%20the%20sky%20above%20-%20Expressionist%20Watercolor%20Painting?model=flux&width=1024&height=683&nologo=true&enhance=false&nofeed=true&seed=42"); */
80
+ background-image: var(--bg-image-path);
81
+ background-size: cover;
82
+ background-position: center;
83
+ background-repeat: no-repeat;
84
+ filter: blur(12px);
85
+
86
+ }
87
+
88
+ gradio-app .gradio-container {
89
+ max-width: 80% !important;
90
+ }
91
+
92
+ div.tabs>div.tab-nav>button.selected {
93
+ border-width: 0 !important;
94
+ background: var(--primary-600) !important;
95
+ color: var(--neutral-950);
96
+ font-weight: 600;
97
+ }
98
+
99
+ div.tabs>div.tab-nav {
100
+ border-bottom: none !important;
101
+ padding: 0 0.25rem 0 0.25rem !important;
102
+ }
103
+
104
+ div.tabs div.tabitem {
105
+ background-color: var(--neutral-900) !important;
106
+ border-width: 0 !important;
107
+ border-top: 8px solid var(--primary-600) !important;
108
+ border-radius: var(--container-radius) !important;
109
+ }
110
+
111
+ .top-description h1 {
112
+ color: var(--neutral-400);
113
+ font-size: 2rem;
114
+ }
115
+
116
+ .prompt-input textarea {
117
+ font-size: 1.05rem;
118
+ color: var(--neutral-300);
119
+ resize: none;
120
+ }
121
+
122
+ .ratio_buttons_wrapper {
123
+ display: flex !important;
124
+ flex-grow: 0 !important;
125
+ min-width: min(48px, 30%) !important;
126
+ flex: 1 1 0%;
127
+ flex-wrap: nowrap;
128
+ }
129
+
130
+ .image_size_selctor_wrapper {
131
+ flex-grow: 2 !important;
132
+ min-width: min(120px, 10%) !important;
133
+ }
134
+
135
+ .info-text-wrapper {
136
+ padding: calc(var(--spacing-xl) / 2) calc(var(--spacing-xl) + 2px);
137
+ }
138
+
139
+ span.info-text {
140
+ margin-bottom: var(--spacing-lg);
141
+ color: var(--block-info-text-color);
142
+ font-weight: var(--block-info-text-weight);
143
+ font-size: var(--block-info-text-size);
144
+ line-height: var(--line-sm);
145
+ }
146
+
147
+ .image-input-read-exfi {
148
+ max-height: 120px;
149
+ }
150
+
151
+ .image-input-read-exfi>button {
152
+ transform: scale(.8);
153
+ }
154
+
155
+ .image-ratio-buttons {
156
+ height: 120px;
157
+
158
+ & label {
159
+ width: calc(25% - calc(var(--spacing-xl) + 2px) * 2 / 4);
160
+ justify-content: center;
161
+ align-items: end;
162
+
163
+ & input {
164
+ display: none;
165
+ }
166
+ }
167
+
168
+ & label span {
169
+ margin-left: 0;
170
+ }
171
+ }
172
+
173
+ span.has-info+div {
174
+ margin-top: var(--spacing-lg);
175
+ margin-bottom: var(--spacing-lg);
176
+ }
177
+
178
+ .switch-ratio-btn {
179
+ /* max-width: 38px;
180
+ min-width: 38px !important;
181
+ height: 33px; */
182
+ --icon-ratio: 3/2;
183
+ aspect-ratio: 1;
184
+ min-width: 40px;
185
+ max-width: 120px;
186
+
187
+ & svg {
188
+ fill: var(--block-title-text-color);
189
+ width: 70%;
190
+ transition: transform 0.2s ease-in-out;
191
+ }
192
+
193
+ & svg.portrait {
194
+ transform: rotate(90deg) rotateX(180deg);
195
+ }
196
+ }
197
+
198
+ .switch-ratio-btn:hover {
199
+ & svg {
200
+ transform: rotate(40deg);
201
+ }
202
+
203
+ & svg.portrait {
204
+ transform: rotate(40deg) rotateX(180deg);
205
+ }
206
+ }
207
+
208
+ .output-dominant-image-color {
209
+ display: none;
210
+ }
211
+
212
+ .image-info-wrapper {
213
+ transition: opacity 0.4s linear;
214
+ }
215
+
216
+ .tb-img-width input[type=text],
217
+ .tb-img-height input[type=text],
218
+ .tb-img-seed input[type=text] {
219
+ display: block;
220
+ position: relative;
221
+ outline: none !important;
222
+ box-shadow: var(--input-shadow);
223
+ border: var(--input-border-width) solid var(--input-border-color);
224
+ border-radius: var(--input-radius);
225
+ background: var(--input-background-fill);
226
+ padding: var(--size-2) var(--size-2);
227
+ height: var(--size-6);
228
+ color: var(--body-text-color);
229
+ font-size: var(--input-text-size);
230
+ line-height: var(--line-sm);
231
+ text-align: center;
232
+ }
233
+
234
+ #output_image>div.image-container>div.icon-buttons {
235
+
236
+
237
+ /* display: flex;
238
+ position: absolute;
239
+ top: var(--block-label-margin);
240
+ right: var(--block-label-margin);
241
+ align-items: center; */
242
+ & button,
243
+ a button {
244
+ display: inline-block;
245
+ position: relative;
246
+ z-index: var(--layer-4);
247
+ border: solid var(--block-title-border-width) var(--block-title-border-color);
248
+ border-radius: var(--block-title-radius);
249
+ background: var(--block-title-background-fill);
250
+ padding: var(--block-title-padding);
251
+ color: var(--block-title-text-color);
252
+ font-weight: var(--block-title-text-weight);
253
+ font-size: var(--block-title-text-size);
254
+ line-height: var(--line-sm);
255
+ }
256
+ }
257
+
258
+ .random-prompt-btn,
259
+ .enhance-prompt-btn,
260
+ .run-btn {
261
+ min-width: 110px;
262
+
263
+ & svg {
264
+ fill: var(--block-title-text-color);
265
+ width: 1.8rem;
266
+ }
267
+
268
+ }
269
+
270
+ .image-height-selector>label,
271
+ .image-width-selector>label {
272
+ display: flex;
273
+ justify-content: space-between;
274
+
275
+ & input {
276
+ min-width: 100px;
277
+ width: 50%;
278
+ height: var(--size-9);
279
+ }
280
+
281
  }