From 3fde63ebdefa6dfe0be3d885015a74a82ae1e087 Mon Sep 17 00:00:00 2001 From: Ardis Lu Date: Tue, 25 Apr 2023 22:52:29 -0700 Subject: [PATCH] Improve styling --- demo/index.html | 101 +++++++++++++++++++++++++++++++++++++++++------- 1 file changed, 86 insertions(+), 15 deletions(-) diff --git a/demo/index.html b/demo/index.html index 217258b..ac62e5b 100644 --- a/demo/index.html +++ b/demo/index.html @@ -16,8 +16,8 @@ font-family: -apple-system, system-ui, BlinkMacSystemFont, "Segoe UI", Roboto, "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"; - color: hsl(0deg 0% 15%); - background: hsl(0deg 0% 90%); + color: hsl(216deg 50% 10%); + background: hsl(216deg 50% 95%); } header { @@ -29,18 +29,48 @@ main { max-inline-size: 1080px; margin-inline: auto; + display: flex; + flex-direction: column; + gap: 8px; } - label { - font-size: larger; - font-weight: bold; + .button-container { + display: flex; + align-items: center; + gap: 8px; } - caption { - font-size: larger; - font-weight: bold; - text-align: left; - margin-block-start: 1rem; + button { + display: flex; + gap: 4px; + inline-size: fit-content; + background: hsl(216deg 50% 90%); + padding: 8px; + border-radius: 8px; + border: 1px solid hsl(216deg 50% 75%); + cursor: pointer; + transition: filter 600ms; + } + + button:disabled { + cursor: not-allowed; + } + + button>svg { + block-size: 1em; + fill: hsl(216deg 50% 50%); + transition: transform 600ms; + } + + button:not(:disabled):hover, + button:not(:disabled):focus-within { + filter: brightness(105%); + transition: filter 200ms; + } + + :is(button:not(:disabled):hover, button:not(:disabled):focus-within)>svg { + transform: translateX(2px); + transition: transform 200ms; } table { @@ -60,6 +90,22 @@ text-transform: uppercase; } + th:first-child { + border-top-left-radius: 8px; + } + + th:last-child { + border-top-right-radius: 8px; + } + + tr:last-child td:first-child { + border-bottom-left-radius: 8px; + } + + tr:last-child td:last-child { + border-bottom-right-radius: 8px; + } + tbody tr:nth-child(odd) { background-color: hsl(216deg 100% 95%); } @@ -68,6 +114,23 @@ background-color: hsl(216deg 100% 90%); } + .CodeMirror { + border: 1px solid hsl(216deg 50% 75%); + border-radius: 8px; + } + + .sr-only { + position: absolute; + width: 1px; + height: 1px; + padding: 0; + margin: -1px; + overflow: hidden; + clip: rect(0, 0, 0, 0); + white-space: nowrap; + border-width: 0; + } + @keyframes spin { 100% { transform: rotate(360deg); @@ -94,13 +157,13 @@ GitHub repository - +
- + - - + +
+ + +
- +
SQL query output:SQL query output:
-- 2.47.3