269 lines
5.3 KiB
SCSS
269 lines
5.3 KiB
SCSS
|
|
// BugSETI Global Styles
|
||
|
|
|
||
|
|
// CSS Variables for theming
|
||
|
|
:root {
|
||
|
|
// Dark theme (default)
|
||
|
|
--bg-primary: #161b22;
|
||
|
|
--bg-secondary: #0d1117;
|
||
|
|
--bg-tertiary: #21262d;
|
||
|
|
--text-primary: #c9d1d9;
|
||
|
|
--text-secondary: #8b949e;
|
||
|
|
--text-muted: #6e7681;
|
||
|
|
--border-color: #30363d;
|
||
|
|
--accent-primary: #58a6ff;
|
||
|
|
--accent-success: #3fb950;
|
||
|
|
--accent-warning: #d29922;
|
||
|
|
--accent-danger: #f85149;
|
||
|
|
|
||
|
|
// Spacing
|
||
|
|
--spacing-xs: 4px;
|
||
|
|
--spacing-sm: 8px;
|
||
|
|
--spacing-md: 16px;
|
||
|
|
--spacing-lg: 24px;
|
||
|
|
--spacing-xl: 32px;
|
||
|
|
|
||
|
|
// Border radius
|
||
|
|
--radius-sm: 4px;
|
||
|
|
--radius-md: 6px;
|
||
|
|
--radius-lg: 12px;
|
||
|
|
|
||
|
|
// Font
|
||
|
|
--font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Noto Sans', Helvetica, Arial, sans-serif;
|
||
|
|
--font-mono: ui-monospace, SFMono-Regular, SF Mono, Menlo, Consolas, Liberation Mono, monospace;
|
||
|
|
}
|
||
|
|
|
||
|
|
// Light theme
|
||
|
|
[data-theme="light"] {
|
||
|
|
--bg-primary: #ffffff;
|
||
|
|
--bg-secondary: #f6f8fa;
|
||
|
|
--bg-tertiary: #f0f3f6;
|
||
|
|
--text-primary: #24292f;
|
||
|
|
--text-secondary: #57606a;
|
||
|
|
--text-muted: #8b949e;
|
||
|
|
--border-color: #d0d7de;
|
||
|
|
--accent-primary: #0969da;
|
||
|
|
--accent-success: #1a7f37;
|
||
|
|
--accent-warning: #9a6700;
|
||
|
|
--accent-danger: #cf222e;
|
||
|
|
}
|
||
|
|
|
||
|
|
// Reset
|
||
|
|
*,
|
||
|
|
*::before,
|
||
|
|
*::after {
|
||
|
|
box-sizing: border-box;
|
||
|
|
margin: 0;
|
||
|
|
padding: 0;
|
||
|
|
}
|
||
|
|
|
||
|
|
html, body {
|
||
|
|
height: 100%;
|
||
|
|
width: 100%;
|
||
|
|
}
|
||
|
|
|
||
|
|
body {
|
||
|
|
font-family: var(--font-family);
|
||
|
|
font-size: 14px;
|
||
|
|
line-height: 1.5;
|
||
|
|
color: var(--text-primary);
|
||
|
|
background-color: var(--bg-primary);
|
||
|
|
-webkit-font-smoothing: antialiased;
|
||
|
|
-moz-osx-font-smoothing: grayscale;
|
||
|
|
}
|
||
|
|
|
||
|
|
// Typography
|
||
|
|
h1, h2, h3, h4, h5, h6 {
|
||
|
|
font-weight: 600;
|
||
|
|
line-height: 1.25;
|
||
|
|
margin-bottom: var(--spacing-sm);
|
||
|
|
}
|
||
|
|
|
||
|
|
h1 { font-size: 24px; }
|
||
|
|
h2 { font-size: 20px; }
|
||
|
|
h3 { font-size: 16px; }
|
||
|
|
h4 { font-size: 14px; }
|
||
|
|
|
||
|
|
p {
|
||
|
|
margin-bottom: var(--spacing-md);
|
||
|
|
}
|
||
|
|
|
||
|
|
a {
|
||
|
|
color: var(--accent-primary);
|
||
|
|
text-decoration: none;
|
||
|
|
|
||
|
|
&:hover {
|
||
|
|
text-decoration: underline;
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
code {
|
||
|
|
font-family: var(--font-mono);
|
||
|
|
font-size: 12px;
|
||
|
|
padding: 2px 6px;
|
||
|
|
background-color: var(--bg-tertiary);
|
||
|
|
border-radius: var(--radius-sm);
|
||
|
|
}
|
||
|
|
|
||
|
|
// Buttons
|
||
|
|
.btn {
|
||
|
|
display: inline-flex;
|
||
|
|
align-items: center;
|
||
|
|
justify-content: center;
|
||
|
|
gap: var(--spacing-xs);
|
||
|
|
padding: var(--spacing-sm) var(--spacing-md);
|
||
|
|
font-size: 14px;
|
||
|
|
font-weight: 500;
|
||
|
|
line-height: 1;
|
||
|
|
border: 1px solid transparent;
|
||
|
|
border-radius: var(--radius-md);
|
||
|
|
cursor: pointer;
|
||
|
|
transition: all 0.2s;
|
||
|
|
|
||
|
|
&:disabled {
|
||
|
|
opacity: 0.5;
|
||
|
|
cursor: not-allowed;
|
||
|
|
}
|
||
|
|
|
||
|
|
&--primary {
|
||
|
|
background-color: var(--accent-primary);
|
||
|
|
color: white;
|
||
|
|
|
||
|
|
&:hover:not(:disabled) {
|
||
|
|
opacity: 0.9;
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
&--secondary {
|
||
|
|
background-color: var(--bg-tertiary);
|
||
|
|
border-color: var(--border-color);
|
||
|
|
color: var(--text-primary);
|
||
|
|
|
||
|
|
&:hover:not(:disabled) {
|
||
|
|
background-color: var(--bg-secondary);
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
&--success {
|
||
|
|
background-color: var(--accent-success);
|
||
|
|
color: white;
|
||
|
|
}
|
||
|
|
|
||
|
|
&--danger {
|
||
|
|
background-color: var(--accent-danger);
|
||
|
|
color: white;
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
// Forms
|
||
|
|
.form-group {
|
||
|
|
margin-bottom: var(--spacing-md);
|
||
|
|
}
|
||
|
|
|
||
|
|
.form-label {
|
||
|
|
display: block;
|
||
|
|
margin-bottom: var(--spacing-xs);
|
||
|
|
font-weight: 500;
|
||
|
|
color: var(--text-primary);
|
||
|
|
}
|
||
|
|
|
||
|
|
.form-input,
|
||
|
|
.form-select,
|
||
|
|
.form-textarea {
|
||
|
|
width: 100%;
|
||
|
|
padding: var(--spacing-sm) var(--spacing-md);
|
||
|
|
font-size: 14px;
|
||
|
|
background-color: var(--bg-secondary);
|
||
|
|
border: 1px solid var(--border-color);
|
||
|
|
border-radius: var(--radius-md);
|
||
|
|
color: var(--text-primary);
|
||
|
|
|
||
|
|
&:focus {
|
||
|
|
outline: none;
|
||
|
|
border-color: var(--accent-primary);
|
||
|
|
box-shadow: 0 0 0 3px rgba(88, 166, 255, 0.2);
|
||
|
|
}
|
||
|
|
|
||
|
|
&::placeholder {
|
||
|
|
color: var(--text-muted);
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
.form-textarea {
|
||
|
|
resize: vertical;
|
||
|
|
min-height: 100px;
|
||
|
|
}
|
||
|
|
|
||
|
|
// Cards
|
||
|
|
.card {
|
||
|
|
background-color: var(--bg-secondary);
|
||
|
|
border: 1px solid var(--border-color);
|
||
|
|
border-radius: var(--radius-lg);
|
||
|
|
padding: var(--spacing-md);
|
||
|
|
|
||
|
|
&__header {
|
||
|
|
display: flex;
|
||
|
|
align-items: center;
|
||
|
|
justify-content: space-between;
|
||
|
|
margin-bottom: var(--spacing-md);
|
||
|
|
padding-bottom: var(--spacing-sm);
|
||
|
|
border-bottom: 1px solid var(--border-color);
|
||
|
|
}
|
||
|
|
|
||
|
|
&__title {
|
||
|
|
font-size: 16px;
|
||
|
|
font-weight: 600;
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
// Badges
|
||
|
|
.badge {
|
||
|
|
display: inline-flex;
|
||
|
|
align-items: center;
|
||
|
|
padding: 2px 8px;
|
||
|
|
font-size: 12px;
|
||
|
|
font-weight: 500;
|
||
|
|
border-radius: 999px;
|
||
|
|
|
||
|
|
&--primary {
|
||
|
|
background-color: rgba(88, 166, 255, 0.15);
|
||
|
|
color: var(--accent-primary);
|
||
|
|
}
|
||
|
|
|
||
|
|
&--success {
|
||
|
|
background-color: rgba(63, 185, 80, 0.15);
|
||
|
|
color: var(--accent-success);
|
||
|
|
}
|
||
|
|
|
||
|
|
&--warning {
|
||
|
|
background-color: rgba(210, 153, 34, 0.15);
|
||
|
|
color: var(--accent-warning);
|
||
|
|
}
|
||
|
|
|
||
|
|
&--danger {
|
||
|
|
background-color: rgba(248, 81, 73, 0.15);
|
||
|
|
color: var(--accent-danger);
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
// Utility classes
|
||
|
|
.text-center { text-align: center; }
|
||
|
|
.text-right { text-align: right; }
|
||
|
|
.text-muted { color: var(--text-muted); }
|
||
|
|
.text-success { color: var(--accent-success); }
|
||
|
|
.text-danger { color: var(--accent-danger); }
|
||
|
|
.text-warning { color: var(--accent-warning); }
|
||
|
|
|
||
|
|
.flex { display: flex; }
|
||
|
|
.flex-col { flex-direction: column; }
|
||
|
|
.items-center { align-items: center; }
|
||
|
|
.justify-between { justify-content: space-between; }
|
||
|
|
.gap-sm { gap: var(--spacing-sm); }
|
||
|
|
.gap-md { gap: var(--spacing-md); }
|
||
|
|
|
||
|
|
.mt-sm { margin-top: var(--spacing-sm); }
|
||
|
|
.mt-md { margin-top: var(--spacing-md); }
|
||
|
|
.mb-sm { margin-bottom: var(--spacing-sm); }
|
||
|
|
.mb-md { margin-bottom: var(--spacing-md); }
|
||
|
|
|
||
|
|
.hidden { display: none; }
|