Tyler Lastovich commited on
Commit
4ee3340
·
1 Parent(s): f4311ec

Updating for .gradio_wrapper

Browse files
Files changed (1) hide show
  1. app.py +14 -14
app.py CHANGED
@@ -134,7 +134,7 @@ def prompt_to_layout(user_prompt, intensity, fpath=None):
134
 
135
  custom_css="""
136
  @import url("https://use.typekit.net/nid3pfr.css");
137
- .gradio_page {
138
  display: flex;
139
  width: 100vw;
140
  min-height: 50vh;
@@ -149,16 +149,16 @@ custom_css="""
149
  width: 100vw;
150
  max-width: 1500px;
151
  }
152
- .gradio_bg[theme=default] .panel_buttons {
153
  justify-content: flex-end;
154
  }
155
 
156
- .gradio_bg[theme=default] .panel_button {
157
  flex: 0 0 0;
158
  min-width: 150px;
159
  }
160
 
161
- .gradio_bg[theme=default] .gradio_interface .panel_button.submit {
162
  background: #11213A;
163
  border-radius: 5px;
164
  color: #FFFFFF;
@@ -168,15 +168,15 @@ custom_css="""
168
  letter-spacing: 0.15em;
169
  flex: 0 0 0;
170
  }
171
- .gradio_bg[theme=default] .gradio_interface .panel_button.submit:hover {
172
  background: #000000;
173
  }
174
 
175
  .input_text:focus {
176
  border-color: #FA7880;
177
  }
178
- .gradio_bg[theme=default] .gradio_interface .input_text input,
179
- .gradio_bg[theme=default] .gradio_interface .input_text textarea {
180
  font: 200 45px garamond-premier-pro-display, serif;
181
  line-height: 110%;
182
  color: #11213A;
@@ -188,18 +188,18 @@ custom_css="""
188
  .input_text textarea:focus-visible {
189
  outline: none;
190
  }
191
- .gradio_bg[theme=default] .gradio_interface .input_radio .radio_item.selected {
192
  background-color: #11213A;
193
  }
194
- .gradio_bg[theme=default] .gradio_interface .input_radio .selected .radio_circle {
195
  border-color: #4365c4;
196
  }
197
- .gradio_bg[theme=default] .gradio_interface .output_image {
198
  width: 100%;
199
  height: 40vw;
200
  max-height: 630px;
201
  }
202
- .gradio_bg[theme=default] .gradio_interface .output_image .image_preview_holder {
203
  background: transparent;
204
  }
205
  .panel:nth-child(1) {
@@ -211,10 +211,10 @@ custom_css="""
211
  .panel {
212
  background: transparent;
213
  }
214
- .gradio_bg[theme=default] .gradio_interface .component_set {
215
  background: transparent;
216
  }
217
- .panel:nth-child(2) .gradio_bg[theme=default] .gradio_interface .panel_header {
218
  display: none;
219
  }
220
  .labels {
@@ -227,7 +227,7 @@ custom_css="""
227
  margin-left: 0px;
228
  margin-right: 0px;
229
  }
230
- .gradio_bg[theme=default] .gradio_interface .output_image {
231
  height: auto;
232
  }
233
  }
 
134
 
135
  custom_css="""
136
  @import url("https://use.typekit.net/nid3pfr.css");
137
+ .gradio_wrapper .gradio_bg[is_embedded=false] .gradio_page {
138
  display: flex;
139
  width: 100vw;
140
  min-height: 50vh;
 
149
  width: 100vw;
150
  max-width: 1500px;
151
  }
152
+ .gradio_wrapper .gradio_bg[theme=default] .panel_buttons {
153
  justify-content: flex-end;
154
  }
155
 
156
+ .gradio_wrapper .gradio_bg[theme=default] .panel_button {
157
  flex: 0 0 0;
158
  min-width: 150px;
159
  }
160
 
161
+ .gradio_wrapper .gradio_bg[theme=default] .gradio_interface .panel_button.submit {
162
  background: #11213A;
163
  border-radius: 5px;
164
  color: #FFFFFF;
 
168
  letter-spacing: 0.15em;
169
  flex: 0 0 0;
170
  }
171
+ .gradio_wrapper .gradio_bg[theme=default] .gradio_interface .panel_button.submit:hover {
172
  background: #000000;
173
  }
174
 
175
  .input_text:focus {
176
  border-color: #FA7880;
177
  }
178
+ .gradio_wrapper .gradio_bg[theme=default] .gradio_interface .input_text input,
179
+ .gradio_wrapper .gradio_bg[theme=default] .gradio_interface .input_text textarea {
180
  font: 200 45px garamond-premier-pro-display, serif;
181
  line-height: 110%;
182
  color: #11213A;
 
188
  .input_text textarea:focus-visible {
189
  outline: none;
190
  }
191
+ .gradio_wrapper .gradio_bg[theme=default] .gradio_interface .input_radio .radio_item.selected {
192
  background-color: #11213A;
193
  }
194
+ .gradio_wrapper .gradio_bg[theme=default] .gradio_interface .input_radio .selected .radio_circle {
195
  border-color: #4365c4;
196
  }
197
+ .gradio_wrapper .gradio_bg[theme=default] .gradio_interface .output_image {
198
  width: 100%;
199
  height: 40vw;
200
  max-height: 630px;
201
  }
202
+ .gradio_wrapper .gradio_bg[theme=default] .gradio_interface .output_image .image_preview_holder {
203
  background: transparent;
204
  }
205
  .panel:nth-child(1) {
 
211
  .panel {
212
  background: transparent;
213
  }
214
+ .gradio_wrapper .gradio_bg[theme=default] .gradio_interface .component_set {
215
  background: transparent;
216
  }
217
+ .panel:nth-child(2) .gradio_wrapper .gradio_bg[theme=default] .gradio_interface .panel_header {
218
  display: none;
219
  }
220
  .labels {
 
227
  margin-left: 0px;
228
  margin-right: 0px;
229
  }
230
+ .gradio_wrapper .gradio_bg[theme=default] .gradio_interface .output_image {
231
  height: auto;
232
  }
233
  }