Files
LagZero/src/style.css
T

112 lines
2.7 KiB
CSS

:root {
font-family: system-ui, Avenir, Helvetica, Arial, sans-serif;
line-height: 1.5;
font-weight: 400;
font-synthesis: none;
text-rendering: optimizeLegibility;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}
body {
margin: 0;
min-width: 320px;
min-height: 100vh;
background-color: var(--color-background);
color: var(--color-on-surface);
}
#app {
width: 100%;
height: 100vh;
overflow: hidden;
}
/* Scrollbar customization */
::-webkit-scrollbar {
width: 8px;
height: 8px;
}
::-webkit-scrollbar-track {
background: transparent;
}
::-webkit-scrollbar-thumb {
background: var(--color-border);
border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
background: var(--color-secondary);
}
/*
Fix for Naive UI Primary Button transparency issue in Light Mode
caused by Tailwind Preflight or style conflicts.
*/
/* Green Theme (Default) */
html.theme-green .n-button.n-button--primary-type,
html:not([class*="theme-"]) .n-button.n-button--primary-type {
background-color: #3eaf7c !important;
color: #ffffff !important;
border: 1px solid #3eaf7c !important;
}
html.theme-green .n-button.n-button--primary-type:hover,
html:not([class*="theme-"]) .n-button.n-button--primary-type:hover {
background-color: #10b981 !important;
border-color: #10b981 !important;
}
/* Blue Theme */
html.theme-blue .n-button.n-button--primary-type {
background-color: #3b82f6 !important;
color: #ffffff !important;
border: 1px solid #3b82f6 !important;
}
html.theme-blue .n-button.n-button--primary-type:hover {
background-color: #2563eb !important;
border-color: #2563eb !important;
}
/* Purple Theme */
html.theme-purple .n-button.n-button--primary-type {
background-color: #8b5cf6 !important;
color: #ffffff !important;
border: 1px solid #8b5cf6 !important;
}
html.theme-purple .n-button.n-button--primary-type:hover {
background-color: #7c3aed !important;
border-color: #7c3aed !important;
}
/* Orange Theme */
html.theme-orange .n-button.n-button--primary-type {
background-color: #f97316 !important;
color: #ffffff !important;
border: 1px solid #f97316 !important;
}
html.theme-orange .n-button.n-button--primary-type:hover {
background-color: #ea580c !important;
border-color: #ea580c !important;
}
/* Red Theme */
html.theme-red .n-button.n-button--primary-type {
background-color: #ef4444 !important;
color: #ffffff !important;
border: 1px solid #ef4444 !important;
}
html.theme-red .n-button.n-button--primary-type:hover {
background-color: #dc2626 !important;
border-color: #dc2626 !important;
}
/* Disabled state for Primary Button */
.n-button.n-button--primary-type.n-button--disabled {
opacity: 0.6 !important;
cursor: not-allowed !important;
}