Update fancy.css
Browse files
fancy.css
CHANGED
|
@@ -1,110 +1,112 @@
|
|
|
|
|
| 1 |
body, .gradio-container {
|
| 2 |
-
background: #
|
| 3 |
-
color: #
|
| 4 |
-
font-family: '
|
| 5 |
}
|
|
|
|
| 6 |
/* Header */
|
| 7 |
#header, h1, .gradio-container h1 {
|
| 8 |
-
color: #
|
| 9 |
-
text-shadow: 0 2px
|
| 10 |
letter-spacing: 2px;
|
| 11 |
font-size: 2.2rem !important;
|
| 12 |
font-weight: 900 !important;
|
| 13 |
}
|
| 14 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 15 |
.gr-block, .gr-box, .gradio-container .gr-panel, .gradio-container .gr-form {
|
| 16 |
-
background:
|
| 17 |
-
border-radius:
|
| 18 |
-
box-shadow: 0
|
| 19 |
-
border:
|
| 20 |
-
padding:
|
| 21 |
-
|
| 22 |
-
transition:
|
| 23 |
-
transform 0.18s cubic-bezier(.33,1.26,.7,1),
|
| 24 |
-
box-shadow 0.18s cubic-bezier(.33,1.26,.7,1);
|
| 25 |
}
|
| 26 |
.gr-block:hover, .gr-box:hover, .gradio-container .gr-panel:hover, .gradio-container .gr-form:hover {
|
| 27 |
-
|
| 28 |
-
|
| 29 |
-
border-color: #ff4ba8;
|
| 30 |
}
|
|
|
|
| 31 |
/* Inputs */
|
| 32 |
.gr-file, .gr-textbox, .gradio-container .gr-input, .gradio-container input[type="text"] {
|
| 33 |
-
background: #
|
| 34 |
-
border:
|
| 35 |
-
border-radius:
|
| 36 |
-
color: #
|
| 37 |
-
transition: border 0.
|
| 38 |
-
box-shadow: 0 2px 12px 0 #6c47ff22;
|
| 39 |
}
|
| 40 |
.gr-file:focus-within, .gr-textbox:focus-within, .gradio-container .gr-input:focus-within,
|
| 41 |
.gradio-container input[type="text"]:focus {
|
| 42 |
-
border:
|
| 43 |
-
box-shadow: 0 0 0 3px #
|
| 44 |
-
background: #
|
| 45 |
-
color: #
|
| 46 |
}
|
|
|
|
| 47 |
/* Labels */
|
| 48 |
.gradio-container label, .gradio-container .label, .gradio-container .gr-label {
|
| 49 |
-
color: #
|
| 50 |
font-weight: 700 !important;
|
| 51 |
-
font-size: 1.
|
| 52 |
}
|
|
|
|
| 53 |
/* Buttons */
|
| 54 |
.gr-button, button, [data-testid="button"] {
|
| 55 |
-
background: linear-gradient(
|
| 56 |
-
color: #
|
| 57 |
border: none !important;
|
| 58 |
-
border-radius:
|
| 59 |
-
font-size: 1.
|
| 60 |
-
padding: 0.
|
| 61 |
-
font-weight:
|
| 62 |
letter-spacing: 1px;
|
| 63 |
-
box-shadow: 0 2px
|
| 64 |
-
transition:
|
| 65 |
-
transform 0.15s cubic-bezier(.33,1.26,.7,1),
|
| 66 |
-
box-shadow 0.15s cubic-bezier(.33,1.26,.7,1),
|
| 67 |
-
background 0.17s;
|
| 68 |
}
|
| 69 |
.gr-button:hover, button:hover, [data-testid="button"]:hover {
|
| 70 |
-
background: linear-gradient(
|
| 71 |
-
|
| 72 |
-
|
| 73 |
-
|
| 74 |
}
|
| 75 |
-
|
|
|
|
| 76 |
input[type="file"]::file-selector-button {
|
| 77 |
-
background: #
|
| 78 |
-
color: #
|
| 79 |
border: none;
|
| 80 |
border-radius: 1em;
|
| 81 |
-
padding: 0.5em 1.
|
| 82 |
-
font-weight:
|
| 83 |
font-size: 1em;
|
| 84 |
-
box-shadow: 0 1px
|
| 85 |
margin-right: 0.8em;
|
| 86 |
transition: background 0.18s, transform 0.18s;
|
| 87 |
}
|
| 88 |
input[type="file"]::file-selector-button:hover {
|
| 89 |
-
background: #
|
| 90 |
-
|
| 91 |
-
|
| 92 |
}
|
|
|
|
| 93 |
/* Download output */
|
| 94 |
.gr-output label, .gradio-container .gr-label {
|
| 95 |
-
color: #
|
| 96 |
font-weight: 700 !important;
|
| 97 |
}
|
|
|
|
| 98 |
/* Error */
|
| 99 |
.gradio-container .gr-textbox[aria-disabled="true"], .gradio-container .gr-textbox[readonly] {
|
| 100 |
-
background: #
|
| 101 |
-
color: #
|
| 102 |
-
border:
|
| 103 |
-
}
|
| 104 |
-
/* Markdown */
|
| 105 |
-
.markdown, .gr-markdown-content {
|
| 106 |
-
color: #d1b3ff !important;
|
| 107 |
-
font-size: 1.03em;
|
| 108 |
-
border-radius: 1.2em !important;
|
| 109 |
-
background: transparent !important;
|
| 110 |
}
|
|
|
|
| 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;
|
| 12 |
letter-spacing: 2px;
|
| 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;
|
| 29 |
+
box-shadow: 0 2px 12px #e1e0e988;
|
| 30 |
+
border: 1.5px solid #ebd8ed !important;
|
| 31 |
+
padding: 1em 1.3em !important;
|
| 32 |
+
transition: box-shadow 0.16s, transform 0.16s;
|
|
|
|
|
|
|
|
|
|
| 33 |
}
|
| 34 |
.gr-block:hover, .gr-box:hover, .gradio-container .gr-panel:hover, .gradio-container .gr-form:hover {
|
| 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;
|
| 43 |
+
border-radius: 1em !important;
|
| 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;
|
| 66 |
border: none !important;
|
| 67 |
+
border-radius: 2em !important;
|
| 68 |
+
font-size: 1.1em !important;
|
| 69 |
+
padding: 0.7em 2.1em !important;
|
| 70 |
+
font-weight: 800;
|
| 71 |
letter-spacing: 1px;
|
| 72 |
+
box-shadow: 0 2px 12px #ffd6e633;
|
| 73 |
+
transition: transform 0.14s, box-shadow 0.14s, background 0.14s;
|
|
|
|
|
|
|
|
|
|
| 74 |
}
|
| 75 |
.gr-button:hover, button:hover, [data-testid="button"]:hover {
|
| 76 |
+
background: linear-gradient(93deg,#b3cfff,#fbb1f3 90%) !important;
|
| 77 |
+
color: #d72660 !important;
|
| 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;
|
| 86 |
border: none;
|
| 87 |
border-radius: 1em;
|
| 88 |
+
padding: 0.5em 1.1em;
|
| 89 |
+
font-weight: 700;
|
| 90 |
font-size: 1em;
|
| 91 |
+
box-shadow: 0 1px 8px #e8c8f233;
|
| 92 |
margin-right: 0.8em;
|
| 93 |
transition: background 0.18s, transform 0.18s;
|
| 94 |
}
|
| 95 |
input[type="file"]::file-selector-button:hover {
|
| 96 |
+
background: #fbb1f3 !important;
|
| 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 |
}
|