plozia commited on
Commit
f2590d0
·
verified ·
1 Parent(s): b6b988c

Update fancy.css

Browse files
Files changed (1) hide show
  1. fancy.css +17 -40
fancy.css CHANGED
@@ -1,11 +1,8 @@
1
- /* Main background & font */
2
  body, .gradio-container {
3
  background: #f9f7fa !important;
4
  color: #313146 !important;
5
  font-family: 'Inter', 'Segoe UI', Arial, sans-serif !important;
6
  }
7
-
8
- /* Header */
9
  #header, h1, .gradio-container h1 {
10
  color: #d72660 !important;
11
  text-shadow: 0 2px 10px #f6abb6cc;
@@ -13,16 +10,12 @@ body, .gradio-container {
13
  font-size: 2.2rem !important;
14
  font-weight: 900 !important;
15
  }
16
-
17
- /* Markdown and info */
18
  .markdown, .gr-markdown-content {
19
  color: #7c6f9c !important;
20
  background: none !important;
21
  font-size: 1.05em;
22
  border-radius: 1.2em !important;
23
  }
24
-
25
- /* "Card" style */
26
  .gr-block, .gr-box, .gradio-container .gr-panel, .gradio-container .gr-form {
27
  background: #fff7fd !important;
28
  border-radius: 1.5em !important;
@@ -35,8 +28,6 @@ body, .gradio-container {
35
  box-shadow: 0 8px 28px #e0c8efbb;
36
  transform: translateY(-2px) scale(1.01);
37
  }
38
-
39
- /* Inputs */
40
  .gr-file, .gr-textbox, .gradio-container .gr-input, .gradio-container input[type="text"] {
41
  background: #f4eaf7 !important;
42
  border: 1.5px solid #b4aee8 !important;
@@ -44,22 +35,17 @@ body, .gradio-container {
44
  color: #422046 !important;
45
  transition: border 0.14s, box-shadow 0.14s;
46
  }
47
- .gr-file:focus-within, .gr-textbox:focus-within, .gradio-container .gr-input:focus-within,
48
- .gradio-container input[type="text"]:focus {
49
  border: 1.5px solid #d72660 !important;
50
  box-shadow: 0 0 0 3px #fad0c4aa;
51
  background: #fff !important;
52
  color: #d72660 !important;
53
  }
54
-
55
- /* Labels */
56
  .gradio-container label, .gradio-container .label, .gradio-container .gr-label {
57
  color: #a365d6 !important;
58
  font-weight: 700 !important;
59
  font-size: 1.08em !important;
60
  }
61
-
62
- /* Buttons */
63
  .gr-button, button, [data-testid="button"] {
64
  background: linear-gradient(90deg,#fbb1f3,#b3cfff 90%) !important;
65
  color: #36374b !important;
@@ -78,8 +64,6 @@ body, .gradio-container {
78
  transform: scale(1.04);
79
  box-shadow: 0 5px 24px #d6c1ec66;
80
  }
81
-
82
- /* File input button */
83
  input[type="file"]::file-selector-button {
84
  background: #b3cfff !important;
85
  color: #5d3865 !important;
@@ -97,34 +81,27 @@ input[type="file"]::file-selector-button:hover {
97
  color: #d72660 !important;
98
  transform: scale(1.07);
99
  }
100
-
101
- /* Download output */
102
  .gr-output label, .gradio-container .gr-label {
103
  color: #b589d6 !important;
104
  font-weight: 700 !important;
105
  }
106
-
107
- /* Error */
108
  .gradio-container .gr-textbox[aria-disabled="true"], .gradio-container .gr-textbox[readonly] {
109
  background: #fde4e9 !important;
110
  color: #d72660 !important;
111
  border: 1.5px solid #fbb1f3 !important;
112
-
113
- }
114
- /* Darkstyle override */
115
- html[data-theme="dark"] body,
116
- html[data-theme="dark"] .gradio-container {
117
- background: #2e2e2e !important;
118
- }
119
-
120
- html[data-theme="dark"] body,
121
- html[data-theme="dark"] .gradio-container,
122
- html[data-theme="dark"] .markdown,
123
- html[data-theme="dark"] .gr-markdown-content,
124
- html[data-theme="dark"] #header,
125
- html[data-theme="dark"] h1,
126
- html[data-theme="dark"] p,
127
- html[data-theme="dark"] .gr-label,
128
- html[data-theme="dark"] label {
129
- color: #ffffff !important;
130
- }
 
 
1
  body, .gradio-container {
2
  background: #f9f7fa !important;
3
  color: #313146 !important;
4
  font-family: 'Inter', 'Segoe UI', Arial, sans-serif !important;
5
  }
 
 
6
  #header, h1, .gradio-container h1 {
7
  color: #d72660 !important;
8
  text-shadow: 0 2px 10px #f6abb6cc;
 
10
  font-size: 2.2rem !important;
11
  font-weight: 900 !important;
12
  }
 
 
13
  .markdown, .gr-markdown-content {
14
  color: #7c6f9c !important;
15
  background: none !important;
16
  font-size: 1.05em;
17
  border-radius: 1.2em !important;
18
  }
 
 
19
  .gr-block, .gr-box, .gradio-container .gr-panel, .gradio-container .gr-form {
20
  background: #fff7fd !important;
21
  border-radius: 1.5em !important;
 
28
  box-shadow: 0 8px 28px #e0c8efbb;
29
  transform: translateY(-2px) scale(1.01);
30
  }
 
 
31
  .gr-file, .gr-textbox, .gradio-container .gr-input, .gradio-container input[type="text"] {
32
  background: #f4eaf7 !important;
33
  border: 1.5px solid #b4aee8 !important;
 
35
  color: #422046 !important;
36
  transition: border 0.14s, box-shadow 0.14s;
37
  }
38
+ .gr-file:focus-within, .gr-textbox:focus-within, .gradio-container .gr-input:focus-within, .gradio-container input[type="text"]:focus {
 
39
  border: 1.5px solid #d72660 !important;
40
  box-shadow: 0 0 0 3px #fad0c4aa;
41
  background: #fff !important;
42
  color: #d72660 !important;
43
  }
 
 
44
  .gradio-container label, .gradio-container .label, .gradio-container .gr-label {
45
  color: #a365d6 !important;
46
  font-weight: 700 !important;
47
  font-size: 1.08em !important;
48
  }
 
 
49
  .gr-button, button, [data-testid="button"] {
50
  background: linear-gradient(90deg,#fbb1f3,#b3cfff 90%) !important;
51
  color: #36374b !important;
 
64
  transform: scale(1.04);
65
  box-shadow: 0 5px 24px #d6c1ec66;
66
  }
 
 
67
  input[type="file"]::file-selector-button {
68
  background: #b3cfff !important;
69
  color: #5d3865 !important;
 
81
  color: #d72660 !important;
82
  transform: scale(1.07);
83
  }
 
 
84
  .gr-output label, .gradio-container .gr-label {
85
  color: #b589d6 !important;
86
  font-weight: 700 !important;
87
  }
 
 
88
  .gradio-container .gr-textbox[aria-disabled="true"], .gradio-container .gr-textbox[readonly] {
89
  background: #fde4e9 !important;
90
  color: #d72660 !important;
91
  border: 1.5px solid #fbb1f3 !important;
92
+ }
93
+ html[data-theme="dark"] body, html[data-theme="dark"] .gradio-container {
94
+ background: #2e2e2e !important;
95
+ }
96
+ html[data-theme="dark"] body, html[data-theme="dark"] .gradio-container, html[data-theme="dark"] .markdown, html[data-theme="dark"] .gr-markdown-content, html[data-theme="dark"] #header, html[data-theme="dark"] h1, html[data-theme="dark"] p, html[data-theme="dark"] .gr-label, html[data-theme="dark"] label {
97
+ color: #ffffff !important;
98
+ }
99
+ @media (max-width: 768px) {
100
+ html[data-theme="dark"] body, html[data-theme="dark"] .gradio-container {
101
+ background: #f9f7fa !important;
102
+ color: #313146 !important;
103
+ }
104
+ html[data-theme="dark"] .markdown, html[data-theme="dark"] .gr-markdown-content, html[data-theme="dark"] #header, html[data-theme="dark"] h1, html[data-theme="dark"] p, html[data-theme="dark"] label, html[data-theme="dark"] .gr-label {
105
+ color: #313146 !important;
106
+ }
107
+ }