tianji/src/client/index.css

126 lines
2.6 KiB
CSS
Raw Normal View History

2023-09-01 16:52:43 +00:00
@import 'antd/dist/reset.css';
/* fix Tailwind CSS border styles,form Tailwind CSS's preflight */
*,
::before,
::after {
box-sizing: border-box; /* 1 */
border-width: 0; /* 2 */
border-style: solid; /* 2 */
border-color: theme('borderColor.DEFAULT', currentColor); /* 2 */
}
::before,
::after {
--tw-content: '';
}
a {
text-decoration: none;
}
2024-03-22 16:45:21 +00:00
#root,
.App {
2023-09-02 10:42:24 +00:00
height: 100%;
2024-03-22 16:45:21 +00:00
font-family: 'gg sans', 'Noto Sans', 'Helvetica Neue', Helvetica, Arial,
sans-serif;
2023-09-02 10:42:24 +00:00
}
.App.dark {
@apply bg-gray-900 text-white;
}
2023-11-04 11:50:34 +00:00
/* Scrollbar */
::-webkit-scrollbar {
width: 8px;
height: 8px;
}
::-webkit-scrollbar-corner {
background-color: transparent;
}
::-webkit-scrollbar-thumb {
@apply bg-black bg-opacity-10;
border-color: transparent;
background-clip: padding-box;
border-width: 2px;
border-style: solid;
border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
@apply bg-black bg-opacity-20;
}
::-webkit-scrollbar-track {
@apply bg-black bg-opacity-5;
border-color: transparent;
background-clip: padding-box;
border-width: 2px;
border-style: solid;
border-radius: 4px;
}
2023-08-31 16:11:47 +00:00
@tailwind base;
@tailwind components;
@tailwind utilities;
2024-03-09 16:06:15 +00:00
2024-03-17 16:57:02 +00:00
/* https://ui.shadcn.com/themes */
2024-03-09 16:06:15 +00:00
@layer base {
:root {
--background: 0 0% 100%;
2024-03-17 16:57:02 +00:00
--foreground: 240 10% 3.9%;
2024-03-09 16:06:15 +00:00
--card: 0 0% 100%;
2024-03-17 16:57:02 +00:00
--card-foreground: 240 10% 3.9%;
2024-03-09 16:06:15 +00:00
--popover: 0 0% 100%;
2024-03-17 16:57:02 +00:00
--popover-foreground: 240 10% 3.9%;
--primary: 240 5.9% 10%;
--primary-foreground: 0 0% 98%;
--secondary: 240 4.8% 95.9%;
--secondary-foreground: 240 5.9% 10%;
--muted: 240 4.8% 95.9%;
--muted-foreground: 240 3.8% 46.1%;
--accent: 240 4.8% 95.9%;
--accent-foreground: 240 5.9% 10%;
2024-03-09 16:06:15 +00:00
--destructive: 0 84.2% 60.2%;
2024-03-17 16:57:02 +00:00
--destructive-foreground: 0 0% 98%;
--border: 240 5.9% 90%;
--input: 240 5.9% 90%;
--ring: 240 5.9% 10%;
2024-03-09 16:06:15 +00:00
--radius: 0.5rem;
}
.dark {
2024-03-17 16:57:02 +00:00
--background: 240 10% 3.9%;
--foreground: 0 0% 98%;
--card: 240 10% 3.9%;
--card-foreground: 0 0% 98%;
--popover: 240 10% 3.9%;
--popover-foreground: 0 0% 98%;
--primary: 0 0% 98%;
--primary-foreground: 240 5.9% 10%;
--secondary: 240 3.7% 15.9%;
--secondary-foreground: 0 0% 98%;
--muted: 240 3.7% 15.9%;
--muted-foreground: 240 5% 64.9%;
--accent: 240 3.7% 15.9%;
--accent-foreground: 0 0% 98%;
2024-03-09 16:06:15 +00:00
--destructive: 0 62.8% 30.6%;
2024-03-17 16:57:02 +00:00
--destructive-foreground: 0 0% 98%;
--border: 240 3.7% 15.9%;
--input: 240 3.7% 15.9%;
--ring: 240 4.9% 83.9%;
2024-03-09 16:06:15 +00:00
}
}
2024-03-17 16:57:02 +00:00
2024-03-09 16:06:15 +00:00
@layer base {
* {
@apply border-border;
}
body {
@apply bg-background text-foreground;
}
}