From f9741e594916deaf79bc24ed7bc82015276e8b77 Mon Sep 17 00:00:00 2001 From: Belem Zhang Date: Wed, 20 Nov 2024 15:37:56 +0800 Subject: [PATCH] Code refactoring - Remove redundant CSS --- assets/css/style.css | 258 ++- assets/js/common_utils.js | 8 +- assets/js/index.js | 2 +- demos/image-classification/index.html | 480 ++--- demos/image-classification/static/main.css | 231 +-- demos/phi-3-mini/index.html | 3 +- demos/phi-3-mini/static/main.css | 2048 +++++++++----------- demos/phi-3-mini/utils.js | 24 +- demos/sd-turbo/index.html | 3 +- demos/sd-turbo/static/main.css | 2012 +++++++++---------- demos/segment-anything/index.html | 328 ++-- demos/segment-anything/static/main.css | 925 ++++----- demos/stable-diffusion-1.5/index.html | 3 +- demos/stable-diffusion-1.5/static/main.css | 174 +- demos/whisper-base/index.html | 462 ++--- demos/whisper-base/static/main.css | 258 +-- demos/whisper-base/utils.js | 24 +- 17 files changed, 3049 insertions(+), 4194 deletions(-) diff --git a/assets/css/style.css b/assets/css/style.css index 96c9068..5ddc4a4 100644 --- a/assets/css/style.css +++ b/assets/css/style.css @@ -31,34 +31,156 @@ } :root { - --font: rgba(45, 45, 45, 1); - --highlight: rgba(39, 94, 254, 1); - --highlight-08: rgba(39, 94, 254, 0.8); - --highlight-05: rgba(39, 94, 254, 0.5); + --bg: rgba(255, 255, 255, 1); + --bg-05: rgb(255, 255, 255, 0.05); + --bg-2: rgb(255, 255, 255, 0.2); + --bg-3: rgba(200, 200, 200, 0.2); + --bg-4: rgba(255, 255, 255, 0.4); + --bg-6: rgb(255, 255, 255, 0.6); + --bg-8: rgba(255, 255, 255, 0.8); + --bg-btn: rgba(255, 255, 255, 1); + --black-02: rgba(0, 0, 0, 0.02); + --black-05: rgba(0, 0, 0, 0.05); + --black-2: rgba(240, 240, 240, 0.2); + --border: rgb(230, 230, 230, 1); + --border-1: rgb(230, 230, 230, 0.1); + --border-5: rgb(230, 230, 230, 0.5); + --border-6: rgb(230, 230, 230, 0.6); --darker: rgba(24, 79, 238, 1); --darkest: rgba(20, 74, 204, 1); - --white: rgba(255, 255, 255, 1); - --white-02: rgba(255, 255, 255, 0.2); - --grey: rgba(107, 114, 128, 1); - --grey-05: rgba(107, 114, 128, 0.5); + --disabled: rgba(245, 245, 245, 0.2); + --font: rgba(45, 45, 45, 1); + --font-2: rgba(53, 53, 53, 1); + --font-weak: rgba(0, 0, 0, 0.6); --green: rgba(1, 212, 73, 1); + --green-1: rgba(1, 212, 73, 0.1); + --green-2: rgba(1, 212, 73, 0.2); + --green-03: rgba(1, 212, 73, 0.03); + --grey: rgba(107, 114, 128, 1); + --grey-5: rgba(107, 114, 128, 0.5); + --highlight: rgba(39, 94, 254, 1); + --highlight-5: rgba(39, 94, 254, 0.5); + --highlight-8: rgba(39, 94, 254, 0.8); + --main: rgba(38, 92, 255, 1); + --main-01: rgba(39, 94, 254, 0.01); + --main-05: rgba(39, 94, 254, 0.05); + --main-1: rgba(39, 94, 254, 0.1); + --main-5: rgba(39, 94, 254, 0.5); + --main-6: rgba(39, 94, 254, 0.6); + --main-alpha-2: rgba(230, 230, 230, 0.2); + --main-alpha-4: rgba(230, 230, 230, 0.4); + --main-dark: rgb(24, 79, 238, 1); + --main-darker: rgb(20, 74, 204, 1); + --npu: rgba(1, 7, 52, 1); + --npu-08: rgba(1, 7, 52, 0.8); --pink: rgba(255, 0, 129, 1); - --green-02: rgba(1, 212, 73, 0.2); - --pink-02: rgba(255, 0, 129, 0.2); - --green-01: rgba(1, 212, 73, 0.1); - --pink-01: rgba(255, 0, 129, 0.1); - --green-003: rgba(1, 212, 73, 0.03); - --pink-003: rgba(255, 0, 129, 0.03); + --pink-03: rgba(255, 0, 129, 0.03); + --pink-1: rgba(255, 0, 129, 0.1); + --pink-2: rgba(255, 0, 129, 0.2); + --pink-6: rgba(255, 0, 129, 0.6); + --pink-8: rgba(255, 0, 129, 0.8); + --scroll-1: rgb(0, 0, 0, 0.1); + --scroll-2: rgb(0, 0, 0, 0.2); +} + +* { + box-sizing: border-box; } body { margin: 0; padding: 0; font-size: 1rem; - line-height: 1.5; color: var(--font); - background-color: var(--white); font-family: "Archivo", "Segoe UI", SegoeUI, "Helvetica Neue", Helvetica, Arial, sans-serif; + scrollbar-width: auto; + scrollbar-color: var(--main-1), transparent; + font-weight: 400; + background-color: var(--bg); +} + +#badge { + border-radius: 3px; + align-self: center; + padding: 4px 10px; + color: var(--bg); + box-shadow: 0px 1px 10px rgba(0, 0, 0, 0.2); + background: linear-gradient(to right bottom, var(--pink-6), var(--pink-8), var(--pink)); + display: grid; + grid-template-columns: 2fr 1fr; + grid-template-rows: 1fr; + column-gap: 10px; + align-items: center; + justify-items: center; + width: 120px; + justify-self: flex-end; +} + +#badge:hover { + background: linear-gradient(135deg, var(--pink-8) 0%, var(--pink) 40%, var(--pink) 100%); + box-shadow: 0 3px 15px -1px var(--pink-6); +} + +#badge.npu { + background: linear-gradient(to right bottom, rgba(117, 116, 242), var(--npu)); +} + +#badge.npu:hover { + background: linear-gradient(to right bottom, rgba(117, 116, 242), var(--npu-08), var(--npu)); + box-shadow: 0 3px 15px -1px var(--npu); +} + +#badge.cpu { + background: linear-gradient(to right bottom, var(--main-6), var(--main)); +} + +#badge.cpu:hover { + background: linear-gradient(to right bottom, var(--main), var(--main-dark), var(--main-darker)); + box-shadow: 0 3px 15px -1px var(--main-darker); +} + +.badge-text { + display: flex; + flex-direction: column; +} + +.badge-text span { + font-size: 0.6rem; +} + +.tiles { + display: grid; + grid-template-columns: 1fr 1fr 1fr; + grid-template-rows: 1fr; + column-gap: 2px; + row-gap: 2px; + align-items: center; +} + +.tile { + border: 1px solid var(--bg); + padding: 2px; + border-radius: 1px; +} + +.t4 { + border-color: var(--bg-8); +} + +.t3 { + border-color: var(--bg-6); +} + +.t2 { + border-color: var(--bg-4); +} + +.t1 { + border-color: var(--bg-2); +} + +.t0 { + border-color: var(--bg-05); } #banner { @@ -69,9 +191,10 @@ body { } .banner-content { - padding: 0 40px; + padding: 0px; height: 30vh; max-width: 90vw; + line-height: 1.5; display: flex; flex-direction: column; align-items: center; @@ -153,6 +276,67 @@ header:hover #webnn-logo circle._logo_n3 { stroke: #61bafb; } +.v1:hover #webnn-logo path._logo_n1, +.v1:hover #webnn-logo circle._logo_n1 { + fill: #4777c0; +} + +.v1:hover #webnn-logo path._logo_n2, +.v1:hover #webnn-logo circle._logo_n2 { + stroke: #61bafb; + fill: #61bafb; +} + +.v1:hover #webnn-logo circle._logo_n3 { + stroke: #61bafb; +} + +.log-output::-webkit-scrollbar, +#outputText::-webkit-scrollbar, +#scroll-wrapper::-webkit-scrollbar { + width: 2px !important; + height: 2px !important; +} + +.log-output::-webkit-scrollbar-track, +#outputText::-webkit-scrollbar-track, +#scroll-wrapper::-webkit-scrollbar-track { + background: var(--main-01); +} + +.log-output::-webkit-scrollbar-thumb, +#outputText::-webkit-scrollbar-thumb, +#scroll-wrapper::-webkit-scrollbar-thumb { + background-color: var(--border-6); + border-radius: 5px; + border: 2px solid transparent; +} + +.log-output:hover::-webkit-scrollbar-thumb, +#outputText:hover::-webkit-scrollbar-thumb, +#scroll-wrapper:hover::-webkit-scrollbar-thumb { + background-color: var(--border); +} + +textarea::-webkit-scrollbar { + width: 3px !important; + height: 3px !important; +} + +textarea::-webkit-scrollbar-track { + background: var(--main-01); +} + +textarea::-webkit-scrollbar-thumb { + background-color: var(--scroll-1); + border-radius: 5px; + border: 3px solid transparent; +} + +textarea:hover::-webkit-scrollbar-thumb { + background-color: var(--scroll-2); +} + h1 { font-size: 1.2rem; margin: 0; @@ -160,12 +344,12 @@ h1 { h2.title { font-size: 1.3rem; - margin: 10px 0 -6px 0; + margin: 0.5rem 0 0px 0; } .category { font-size: 14px; - color: var(--grey-05); + color: var(--grey-5); } .description:hover .category, @@ -179,7 +363,7 @@ h2.title { display: grid; grid-template-columns: repeat(4, 1fr); grid-column-gap: 2px; - grid-row-gap: 10px; + grid-row-gap: 1rem; justify-content: center; justify-items: center; } @@ -188,7 +372,7 @@ h2.title { display: grid; grid-template-columns: repeat(2, 1fr); grid-column-gap: 2px; - grid-row-gap: 10px; + grid-row-gap: 1rem; padding: 0 0; } @@ -229,7 +413,7 @@ a:focus { } .thumb:hover { - box-shadow: 0 3px 15px -1px var(--highlight-05); + box-shadow: 0 3px 15px -1px var(--highlight-5); } .thumb:hover .sample::after, @@ -301,12 +485,12 @@ a:focus { } .github { - background: var(--white-02) url(../icon/github.svg) no-repeat 50% 50%; + background: var(--bg-2) url(../icon/github.svg) no-repeat 50% 50%; background-size: 16px; } .github:hover { - background: var(--highlight-05) url(../icon/github.svg) no-repeat 50% 50%; + background: var(--highlight-5) url(../icon/github.svg) no-repeat 50% 50%; background-size: 16px; } @@ -316,14 +500,14 @@ a:focus { padding: 0px 6px; border-radius: 3px; text-decoration: none; - background-color: var(--pink-003); - border-bottom: 1px dashed var(--pink-02); + background-color: var(--pink-03); + border-bottom: 1px dashed var(--pink-2); font-size: 0.9rem; } #install-guides a:hover { background-color: var(--pink); - color: var(--white); + color: var(--bg); } #install-guides ol, @@ -338,8 +522,8 @@ a:focus { code { margin: 1px auto; - background-color: var(--green-003); - border-bottom: 1px dashed var(--green-02); + background-color: var(--green-03); + border-bottom: 1px dashed var(--green-2); display: inline-block; padding: 0px 6px; border-radius: 3px; @@ -349,7 +533,7 @@ code { code:hover { background-color: var(--green); - color: var(--white); + color: var(--bg); font-weight: 800; } @@ -370,7 +554,7 @@ code:hover { .tags span { color: rgb(0 0 0 / 75%); white-space: nowrap; - border: 1px solid var(--grey-05); + border: 1px solid var(--grey-5); border-radius: 2rem; padding: 1px 0.4rem 1px 0.4rem; margin: 0 3px; @@ -383,9 +567,9 @@ code:hover { .tags a:hover, .tags span:hover { border: 1px solid var(--highlight); - color: var(--white); - background: linear-gradient(135deg, var(--highlight) 0%, var(--highlight-08) 40%, var(--highlight-08) 100%); - box-shadow: 0 3px 15px -1px var(--highlight-05); + color: var(--bg); + background: linear-gradient(135deg, var(--highlight) 0%, var(--highlight-8) 40%, var(--highlight-8) 100%); + box-shadow: 0 3px 15px -1px var(--highlight-5); } footer { @@ -423,7 +607,7 @@ footer ul li a:hover { margin-bottom: 10px; } -#status > div { +#status>div { padding: 2px 6px 1px 6px; border-radius: 3px; } @@ -434,7 +618,7 @@ footer ul li a:hover { color: white; } -#status.red > a { +#status.red>a { background-color: var(--pink); color: white; padding: 2px 6px 1px 6px; @@ -569,4 +753,4 @@ footer ul li a:hover { .backend { justify-self: left; } -} +} \ No newline at end of file diff --git a/assets/js/common_utils.js b/assets/js/common_utils.js index 4f3d178..230649e 100644 --- a/assets/js/common_utils.js +++ b/assets/js/common_utils.js @@ -77,18 +77,18 @@ export const updateQueryStringParameter = (uri, key, value) => { export const log = i => { console.log(i); if (getMode()) { - $("#status").innerText += `\n[${getTime()}] ${i}`; + $("#log").innerText += `\n[${getTime()}] ${i}`; } else { - $("#status").innerText += `\n${i}`; + $("#log").innerText += `\n${i}`; } }; export const logError = i => { console.error(i); if (getMode()) { - $("#status").innerText += `\n[${getTime()}] ${i}`; + $("#log").innerText += `\n[${getTime()}] ${i}`; } else { - $("#status").innerText += `\n${i}`; + $("#log").innerText += `\n${i}`; } }; diff --git a/assets/js/index.js b/assets/js/index.js index ba04b91..581386d 100644 --- a/assets/js/index.js +++ b/assets/js/index.js @@ -2,7 +2,7 @@ import { $, getWebnnStatus } from "./common_utils.js"; async function webnnChecker() { const webnnStatus = await getWebnnStatus(); - const status = $("#status"); + const status = $("#log"); const browser = $("#browser"); const chromium = $("#chromium"); const webnn = $("#webnn"); diff --git a/demos/image-classification/index.html b/demos/image-classification/index.html index 25d9b94..68bfaf0 100644 --- a/demos/image-classification/index.html +++ b/demos/image-classification/index.html @@ -1,310 +1,224 @@ - - - WebNN Developer Preview - Image Classification - - - - - - - - -
-

