Allererste Fassung von Gruppen- und Dispatcher-Mobil View
This commit is contained in:
1 parent
47240302d0
commit
8e5f91948f
9 files changed
+1383
-20
No files matched your search
@@ -0,0 +1,326 @@
|
||||
: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;
|
||||
}
|
||||
|
||||
.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;
|
||||
}
|
||||
|
||||
.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;
|
||||
}
|
||||
|
||||
.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: 5.5rem;
|
||||
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: 9rem;
|
||||
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: 1rem;
|
||||
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-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;
|
||||
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-user-marker {
|
||||
position: relative;
|
||||
width: 16px;
|
||||
height: 16px;
|
||||
}
|
||||
|
||||
.mobile-user-dot {
|
||||
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-arrow {
|
||||
position: absolute;
|
||||
left: 50%;
|
||||
top: 50%;
|
||||
width: 0;
|
||||
height: 0;
|
||||
border-left: 6px solid transparent;
|
||||
border-right: 6px solid transparent;
|
||||
border-bottom: 14px solid #2563eb;
|
||||
transform-origin: 50% 100%;
|
||||
transform: translate(-50%, -100%) rotate(0deg);
|
||||
}
|
||||
|
||||
.mobile-group-marker {
|
||||
position: relative;
|
||||
width: 14px;
|
||||
height: 14px;
|
||||
}
|
||||
|
||||
.mobile-group-dot {
|
||||
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);
|
||||
}
|
||||
|
||||
@media (max-width: 420px) {
|
||||
.mobile-work-btn {
|
||||
bottom: 0.8rem;
|
||||
}
|
||||
.mobile-fab {
|
||||
bottom: 5.2rem;
|
||||
}
|
||||
.mobile-fab-secondary {
|
||||
bottom: 8.6rem;
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user