mirror of
https://github.com/EDeev/deev.space.git
synced 2026-06-15 11:01:10 +03:00
188 lines
No EOL
3.8 KiB
CSS
188 lines
No EOL
3.8 KiB
CSS
/**
|
|
* Base Styles - Reset, Typography, Scrollbar, Container
|
|
*/
|
|
|
|
/* Reset & Base */
|
|
*, *::before, *::after {
|
|
margin: 0;
|
|
padding: 0;
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
html {
|
|
scroll-behavior: smooth;
|
|
font-size: 16px;
|
|
-webkit-text-size-adjust: 100%;
|
|
}
|
|
|
|
body {
|
|
font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
|
|
background-color: var(--bg-dark);
|
|
color: var(--text-primary);
|
|
line-height: 1.6;
|
|
overflow-x: hidden;
|
|
min-height: 100vh;
|
|
-webkit-font-smoothing: antialiased;
|
|
-moz-osx-font-smoothing: grayscale;
|
|
}
|
|
|
|
body.nav-open {
|
|
overflow: hidden;
|
|
}
|
|
|
|
/* Typography */
|
|
h1, h2, h3, h4, h5, h6 {
|
|
font-family: 'Raleway', sans-serif;
|
|
font-weight: 700;
|
|
line-height: 1.2;
|
|
letter-spacing: -0.02em;
|
|
color: var(--text-primary);
|
|
}
|
|
|
|
h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
|
|
h2 { font-size: clamp(1.5rem, 4vw, 2.5rem); }
|
|
h3 { font-size: clamp(1.25rem, 3vw, 1.75rem); }
|
|
h4 { font-size: clamp(1.1rem, 2vw, 1.25rem); }
|
|
h5 { font-size: 1rem; }
|
|
h6 { font-size: 0.875rem; }
|
|
|
|
p {
|
|
margin-bottom: var(--space-md);
|
|
color: var(--text-secondary);
|
|
}
|
|
|
|
a {
|
|
color: var(--primary-color);
|
|
text-decoration: none;
|
|
transition: var(--transition);
|
|
}
|
|
|
|
a:hover {
|
|
color: var(--primary-light);
|
|
}
|
|
|
|
strong, b {
|
|
font-weight: 600;
|
|
}
|
|
|
|
code {
|
|
font-family: 'Fira Code', 'Monaco', 'Consolas', monospace;
|
|
background: var(--bg-elevated);
|
|
padding: 0.2em 0.4em;
|
|
border-radius: var(--radius-xs);
|
|
font-size: 0.9em;
|
|
color: var(--primary-light);
|
|
}
|
|
|
|
pre {
|
|
background: var(--bg-darker);
|
|
padding: var(--space-lg);
|
|
border-radius: var(--radius-md);
|
|
overflow-x: auto;
|
|
margin: var(--space-lg) 0;
|
|
}
|
|
|
|
pre code {
|
|
background: none;
|
|
padding: 0;
|
|
}
|
|
|
|
::selection {
|
|
background: var(--primary-color);
|
|
color: var(--text-primary);
|
|
}
|
|
|
|
/* Scrollbar */
|
|
::-webkit-scrollbar {
|
|
width: 8px;
|
|
height: 8px;
|
|
}
|
|
|
|
::-webkit-scrollbar-track {
|
|
background: var(--bg-dark);
|
|
}
|
|
|
|
::-webkit-scrollbar-thumb {
|
|
background: var(--border-color);
|
|
border-radius: var(--radius-full);
|
|
}
|
|
|
|
::-webkit-scrollbar-thumb:hover {
|
|
background: var(--primary-color);
|
|
}
|
|
|
|
/* Container */
|
|
.container {
|
|
width: 100%;
|
|
max-width: var(--container-max);
|
|
margin: 0 auto;
|
|
padding: 0 var(--container-padding);
|
|
}
|
|
|
|
/* Utility Classes */
|
|
.text-center { text-align: center; }
|
|
.text-left { text-align: left; }
|
|
.text-right { text-align: right; }
|
|
.text-primary { color: var(--primary-color); }
|
|
.text-secondary { color: var(--text-secondary); }
|
|
.text-muted { color: var(--text-muted); }
|
|
|
|
.mt-0 { margin-top: 0; }
|
|
.mt-1 { margin-top: var(--space-sm); }
|
|
.mt-2 { margin-top: var(--space-md); }
|
|
.mt-3 { margin-top: var(--space-lg); }
|
|
.mt-4 { margin-top: var(--space-xl); }
|
|
|
|
.mb-0 { margin-bottom: 0; }
|
|
.mb-1 { margin-bottom: var(--space-sm); }
|
|
.mb-2 { margin-bottom: var(--space-md); }
|
|
.mb-3 { margin-bottom: var(--space-lg); }
|
|
.mb-4 { margin-bottom: var(--space-xl); }
|
|
|
|
.d-none { display: none; }
|
|
.d-block { display: block; }
|
|
.d-flex { display: flex; }
|
|
.d-grid { display: grid; }
|
|
|
|
.flex-center {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
}
|
|
|
|
.sr-only {
|
|
position: absolute;
|
|
width: 1px;
|
|
height: 1px;
|
|
padding: 0;
|
|
margin: -1px;
|
|
overflow: hidden;
|
|
clip: rect(0, 0, 0, 0);
|
|
white-space: nowrap;
|
|
border: 0;
|
|
}
|
|
|
|
/* Print Styles */
|
|
@media print {
|
|
.navbar, .footer, .back-to-top, .messages-container, .share-buttons, .vote-btn, .comment-form, .nav-toggle {
|
|
display: none !important;
|
|
}
|
|
|
|
body {
|
|
background: white;
|
|
color: black;
|
|
}
|
|
|
|
.bento-card,
|
|
.article-card,
|
|
.project-card {
|
|
background: white;
|
|
border: 1px solid #ddd;
|
|
box-shadow: none;
|
|
}
|
|
|
|
a {
|
|
color: black;
|
|
text-decoration: underline;
|
|
}
|
|
} |