Sebastiankay commited on
Commit
46ef72c
1 Parent(s): d262ca0

Update _res/_custom.css

Browse files
Files changed (1) hide show
  1. _res/_custom.css +299 -299
_res/_custom.css CHANGED
@@ -1,300 +1,300 @@
1
- /* :root {
2
- --primary-700: rgb(67, 56, 202);
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(67, 56, 202);
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.2rem;
118
- color: var(--neutral-300);
119
- }
120
-
121
- .ratio_buttons_wrapper {
122
- display: flex !important;
123
- flex-grow: 0 !important;
124
- min-width: min(48px, 30%) !important;
125
- flex: 1 1 0%;
126
- flex-wrap: nowrap;
127
- }
128
-
129
- .image_size_selctor_wrapper {
130
- flex-grow: 2 !important;
131
- min-width: min(120px, 10%) !important;
132
- }
133
-
134
- .info-text-wrapper {
135
- padding: calc(var(--spacing-xl) / 2) calc(var(--spacing-xl) + 2px);
136
- }
137
-
138
- span.info-text {
139
- margin-bottom: var(--spacing-lg);
140
- color: var(--block-info-text-color);
141
- font-weight: var(--block-info-text-weight);
142
- font-size: var(--block-info-text-size);
143
- line-height: var(--line-sm);
144
- }
145
-
146
- .image-input-read-exfi {
147
- max-height: 120px;
148
- }
149
-
150
- .image-input-read-exfi>button {
151
- transform: scale(.8);
152
- }
153
-
154
- .image-ratio-buttons {
155
- height: 120px;
156
-
157
- & label {
158
- width: calc(25% - calc(var(--spacing-xl) + 2px) * 2 / 4);
159
- justify-content: center;
160
- align-items: end;
161
-
162
- & input {
163
- display: none;
164
- }
165
- }
166
-
167
- & label span {
168
- margin-left: 0;
169
- }
170
- }
171
-
172
- span.has-info+div {
173
- margin-top: var(--spacing-lg);
174
- margin-bottom: var(--spacing-lg);
175
- }
176
-
177
- .switch-ratio-btn {
178
- /* max-width: 38px;
179
- min-width: 38px !important;
180
- height: 33px; */
181
- --icon-ratio: 3/2;
182
- aspect-ratio: 1;
183
- min-width: 40px;
184
- max-width: 120px;
185
-
186
- & svg {
187
- fill: var(--block-title-text-color);
188
- width: 70%;
189
- transition: transform 0.2s ease-in-out;
190
- }
191
-
192
- & svg.portrait {
193
- transform: rotate(90deg) rotateX(180deg);
194
- }
195
- }
196
-
197
- .switch-ratio-btn:hover {
198
- & svg {
199
- transform: rotate(40deg);
200
- }
201
-
202
- & svg.portrait {
203
- transform: rotate(40deg) rotateX(180deg);
204
- }
205
- }
206
-
207
- /* .image-height-selector {
208
- & div.head {
209
- justify-content: end;
210
- }
211
- #component-5057 > label > input
212
- & label {
213
- display: none;
214
- }
215
- } */
216
-
217
- .fade-bg *,
218
- .fade-bg .primary {
219
- /* transition: background-color 0.8s ease-in-out;
220
- transition: background 0.8s ease-in-out; */
221
- /* transition: background-color 1.8s linear; */
222
- /* transition: background 1.8s linear; */
223
- }
224
-
225
- .output-dominant-image-color {
226
- display: none;
227
- }
228
-
229
- .image-info-wrapper {
230
- transition: opacity 0.4s linear;
231
- /* opacity: 0;
232
- display: none; */
233
- }
234
-
235
- .tb-img-width input[type=text],
236
- .tb-img-height input[type=text],
237
- .tb-img-seed input[type=text] {
238
- display: block;
239
- position: relative;
240
- outline: none !important;
241
- box-shadow: var(--input-shadow);
242
- border: var(--input-border-width) solid var(--input-border-color);
243
- border-radius: var(--input-radius);
244
- background: var(--input-background-fill);
245
- padding: var(--size-2) var(--size-2);
246
- height: var(--size-6);
247
- color: var(--body-text-color);
248
- font-size: var(--input-text-size);
249
- line-height: var(--line-sm);
250
- text-align: center;
251
- }
252
-
253
- #output_image>div.image-container>div.icon-buttons {
254
-
255
-
256
- /* display: flex;
257
- position: absolute;
258
- top: var(--block-label-margin);
259
- right: var(--block-label-margin);
260
- align-items: center; */
261
- & button,
262
- a button {
263
- display: inline-block;
264
- position: relative;
265
- z-index: var(--layer-4);
266
- border: solid var(--block-title-border-width) var(--block-title-border-color);
267
- border-radius: var(--block-title-radius);
268
- background: var(--block-title-background-fill);
269
- padding: var(--block-title-padding);
270
- color: var(--block-title-text-color);
271
- font-weight: var(--block-title-text-weight);
272
- font-size: var(--block-title-text-size);
273
- line-height: var(--line-sm);
274
- }
275
- }
276
-
277
- .random-prompt-btn,
278
- .enhance-prompt-btn,
279
- .run-btn {
280
- min-width: 110px;
281
-
282
- & svg {
283
- fill: var(--block-title-text-color);
284
- width: 1.8rem;
285
- }
286
-
287
- }
288
-
289
- .image-height-selector>label,
290
- .image-width-selector>label {
291
- display: flex;
292
- justify-content: space-between;
293
-
294
- & input {
295
- min-width: 100px;
296
- width: 50%;
297
- height: var(--size-9);
298
- }
299
-
300
  }
 
