some basic ui visibility changes

This commit is contained in:
2026-03-31 13:31:32 -04:00
parent 028d83b9cc
commit 7e0d7d8888

View File

@@ -127,8 +127,8 @@ html, body {
[data-theme=dark] { [data-theme=dark] {
--mx-fg2: #9090a8; --mx-fg2: #9090a8;
--mx-muted: #5a5a72; --mx-muted: #5a5a72;
--mx-border: #1e1e26; --mx-border: oklch(22% 0.010 270);
--mx-border2: #2a2a36; --mx-border2: oklch(30% 0.012 270);
} }
[data-theme=light] { [data-theme=light] {
@@ -169,7 +169,7 @@ html, body {
padding: 1.5rem 1rem; padding: 1.5rem 1rem;
display: flex; display: flex;
flex-direction: column; flex-direction: column;
border-right: 1px solid var(--mx-border); border-right: 1px solid color-mix(in oklch, var(--color-base-content) 18%, transparent);
} }
.mx-logo { .mx-logo {
@@ -204,13 +204,23 @@ html, body {
border-radius: var(--mx-radius-sm); border-radius: var(--mx-radius-sm);
text-decoration: none; text-decoration: none;
color: var(--mx-fg2); color: var(--mx-fg2);
font-size: 0.9375rem; font-size: 1rem;
font-weight: 500; font-weight: 500;
transition: color 0.15s, background 0.15s; cursor: pointer;
transition: color 0.15s, background 0.15s, box-shadow 0.15s;
} }
.mx-nav-item:hover { color: var(--mx-fg); background: var(--mx-surface2); } .mx-nav-item:hover {
.mx-nav-active { color: var(--mx-fg) !important; } color: var(--mx-fg);
background: var(--mx-surface2);
box-shadow: inset 3px 0 0 var(--color-primary);
}
.mx-nav-active {
color: var(--mx-fg) !important;
background: color-mix(in oklch, var(--color-primary) 12%, transparent) !important;
box-shadow: inset 3px 0 0 var(--color-primary) !important;
}
.mx-sidebar-footer { .mx-sidebar-footer {
margin-top: auto; margin-top: auto;
@@ -236,7 +246,7 @@ html, body {
/* ── Main ── */ /* ── Main ── */
.mx-main { .mx-main {
border-right: 1px solid var(--mx-border); border-right: 1px solid color-mix(in oklch, var(--color-base-content) 18%, transparent);
min-height: 100vh; min-height: 100vh;
} }
@@ -277,10 +287,10 @@ html, body {
} }
.mx-refresh-btn:hover { color: var(--mx-fg); border-color: var(--mx-accent); } .mx-refresh-btn:hover { color: var(--mx-fg); border-color: var(--mx-accent); }
.mx-divider { height: 1px; background: var(--mx-border); } .mx-divider { height: 1px; background: color-mix(in oklch, var(--color-base-content) 18%, transparent); }
/* ── Compose ── */ /* ── Compose ── */
.mx-compose-wrapper { padding: 1rem 1.25rem; border-bottom: 1px solid var(--mx-border); } .mx-compose-wrapper { padding: 1rem 1.25rem; }
.mx-compose { .mx-compose {
display: flex; display: flex;
@@ -311,7 +321,7 @@ html, body {
outline: none; outline: none;
color: var(--mx-fg); color: var(--mx-fg);
font-family: 'Geist', system-ui, sans-serif; font-family: 'Geist', system-ui, sans-serif;
font-size: 1rem; font-size: 1.0625rem;
resize: none; resize: none;
overflow: hidden; overflow: hidden;
line-height: 1.55; line-height: 1.55;
@@ -360,16 +370,20 @@ html, body {
font-size: 0.8125rem; font-size: 0.8125rem;
font-weight: 600; font-weight: 600;
cursor: pointer; cursor: pointer;
transition: background 0.15s, opacity 0.15s; transition: background 0.15s, opacity 0.15s, box-shadow 0.15s;
font-family: inherit; font-family: inherit;
text-decoration: none; text-decoration: none;
box-shadow: 0 0 0 1px color-mix(in oklch, var(--color-primary) 60%, transparent);
}
.mx-btn-post:hover, .mx-btn-save:hover {
background: var(--mx-accent2);
box-shadow: 0 0 0 1px color-mix(in oklch, var(--color-accent) 80%, transparent);
} }
.mx-btn-post:hover, .mx-btn-save:hover { background: var(--mx-accent2); }
.mx-btn-post:disabled, .mx-btn-save:disabled { opacity: 0.5; cursor: not-allowed; } .mx-btn-post:disabled, .mx-btn-save:disabled { opacity: 0.5; cursor: not-allowed; }
.mx-btn-cancel { .mx-btn-cancel {
background: none; background: none;
border: 1px solid var(--mx-border2); border: 1px solid var(--mx-fg2);
color: var(--mx-fg2); color: var(--mx-fg2);
border-radius: 99px; border-radius: 99px;
padding: 0.375rem 0.875rem; padding: 0.375rem 0.875rem;
@@ -380,16 +394,26 @@ html, body {
} }
.mx-btn-cancel:hover { color: var(--mx-fg); border-color: var(--mx-fg2); } .mx-btn-cancel:hover { color: var(--mx-fg); border-color: var(--mx-fg2); }
/* ── Feed ── */
.mx-feed {
display: flex;
flex-direction: column;
gap: 0.75rem;
padding: 1rem 1.25rem;
}
/* ── Tweet Card ── */ /* ── Tweet Card ── */
.mx-tweet { .mx-tweet {
display: flex; display: flex;
gap: 0.75rem; gap: 0.75rem;
padding: 1rem 1.25rem; padding: 1rem 1.25rem;
border-bottom: 1px solid var(--mx-border); border: 1px solid var(--mx-border);
transition: background 0.1s; border-radius: var(--mx-radius);
background: var(--mx-surface);
transition: background 0.1s, border-color 0.1s;
animation: mx-fade-in 0.2s ease; animation: mx-fade-in 0.2s ease;
} }
.mx-tweet:hover { background: color-mix(in oklch, var(--mx-fg) 2%, transparent); } .mx-tweet:hover { background: var(--mx-surface2); border-color: var(--mx-border2); }
@keyframes mx-fade-in { @keyframes mx-fade-in {
from { opacity: 0; transform: translateY(4px); } from { opacity: 0; transform: translateY(4px); }
@@ -406,7 +430,7 @@ html, body {
} }
.mx-tweet-handle { .mx-tweet-handle {
font-size: 0.875rem; font-size: 0.9375rem;
font-weight: 600; font-weight: 600;
color: var(--mx-fg); color: var(--mx-fg);
} }
@@ -420,7 +444,7 @@ html, body {
margin-left: auto; margin-left: auto;
display: flex; display: flex;
gap: 0.125rem; gap: 0.125rem;
opacity: 0; opacity: 0.25;
transition: opacity 0.15s; transition: opacity 0.15s;
} }
.mx-tweet:hover .mx-tweet-actions { opacity: 1; } .mx-tweet:hover .mx-tweet-actions { opacity: 1; }
@@ -443,7 +467,7 @@ html, body {
.mx-action-confirm { color: var(--mx-red) !important; background: color-mix(in oklch, var(--mx-red) 15%, transparent) !important; } .mx-action-confirm { color: var(--mx-red) !important; background: color-mix(in oklch, var(--mx-red) 15%, transparent) !important; }
.mx-tweet-text { .mx-tweet-text {
font-size: 0.9375rem; font-size: 1rem;
line-height: 1.6; line-height: 1.6;
color: var(--mx-fg); color: var(--mx-fg);
white-space: pre-wrap; white-space: pre-wrap;