removed color
Browse files- demo/css.css +3 -38
demo/css.css
CHANGED
|
@@ -9,29 +9,18 @@ html,body{margin:0;padding:0}
|
|
| 9 |
body{
|
| 10 |
font-family:"Inter",system-ui,sans-serif;
|
| 11 |
-webkit-font-smoothing:antialiased;
|
| 12 |
-
background:var(--color-bg-app);
|
| 13 |
-
color:var(--color-fg-default);
|
| 14 |
}
|
| 15 |
:where(img,video){max-width:100%;display:block}
|
| 16 |
|
| 17 |
/* 2️⃣ Theme tokens – cobalt primary with automatic dark switch */
|
| 18 |
:root{
|
| 19 |
-
/* Gradio 5 design-system variables – override only what we need */
|
| 20 |
-
--color-primary: #0047AB; /* cobalt */
|
| 21 |
-
--color-primary-hover: #003a8f;
|
| 22 |
-
--color-accent: var(--color-primary); /* slider / accent */
|
| 23 |
--radius-base: 12px;
|
| 24 |
--shadow-xs: 0 1px 2px rgb(0 0 0 / .04);
|
| 25 |
--shadow-sm: 0 2px 4px rgb(0 0 0 / .08);
|
| 26 |
--shadow-md: 0 4px 8px rgb(0 0 0 / .12);
|
| 27 |
}
|
| 28 |
|
| 29 |
-
|
| 30 |
-
:root{
|
| 31 |
-
--color-primary: #86b5ff; /* light cobalt */
|
| 32 |
-
--color-primary-hover:#9ac5ff;
|
| 33 |
-
}
|
| 34 |
-
}
|
| 35 |
|
| 36 |
/* 3️⃣ Helpers */
|
| 37 |
.flow>*+*{margin-top:1rem}
|
|
@@ -45,22 +34,9 @@ h2{font-size:clamp(1.6rem,1.5vw+1.2rem,2rem);line-height:1.15}
|
|
| 45 |
h3{font-size:clamp(1.3rem,1vw+1rem,1.6rem);line-height:1.2}
|
| 46 |
p{font-size:clamp(1rem,.6vw+.9rem,1.125rem);line-height:1.6}
|
| 47 |
|
| 48 |
-
/* 5️⃣ Hero banner */
|
| 49 |
-
.main-header{
|
| 50 |
-
padding:3rem 1.25rem;
|
| 51 |
-
text-align:center;
|
| 52 |
-
border-radius:var(--radius-base);
|
| 53 |
-
background:linear-gradient(135deg,var(--color-primary),var(--color-primary-hover));
|
| 54 |
-
color:#fff;
|
| 55 |
-
box-shadow:var(--shadow-md);
|
| 56 |
-
}
|
| 57 |
-
@media(prefers-color-scheme:dark){
|
| 58 |
-
.main-header{background:linear-gradient(135deg,#003a8f,#002866)}
|
| 59 |
-
}
|
| 60 |
|
| 61 |
/* 6️⃣ Cards / surfaces */
|
| 62 |
.card,.gr-group{
|
| 63 |
-
background:rgba(255,255,255,.6);
|
| 64 |
backdrop-filter:blur(12px) saturate(125%);
|
| 65 |
border:1px solid rgba(0,0,0,.04);
|
| 66 |
border-radius:var(--radius-base);
|
|
@@ -69,7 +45,6 @@ p{font-size:clamp(1rem,.6vw+.9rem,1.125rem);line-height:1.6}
|
|
| 69 |
}
|
| 70 |
@media(prefers-color-scheme:dark){
|
| 71 |
.card,.gr-group{
|
| 72 |
-
background:rgba(0,0,0,.35);
|
| 73 |
border:1px solid rgba(255,255,255,.05);
|
| 74 |
}
|
| 75 |
}
|
|
@@ -80,7 +55,6 @@ p{font-size:clamp(1rem,.6vw+.9rem,1.125rem);line-height:1.6}
|
|
| 80 |
overflow:auto;
|
| 81 |
font-family:Consolas,monospace;
|
| 82 |
font-size:.9rem;
|
| 83 |
-
background:var(--color-bg-secondary);
|
| 84 |
border-radius:var(--radius-base);
|
| 85 |
padding:.75rem;
|
| 86 |
box-shadow:var(--shadow-xs);
|
|
@@ -90,20 +64,14 @@ p{font-size:clamp(1rem,.6vw+.9rem,1.125rem);line-height:1.6}
|
|
| 90 |
.gradio-container .gr-tab-nav button{
|
| 91 |
font-weight:500;padding:.6rem 1.2rem;transition:all .15s ease;
|
| 92 |
}
|
| 93 |
-
.gradio-container .gr-tab-nav button[aria-selected="true"]{
|
| 94 |
-
color:var(--color-primary);box-shadow:inset 0 -2px 0 0 var(--color-primary);
|
| 95 |
-
}
|
| 96 |
|
| 97 |
/* 9️⃣ Buttons & sliders */
|
| 98 |
.gradio-container [data-testid="component-button"]{
|
| 99 |
border-radius:var(--radius-base);font-weight:600;
|
| 100 |
-
background:var(--color-primary);color:var(--color-fg-on-primary);transition:.15s;
|
| 101 |
-
}
|
| 102 |
-
.gradio-container [data-testid="component-button"]:hover{
|
| 103 |
-
background:var(--color-primary-hover);
|
| 104 |
}
|
|
|
|
| 105 |
.gradio-container input[type="range"]::-webkit-slider-thumb{
|
| 106 |
-
width:14px;height:14px;border-radius:50%;
|
| 107 |
}
|
| 108 |
|
| 109 |
/* 🔟 Video preview */
|
|
@@ -111,9 +79,6 @@ p{font-size:clamp(1rem,.6vw+.9rem,1.125rem);line-height:1.6}
|
|
| 111 |
|
| 112 |
/* 1️⃣1️⃣ Footer badge */
|
| 113 |
.author-info{
|
| 114 |
-
background:linear-gradient(135deg,var(--color-primary),var(--color-primary-hover));
|
| 115 |
-
color:#fff;border-radius:var(--radius-base);padding:1rem;font-size:.85rem;
|
| 116 |
text-align:center;box-shadow:var(--shadow-sm);
|
| 117 |
}
|
| 118 |
-
.author-info a{color:#ffe;width:max-content;text-decoration:none}
|
| 119 |
.author-info a:hover{text-decoration:underline}
|
|
|
|
| 9 |
body{
|
| 10 |
font-family:"Inter",system-ui,sans-serif;
|
| 11 |
-webkit-font-smoothing:antialiased;
|
|
|
|
|
|
|
| 12 |
}
|
| 13 |
:where(img,video){max-width:100%;display:block}
|
| 14 |
|
| 15 |
/* 2️⃣ Theme tokens – cobalt primary with automatic dark switch */
|
| 16 |
:root{
|
|
|
|
|
|
|
|
|
|
|
|
|
| 17 |
--radius-base: 12px;
|
| 18 |
--shadow-xs: 0 1px 2px rgb(0 0 0 / .04);
|
| 19 |
--shadow-sm: 0 2px 4px rgb(0 0 0 / .08);
|
| 20 |
--shadow-md: 0 4px 8px rgb(0 0 0 / .12);
|
| 21 |
}
|
| 22 |
|
| 23 |
+
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 24 |
|
| 25 |
/* 3️⃣ Helpers */
|
| 26 |
.flow>*+*{margin-top:1rem}
|
|
|
|
| 34 |
h3{font-size:clamp(1.3rem,1vw+1rem,1.6rem);line-height:1.2}
|
| 35 |
p{font-size:clamp(1rem,.6vw+.9rem,1.125rem);line-height:1.6}
|
| 36 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 37 |
|
| 38 |
/* 6️⃣ Cards / surfaces */
|
| 39 |
.card,.gr-group{
|
|
|
|
| 40 |
backdrop-filter:blur(12px) saturate(125%);
|
| 41 |
border:1px solid rgba(0,0,0,.04);
|
| 42 |
border-radius:var(--radius-base);
|
|
|
|
| 45 |
}
|
| 46 |
@media(prefers-color-scheme:dark){
|
| 47 |
.card,.gr-group{
|
|
|
|
| 48 |
border:1px solid rgba(255,255,255,.05);
|
| 49 |
}
|
| 50 |
}
|
|
|
|
| 55 |
overflow:auto;
|
| 56 |
font-family:Consolas,monospace;
|
| 57 |
font-size:.9rem;
|
|
|
|
| 58 |
border-radius:var(--radius-base);
|
| 59 |
padding:.75rem;
|
| 60 |
box-shadow:var(--shadow-xs);
|
|
|
|
| 64 |
.gradio-container .gr-tab-nav button{
|
| 65 |
font-weight:500;padding:.6rem 1.2rem;transition:all .15s ease;
|
| 66 |
}
|
|
|
|
|
|
|
|
|
|
| 67 |
|
| 68 |
/* 9️⃣ Buttons & sliders */
|
| 69 |
.gradio-container [data-testid="component-button"]{
|
| 70 |
border-radius:var(--radius-base);font-weight:600;
|
|
|
|
|
|
|
|
|
|
|
|
|
| 71 |
}
|
| 72 |
+
|
| 73 |
.gradio-container input[type="range"]::-webkit-slider-thumb{
|
| 74 |
+
width:14px;height:14px;border-radius:50%;
|
| 75 |
}
|
| 76 |
|
| 77 |
/* 🔟 Video preview */
|
|
|
|
| 79 |
|
| 80 |
/* 1️⃣1️⃣ Footer badge */
|
| 81 |
.author-info{
|
|
|
|
|
|
|
| 82 |
text-align:center;box-shadow:var(--shadow-sm);
|
| 83 |
}
|
|
|
|
| 84 |
.author-info a:hover{text-decoration:underline}
|