1
+ /* :root {
2
+ --primary-700: rgb(67, 56, 202);
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(67, 56, 202);
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
+ }
120
+
121
+ .ratio_buttons_wrapper {
122
+ display: flex !important;
123
+ flex-grow: 0 !important;
124
+ min-width: min(48px, 30%) !important;
125
+ flex: 1 1 0%;
126
+ flex-wrap: nowrap;
127
+ }
128
+
129
+ .image_size_selctor_wrapper {
130
+ flex-grow: 2 !important;
131
+ min-width: min(120px, 10%) !important;
132
+ }
133
+
134
+ .info-text-wrapper {
135
+ padding: calc(var(--spacing-xl) / 2) calc(var(--spacing-xl) + 2px);
136
+ }
137
+
138
+ span.info-text {
139
+ margin-bottom: var(--spacing-lg);
140
+ color: var(--block-info-text-color);
141
+ font-weight: var(--block-info-text-weight);
142
+ font-size: var(--block-info-text-size);
143
+ line-height: var(--line-sm);
144
+ }
145
+
146
+ .image-input-read-exfi {
147
+ max-height: 120px;
148
+ }
149
+
150
+ .image-input-read-exfi>button {
151
+ transform: scale(.8);
152
+ }
153
+
154
+ .image-ratio-buttons {
155
+ height: 120px;
156
+
157
+ & label {
158
+ width: calc(25% - calc(var(--spacing-xl) + 2px) * 2 / 4);
159
+ justify-content: center;
160
+ align-items: end;
161
+
162
+ & input {
163
+ display: none;
164
+ }
165
+ }
166
+
167
+ & label span {
168
+ margin-left: 0;
169
+ }
170
+ }
171
+
172
+ span.has-info+div {
173
+ margin-top: var(--spacing-lg);
174
+ margin-bottom: var(--spacing-lg);
175
+ }
176
+
177
+ .switch-ratio-btn {
178
+ /* max-width: 38px;
179
+ min-width: 38px !important;
180
+ height: 33px; */
181
+ --icon-ratio: 3/2;
182
+ aspect-ratio: 1;
183
+ min-width: 40px;
184
+ max-width: 120px;
185
+
186
+ & svg {
187
+ fill: var(--block-title-text-color);
188
+ width: 70%;
189
+ transition: transform 0.2s ease-in-out;
190
+ }
191
+
192
+ & svg.portrait {
193
+ transform: rotate(90deg) rotateX(180deg);
194
+ }
195
+ }
196
+
197
+ .switch-ratio-btn:hover {
198
+ & svg {
199
+ transform: rotate(40deg);
200
+ }
201
+
202
+ & svg.portrait {
203
+ transform: rotate(40deg) rotateX(180deg);
204
+ }
205
+ }
206
+
207
+ /* .image-height-selector {
208
+ & div.head {
209
+ justify-content: end;
210
+ }
211
+ #component-5057 > label > input
212
+ & label {
213
+ display: none;
214
+ }
215
+ } */
216
+
217
+ .fade-bg *,
218
+ .fade-bg .primary {
219
+ /* transition: background-color 0.8s ease-in-out;
220
+ transition: background 0.8s ease-in-out; */
221
+ /* transition: background-color 1.8s linear; */
222
+ /* transition: background 1.8s linear; */
223
+ }
224
+
225
+ .output-dominant-image-color {
226
+ display: none;
227
+ }
228
+
229
+ .image-info-wrapper {
230
+ transition: opacity 0.4s linear;
231
+ /* opacity: 0;
232
+ display: none; */
233
+ }
234
+
235
+ .tb-img-width input[type=text],
236
+ .tb-img-height input[type=text],
237
+ .tb-img-seed input[type=text] {
238
+ display: block;
239
+ position: relative;
240
+ outline: none !important;
241
+ box-shadow: var(--input-shadow);
242
+ border: var(--input-border-width) solid var(--input-border-color);
243
+ border-radius: var(--input-radius);
244
+ background: var(--input-background-fill);
245
+ padding: var(--size-2) var(--size-2);
246
+ height: var(--size-6);
247
+ color: var(--body-text-color);
248
+ font-size: var(--input-text-size);
249
+ line-height: var(--line-sm);
250
+ text-align: center;
251
+ }
252
+
253
+ #output_image>div.image-container>div.icon-buttons {
254
+
255
+
256
+ /* display: flex;
257
+ position: absolute;
258
+ top: var(--block-label-margin);
259
+ right: var(--block-label-margin);
260
+ align-items: center; */
261
+ & button,
262
+ a button {
263
+ display: inline-block;
264
+ position: relative;
265
+ z-index: var(--layer-4);
266
+ border: solid var(--block-title-border-width) var(--block-title-border-color);
267
+ border-radius: var(--block-title-radius);
268
+ background: var(--block-title-background-fill);
269
+ padding: var(--block-title-padding);
270
+ color: var(--block-title-text-color);
271
+ font-weight: var(--block-title-text-weight);
272
+ font-size: var(--block-title-text-size);
273
+ line-height: var(--line-sm);
274
+ }
275
+ }
276
+
277
+ .random-prompt-btn,
278
+ .enhance-prompt-btn,
279
+ .run-btn {
280
+ min-width: 110px;
281
+
282
+ & svg {
283
+ fill: var(--block-title-text-color);
284
+ width: 1.8rem;
285
+ }
286
+
287
+ }
288
+
289
+ .image-height-selector>label,
290
+ .image-width-selector>label {
291
+ display: flex;
292
+ justify-content: space-between;
293
+
294
+ & input {
295
+ min-width: 100px;
296
+ width: 50%;
297
+ height: var(--size-9);
298
+ }
299
+
300
  }