beeta/frontend/src/app.css
2025-08-03 21:53:15 -04:00

323 lines
No EOL
5.1 KiB
CSS

* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
:root {
--primary: #561d5e;
--black: #000;
--white: #fff;
--gray: #888;
--light-gray: #f5f5f5;
--error: #dc3545;
--success: #28a745;
--border: #333;
}
body {
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
background: var(--black);
color: var(--white);
line-height: 1.6;
}
.container {
max-width: 1200px;
margin: 0 auto;
padding: 2rem;
}
.auth-container {
max-width: 400px;
margin: 4rem auto;
padding: 2rem;
background: #111;
border-radius: 8px;
border: 1px solid var(--border);
}
h1, h2, h3 {
margin-bottom: 1rem;
color: var(--white);
}
.form-group {
margin-bottom: 1.5rem;
}
label {
display: block;
margin-bottom: 0.5rem;
font-weight: 500;
}
input[type="text"],
input[type="password"],
textarea,
select {
width: 100%;
padding: 0.75rem;
background: var(--black);
color: var(--white);
border: 1px solid var(--border);
border-radius: 4px;
font-size: 1rem;
}
input:focus,
textarea:focus,
select:focus {
outline: none;
border-color: var(--primary);
}
button, .btn {
padding: 0.75rem 1.5rem;
background: var(--primary);
color: var(--white);
border: none;
border-radius: 4px;
font-size: 1rem;
cursor: pointer;
text-decoration: none;
display: inline-block;
transition: opacity 0.2s;
}
button:hover:not(:disabled),
.btn:hover {
opacity: 0.9;
}
button:disabled {
opacity: 0.5;
cursor: not-allowed;
}
.btn-secondary {
background: transparent;
border: 1px solid var(--primary);
}
.btn-danger {
background: var(--error);
}
.btn-block {
width: 100%;
display: block;
}
.error {
color: var(--error);
font-size: 0.9rem;
margin-top: 0.5rem;
}
.success {
color: var(--success);
font-size: 0.9rem;
margin-top: 0.5rem;
}
.nav {
background: #111;
border-bottom: 1px solid var(--border);
padding: 1rem 0;
margin-bottom: 2rem;
}
.nav-container {
max-width: 1200px;
margin: 0 auto;
padding: 0 2rem;
display: flex;
justify-content: space-between;
align-items: center;
}
.nav-brand {
font-size: 1.25rem;
font-weight: 600;
color: var(--white);
text-decoration: none;
}
.card {
background: #111;
border: 1px solid var(--border);
border-radius: 8px;
padding: 1.5rem;
margin-bottom: 1rem;
}
.grid {
display: grid;
gap: 1rem;
grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}
.avatar {
width: 80px;
height: 80px;
border-radius: 50%;
object-fit: cover;
}
.avatar-small {
width: 40px;
height: 40px;
}
.file-input-wrapper {
position: relative;
overflow: hidden;
display: inline-block;
}
.file-input-wrapper input[type="file"] {
position: absolute;
left: -9999px;
}
.pgp-key {
font-family: monospace;
font-size: 0.8rem;
background: rgba(255, 255, 255, 0.05);
padding: 1rem;
border-radius: 4px;
white-space: pre-wrap;
word-break: break-all;
}
.fingerprint {
font-family: monospace;
font-size: 0.9rem;
}
.table {
width: 100%;
border-collapse: collapse;
}
.table th,
.table td {
padding: 0.75rem;
text-align: left;
border-bottom: 1px solid var(--border);
}
.table th {
font-weight: 600;
color: var(--primary);
}
.badge {
display: inline-block;
padding: 0.25rem 0.75rem;
background: var(--primary);
color: var(--white);
border-radius: 12px;
font-size: 0.85rem;
}
.badge-admin {
background: var(--error);
}
.modal {
position: fixed;
top: 0;
left: 0;
right: 0;
bottom: 0;
background: rgba(0, 0, 0, 0.8);
display: flex;
align-items: center;
justify-content: center;
z-index: 1000;
}
.modal-content {
background: #111;
border: 1px solid var(--border);
border-radius: 8px;
padding: 2rem;
max-width: 500px;
width: 90%;
max-height: 90vh;
overflow-y: auto;
}
.modal-header {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 1.5rem;
}
.modal-close {
background: none;
border: none;
color: var(--gray);
font-size: 1.5rem;
cursor: pointer;
padding: 0;
width: 32px;
height: 32px;
}
.modal-close:hover {
color: var(--white);
}
/* Ensure stream pages have black background */
html {
background: var(--black);
}
@media (max-width: 768px) {
.container {
padding: 1rem;
}
.nav-links {
flex-wrap: wrap;
gap: 1rem;
}
.tabs {
overflow-x: auto;
-webkit-overflow-scrolling: touch;
}
}
.avatar {
width: 80px;
height: 80px;
border-radius: 50%;
object-fit: cover;
background: var(--gray);
display: flex;
align-items: center;
justify-content: center;
font-size: 2rem;
font-weight: 600;
color: var(--white);
overflow: hidden;
}
.avatar img {
width: 100%;
height: 100%;
object-fit: cover;
}
.avatar-small {
width: 40px;
height: 40px;
font-size: 1rem;
}