Jonas Wiesli commited on
Commit
4a065f0
1 Parent(s): e520696

positioning adjustments

Browse files
Files changed (2) hide show
  1. app.py +4 -4
  2. style.css +8 -1
app.py CHANGED
@@ -7,10 +7,10 @@ theme = gr.themes.Monochrome()
7
  css = "@import url(https://fonts.googleapis.com/css2?family=Silkscreen&display=swap);.gradio-container{" \
8
  "background-color:#cda678;font-family:Silkscreen;position:relative}#component-1{min-height:75vh}#component-4{" \
9
  "margin-top:auto}.tabs.svelte-btpldm{height:100%}.tabitem{background-color:#000}.secondary.svelte-58yet2{" \
10
- "background-color:#002366}#component-48,#component-51{" \
11
- "position:absolute;background-color:#fff;left:50%;top:50%;transform:translateX(-50%) translateY(" \
12
- "-50%);width:50%;height:50vh;padding:70px 20px 20px}#component-50,#component-62{" \
13
- "position:absolute;top:5%;right:5%;min-width:44px;min-height:44px}"
14
 
15
  with gr.Blocks(theme=theme, css=css) as iface:
16
  chatbot = []
 
7
  css = "@import url(https://fonts.googleapis.com/css2?family=Silkscreen&display=swap);.gradio-container{" \
8
  "background-color:#cda678;font-family:Silkscreen;position:relative}#component-1{min-height:75vh}#component-4{" \
9
  "margin-top:auto}.tabs.svelte-btpldm{height:100%}.tabitem{background-color:#000}.secondary.svelte-58yet2{" \
10
+ "background-color:#002366}#component-48,#component-51{position:absolute;left:50%;top:50%;transform:translateX(" \
11
+ "-50%) translateY(-50%);width:50%;height:50vh;padding:70px 20px 20px;background-color:#fff;border:1px solid " \
12
+ "#002366}#component-49{position:initial}#component-50,#component-62{" \
13
+ "position:absolute;top:5%;right:5%;width:44px;height:44px;min-width:44px;min-height:44px}"
14
 
15
  with gr.Blocks(theme=theme, css=css) as iface:
16
  chatbot = []
style.css CHANGED
@@ -28,19 +28,26 @@
28
 
29
  #component-48, #component-51 {
30
  position: absolute;
31
- background-color: #fff;
32
  left: 50%;
33
  top: 50%;
34
  transform: translateX(-50%) translateY(-50%);
35
  width: 50%;
36
  height: 50vh;
37
  padding: 70px 20px 20px;
 
 
 
 
 
 
38
  }
39
 
40
  #component-50, #component-62 {
41
  position: absolute;
42
  top: 5%;
43
  right: 5%;
 
 
44
  min-width: 44px;
45
  min-height: 44px;
46
  }
 
28
 
29
  #component-48, #component-51 {
30
  position: absolute;
 
31
  left: 50%;
32
  top: 50%;
33
  transform: translateX(-50%) translateY(-50%);
34
  width: 50%;
35
  height: 50vh;
36
  padding: 70px 20px 20px;
37
+ background-color: #fff;
38
+ border: 1px solid #002366;
39
+ }
40
+
41
+ #component-49 {
42
+ position: initial;
43
  }
44
 
45
  #component-50, #component-62 {
46
  position: absolute;
47
  top: 5%;
48
  right: 5%;
49
+ width: 44px;
50
+ height: 44px;
51
  min-width: 44px;
52
  min-height: 44px;
53
  }