254 lines
4.3 KiB
CSS
254 lines
4.3 KiB
CSS
/* Updated styling for three-column rounded feed */
|
|
:root {
|
|
--max-width: 1100px;
|
|
--card-bg: #fff;
|
|
--muted: #6b7280;
|
|
}
|
|
* {
|
|
box-sizing: border-box;
|
|
}
|
|
body {
|
|
font-family:
|
|
Inter,
|
|
ui-sans-serif,
|
|
system-ui,
|
|
-apple-system,
|
|
Segoe UI,
|
|
Roboto,
|
|
'Helvetica Neue',
|
|
Arial;
|
|
line-height: 1.4;
|
|
margin: 0;
|
|
background: linear-gradient(135deg, #f7f6ff 0%, #f0fbff 100%);
|
|
color: #111;
|
|
padding: 24px;
|
|
}
|
|
.feed-shell {
|
|
min-height: 100vh;
|
|
padding: 20px;
|
|
}
|
|
.container {
|
|
max-width: var(--max-width);
|
|
margin: 0 auto;
|
|
}
|
|
.main-card {
|
|
background: var(--card-bg);
|
|
border-radius: 20px;
|
|
padding: 18px;
|
|
box-shadow: 0 10px 30px rgba(16, 24, 40, 0.08);
|
|
border: 1px solid rgba(0, 0, 0, 0.04);
|
|
}
|
|
.left-nav {
|
|
width: 200px;
|
|
}
|
|
.left-nav .logo {
|
|
background: #111;
|
|
color: #fff;
|
|
padding: 10px;
|
|
border-radius: 10px;
|
|
font-weight: 700;
|
|
text-align: center;
|
|
}
|
|
.left-nav ul {
|
|
list-style: none;
|
|
padding: 12px 0;
|
|
margin: 0;
|
|
}
|
|
.left-nav .nav-item {
|
|
padding: 10px 12px;
|
|
border-radius: 8px;
|
|
margin-bottom: 6px;
|
|
cursor: pointer;
|
|
color: #0f172a;
|
|
}
|
|
.left-nav .nav-item.active {
|
|
background: #eef2ff;
|
|
color: #1e40af;
|
|
}
|
|
.right-column {
|
|
width: 260px;
|
|
}
|
|
.card {
|
|
background: var(--card-bg);
|
|
border: 1px solid #eaeef2;
|
|
border-radius: 12px;
|
|
padding: 12px;
|
|
margin-bottom: 12px;
|
|
}
|
|
.post-card {
|
|
border-radius: 14px;
|
|
padding: 14px;
|
|
}
|
|
.post-thumbs .thumb {
|
|
width: 120px;
|
|
height: 84px;
|
|
background: linear-gradient(180deg, #f8fafc, #eef2ff);
|
|
border-radius: 10px;
|
|
}
|
|
.avatar {
|
|
width: 56px;
|
|
height: 56px;
|
|
border-radius: 999px;
|
|
background: #e6f0ff;
|
|
color: #1e40af;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
font-weight: 600;
|
|
}
|
|
.tag {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
height: 32px;
|
|
min-width: 32px;
|
|
padding: 0 14px;
|
|
background: #eef2ff;
|
|
color: #1e40af;
|
|
border-radius: 999px;
|
|
font-size: 12px;
|
|
margin-right: 0;
|
|
white-space: nowrap;
|
|
}
|
|
.button {
|
|
background: #2563eb;
|
|
color: #fff;
|
|
border: none;
|
|
padding: 8px 12px;
|
|
border-radius: 6px;
|
|
cursor: pointer;
|
|
}
|
|
.small {
|
|
font-size: 13px;
|
|
color: var(--muted);
|
|
}
|
|
.sidebar {
|
|
width: 300px;
|
|
}
|
|
.modal-backdrop {
|
|
position: fixed;
|
|
inset: 0;
|
|
background: rgba(0, 0, 0, 0.4);
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
}
|
|
.modal {
|
|
background: #fff;
|
|
border-radius: 8px;
|
|
padding: 16px;
|
|
width: min(900px, 95%);
|
|
}
|
|
.textarea {
|
|
width: 100%;
|
|
min-height: 100px;
|
|
padding: 8px;
|
|
border: 1px solid #e5e7eb;
|
|
border-radius: 6px;
|
|
}
|
|
.create-input {
|
|
display: flex;
|
|
flex-direction: column;
|
|
}
|
|
.rec {
|
|
width: 64px;
|
|
height: 64px;
|
|
border-radius: 12px;
|
|
background: #f8fafc;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
}
|
|
|
|
.markdown-preview {
|
|
border: 1px solid #eef2f6;
|
|
padding: 12px;
|
|
border-radius: 8px;
|
|
background: #ffffff;
|
|
}
|
|
|
|
/* Create account styles */
|
|
.create-account-bg {
|
|
background: linear-gradient(180deg, #00c6ff 0%, #0072ff 100%);
|
|
}
|
|
.create-card {
|
|
width: 420px;
|
|
margin: 60px auto;
|
|
padding: 32px;
|
|
background: #fff;
|
|
border-radius: 8px;
|
|
text-align: center;
|
|
box-shadow: 0 20px 40px rgba(2, 6, 23, 0.12);
|
|
}
|
|
.create-card h2 {
|
|
font-size: 28px;
|
|
color: #1e3a8a;
|
|
margin-bottom: 18px;
|
|
}
|
|
.input {
|
|
width: 100%;
|
|
padding: 12px;
|
|
border-radius: 6px;
|
|
border: 1px solid #eef2f6;
|
|
margin-bottom: 12px;
|
|
}
|
|
.btn-gradient {
|
|
background: linear-gradient(90deg, #0ea5e9, #60a5fa);
|
|
color: #fff;
|
|
padding: 12px 24px;
|
|
border-radius: 999px;
|
|
border: none;
|
|
cursor: pointer;
|
|
}
|
|
.btn-ghost {
|
|
background: #f1f5f9;
|
|
padding: 12px 24px;
|
|
border-radius: 999px;
|
|
border: none;
|
|
color: #475569;
|
|
margin-left: 12px;
|
|
}
|
|
|
|
/* Tags row spacing */
|
|
.tags-row {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 5px;
|
|
flex-wrap: wrap;
|
|
}
|
|
|
|
/* Notifications */
|
|
.notif-container {
|
|
position: fixed;
|
|
top: 16px;
|
|
right: 16px;
|
|
z-index: 1000;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 8px;
|
|
}
|
|
.notif {
|
|
background: #0f172a;
|
|
color: #fff;
|
|
padding: 10px 14px;
|
|
border-radius: 8px;
|
|
box-shadow: 0 8px 20px rgba(2, 6, 23, 0.2);
|
|
min-width: 220px;
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
}
|
|
.notif.success {
|
|
background: #15803d;
|
|
}
|
|
.notif.error {
|
|
background: #b91c1c;
|
|
}
|
|
.notif button {
|
|
background: transparent;
|
|
border: none;
|
|
color: inherit;
|
|
cursor: pointer;
|
|
padding: 6px;
|
|
}
|