Commit ·
a13431b
1
Parent(s): 65bb020
3. Okt. 2024, 04:08
Browse files- _res/_custom.css +220 -225
_res/_custom.css
CHANGED
|
@@ -1,246 +1,241 @@
|
|
| 1 |
body {
|
| 2 |
-
|
| 3 |
-
|
| 4 |
-
|
| 5 |
-
|
| 6 |
-
|
| 7 |
-
|
| 8 |
-
|
| 9 |
-
|
| 10 |
-
|
| 11 |
-
|
| 12 |
-
|
| 13 |
-
|
| 14 |
-
|
| 15 |
-
|
| 16 |
-
|
| 17 |
-
|
| 18 |
-
|
| 19 |
-
|
| 20 |
-
|
| 21 |
-
|
| 22 |
-
|
| 23 |
-
|
| 24 |
-
|
| 25 |
-
|
| 26 |
-
|
| 27 |
-
|
| 28 |
-
|
| 29 |
-
|
| 30 |
-
|
| 31 |
-
|
| 32 |
-
|
| 33 |
-
|
| 34 |
-
|
| 35 |
-
|
| 36 |
-
|
| 37 |
-
|
| 38 |
-
|
| 39 |
-
|
| 40 |
-
|
| 41 |
-
|
| 42 |
-
|
| 43 |
-
|
| 44 |
-
|
| 45 |
-
|
| 46 |
-
|
| 47 |
-
|
| 48 |
-
|
| 49 |
-
|
| 50 |
-
|
| 51 |
-
|
| 52 |
-
|
| 53 |
-
|
| 54 |
-
|
| 55 |
-
|
| 56 |
-
|
| 57 |
-
|
| 58 |
-
|
| 59 |
-
|
| 60 |
-
|
| 61 |
-
}
|
| 62 |
}
|
| 63 |
|
| 64 |
-
body>gradio-app {
|
| 65 |
-
|
| 66 |
background: 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; */
|
| 67 |
-
|
| 68 |
-
|
| 69 |
}
|
| 70 |
|
| 71 |
-
body>gradio-app::before {
|
| 72 |
-
|
| 73 |
-
|
| 74 |
-
|
| 75 |
-
|
| 76 |
-
|
| 77 |
-
|
| 78 |
-
|
| 79 |
-
|
| 80 |
-
|
| 81 |
-
|
| 82 |
}
|
| 83 |
|
| 84 |
-
div.tabs>div.tab-nav {
|
| 85 |
-
|
| 86 |
-
|
| 87 |
-
|
| 88 |
-
|
| 89 |
-
|
| 90 |
}
|
| 91 |
|
| 92 |
-
div.tabs>div.tab-nav>button {
|
| 93 |
-
|
| 94 |
-
|
| 95 |
-
|
| 96 |
-
|
| 97 |
}
|
| 98 |
|
| 99 |
-
div.tabs>div.tab-nav>button.selected {
|
| 100 |
-
|
| 101 |
-
|
| 102 |
-
|
| 103 |
-
|
| 104 |
}
|
| 105 |
|
| 106 |
div.tabs div.tabitem {
|
| 107 |
-
|
| 108 |
-
|
| 109 |
-
|
| 110 |
}
|
| 111 |
|
| 112 |
-
#input_column div.tabs>div.tab-nav>button {
|
| 113 |
-
|
| 114 |
-
|
| 115 |
-
|
| 116 |
-
|
| 117 |
}
|
| 118 |
|
| 119 |
-
#input_column div.tabs>div.tab-nav>button.selected {
|
| 120 |
-
|
| 121 |
-
|
| 122 |
-
|
| 123 |
-
|
| 124 |
}
|
| 125 |
|
| 126 |
#input_column {
|
| 127 |
-
|
| 128 |
-
|
| 129 |
-
|
| 130 |
-
|
| 131 |
-
|
| 132 |
-
|
| 133 |
-
|
| 134 |
-
|
| 135 |
-
|
| 136 |
-
|
| 137 |
-
}
|
| 138 |
}
|
| 139 |
|
| 140 |
.radio-btn-group {
|
| 141 |
-
|
| 142 |
-
|
| 143 |
-
|
| 144 |
-
|
| 145 |
-
|
| 146 |
-
|
| 147 |
-
|
| 148 |
-
|
| 149 |
-
|
| 150 |
-
}
|
| 151 |
}
|
| 152 |
|
| 153 |
.top-description h1 {
|
| 154 |
-
|
| 155 |
-
|
| 156 |
}
|
| 157 |
|
| 158 |
/* MARK: Toggle Button Checkbox */
|
| 159 |
/* INFO: gr.Checkbox elem_classes".toggle-btn" */
|
| 160 |
|
| 161 |
.toggle-btn {
|
| 162 |
-
|
| 163 |
-
|
| 164 |
-
|
| 165 |
-
|
| 166 |
-
|
| 167 |
-
|
| 168 |
-
|
| 169 |
-
|
| 170 |
-
|
| 171 |
-
|
| 172 |
-
|
| 173 |
-
|
| 174 |
-
|
| 175 |
-
|
| 176 |
-
|
| 177 |
-
|
| 178 |
-
|
| 179 |
-
|
| 180 |
-
|
| 181 |
-
|
| 182 |
-
|
| 183 |
-
|
| 184 |
-
|
| 185 |
-
|
| 186 |
-
|
| 187 |
-
|
| 188 |
-
|
| 189 |
-
|
| 190 |
-
|
| 191 |
-
|
| 192 |
-
|
| 193 |
-
|
| 194 |
-
|
| 195 |
-
|
| 196 |
-
|
| 197 |
-
|
| 198 |
-
|
| 199 |
-
|
| 200 |
-
|
| 201 |
-
|
| 202 |
-
|
| 203 |
-
|
| 204 |
-
|
| 205 |
-
|
| 206 |
-
|
| 207 |
-
|
| 208 |
-
|
| 209 |
-
|
| 210 |
-
|
| 211 |
-
|
| 212 |
-
|
| 213 |
-
|
| 214 |
-
|
| 215 |
-
|
| 216 |
-
|
| 217 |
-
|
| 218 |
-
|
| 219 |
-
|
| 220 |
-
|
| 221 |
-
|
| 222 |
-
|
| 223 |
-
|
| 224 |
-
|
| 225 |
-
}
|
| 226 |
}
|
| 227 |
|
| 228 |
-
|
| 229 |
/* MARK: Range Input */
|
| 230 |
-
input[type=range].svelte-pc1gm4 {
|
| 231 |
-
|
| 232 |
-
|
| 233 |
-
|
| 234 |
-
|
| 235 |
}
|
| 236 |
|
| 237 |
-
input[type=range].svelte-pc1gm4::-webkit-slider-thumb {
|
| 238 |
-
|
| 239 |
-
|
| 240 |
}
|
| 241 |
|
| 242 |
-
input[type=range].svelte-pc1gm4::-webkit-slider-thumb:hover {
|
| 243 |
-
|
| 244 |
}
|
| 245 |
|
| 246 |
/* MARK: Text-Color Override */
|
|
@@ -250,29 +245,29 @@ span.svelte-1gfkn6j,
|
|
| 250 |
span.svelte-1gfkn6j,
|
| 251 |
.primary.svelte-cmf5ev,
|
| 252 |
label.selected.svelte-1k4wjf2.svelte-1k4wjf2.svelte-1k4wjf2 {
|
| 253 |
-
|
| 254 |
}
|
| 255 |
|
| 256 |
.md-header {
|
| 257 |
-
|
| 258 |
-
|
| 259 |
-
|
| 260 |
-
|
| 261 |
-
|
| 262 |
-
|
| 263 |
-
|
| 264 |
-
|
| 265 |
-
|
| 266 |
-
|
| 267 |
-
|
| 268 |
-
|
| 269 |
-
|
| 270 |
-
|
| 271 |
-
|
| 272 |
-
|
| 273 |
-
|
| 274 |
-
|
| 275 |
-
|
| 276 |
-
|
| 277 |
-
|
| 278 |
-
}
|
|
|
|
| 1 |
body {
|
| 2 |
+
position: relative !important;
|
| 3 |
+
|
| 4 |
+
& #resolution_modal_wrapper {
|
| 5 |
+
position: abolute !important;
|
| 6 |
+
inset: 0;
|
| 7 |
+
display: flex;
|
| 8 |
+
justify-content: center;
|
| 9 |
+
align-items: center;
|
| 10 |
+
backdrop-filter: blur(12px);
|
| 11 |
+
|
| 12 |
+
& #alertModal {
|
| 13 |
+
position: absolute !important;
|
| 14 |
+
top: 250px;
|
| 15 |
+
left: 50%;
|
| 16 |
+
width: 400px;
|
| 17 |
+
max-width: 80vw !important;
|
| 18 |
+
min-height: 140px;
|
| 19 |
+
transform: translate(-50%, -50%);
|
| 20 |
+
padding: var(--size-4) var(--size-8);
|
| 21 |
+
background-color: var(--neutral-900) !important;
|
| 22 |
+
|
| 23 |
+
border-top-width: 8px;
|
| 24 |
+
border-right-width: 1px;
|
| 25 |
+
border-bottom-width: 1px;
|
| 26 |
+
border-left-width: 1px;
|
| 27 |
+
border-top-style: solid;
|
| 28 |
+
border-right-style: solid;
|
| 29 |
+
border-bottom-style: solid;
|
| 30 |
+
border-left-style: solid;
|
| 31 |
+
border-top-color: var(--primary-600);
|
| 32 |
+
border-right-color: var(--primary-600);
|
| 33 |
+
border-bottom-color: var(--primary-600);
|
| 34 |
+
border-left-color: var(--primary-600);
|
| 35 |
+
|
| 36 |
+
border-radius: var(--container-radius);
|
| 37 |
+
|
| 38 |
+
& #alertModalP {
|
| 39 |
+
display: flex;
|
| 40 |
+
justify-content: center;
|
| 41 |
+
|
| 42 |
+
& span {
|
| 43 |
+
color: var(--neutral-50);
|
| 44 |
+
margin-top: 0rem;
|
| 45 |
+
line-height: 1.4;
|
| 46 |
+
}
|
| 47 |
+
|
| 48 |
+
& svg {
|
| 49 |
+
font-size: 4rem;
|
| 50 |
+
margin-right: 1rem;
|
| 51 |
+
color: var(--cat-red);
|
| 52 |
+
fill: var(--cat-red);
|
| 53 |
+
}
|
| 54 |
+
}
|
| 55 |
+
|
| 56 |
+
& button {
|
| 57 |
+
color: var(--text-color-by-luminance) !important;
|
| 58 |
+
}
|
| 59 |
+
}
|
| 60 |
+
}
|
|
|
|
| 61 |
}
|
| 62 |
|
| 63 |
+
body > gradio-app {
|
| 64 |
+
/* background: var(--primary-950);
|
| 65 |
background: 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; */
|
| 66 |
+
padding-top: 30px;
|
| 67 |
+
position: relative;
|
| 68 |
}
|
| 69 |
|
| 70 |
+
body > gradio-app::before {
|
| 71 |
+
position: absolute;
|
| 72 |
+
content: "";
|
| 73 |
+
background: var(--primary-900);
|
| 74 |
+
background: linear-gradient(6deg, var(--primary-900) 0%, var(--primary-700) 100%);
|
| 75 |
+
width: 100%;
|
| 76 |
+
height: 355px;
|
| 77 |
+
top: 0;
|
| 78 |
+
z-index: 0;
|
| 79 |
+
transition: filter 0.4s ease-out;
|
| 80 |
+
filter: blur(var(--blur-value));
|
| 81 |
}
|
| 82 |
|
| 83 |
+
div.tabs > div.tab-nav {
|
| 84 |
+
border-bottom: none !important;
|
| 85 |
+
padding: 0 0.25rem 0 0.25rem !important;
|
| 86 |
+
flex-wrap: nowrap;
|
| 87 |
+
overflow-x: scroll;
|
| 88 |
+
overflow-y: hidden;
|
| 89 |
}
|
| 90 |
|
| 91 |
+
div.tabs > div.tab-nav > button {
|
| 92 |
+
color: var(--neutral-800);
|
| 93 |
+
background: var(--primary-800) !important;
|
| 94 |
+
opacity: 0.7 !important;
|
| 95 |
+
min-width: 145px !important;
|
| 96 |
}
|
| 97 |
|
| 98 |
+
div.tabs > div.tab-nav > button.selected {
|
| 99 |
+
border-width: 0 !important;
|
| 100 |
+
background: var(--primary-600) !important;
|
| 101 |
+
color: var(--neutral-950) !important;
|
| 102 |
+
font-weight: 600;
|
| 103 |
}
|
| 104 |
|
| 105 |
div.tabs div.tabitem {
|
| 106 |
+
background-color: var(--neutral-900) !important;
|
| 107 |
+
border-top: 8px solid var(--primary-600) !important;
|
| 108 |
+
border-radius: var(--container-radius) !important;
|
| 109 |
}
|
| 110 |
|
| 111 |
+
#input_column div.tabs > div.tab-nav > button {
|
| 112 |
+
color: var(--neutral-50) !important;
|
| 113 |
+
background: var(--neutral-800) !important;
|
| 114 |
+
opacity: 0.7 !important;
|
| 115 |
+
min-width: 145px !important;
|
| 116 |
}
|
| 117 |
|
| 118 |
+
#input_column div.tabs > div.tab-nav > button.selected {
|
| 119 |
+
border-width: 0 !important;
|
| 120 |
+
background: var(--primary-600) !important;
|
| 121 |
+
color: var(--neutral-950) !important;
|
| 122 |
+
font-weight: 600;
|
| 123 |
}
|
| 124 |
|
| 125 |
#input_column {
|
| 126 |
+
& div.tabs div.tabitem {
|
| 127 |
+
background-color: var(--neutral-800) !important;
|
| 128 |
+
border: 0 solid var(--neutral-800) !important;
|
| 129 |
+
border-top: 8px solid var(--primary-600) !important;
|
| 130 |
+
border-right: 0 solid var(--neutral-800) !important;
|
| 131 |
+
border-bottom: 0 solid var(--neutral-800) !important;
|
| 132 |
+
border-left: 0 solid var(--neutral-800) !important;
|
| 133 |
+
border-radius: var(--container-radius) !important;
|
| 134 |
+
padding: 0 !important;
|
| 135 |
+
}
|
|
|
|
| 136 |
}
|
| 137 |
|
| 138 |
.radio-btn-group {
|
| 139 |
+
& label {
|
| 140 |
+
font-weight: bold !important;
|
| 141 |
+
}
|
| 142 |
+
|
| 143 |
+
& label:has(input[type="radio"]:checked),
|
| 144 |
+
label:has(input[type="radio"]:not(:checked)):hover {
|
| 145 |
+
transition: color 0.4s ease-out, background 0.4s ease-out;
|
| 146 |
+
color: var(--neutral-900) !important;
|
| 147 |
+
}
|
|
|
|
| 148 |
}
|
| 149 |
|
| 150 |
.top-description h1 {
|
| 151 |
+
color: var(--neutral-400);
|
| 152 |
+
font-size: 2rem;
|
| 153 |
}
|
| 154 |
|
| 155 |
/* MARK: Toggle Button Checkbox */
|
| 156 |
/* INFO: gr.Checkbox elem_classes".toggle-btn" */
|
| 157 |
|
| 158 |
.toggle-btn {
|
| 159 |
+
display: flex;
|
| 160 |
+
flex-direction: column-reverse;
|
| 161 |
+
|
| 162 |
+
& > div.wrap {
|
| 163 |
+
display: none;
|
| 164 |
+
}
|
| 165 |
+
|
| 166 |
+
& > div:not(.wrap) {
|
| 167 |
+
margin-top: var(--spacing-lg);
|
| 168 |
+
margin-bottom: 0;
|
| 169 |
+
}
|
| 170 |
+
|
| 171 |
+
& > label {
|
| 172 |
+
position: relative;
|
| 173 |
+
width: 57px;
|
| 174 |
+
height: 27px;
|
| 175 |
+
display: inline-block;
|
| 176 |
+
border-radius: 13px;
|
| 177 |
+
background: var(--neutral-700);
|
| 178 |
+
box-shadow: var(--shadow-inset);
|
| 179 |
+
transition: background-color 0.3s, cursor 0.3s;
|
| 180 |
+
border: solid 0.4px var(--border-color-primary);
|
| 181 |
+
cursor: pointer;
|
| 182 |
+
|
| 183 |
+
& > input[type="checkbox"] {
|
| 184 |
+
width: 0;
|
| 185 |
+
height: 0;
|
| 186 |
+
opacity: 0;
|
| 187 |
+
}
|
| 188 |
+
|
| 189 |
+
& > span {
|
| 190 |
+
position: absolute;
|
| 191 |
+
left: 60px;
|
| 192 |
+
height: 27px;
|
| 193 |
+
min-width: 140px;
|
| 194 |
+
line-height: 27px;
|
| 195 |
+
}
|
| 196 |
+
}
|
| 197 |
+
|
| 198 |
+
& > label:has(input[type="checkbox"])::after {
|
| 199 |
+
content: "";
|
| 200 |
+
position: absolute;
|
| 201 |
+
top: 3px;
|
| 202 |
+
left: 3px;
|
| 203 |
+
width: 20px;
|
| 204 |
+
height: 20px;
|
| 205 |
+
border-radius: 50%;
|
| 206 |
+
background: var(--neutral-900);
|
| 207 |
+
box-shadow: var(--shadow-inset);
|
| 208 |
+
transition: left 0.2s ease-in-out, background 0.2s ease-in-out;
|
| 209 |
+
}
|
| 210 |
+
|
| 211 |
+
& > label:has(input[type="checkbox"]:checked)::after {
|
| 212 |
+
content: "";
|
| 213 |
+
position: absolute;
|
| 214 |
+
background: var(--neutral-900);
|
| 215 |
+
opacity: 0.8;
|
| 216 |
+
left: 32px;
|
| 217 |
+
}
|
| 218 |
+
|
| 219 |
+
& > label:has(input[type="checkbox"]:checked) {
|
| 220 |
+
background: var(--primary-600);
|
| 221 |
+
}
|
|
|
|
| 222 |
}
|
| 223 |
|
|
|
|
| 224 |
/* MARK: Range Input */
|
| 225 |
+
input[type="range"].svelte-pc1gm4 {
|
| 226 |
+
accent-color: var(--slider-color);
|
| 227 |
+
background: var(--neutral-700) !important;
|
| 228 |
+
background-image: linear-gradient(var(--slider-color), var(--slider-color)) !important;
|
| 229 |
+
background-size: 0% 100%;
|
| 230 |
}
|
| 231 |
|
| 232 |
+
input[type="range"].svelte-pc1gm4::-webkit-slider-thumb {
|
| 233 |
+
background-color: var(--primary-600);
|
| 234 |
+
border-width: 0;
|
| 235 |
}
|
| 236 |
|
| 237 |
+
input[type="range"].svelte-pc1gm4::-webkit-slider-thumb:hover {
|
| 238 |
+
background-color: var(--primary-500);
|
| 239 |
}
|
| 240 |
|
| 241 |
/* MARK: Text-Color Override */
|
|
|
|
| 245 |
span.svelte-1gfkn6j,
|
| 246 |
.primary.svelte-cmf5ev,
|
| 247 |
label.selected.svelte-1k4wjf2.svelte-1k4wjf2.svelte-1k4wjf2 {
|
| 248 |
+
color: var(--text-color-by-luminance) !important;
|
| 249 |
}
|
| 250 |
|
| 251 |
.md-header {
|
| 252 |
+
& h1 {
|
| 253 |
+
color: var(--primary-950) !important;
|
| 254 |
+
}
|
| 255 |
+
|
| 256 |
+
& p {
|
| 257 |
+
color: var(--neutral-800) !important;
|
| 258 |
+
line-height: 1.5 !important;
|
| 259 |
+
font-size: 1.1rem !important;
|
| 260 |
+
|
| 261 |
+
& i {
|
| 262 |
+
display: inline-flex;
|
| 263 |
+
align-items: center;
|
| 264 |
+
justify-content: center;
|
| 265 |
+
|
| 266 |
+
& svg {
|
| 267 |
+
font-size: inherit !important;
|
| 268 |
+
width: 16px !important;
|
| 269 |
+
height: 16px !important;
|
| 270 |
+
}
|
| 271 |
+
}
|
| 272 |
+
}
|
| 273 |
+
}
|