541 lines
11 KiB
CSS
541 lines
11 KiB
CSS
:root {
|
|
--mobile-bg: #f7f9fc;
|
|
--mobile-card: #ffffff;
|
|
--mobile-border: #d8e1ec;
|
|
--mobile-text: #1f2937;
|
|
--mobile-subtext: #4b5563;
|
|
--mobile-accent: #2563eb;
|
|
}
|
|
|
|
html[data-theme="dark"] {
|
|
--mobile-bg: #0f172a;
|
|
--mobile-card: #111827;
|
|
--mobile-border: #1f2937;
|
|
--mobile-text: #e5e7eb;
|
|
--mobile-subtext: #9ca3af;
|
|
--mobile-accent: #60a5fa;
|
|
}
|
|
|
|
* {
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
body.mobile-page {
|
|
margin: 0;
|
|
background: var(--mobile-bg);
|
|
color: var(--mobile-text);
|
|
font-family: system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
|
|
overflow: hidden;
|
|
overscroll-behavior: none;
|
|
}
|
|
|
|
/* Die Basis-Template-Hülle (main.container) darf bei den mobilen Views
|
|
keinen Rand und keine Innenabstände belegen. */
|
|
body.mobile-page main.container {
|
|
width: 100%;
|
|
max-width: none;
|
|
margin: 0;
|
|
padding: 0;
|
|
}
|
|
|
|
.mobile-app {
|
|
display: flex;
|
|
flex-direction: column;
|
|
height: 100dvh;
|
|
width: 100vw;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.mobile-header {
|
|
background: var(--mobile-card);
|
|
border-bottom: 1px solid var(--mobile-border);
|
|
padding: 0.4rem 0.6rem;
|
|
padding-top: calc(0.4rem + env(safe-area-inset-top));
|
|
}
|
|
|
|
.mobile-header-row {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 0.5rem;
|
|
}
|
|
|
|
.mobile-group-select,
|
|
.mobile-group-name {
|
|
flex: 1 1 auto;
|
|
min-width: 0;
|
|
}
|
|
|
|
.mobile-group-select {
|
|
width: 100%;
|
|
margin: 0;
|
|
padding: 0.4rem 0.6rem;
|
|
border-radius: 0.5rem;
|
|
border: 1px solid var(--mobile-border);
|
|
background: var(--mobile-card);
|
|
color: var(--mobile-text);
|
|
font-size: 0.9rem;
|
|
}
|
|
|
|
.mobile-group-name {
|
|
font-weight: 600;
|
|
font-size: 0.95rem;
|
|
padding: 0.4rem 0.2rem;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.mobile-ws-status {
|
|
flex: 0 0 auto;
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 0.3rem;
|
|
padding: 0.2rem 0.45rem;
|
|
border: 1px solid var(--mobile-border);
|
|
border-radius: 999px;
|
|
background: var(--mobile-bg);
|
|
color: var(--mobile-subtext);
|
|
font-size: 0.7rem;
|
|
font-weight: 600;
|
|
line-height: 1.2;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.mobile-ws-status::before {
|
|
content: '';
|
|
width: 0.5rem;
|
|
height: 0.5rem;
|
|
border-radius: 50%;
|
|
background: currentColor;
|
|
flex: 0 0 auto;
|
|
}
|
|
|
|
.mobile-ws-status.is-connected {
|
|
color: #15803d;
|
|
border-color: #86efac;
|
|
}
|
|
|
|
.mobile-ws-status.is-connecting {
|
|
color: #b45309;
|
|
border-color: #fcd34d;
|
|
}
|
|
|
|
.mobile-ws-status.is-disconnected {
|
|
color: var(--mobile-subtext);
|
|
}
|
|
|
|
.mobile-ws-status.is-error {
|
|
color: #dc2626;
|
|
border-color: #fca5a5;
|
|
}
|
|
|
|
html[data-theme="dark"] .mobile-ws-status.is-connected {
|
|
color: #4ade80;
|
|
border-color: #166534;
|
|
}
|
|
|
|
html[data-theme="dark"] .mobile-ws-status.is-connecting {
|
|
color: #fbbf24;
|
|
border-color: #92400e;
|
|
}
|
|
|
|
html[data-theme="dark"] .mobile-ws-status.is-error {
|
|
color: #f87171;
|
|
border-color: #991b1b;
|
|
}
|
|
|
|
@media (max-width: 420px) {
|
|
.mobile-ws-status {
|
|
font-size: 0.62rem;
|
|
padding: 0.15rem 0.3rem;
|
|
}
|
|
}
|
|
|
|
.mobile-icon-btn {
|
|
width: 2.2rem;
|
|
height: 2.2rem;
|
|
border-radius: 50%;
|
|
border: 1px solid var(--mobile-border);
|
|
background: var(--mobile-card);
|
|
color: var(--mobile-text);
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
margin: 0;
|
|
padding: 0;
|
|
}
|
|
|
|
.mobile-tabs {
|
|
display: grid;
|
|
grid-template-columns: 1fr 1fr;
|
|
background: var(--mobile-card);
|
|
border-bottom: 1px solid var(--mobile-border);
|
|
}
|
|
|
|
.mobile-tab {
|
|
border: none;
|
|
background: transparent;
|
|
color: var(--mobile-subtext);
|
|
padding: 0.5rem 0;
|
|
margin: 0;
|
|
border-bottom: 2px solid transparent;
|
|
border-radius: 0;
|
|
}
|
|
|
|
.mobile-tab.active {
|
|
color: var(--mobile-text);
|
|
border-bottom-color: var(--mobile-accent);
|
|
}
|
|
|
|
.mobile-main {
|
|
flex: 1 1 auto;
|
|
min-height: 0;
|
|
position: relative;
|
|
}
|
|
|
|
.mobile-tab-panel {
|
|
display: none;
|
|
height: 100%;
|
|
width: 100%;
|
|
}
|
|
|
|
.mobile-tab-panel.active {
|
|
display: flex;
|
|
flex-direction: column;
|
|
}
|
|
|
|
.mobile-map {
|
|
flex: 1 1 auto;
|
|
height: 100%;
|
|
width: 100%;
|
|
}
|
|
|
|
.mobile-fab {
|
|
position: absolute;
|
|
right: 0.7rem;
|
|
bottom: calc(5.5rem + env(safe-area-inset-bottom));
|
|
width: 3rem;
|
|
height: 3rem;
|
|
border-radius: 50%;
|
|
border: none;
|
|
background: var(--mobile-accent);
|
|
color: #fff;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
box-shadow: 0 8px 24px rgba(37, 99, 235, 0.35);
|
|
margin: 0;
|
|
padding: 0;
|
|
z-index: 1000;
|
|
}
|
|
|
|
.mobile-fab-secondary {
|
|
bottom: calc(9rem + env(safe-area-inset-bottom));
|
|
background: var(--mobile-card);
|
|
color: var(--mobile-text);
|
|
border: 1px solid var(--mobile-border);
|
|
box-shadow: 0 8px 24px rgba(15, 23, 42, 0.18);
|
|
}
|
|
|
|
.mobile-work-btn {
|
|
position: absolute;
|
|
left: 50%;
|
|
transform: translateX(-50%);
|
|
bottom: calc(1rem + env(safe-area-inset-bottom));
|
|
border-radius: 999px;
|
|
background: var(--mobile-card);
|
|
color: var(--mobile-text);
|
|
border: 1px solid var(--mobile-border);
|
|
padding: 0.5rem 1.2rem;
|
|
margin: 0;
|
|
box-shadow: 0 10px 30px rgba(15, 23, 42, 0.22);
|
|
z-index: 1000;
|
|
}
|
|
|
|
.mobile-position-btn {
|
|
position: absolute;
|
|
top: 0.75rem;
|
|
left: 0.75rem;
|
|
width: auto;
|
|
margin: 0;
|
|
padding: 0.5rem 0.9rem;
|
|
border-radius: 999px;
|
|
border: 1px solid var(--mobile-accent);
|
|
background: var(--mobile-accent);
|
|
color: #fff;
|
|
box-shadow: 0 8px 24px rgba(37, 99, 235, 0.3);
|
|
font-size: 0.85rem;
|
|
font-weight: 600;
|
|
z-index: 900;
|
|
}
|
|
|
|
.mobile-position-btn:hover,
|
|
.mobile-position-btn:focus-visible {
|
|
border-color: var(--mobile-accent);
|
|
background: var(--mobile-accent);
|
|
color: #fff;
|
|
filter: brightness(1.06);
|
|
}
|
|
|
|
.mobile-nav-btn {
|
|
position: absolute;
|
|
top: 0.75rem;
|
|
right: 0.7rem;
|
|
width: 3rem;
|
|
height: 3rem;
|
|
border-radius: 50%;
|
|
border: none;
|
|
background: var(--mobile-accent);
|
|
color: #fff;
|
|
display: none;
|
|
align-items: center;
|
|
justify-content: center;
|
|
margin: 0;
|
|
padding: 0;
|
|
box-shadow: 0 8px 24px rgba(37, 99, 235, 0.35);
|
|
z-index: 1000;
|
|
}
|
|
|
|
.mobile-nav-btn:not([hidden]) {
|
|
display: flex;
|
|
}
|
|
|
|
.mobile-nav-btn:hover,
|
|
.mobile-nav-btn:focus-visible {
|
|
border-color: var(--mobile-accent);
|
|
background: var(--mobile-accent);
|
|
color: #fff;
|
|
filter: brightness(1.06);
|
|
}
|
|
|
|
.mobile-nav-btn svg {
|
|
width: 1.35rem;
|
|
height: 1.35rem;
|
|
}
|
|
|
|
.mobile-chat-messages {
|
|
flex: 1 1 auto;
|
|
min-height: 0;
|
|
overflow-y: auto;
|
|
padding: 0.6rem 0.7rem;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 0.4rem;
|
|
}
|
|
|
|
.mobile-chat-card {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 0.15rem;
|
|
padding: 0.5rem 0.6rem;
|
|
border-radius: 0.6rem;
|
|
background: var(--mobile-card);
|
|
border: 1px solid var(--mobile-border);
|
|
}
|
|
|
|
.mobile-chat-card.own {
|
|
align-self: flex-end;
|
|
background: rgba(37, 99, 235, 0.12);
|
|
}
|
|
|
|
html[data-theme="dark"] .mobile-chat-card.own {
|
|
background: rgba(96, 165, 250, 0.18);
|
|
}
|
|
|
|
.mobile-chat-meta {
|
|
font-size: 0.75rem;
|
|
color: var(--mobile-subtext);
|
|
}
|
|
|
|
.mobile-chat-fromto {
|
|
font-weight: 600;
|
|
font-size: 0.88rem;
|
|
}
|
|
|
|
.mobile-chat-text {
|
|
font-size: 0.9rem;
|
|
word-break: break-word;
|
|
}
|
|
|
|
.mobile-chat-form {
|
|
display: flex;
|
|
gap: 0.4rem;
|
|
padding: 0.5rem 0.6rem;
|
|
padding-bottom: calc(0.5rem + env(safe-area-inset-bottom));
|
|
background: var(--mobile-card);
|
|
border-top: 1px solid var(--mobile-border);
|
|
}
|
|
|
|
.mobile-chat-input {
|
|
flex: 1 1 auto;
|
|
margin: 0;
|
|
padding: 0.45rem 0.6rem;
|
|
border-radius: 999px;
|
|
border: 1px solid var(--mobile-border);
|
|
background: var(--mobile-bg);
|
|
color: var(--mobile-text);
|
|
}
|
|
|
|
.mobile-chat-send {
|
|
margin: 0;
|
|
padding: 0.45rem 0.9rem;
|
|
border-radius: 999px;
|
|
}
|
|
|
|
.mobile-street-list {
|
|
list-style: none;
|
|
margin: 0;
|
|
padding: 0;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 0.4rem;
|
|
}
|
|
|
|
.mobile-street-item {
|
|
width: 100%;
|
|
text-align: left;
|
|
margin: 0;
|
|
padding: 0.5rem 0.7rem;
|
|
border-radius: 0.6rem;
|
|
border: 1px solid var(--mobile-border);
|
|
background: var(--mobile-card);
|
|
color: var(--mobile-text);
|
|
}
|
|
|
|
.mobile-street-item.active {
|
|
border-color: var(--mobile-accent);
|
|
box-shadow: 0 0 0 1px rgba(37, 99, 235, 0.25);
|
|
}
|
|
|
|
.mobile-dialog-hint {
|
|
margin: 0 0 0.6rem;
|
|
color: var(--mobile-subtext);
|
|
font-size: 0.85rem;
|
|
}
|
|
|
|
.mobile-notification-text {
|
|
margin: 0;
|
|
font-size: 1rem;
|
|
white-space: pre-wrap;
|
|
overflow-wrap: anywhere;
|
|
}
|
|
|
|
.mobile-group-info-list {
|
|
display: grid;
|
|
grid-template-columns: max-content 1fr;
|
|
gap: 0.35rem 1rem;
|
|
margin: 0;
|
|
}
|
|
|
|
.mobile-group-info-list dt {
|
|
font-weight: 600;
|
|
}
|
|
|
|
.mobile-group-info-list dd {
|
|
margin: 0;
|
|
}
|
|
|
|
.mobile-settings-row {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
gap: 0.6rem;
|
|
margin-bottom: 0.6rem;
|
|
}
|
|
|
|
.mobile-settings-button {
|
|
width: auto;
|
|
margin: 0;
|
|
padding: 0.35rem 0.8rem;
|
|
border-radius: 999px;
|
|
font-size: 0.85rem;
|
|
}
|
|
|
|
.mobile-settings-row input[role="switch"] {
|
|
flex: 0 0 auto;
|
|
margin: 0;
|
|
}
|
|
|
|
.mobile-settings-button.is-active {
|
|
background: var(--mobile-accent);
|
|
border-color: var(--mobile-accent);
|
|
color: #fff;
|
|
}
|
|
|
|
.mobile-user-marker,
|
|
.mobile-user-marker.leaflet-marker-icon,
|
|
.mobile-user-marker.leaflet-div-icon {
|
|
position: relative;
|
|
width: 16px;
|
|
height: 16px;
|
|
overflow: visible;
|
|
border: 0 !important;
|
|
background: transparent !important;
|
|
box-shadow: none !important;
|
|
}
|
|
|
|
.mobile-user-dot {
|
|
position: relative;
|
|
z-index: 2;
|
|
width: 16px;
|
|
height: 16px;
|
|
border-radius: 50%;
|
|
background: #2563eb;
|
|
border: 3px solid #fff;
|
|
box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.4);
|
|
}
|
|
|
|
.mobile-user-heading {
|
|
position: absolute;
|
|
left: 50%;
|
|
top: 50%;
|
|
z-index: 1;
|
|
width: 2px;
|
|
height: 20px;
|
|
border-radius: 999px;
|
|
background: #2563eb;
|
|
box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.85);
|
|
pointer-events: none;
|
|
transform: translate(-50%, -100%) rotate(var(--user-heading, 0deg));
|
|
transform-origin: 50% 100%;
|
|
}
|
|
|
|
.mobile-group-marker {
|
|
position: relative;
|
|
width: 32px;
|
|
height: 32px;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.mobile-group-dot {
|
|
position: absolute;
|
|
left: 50%;
|
|
top: 50%;
|
|
width: 14px;
|
|
height: 14px;
|
|
border-radius: 50%;
|
|
background: var(--marker-color);
|
|
border: 2px solid #fff;
|
|
box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.4);
|
|
transform: translate(-50%, -50%);
|
|
}
|
|
|
|
@media (max-width: 420px) {
|
|
.mobile-work-btn {
|
|
bottom: calc(0.8rem + env(safe-area-inset-bottom));
|
|
}
|
|
.mobile-fab {
|
|
bottom: calc(5.2rem + env(safe-area-inset-bottom));
|
|
}
|
|
.mobile-fab-secondary {
|
|
bottom: calc(8.6rem + env(safe-area-inset-bottom));
|
|
}
|
|
}
|
|
|
|
/* Im installierten Standalone-Modus keine Browserleisten berücksichtigen. */
|
|
@media (display-mode: standalone) {
|
|
body.mobile-page {
|
|
height: 100dvh;
|
|
}
|
|
}
|