- - - WebNN Image Classification -

-
-
- Powered by -
GPU
-
-
-
-
-
-
-
-
-
-
-
-
+ + + WebNN Developer Preview - Image Classification + + + + + + + + + + +
+

+ + + WebNN Image Classification +

+
+
+ Powered by +
GPU
+
+
+
+
+
+
+
+
+
+
+
-
-
-
-
- +
+
+
+
+
+ +
+
+
+ + +
-
-
- - - +
+ + + +
+
+ +
+ 1 run
-
- - -
+
+
+ -
-
- -
- 1 run -
-
-
-
- - -
+
-
-
-
- 0 - ms -
-
- · -
- -
- - - - - - - - - - - - - - - - - - - - - - - - - -
IndicatorResultIndicatorResult
First InferenceBest Inference
Average InferenceMedian Inference
Throughput
-
+
+
+
+
+ 0 + ms +
+
+ · +
- +
+
- - - + + + + - - - + + + + - - - + + + + - - - + + + +
#LabelScoreIndicatorResultIndicatorResult
1First InferenceBest Inference
2Average InferenceMedian Inference
3Throughput
+ + + + + + + + + + + + + + + + + + + + + + +
#LabelScore
1
2
3
+
-
+
-
-
- WebNN -
-
-
-
-
+
+
+ WebNN +
+
+
+
- - +
+ + + \ No newline at end of file diff --git a/demos/image-classification/static/main.css b/demos/image-classification/static/main.css index dedcd6a..6ea0d1a 100644 --- a/demos/image-classification/static/main.css +++ b/demos/image-classification/static/main.css @@ -1,156 +1,3 @@ -@font-face { - font-display: swap; - font-family: "Archivo"; - font-style: normal; - font-weight: 300; - src: url("./fonts/archivo/archivo-v19-latin-300.woff2") format("woff2"); -} - -@font-face { - font-display: swap; - font-family: "Archivo"; - font-style: normal; - font-weight: 400; - src: url("./fonts/archivo/archivo-v19-latin-regular.woff2") format("woff2"); -} - -@font-face { - font-display: swap; - font-family: "Archivo"; - font-style: normal; - font-weight: 600; - src: url("./fonts/archivo/archivo-v19-latin-600.woff2") format("woff2"); -} - -@font-face { - font-display: swap; - font-family: "Archivo"; - font-style: normal; - font-weight: 700; - src: url("./fonts/archivo/archivo-v19-latin-700.woff2") format("woff2"); -} - -:root { - --bg: rgba(255, 255, 255, 1); - --black-02: rgba(240, 240, 240, 0.2); - --font: rgba(45, 45, 45, 1); - --font-2: rgba(53, 53, 53, 1); - --font-weak: rgba(0, 0, 0, 0.6); - --disabled: rgba(245, 245, 245, 0.2); - --bg-05: rgb(255, 255, 255, 0.05); - --bg-2: rgb(255, 255, 255, 0.2); - --bg-4: rgba(255, 255, 255, 0.4); - --bg-6: rgb(255, 255, 255, 0.6); - --bg-8: rgba(255, 255, 255, 0.8); - --bg-btn: rgba(255, 255, 255, 1); - --npu: rgba(1, 7, 52, 1); - --npu-08: rgba(1, 7, 52, 0.8); - --main-01: rgba(39, 94, 254, 0.1); - --main-04: rgba(39, 94, 254, 0.4); - --main-001: rgba(39, 94, 254, 0.01); - --main-005: rgba(39, 94, 254, 0.05); - --main-05: rgba(39, 94, 254, 0.5); - --main-06: rgba(39, 94, 254, 0.6); - --scroll: rgb(0, 0, 0, 0.1); - --scroll-2: rgb(0, 0, 0, 0.2); - --main: rgba(38, 92, 255, 1); - --main-dark: rgb(24, 79, 238, 1); - --main-darker: rgb(20, 74, 204, 1); - --border: rgb(230, 230, 230, 1); - --border-2: rgb(230, 230, 230, 0.6); - --green: rgba(1, 212, 73, 1); - --pink: rgba(255, 0, 129, 1); - --pink-08: rgba(255, 0, 129, 0.8); - --pink-06: rgba(255, 0, 129, 0.6); - --green-01: rgba(1, 212, 73, 0.1); - --pink-01: rgba(255, 0, 129, 0.1); - --green-02: rgba(1, 212, 73, 0.2); - --pink-02: rgba(255, 0, 129, 0.2); -} - -* { - box-sizing: border-box; -} - -body { - font-family: "Archivo", "Segoe UI", SegoeUI, "Helvetica Neue", Helvetica, Arial, sans-serif; - font-weight: 400; - margin: 0; - padding: 0; - background-color: var(--bg); - color: var(--font); - font-size: 16px; -} - -body { - scrollbar-width: auto; - scrollbar-color: var(--main-01), transparent; -} - -#badge { - border-radius: 3px; - align-self: center; - padding: 4px 10px; - color: var(--bg); - box-shadow: 0px 1px 10px rgba(0, 0, 0, 0.2); - background: linear-gradient(to right bottom, var(--pink-06), var(--pink-08), var(--pink)); - display: grid; - grid-template-columns: 2fr 1fr; - grid-template-rows: 1fr; - column-gap: 10px; - align-items: center; - justify-items: center; - width: 120px; - justify-self: flex-end; -} - -#badge:hover { - background: linear-gradient(135deg, var(--pink-08) 0%, var(--pink) 40%, var(--pink) 100%); - box-shadow: 0 3px 15px -1px var(--pink-06); -} - -#badge.npu { - background: linear-gradient(to right bottom, rgba(117, 116, 242), var(--npu)); -} - -#badge.npu:hover { - background: linear-gradient(to right bottom, rgba(117, 116, 242), var(--npu-08), var(--npu)); - box-shadow: 0 3px 15px -1px var(--npu); -} - -#badge.cpu { - background: linear-gradient(to right bottom, var(--main-06), var(--main)); -} - -#badge.cpu:hover { - background: linear-gradient(to right bottom, var(--main), var(--main-dark), var(--main-darker)); - box-shadow: 0 3px 15px -1px var(--main-darker); -} - -.badge-text { - display: flex; - flex-direction: column; -} - -.badge-text span { - font-size: 0.6rem; -} - -.tiles { - display: grid; - grid-template-columns: 1fr 1fr 1fr; - grid-template-rows: 1fr; - column-gap: 2px; - row-gap: 2px; - align-items: center; -} - -.tile { - border: 1px solid var(--bg); - padding: 2px; - border-radius: 1px; -} - #left { display: grid; align-items: center; @@ -164,59 +11,6 @@ body { margin: 0 6px 0 10px; } -.v1:hover #webnn-logo path._logo_n1, -.v1:hover #webnn-logo circle._logo_n1 { - fill: #4777c0; -} - -.v1:hover #webnn-logo path._logo_n2, -.v1:hover #webnn-logo circle._logo_n2 { - stroke: #61bafb; - fill: #61bafb; -} - -.v1:hover #webnn-logo circle._logo_n3 { - stroke: #61bafb; -} - -.log-output::-webkit-scrollbar { - width: 3px !important; - height: 3px !important; -} - -.log-output::-webkit-scrollbar-track { - background: var(--main-001); -} - -.log-output::-webkit-scrollbar-thumb { - background-color: var(--scroll); - border-radius: 5px; - border: 3px solid transparent; -} - -.log-output:hover::-webkit-scrollbar-thumb { - background-color: var(--scroll-2); -} - -textarea::-webkit-scrollbar { - width: 3px !important; - height: 3px !important; -} - -textarea::-webkit-scrollbar-track { - background: var(--main-001); -} - -textarea::-webkit-scrollbar-thumb { - background-color: var(--scroll); - border-radius: 5px; - border: 3px solid transparent; -} - -textarea:hover::-webkit-scrollbar-thumb { - background-color: var(--scroll-2); -} - h1 { padding: 0 0 0 0; font-weight: 700; @@ -237,7 +31,7 @@ h1.title span { width: 24px; height: 24px; border-radius: 48px; - border: 1px solid var(--main-05); + border: 1px solid var(--main-5); display: grid; align-items: center; justify-items: center; @@ -249,14 +43,14 @@ h1.title span { } #back svg path { - fill: var(--main-05); + fill: var(--main-5); } #back:hover { border: 1px solid var(--main); background: linear-gradient(135deg, var(--main) 0%, var(--main-dark) 40%, var(--main-darker) 100%); color: var(--bg); - box-shadow: 0 3px 15px -1px var(--main-05); + box-shadow: 0 3px 15px -1px var(--main-5); cursor: pointer; } @@ -266,7 +60,7 @@ h1.title span { .progress { padding: 1px; - background-color: var(--main-005); + background-color: var(--main-05); border-radius: 10px; } @@ -348,7 +142,7 @@ h1.title span { padding: 0 40px; } -#controls > div { +#controls>div { text-align: center; } @@ -376,7 +170,7 @@ h1.title span { border: 1px solid var(--main-dark); color: var(--bg); background: linear-gradient(135deg, var(--main-dark) 0%, var(--main-darker) 40%, var(--main-darker) 100%); - box-shadow: 0 3px 15px -1px var(--main-05); + box-shadow: 0 3px 15px -1px var(--main-5); } .btn.active { @@ -475,7 +269,7 @@ input[type="range"]::-webkit-slider-thumb:active { border: 1px solid var(--main-dark); color: var(--bg); background: linear-gradient(135deg, var(--main-dark) 0%, var(--main-darker) 40%, var(--main-darker) 100%); - box-shadow: 0 3px 15px -1px var(--main-05); + box-shadow: 0 3px 15px -1px var(--main-5); } .key button:disabled, @@ -615,7 +409,7 @@ h4 { .form-group label:hover { color: var(--main); border: 1px solid var(--main); - background-color: var(--main-001); + background-color: var(--main-01); cursor: pointer; } @@ -776,7 +570,6 @@ h4 { } #webnnstatus.red { - margin-top: 0px; background-color: var(--pink); color: var(--bg); border-radius: 5px; @@ -874,11 +667,11 @@ h4 { } /* Largest devices such as desktops (1280px) */ -@media only screen and (max-width: 80em) { -} +@media only screen and (max-width: 80em) {} /* Large devices such as laptops (1024px) */ @media only screen and (max-width: 64em) { + .grid-2, .grid-2-41 { grid-template-columns: 1fr; @@ -893,6 +686,7 @@ h4 { /* Medium devices such as tablets (718px) */ @media only screen and (max-width: 718px) { + .grid-2, .grid-2-41 { grid-template-columns: 1fr; @@ -911,6 +705,7 @@ h4 { } @media only screen and (max-width: 40em) { + .grid-2, .grid-2-41 { grid-template-columns: 1fr; @@ -970,4 +765,4 @@ h4 { width: 38vw; padding: 6px 14px; } -} +} \ No newline at end of file diff --git a/demos/phi-3-mini/index.html b/demos/phi-3-mini/index.html index 3848e69..89bae61 100644 --- a/demos/phi-3-mini/index.html +++ b/demos/phi-3-mini/index.html @@ -8,6 +8,7 @@ + @@ -87,7 +88,7 @@