CX2443 / static /css /theme.css
Shinhati2023's picture
Create static/css/theme.css
bf75b97 verified
:root {
/* glass defaults (will be overridden by theme files) */
--bg-color: #0a0a0a;
--glass-bg: rgba(255, 255, 255, 0.1);
--glass-border: rgba(255, 255, 255, 0.2);
--text-color: #ffffff;
--primary: #7b68ee;
--blur: 10px;
--radius: 16px;
--spacing: 16px;
--shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
}
body {
margin: 0;
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
background-color: var(--bg-color);
color: var(--text-color);
transition: background-color 0.3s, color 0.3s;
}
/* Glass components */
.glass-card {
background: var(--glass-bg);
backdrop-filter: blur(var(--blur));
-webkit-backdrop-filter: blur(var(--blur));
border: 1px solid var(--glass-border);
border-radius: var(--radius);
box-shadow: var(--shadow);
padding: var(--spacing);
margin-bottom: var(--spacing);
}
/* Layout */
.app-container {
max-width: 480px;
margin: 0 auto;
padding: var(--spacing);
}
.nav-bar {
position: fixed;
bottom: 0;
left: 0;
right: 0;
display: flex;
justify-content: space-around;
background: var(--glass-bg);
backdrop-filter: blur(var(--blur));
border-top: 1px solid var(--glass-border);
padding: 12px;
z-index: 100;
}
.nav-item {
color: var(--text-color);
text-decoration: none;
opacity: 0.7;
font-size: 14px;
}
.nav-item.active {
opacity: 1;
color: var(--primary);
}
/* Post */
.post-image {
width: 100%;
border-radius: var(--radius);
margin-bottom: 8px;
}
.post-actions {
display: flex;
gap: 16px;
margin: 8px 0;
}
button {
background: none;
border: none;
color: var(--text-color);
font-size: 16px;
cursor: pointer;
opacity: 0.8;
}
button:hover {
opacity: 1;
}
/* Admin panel */
.admin-panel {
position: fixed;
top: 0;
left: 0;
right: 0;
bottom: 0;
background: var(--bg-color);
overflow-y: auto;
padding: var(--spacing);
z-index: 200;
}