From be9ce5cfd8471d5bd08f790bd155d2c3da8ccc71 Mon Sep 17 00:00:00 2001 From: Azalea <22280294+hykilpikonna@users.noreply.github.com> Date: Sun, 23 Mar 2025 00:39:58 -0400 Subject: [PATCH] [S] More styling --- web/src/app.css | 61 -------------------------------------- web/src/app.sass | 70 ++++++++++++++++++++++++++++++++++++++++++++ web/src/main.ts | 3 +- web/src/tailwind.css | 1 + 4 files changed, 73 insertions(+), 62 deletions(-) delete mode 100644 web/src/app.css create mode 100644 web/src/app.sass create mode 100644 web/src/tailwind.css diff --git a/web/src/app.css b/web/src/app.css deleted file mode 100644 index 998fb7b..0000000 --- a/web/src/app.css +++ /dev/null @@ -1,61 +0,0 @@ -@import "tailwindcss"; - -:root { - font-family: system-ui, Avenir, Helvetica, Arial, sans-serif; - line-height: 1.5; - font-weight: 400; - - color-scheme: dark; - color: rgba(255, 255, 255, 0.87); - background-color: #242424; - - font-synthesis: none; - text-rendering: optimizeLegibility; - -webkit-font-smoothing: antialiased; - -moz-osx-font-smoothing: grayscale; -} - -html, body { - height: 100%; - width: 100%; - margin: 0; -} - -a { - font-weight: 500; - color: #646cff; - text-decoration: inherit; -} -a:hover { - color: #535bf2; -} - -.card { - padding: 2em; -} - -#app { - max-width: 1280px; - margin: 0 auto; - padding: 2rem; - text-align: center; -} - -button { - border-radius: 8px; - border: 1px solid transparent; - padding: 0.6em 1.2em; - font-size: 1em; - font-weight: 500; - font-family: inherit; - background-color: #1a1a1a; - cursor: pointer; - transition: border-color 0.25s; -} -button:hover { - border-color: #646cff; -} -button:focus, -button:focus-visible { - outline: 4px auto -webkit-focus-ring-color; -} diff --git a/web/src/app.sass b/web/src/app.sass new file mode 100644 index 0000000..830b3e2 --- /dev/null +++ b/web/src/app.sass @@ -0,0 +1,70 @@ +:root + font-family: system-ui, Avenir, Helvetica, Arial, sans-serif + line-height: 1.5 + font-weight: 400 + + color-scheme: dark + color: rgba(255, 255, 255, 0.87) + background-color: #242424 + + font-synthesis: none + text-rendering: optimizeLegibility + -webkit-font-smoothing: antialiased + -moz-osx-font-smoothing: grayscale + + +html, body + height: 100% + width: 100% + margin: 0 + + +a + font-weight: 500 + color: #646cff + text-decoration: inherit + +a:hover + color: #535bf2 + + +.card + padding: 2em + + +#app + max-width: 1280px + margin: 0 auto + padding: 2rem + text-align: center + + +button + border-radius: 8px + border: 1px solid transparent + padding: 0.6em 1.2em + font-size: 1em + font-weight: 500 + font-family: inherit + background-color: #1a1a1a + cursor: pointer + transition: border-color 0.25s + +button:hover + border-color: #646cff + +button:focus, +button:focus-visible + outline: 4px auto -webkit-focus-ring-color + +// Expand and shrink (breathing) animation when clicked +//@keyframes breathing +// 0% +// transform: scale(1) +// 50% +// transform: scale(2) rotate(180deg) +// 100% +// transform: scale(1) rotate(360deg) +// +//button:active +// animation: breathing 0.5s linear \ No newline at end of file diff --git a/web/src/main.ts b/web/src/main.ts index 664a057..9473fb5 100644 --- a/web/src/main.ts +++ b/web/src/main.ts @@ -1,5 +1,6 @@ import { mount } from 'svelte' -import './app.css' +import './app.sass' +import './tailwind.css' import App from './App.svelte' const app = mount(App, { diff --git a/web/src/tailwind.css b/web/src/tailwind.css new file mode 100644 index 0000000..a461c50 --- /dev/null +++ b/web/src/tailwind.css @@ -0,0 +1 @@ +@import "tailwindcss"; \ No newline at end of file