Add mobile monitor layout with bottom nav and glance card.
EOF Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
+236
-15
@@ -183,32 +183,253 @@ input {
|
||||
}
|
||||
}
|
||||
|
||||
.brand-short {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.nav-label-short {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.bottom-nav {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.plan-mobile-hero {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.plan-actions {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
gap: 8px;
|
||||
margin-bottom: 12px;
|
||||
}
|
||||
|
||||
@media (max-width: 900px) {
|
||||
.page {
|
||||
padding: 12px 14px 24px;
|
||||
padding: 12px 14px calc(72px + env(safe-area-inset-bottom, 0px));
|
||||
}
|
||||
|
||||
.topnav {
|
||||
grid-template-columns: 1fr;
|
||||
gap: 10px;
|
||||
}
|
||||
|
||||
.topnav-side.left,
|
||||
.topnav-side.right {
|
||||
justify-content: space-between;
|
||||
grid-template-columns: 1fr auto;
|
||||
gap: 8px;
|
||||
}
|
||||
|
||||
.topnav-center {
|
||||
justify-content: flex-start;
|
||||
flex-wrap: wrap;
|
||||
gap: 2px;
|
||||
overflow-x: auto;
|
||||
-webkit-overflow-scrolling: touch;
|
||||
display: none;
|
||||
}
|
||||
|
||||
.topnav a {
|
||||
padding: 8px 10px;
|
||||
.topnav-side.left {
|
||||
min-width: 0;
|
||||
}
|
||||
|
||||
.topnav-side.right {
|
||||
justify-content: flex-end;
|
||||
}
|
||||
|
||||
.brand-full {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.brand-short {
|
||||
display: inline;
|
||||
}
|
||||
|
||||
.nav-label-full {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.nav-label-short {
|
||||
display: inline;
|
||||
}
|
||||
|
||||
.bottom-nav {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(4, 1fr);
|
||||
position: fixed;
|
||||
left: 0;
|
||||
right: 0;
|
||||
bottom: 0;
|
||||
z-index: 30;
|
||||
border-top: 1px solid var(--line);
|
||||
background: rgba(11, 14, 17, 0.96);
|
||||
backdrop-filter: blur(10px);
|
||||
padding: 6px 4px calc(6px + env(safe-area-inset-bottom, 0px));
|
||||
}
|
||||
|
||||
.bottom-nav-item {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
min-height: 48px;
|
||||
text-decoration: none;
|
||||
color: var(--muted);
|
||||
font-size: 13px;
|
||||
font-weight: 600;
|
||||
border-radius: 8px;
|
||||
}
|
||||
|
||||
.bottom-nav-item.active {
|
||||
color: var(--accent);
|
||||
background: rgba(240, 185, 11, 0.08);
|
||||
}
|
||||
|
||||
.plan-desktop-head {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.plan-mobile-hero {
|
||||
display: block;
|
||||
margin: 0 0 12px;
|
||||
padding: 14px 14px 12px;
|
||||
border-radius: 12px;
|
||||
border: 1px solid var(--line);
|
||||
background:
|
||||
linear-gradient(160deg, rgba(240, 185, 11, 0.08), transparent 55%),
|
||||
var(--bg-panel);
|
||||
}
|
||||
|
||||
.plan-mobile-hero-top {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
align-items: center;
|
||||
gap: 6px;
|
||||
margin-bottom: 12px;
|
||||
}
|
||||
|
||||
.plan-pill {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
padding: 3px 8px;
|
||||
border-radius: 999px;
|
||||
font-size: 12px;
|
||||
font-weight: 700;
|
||||
border: 1px solid var(--line);
|
||||
}
|
||||
|
||||
.plan-pill-on {
|
||||
color: #0ecb81;
|
||||
border-color: rgba(14, 203, 129, 0.45);
|
||||
background: rgba(14, 203, 129, 0.12);
|
||||
}
|
||||
|
||||
.plan-pill-off {
|
||||
color: var(--muted);
|
||||
}
|
||||
|
||||
.plan-pill-pause {
|
||||
color: #f0b90b;
|
||||
border-color: rgba(240, 185, 11, 0.45);
|
||||
background: rgba(240, 185, 11, 0.12);
|
||||
}
|
||||
|
||||
.plan-pill-muted {
|
||||
color: var(--muted);
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
.plan-mobile-phase {
|
||||
margin-left: auto;
|
||||
color: var(--text);
|
||||
font-size: 13px;
|
||||
}
|
||||
|
||||
.plan-mobile-hero-pnl {
|
||||
display: grid;
|
||||
grid-template-columns: 1fr 1fr;
|
||||
gap: 10px;
|
||||
}
|
||||
|
||||
.plan-mobile-pnl-block {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 2px;
|
||||
min-width: 0;
|
||||
}
|
||||
|
||||
.plan-mobile-label {
|
||||
color: var(--muted);
|
||||
font-size: 12px;
|
||||
}
|
||||
|
||||
.plan-mobile-pnl-num {
|
||||
font-size: 28px;
|
||||
font-weight: 700;
|
||||
line-height: 1.15;
|
||||
letter-spacing: -0.02em;
|
||||
}
|
||||
|
||||
.plan-mobile-countdown {
|
||||
font-size: 18px;
|
||||
font-weight: 700;
|
||||
line-height: 1.25;
|
||||
}
|
||||
|
||||
.plan-mobile-sub {
|
||||
color: var(--muted);
|
||||
font-size: 12px;
|
||||
}
|
||||
|
||||
.plan-mobile-err {
|
||||
margin-top: 10px;
|
||||
font-size: 12px;
|
||||
color: var(--danger);
|
||||
line-height: 1.4;
|
||||
word-break: break-word;
|
||||
}
|
||||
|
||||
.plan-actions {
|
||||
display: grid;
|
||||
grid-template-columns: 1fr 1fr;
|
||||
gap: 8px;
|
||||
}
|
||||
|
||||
.plan-actions .btn {
|
||||
min-height: 44px;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.plan-actions .btn.danger {
|
||||
grid-column: 1 / -1;
|
||||
}
|
||||
|
||||
.plan-actions .meta {
|
||||
grid-column: 1 / -1;
|
||||
}
|
||||
|
||||
.topnav-user {
|
||||
max-width: 6em;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
}
|
||||
|
||||
.topnav-logout {
|
||||
padding: 8px 10px;
|
||||
min-height: 40px;
|
||||
}
|
||||
|
||||
.tabs {
|
||||
overflow-x: auto;
|
||||
-webkit-overflow-scrolling: touch;
|
||||
flex-wrap: nowrap;
|
||||
}
|
||||
|
||||
.tab {
|
||||
flex: 0 0 auto;
|
||||
padding: 10px 12px;
|
||||
min-height: 44px;
|
||||
}
|
||||
|
||||
.settings-subtabs {
|
||||
overflow-x: auto;
|
||||
-webkit-overflow-scrolling: touch;
|
||||
flex-wrap: nowrap;
|
||||
}
|
||||
|
||||
.settings-actions .btn {
|
||||
min-height: 44px;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user