From cb162e063d8f5abfef2b99186b67f26edcadc6ec Mon Sep 17 00:00:00 2001 From: Fu Diwei Date: Fri, 20 Dec 2024 21:23:55 +0800 Subject: [PATCH] chore: remove unused code --- ui/src/global.css | 4 ---- ui/src/index.css | 46 ------------------------------------------- ui/tailwind.config.js | 4 ---- 3 files changed, 54 deletions(-) diff --git a/ui/src/global.css b/ui/src/global.css index 8717ae8b..b9980108 100644 --- a/ui/src/global.css +++ b/ui/src/global.css @@ -6,8 +6,6 @@ :root { --background: 0 0% 100%; --foreground: 20 14.3% 4.1%; - --card: 0 0% 100%; - --card-foreground: 20 14.3% 4.1%; --popover: 0 0% 100%; --popover-foreground: 20 14.3% 4.1%; --primary: 24.6 95% 53.1%; @@ -29,8 +27,6 @@ .dark { --background: 20 14.3% 4.1%; --foreground: 60 9.1% 97.8%; - --card: 20 14.3% 4.1%; - --card-foreground: 60 9.1% 97.8%; --popover: 20 14.3% 4.1%; --popover-foreground: 60 9.1% 97.8%; --primary: 20.5 90.2% 48.2%; diff --git a/ui/src/index.css b/ui/src/index.css index 6119ad9a..09fa1d06 100644 --- a/ui/src/index.css +++ b/ui/src/index.css @@ -13,15 +13,6 @@ -moz-osx-font-smoothing: grayscale; } -a { - font-weight: 500; - color: #646cff; - text-decoration: inherit; -} -a:hover { - color: #535bf2; -} - body { margin: 0; display: flex; @@ -29,40 +20,3 @@ body { min-width: 320px; min-height: 100vh; } - -h1 { - font-size: 3.2em; - line-height: 1.1; -} - -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; -} - -@media (prefers-color-scheme: light) { - :root { - color: #213547; - background-color: #ffffff; - } - a:hover { - color: #747bff; - } - button { - background-color: #f9f9f9; - } -} diff --git a/ui/tailwind.config.js b/ui/tailwind.config.js index feb18caf..9b09f055 100644 --- a/ui/tailwind.config.js +++ b/ui/tailwind.config.js @@ -43,10 +43,6 @@ module.exports = { DEFAULT: "hsl(var(--popover))", foreground: "hsl(var(--popover-foreground))", }, - card: { - DEFAULT: "hsl(var(--card))", - foreground: "hsl(var(--card-foreground))", - }, }, borderRadius: { lg: "var(--radius)",