651 lines
12 KiB
CSS
651 lines
12 KiB
CSS
|
|
/* OpusBike — ProActys Light Theme */
|
||
|
|
/* Primary: #4285F4, Dark: #364052, Navy: #051229, Ice: #E1E8F0, Silver: #A9B0B8 */
|
||
|
|
|
||
|
|
:root {
|
||
|
|
--color-primary: #4285F4;
|
||
|
|
--color-dark: #364052;
|
||
|
|
--color-navy: #051229;
|
||
|
|
--color-ice: #E1E8F0;
|
||
|
|
--color-white: #FFFFFF;
|
||
|
|
--color-silver: #A9B0B8;
|
||
|
|
--color-bg: #F5F7FA;
|
||
|
|
--color-card: #FFFFFF;
|
||
|
|
--color-text: #1A1A2E;
|
||
|
|
--color-text-secondary: #6B7280;
|
||
|
|
--color-border: #E5E7EB;
|
||
|
|
--color-success: #10B981;
|
||
|
|
--color-warning: #F97316;
|
||
|
|
--color-danger: #EF4444;
|
||
|
|
--font-family: 'Segoe UI', Arial, Helvetica, sans-serif;
|
||
|
|
--radius: 8px;
|
||
|
|
}
|
||
|
|
|
||
|
|
* {
|
||
|
|
margin: 0;
|
||
|
|
padding: 0;
|
||
|
|
box-sizing: border-box;
|
||
|
|
}
|
||
|
|
|
||
|
|
html, body {
|
||
|
|
height: 100%;
|
||
|
|
height: 100dvh;
|
||
|
|
overflow: hidden;
|
||
|
|
font-family: var(--font-family);
|
||
|
|
background: var(--color-bg);
|
||
|
|
color: var(--color-text);
|
||
|
|
-webkit-user-select: none;
|
||
|
|
user-select: none;
|
||
|
|
-webkit-tap-highlight-color: transparent;
|
||
|
|
}
|
||
|
|
|
||
|
|
/* Views */
|
||
|
|
.view {
|
||
|
|
display: none;
|
||
|
|
height: 100%;
|
||
|
|
height: 100dvh;
|
||
|
|
overflow: hidden;
|
||
|
|
}
|
||
|
|
|
||
|
|
.view.active {
|
||
|
|
display: flex;
|
||
|
|
flex-direction: column;
|
||
|
|
}
|
||
|
|
|
||
|
|
/* ===== Connect View ===== */
|
||
|
|
.connect-container {
|
||
|
|
flex: 1;
|
||
|
|
display: flex;
|
||
|
|
flex-direction: column;
|
||
|
|
align-items: center;
|
||
|
|
justify-content: center;
|
||
|
|
padding: 1rem 1.5rem;
|
||
|
|
gap: 1rem;
|
||
|
|
text-align: center;
|
||
|
|
overflow: hidden;
|
||
|
|
}
|
||
|
|
|
||
|
|
.logo-header {
|
||
|
|
display: flex;
|
||
|
|
flex-direction: column;
|
||
|
|
align-items: center;
|
||
|
|
gap: 0.25rem;
|
||
|
|
}
|
||
|
|
|
||
|
|
.app-logo {
|
||
|
|
width: 48px;
|
||
|
|
height: 48px;
|
||
|
|
border-radius: 12px;
|
||
|
|
}
|
||
|
|
|
||
|
|
.logo-header h1 {
|
||
|
|
font-size: 1.5rem;
|
||
|
|
font-weight: 700;
|
||
|
|
letter-spacing: -0.02em;
|
||
|
|
color: var(--color-navy);
|
||
|
|
}
|
||
|
|
|
||
|
|
.subtitle {
|
||
|
|
color: var(--color-text-secondary);
|
||
|
|
font-size: 0.8rem;
|
||
|
|
}
|
||
|
|
|
||
|
|
/* Status badge */
|
||
|
|
.status-badge {
|
||
|
|
display: inline-flex;
|
||
|
|
align-items: center;
|
||
|
|
gap: 0.5rem;
|
||
|
|
padding: 0.25rem 0.75rem;
|
||
|
|
border-radius: 999px;
|
||
|
|
font-size: 0.75rem;
|
||
|
|
font-weight: 500;
|
||
|
|
}
|
||
|
|
|
||
|
|
.status-badge.disconnected {
|
||
|
|
background: rgba(239, 68, 68, 0.1);
|
||
|
|
color: var(--color-danger);
|
||
|
|
}
|
||
|
|
|
||
|
|
.status-badge.connected {
|
||
|
|
background: rgba(16, 185, 129, 0.1);
|
||
|
|
color: var(--color-success);
|
||
|
|
}
|
||
|
|
|
||
|
|
.status-badge.demo {
|
||
|
|
background: rgba(249, 115, 22, 0.1);
|
||
|
|
color: var(--color-warning);
|
||
|
|
}
|
||
|
|
|
||
|
|
.status-badge.relay {
|
||
|
|
background: rgba(66, 133, 244, 0.1);
|
||
|
|
color: var(--color-primary);
|
||
|
|
}
|
||
|
|
|
||
|
|
.status-dot {
|
||
|
|
width: 7px;
|
||
|
|
height: 7px;
|
||
|
|
border-radius: 50%;
|
||
|
|
background: currentColor;
|
||
|
|
animation: pulse 2s infinite;
|
||
|
|
}
|
||
|
|
|
||
|
|
@keyframes pulse {
|
||
|
|
0%, 100% { opacity: 1; }
|
||
|
|
50% { opacity: 0.4; }
|
||
|
|
}
|
||
|
|
|
||
|
|
/* Buttons */
|
||
|
|
.connect-actions {
|
||
|
|
display: flex;
|
||
|
|
flex-direction: column;
|
||
|
|
gap: 0.5rem;
|
||
|
|
width: 100%;
|
||
|
|
max-width: 280px;
|
||
|
|
}
|
||
|
|
|
||
|
|
.btn {
|
||
|
|
display: inline-flex;
|
||
|
|
align-items: center;
|
||
|
|
justify-content: center;
|
||
|
|
gap: 0.5rem;
|
||
|
|
padding: 0.75rem 1.25rem;
|
||
|
|
border: none;
|
||
|
|
border-radius: var(--radius);
|
||
|
|
font-family: var(--font-family);
|
||
|
|
font-size: 0.9rem;
|
||
|
|
font-weight: 600;
|
||
|
|
cursor: pointer;
|
||
|
|
transition: all 0.2s ease;
|
||
|
|
}
|
||
|
|
|
||
|
|
.btn-primary {
|
||
|
|
background: var(--color-primary);
|
||
|
|
color: var(--color-white);
|
||
|
|
}
|
||
|
|
|
||
|
|
.btn-primary:hover {
|
||
|
|
background: #3b78e0;
|
||
|
|
}
|
||
|
|
|
||
|
|
.btn-secondary {
|
||
|
|
background: var(--color-ice);
|
||
|
|
color: var(--color-dark);
|
||
|
|
}
|
||
|
|
|
||
|
|
.btn-secondary:hover {
|
||
|
|
background: #d1d9e6;
|
||
|
|
}
|
||
|
|
|
||
|
|
.btn-small {
|
||
|
|
padding: 0.4rem 0.75rem;
|
||
|
|
font-size: 0.75rem;
|
||
|
|
}
|
||
|
|
|
||
|
|
.btn-danger {
|
||
|
|
background: rgba(239, 68, 68, 0.1);
|
||
|
|
color: var(--color-danger);
|
||
|
|
border: 1px solid rgba(239, 68, 68, 0.2);
|
||
|
|
}
|
||
|
|
|
||
|
|
.btn-danger:hover {
|
||
|
|
background: rgba(239, 68, 68, 0.15);
|
||
|
|
}
|
||
|
|
|
||
|
|
/* Info card */
|
||
|
|
.info-card {
|
||
|
|
background: rgba(66, 133, 244, 0.05);
|
||
|
|
border: 1px solid rgba(66, 133, 244, 0.15);
|
||
|
|
border-radius: var(--radius);
|
||
|
|
padding: 0.75rem 1rem;
|
||
|
|
font-size: 0.8rem;
|
||
|
|
color: var(--color-text-secondary);
|
||
|
|
max-width: 280px;
|
||
|
|
width: 100%;
|
||
|
|
}
|
||
|
|
|
||
|
|
.info-card p {
|
||
|
|
margin-bottom: 0.375rem;
|
||
|
|
}
|
||
|
|
|
||
|
|
.info-card .ws-status {
|
||
|
|
display: flex;
|
||
|
|
align-items: center;
|
||
|
|
gap: 0.5rem;
|
||
|
|
margin-top: 0.5rem;
|
||
|
|
color: var(--color-primary);
|
||
|
|
font-weight: 500;
|
||
|
|
}
|
||
|
|
|
||
|
|
.hidden {
|
||
|
|
display: none !important;
|
||
|
|
}
|
||
|
|
|
||
|
|
/* Bluefy hint for iOS */
|
||
|
|
.bluefy-hint {
|
||
|
|
margin: 0.5rem 0;
|
||
|
|
padding: 0.5rem;
|
||
|
|
background: rgba(66, 133, 244, 0.05);
|
||
|
|
border: 1px solid rgba(66, 133, 244, 0.15);
|
||
|
|
border-radius: var(--radius);
|
||
|
|
text-align: center;
|
||
|
|
}
|
||
|
|
|
||
|
|
.bluefy-hint p {
|
||
|
|
margin-bottom: 0.375rem;
|
||
|
|
font-size: 0.8rem;
|
||
|
|
color: var(--color-text-secondary);
|
||
|
|
}
|
||
|
|
|
||
|
|
.bluefy-hint a:not(.btn) {
|
||
|
|
color: var(--color-primary);
|
||
|
|
text-decoration: underline;
|
||
|
|
}
|
||
|
|
|
||
|
|
.btn-bluefy {
|
||
|
|
display: inline-flex;
|
||
|
|
align-items: center;
|
||
|
|
gap: 0.5rem;
|
||
|
|
padding: 0.5rem 1rem;
|
||
|
|
background: var(--color-primary);
|
||
|
|
color: #fff;
|
||
|
|
border: none;
|
||
|
|
border-radius: var(--radius);
|
||
|
|
font-size: 0.85rem;
|
||
|
|
font-weight: 600;
|
||
|
|
text-decoration: none;
|
||
|
|
cursor: pointer;
|
||
|
|
}
|
||
|
|
|
||
|
|
.btn-bluefy svg {
|
||
|
|
flex-shrink: 0;
|
||
|
|
}
|
||
|
|
|
||
|
|
.relay-fallback-text {
|
||
|
|
font-size: 0.75rem;
|
||
|
|
color: var(--color-silver);
|
||
|
|
margin-top: 0.5rem;
|
||
|
|
margin-bottom: 0.25rem;
|
||
|
|
}
|
||
|
|
|
||
|
|
/* Mode role label (Bridge / Viewer) */
|
||
|
|
.mode-role-label {
|
||
|
|
font-size: 0.7rem;
|
||
|
|
font-weight: 600;
|
||
|
|
text-transform: uppercase;
|
||
|
|
letter-spacing: 0.05em;
|
||
|
|
color: var(--color-text-secondary);
|
||
|
|
min-height: 1em;
|
||
|
|
}
|
||
|
|
|
||
|
|
/* BLE Troubleshooting */
|
||
|
|
.troubleshoot-section {
|
||
|
|
max-width: 280px;
|
||
|
|
width: 100%;
|
||
|
|
font-size: 0.8rem;
|
||
|
|
color: var(--color-text-secondary);
|
||
|
|
}
|
||
|
|
|
||
|
|
.troubleshoot-section summary {
|
||
|
|
cursor: pointer;
|
||
|
|
font-weight: 600;
|
||
|
|
color: var(--color-primary);
|
||
|
|
padding: 0.5rem 0;
|
||
|
|
list-style: none;
|
||
|
|
}
|
||
|
|
|
||
|
|
.troubleshoot-section summary::before {
|
||
|
|
content: '\25B6 ';
|
||
|
|
font-size: 0.6rem;
|
||
|
|
margin-right: 0.25rem;
|
||
|
|
}
|
||
|
|
|
||
|
|
.troubleshoot-section[open] summary::before {
|
||
|
|
content: '\25BC ';
|
||
|
|
}
|
||
|
|
|
||
|
|
.troubleshoot-content {
|
||
|
|
background: rgba(249, 115, 22, 0.05);
|
||
|
|
border: 1px solid rgba(249, 115, 22, 0.15);
|
||
|
|
border-radius: var(--radius);
|
||
|
|
padding: 0.75rem;
|
||
|
|
margin-top: 0.25rem;
|
||
|
|
}
|
||
|
|
|
||
|
|
.troubleshoot-content p {
|
||
|
|
margin-bottom: 0.5rem;
|
||
|
|
font-size: 0.78rem;
|
||
|
|
line-height: 1.4;
|
||
|
|
}
|
||
|
|
|
||
|
|
.troubleshoot-content ol {
|
||
|
|
padding-left: 1.25rem;
|
||
|
|
margin-bottom: 0.5rem;
|
||
|
|
}
|
||
|
|
|
||
|
|
.troubleshoot-content li {
|
||
|
|
margin-bottom: 0.375rem;
|
||
|
|
font-size: 0.78rem;
|
||
|
|
line-height: 1.4;
|
||
|
|
}
|
||
|
|
|
||
|
|
.troubleshoot-note {
|
||
|
|
font-size: 0.72rem;
|
||
|
|
color: var(--color-silver);
|
||
|
|
font-style: italic;
|
||
|
|
margin-bottom: 0;
|
||
|
|
}
|
||
|
|
|
||
|
|
/* QR Code section */
|
||
|
|
.qr-section {
|
||
|
|
display: flex;
|
||
|
|
flex-direction: column;
|
||
|
|
align-items: center;
|
||
|
|
padding: 0.75rem;
|
||
|
|
background: var(--color-white);
|
||
|
|
border-radius: var(--radius);
|
||
|
|
border: 1px solid var(--color-border);
|
||
|
|
}
|
||
|
|
|
||
|
|
.qr-label {
|
||
|
|
color: var(--color-text-secondary);
|
||
|
|
font-size: 0.7rem;
|
||
|
|
margin-bottom: 0.5rem;
|
||
|
|
text-transform: uppercase;
|
||
|
|
letter-spacing: 0.05em;
|
||
|
|
}
|
||
|
|
|
||
|
|
.qr-image {
|
||
|
|
width: 140px;
|
||
|
|
height: 140px;
|
||
|
|
border-radius: 4px;
|
||
|
|
}
|
||
|
|
|
||
|
|
#qr-canvas {
|
||
|
|
display: none;
|
||
|
|
}
|
||
|
|
|
||
|
|
.qr-url {
|
||
|
|
color: var(--color-primary);
|
||
|
|
font-size: 0.7rem;
|
||
|
|
margin-top: 0.375rem;
|
||
|
|
font-family: monospace;
|
||
|
|
opacity: 0.7;
|
||
|
|
}
|
||
|
|
|
||
|
|
.brand-footer {
|
||
|
|
display: flex;
|
||
|
|
align-items: center;
|
||
|
|
justify-content: center;
|
||
|
|
gap: 0.375rem;
|
||
|
|
color: var(--color-silver);
|
||
|
|
font-size: 0.65rem;
|
||
|
|
opacity: 0.6;
|
||
|
|
margin-top: auto;
|
||
|
|
padding-top: 0.5rem;
|
||
|
|
}
|
||
|
|
|
||
|
|
.brand-footer img {
|
||
|
|
height: 14px;
|
||
|
|
width: auto;
|
||
|
|
opacity: 0.5;
|
||
|
|
}
|
||
|
|
|
||
|
|
/* ===== Ride View (Dashboard) ===== */
|
||
|
|
.dashboard {
|
||
|
|
flex: 1;
|
||
|
|
display: flex;
|
||
|
|
flex-direction: column;
|
||
|
|
padding: 0.75rem;
|
||
|
|
padding-bottom: 4rem;
|
||
|
|
overflow: hidden;
|
||
|
|
}
|
||
|
|
|
||
|
|
.dashboard-header {
|
||
|
|
display: flex;
|
||
|
|
align-items: center;
|
||
|
|
justify-content: space-between;
|
||
|
|
margin-bottom: 0.5rem;
|
||
|
|
flex-shrink: 0;
|
||
|
|
}
|
||
|
|
|
||
|
|
.header-left {
|
||
|
|
display: flex;
|
||
|
|
align-items: center;
|
||
|
|
gap: 0.5rem;
|
||
|
|
}
|
||
|
|
|
||
|
|
.header-left h2 {
|
||
|
|
font-size: 1rem;
|
||
|
|
font-weight: 700;
|
||
|
|
color: var(--color-navy);
|
||
|
|
}
|
||
|
|
|
||
|
|
.proactys-logo-sm {
|
||
|
|
height: 16px;
|
||
|
|
width: auto;
|
||
|
|
opacity: 0.4;
|
||
|
|
}
|
||
|
|
|
||
|
|
.demo-badge {
|
||
|
|
display: none;
|
||
|
|
padding: 0.15rem 0.5rem;
|
||
|
|
background: rgba(249, 115, 22, 0.1);
|
||
|
|
color: var(--color-warning);
|
||
|
|
border: 1px solid rgba(249, 115, 22, 0.2);
|
||
|
|
border-radius: 999px;
|
||
|
|
font-size: 0.65rem;
|
||
|
|
font-weight: 700;
|
||
|
|
letter-spacing: 0.05em;
|
||
|
|
}
|
||
|
|
|
||
|
|
.demo-badge.visible {
|
||
|
|
display: inline-block;
|
||
|
|
}
|
||
|
|
|
||
|
|
/* Metrics grid — no scroll, fills viewport */
|
||
|
|
.metrics-grid {
|
||
|
|
display: grid;
|
||
|
|
grid-template-columns: 1fr 1fr;
|
||
|
|
grid-template-rows: 2fr 1fr 1fr;
|
||
|
|
gap: 0.5rem;
|
||
|
|
flex: 1;
|
||
|
|
min-height: 0;
|
||
|
|
}
|
||
|
|
|
||
|
|
.metric-card {
|
||
|
|
background: var(--color-card);
|
||
|
|
border-radius: var(--radius);
|
||
|
|
border: 1px solid var(--color-border);
|
||
|
|
padding: 0.75rem;
|
||
|
|
display: flex;
|
||
|
|
flex-direction: column;
|
||
|
|
justify-content: center;
|
||
|
|
position: relative;
|
||
|
|
overflow: hidden;
|
||
|
|
min-height: 0;
|
||
|
|
}
|
||
|
|
|
||
|
|
.metric-card::before {
|
||
|
|
content: '';
|
||
|
|
position: absolute;
|
||
|
|
top: 0;
|
||
|
|
left: 0;
|
||
|
|
right: 0;
|
||
|
|
height: 3px;
|
||
|
|
}
|
||
|
|
|
||
|
|
/* Speed = hero card — full width, large value */
|
||
|
|
.metric-card.metric-speed {
|
||
|
|
grid-column: 1 / -1;
|
||
|
|
text-align: center;
|
||
|
|
align-items: center;
|
||
|
|
}
|
||
|
|
|
||
|
|
.metric-card.metric-speed::before { background: var(--color-primary); }
|
||
|
|
.metric-card.metric-speed .metric-value {
|
||
|
|
justify-content: center;
|
||
|
|
}
|
||
|
|
.metric-card.metric-speed .metric-value span:first-child {
|
||
|
|
font-size: clamp(2.5rem, 10vw, 5rem);
|
||
|
|
color: var(--color-primary);
|
||
|
|
}
|
||
|
|
.metric-card.metric-speed .metric-unit {
|
||
|
|
font-size: 1rem;
|
||
|
|
align-self: flex-end;
|
||
|
|
margin-bottom: 0.25rem;
|
||
|
|
}
|
||
|
|
|
||
|
|
.metric-card.metric-torque::before { background: #F97316; }
|
||
|
|
.metric-card.metric-time::before { background: #8B5CF6; }
|
||
|
|
.metric-card.metric-distance::before { background: #10B981; }
|
||
|
|
.metric-card.metric-mode::before { background: #EC4899; }
|
||
|
|
|
||
|
|
.metric-card.metric-mode {
|
||
|
|
grid-column: 1 / -1;
|
||
|
|
}
|
||
|
|
|
||
|
|
.metric-label {
|
||
|
|
font-size: 0.65rem;
|
||
|
|
font-weight: 600;
|
||
|
|
text-transform: uppercase;
|
||
|
|
letter-spacing: 0.05em;
|
||
|
|
color: var(--color-text-secondary);
|
||
|
|
margin-bottom: 0.125rem;
|
||
|
|
}
|
||
|
|
|
||
|
|
.metric-value {
|
||
|
|
display: flex;
|
||
|
|
align-items: baseline;
|
||
|
|
gap: 0.25rem;
|
||
|
|
}
|
||
|
|
|
||
|
|
.metric-value span:first-child {
|
||
|
|
font-size: clamp(1.5rem, 5vw, 2.25rem);
|
||
|
|
font-weight: 700;
|
||
|
|
line-height: 1;
|
||
|
|
font-variant-numeric: tabular-nums;
|
||
|
|
color: var(--color-text);
|
||
|
|
}
|
||
|
|
|
||
|
|
.metric-unit {
|
||
|
|
font-size: 0.75rem;
|
||
|
|
color: var(--color-text-secondary);
|
||
|
|
font-weight: 500;
|
||
|
|
}
|
||
|
|
|
||
|
|
/* Mode indicator */
|
||
|
|
.mode-indicator {
|
||
|
|
display: flex;
|
||
|
|
gap: 0.375rem;
|
||
|
|
margin-top: 0.25rem;
|
||
|
|
flex-wrap: wrap;
|
||
|
|
}
|
||
|
|
|
||
|
|
.mode-dot {
|
||
|
|
padding: 0.2rem 0.6rem;
|
||
|
|
border-radius: 999px;
|
||
|
|
font-size: 0.625rem;
|
||
|
|
font-weight: 600;
|
||
|
|
background: var(--color-ice);
|
||
|
|
color: var(--color-text-secondary);
|
||
|
|
transition: all 0.3s ease;
|
||
|
|
}
|
||
|
|
|
||
|
|
.mode-dot.active {
|
||
|
|
color: var(--color-white);
|
||
|
|
}
|
||
|
|
|
||
|
|
.mode-dot[data-mode="OFF"].active { background: var(--color-silver); color: var(--color-white); }
|
||
|
|
.mode-dot[data-mode="ECO"].active { background: #10B981; }
|
||
|
|
.mode-dot[data-mode="TOUR"].active { background: #4285F4; }
|
||
|
|
.mode-dot[data-mode="EMTB"].active { background: #F97316; }
|
||
|
|
.mode-dot[data-mode="TURBO"].active { background: #EF4444; }
|
||
|
|
|
||
|
|
/* ===== Tab Bar ===== */
|
||
|
|
.tab-bar {
|
||
|
|
position: fixed;
|
||
|
|
bottom: 0;
|
||
|
|
left: 0;
|
||
|
|
right: 0;
|
||
|
|
display: flex;
|
||
|
|
background: var(--color-white);
|
||
|
|
border-top: 1px solid var(--color-border);
|
||
|
|
padding: 0.375rem 0;
|
||
|
|
padding-bottom: max(0.375rem, env(safe-area-inset-bottom));
|
||
|
|
z-index: 100;
|
||
|
|
}
|
||
|
|
|
||
|
|
.tab {
|
||
|
|
flex: 1;
|
||
|
|
display: flex;
|
||
|
|
flex-direction: column;
|
||
|
|
align-items: center;
|
||
|
|
gap: 0.125rem;
|
||
|
|
padding: 0.375rem;
|
||
|
|
border: none;
|
||
|
|
background: none;
|
||
|
|
color: var(--color-text-secondary);
|
||
|
|
font-family: var(--font-family);
|
||
|
|
font-size: 0.625rem;
|
||
|
|
font-weight: 500;
|
||
|
|
cursor: pointer;
|
||
|
|
transition: color 0.2s;
|
||
|
|
}
|
||
|
|
|
||
|
|
.tab.active {
|
||
|
|
color: var(--color-primary);
|
||
|
|
}
|
||
|
|
|
||
|
|
/* ===== Responsive ===== */
|
||
|
|
|
||
|
|
/* iPhone SE and small phones */
|
||
|
|
@media (max-height: 600px) {
|
||
|
|
.connect-container {
|
||
|
|
gap: 0.5rem;
|
||
|
|
padding: 0.75rem 1rem;
|
||
|
|
}
|
||
|
|
.app-logo { width: 36px; height: 36px; }
|
||
|
|
.logo-header h1 { font-size: 1.25rem; }
|
||
|
|
.qr-image { width: 100px; height: 100px; }
|
||
|
|
.btn { padding: 0.6rem 1rem; font-size: 0.8rem; }
|
||
|
|
}
|
||
|
|
|
||
|
|
/* Dashboard: tab bar offset */
|
||
|
|
@media (max-height: 700px) {
|
||
|
|
.dashboard {
|
||
|
|
padding-bottom: 3.5rem;
|
||
|
|
}
|
||
|
|
.metrics-grid {
|
||
|
|
gap: 0.375rem;
|
||
|
|
}
|
||
|
|
.metric-card {
|
||
|
|
padding: 0.5rem;
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
/* Desktop */
|
||
|
|
@media (min-width: 768px) {
|
||
|
|
.metrics-grid {
|
||
|
|
grid-template-columns: repeat(3, 1fr);
|
||
|
|
grid-template-rows: 1.5fr 1fr;
|
||
|
|
max-width: 800px;
|
||
|
|
margin: 0 auto;
|
||
|
|
}
|
||
|
|
|
||
|
|
.metric-card.metric-speed {
|
||
|
|
grid-column: 1 / -1;
|
||
|
|
}
|
||
|
|
|
||
|
|
.metric-card.metric-mode {
|
||
|
|
grid-column: auto;
|
||
|
|
}
|
||
|
|
|
||
|
|
.connect-container {
|
||
|
|
gap: 1.5rem;
|
||
|
|
}
|
||
|
|
|
||
|
|
.app-logo {
|
||
|
|
width: 64px;
|
||
|
|
height: 64px;
|
||
|
|
}
|
||
|
|
}
|