forked from 19th/projekts-2026
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.css
More file actions
246 lines (246 loc) · 7.18 KB
/
Copy pathmain.css
File metadata and controls
246 lines (246 loc) · 7.18 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
:root {
--bg: #0a0c0f;
--panel: #121a2b;
--panel-2: #18233a;
--border: #2a3a5b;
--text: #f3f7ff;
--muted: #8c9db9;
--green: #28c76f;
--overdue: #727272;
--yellow: #ffb020;
--red: #ea5455;
--empty: #1b263d;
--shadow: 0 12px 28px rgba(0,0,0,0.28);
}
* { box-sizing: border-box; }
body {
margin: 0;
font-family: Inter, Arial, sans-serif;
background: var(--bg);
color: var(--text);
}
.wrap {
max-width: 1800px;
margin: 0 auto;
padding: 24px;
}
.topbar {
display: flex;
align-items: center;
justify-content: space-between;
gap: 16px;
margin-bottom: 20px;
flex-wrap: wrap;
}
h1 {
margin: 0;
font-size: 34px;
line-height: 1.1;
}
.statusbar {
display: flex;
gap: 12px;
flex-wrap: wrap;
align-items: center;
}
.pill {
padding: 10px 14px;
border-radius: 999px;
background: var(--panel);
border: 1px solid var(--border);
color: var(--muted);
font-size: 14px;
}
.pill-progress {
position: relative;
padding: 10px 16px;
border-radius: 999px;
background: var(--panel);
border: 1px solid var(--border);
font-size: 14px;
color: var(--text);
overflow: hidden;
min-width: 210px;
text-align: center;
}
.pill-progress-fill {
position: absolute;
top: 0; left: 0;
height: 100%;
border-radius: 999px;
background: linear-gradient(90deg, rgba(79,195,247,0.18), rgba(40,199,111,0.22));
transition: width 0.1s linear;
pointer-events: none;
}
.pill-progress-text {
position: relative;
z-index: 1;
white-space: nowrap;
}
.grid {
display: grid;
grid-template-columns: repeat(4, minmax(0, 1fr));
gap: 16px;
}
.card {
background: linear-gradient(180deg, var(--panel) 0%, var(--panel-2) 100%);
border: 1px solid var(--border);
border-radius: 18px;
box-shadow: var(--shadow);
overflow: hidden;
min-height: 340px;
display: flex;
flex-direction: column;
}
.card.empty {
background: linear-gradient(180deg, var(--empty) 0%, #152036 100%);
border-style: dashed;
opacity: 0.7;
justify-content: center;
align-items: center;
text-align: center;
color: #6e84aa;
font-size: 24px;
font-weight: 700;
}
.head {
padding: 18px 18px 14px;
border-bottom: 1px solid rgba(255,255,255,0.06);
}
.stop-name {
font-size: 24px;
font-weight: 800;
margin-bottom: 6px;
}
.stop-meta {
display: flex;
justify-content: space-between;
gap: 10px;
color: var(--muted);
font-size: 14px;
flex-wrap: wrap;
}
.list {
padding: 10px 14px 14px;
display: flex;
flex-direction: column;
gap: 10px;
flex: 1;
}
.row {
display: grid;
grid-template-columns: 78px 1fr 88px;
gap: 12px;
align-items: center;
padding: 12px;
border-radius: 14px;
background: rgba(255,255,255,0.04);
border: 1px solid rgba(255,255,255,0.06);
}
.badge {
display: inline-flex;
align-items: center;
justify-content: center;
min-height: 54px;
border-radius: 14px;
font-size: 24px;
font-weight: 900;
color: white;
padding: 0 10px;
}
.bus { background: #ffc136; }
.trol { background: #92b5ee; }
.tram { background: #fe6a68; }
.other{ background: #667085; }
.main-line {
font-size: 20px;
font-weight: 600;
line-height: 1.2;
margin-bottom: 4px;
}
.dest {
color: var(--muted);
font-size: 14px;
line-height: 1.3;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.eta {
text-align: right;
font-weight: 900;
font-size: 30px;
line-height: 1;
}
.eta small {
display: block;
font-size: 12px;
color: var(--muted);
font-weight: 600;
margin-top: 6px;
text-transform: uppercase;
letter-spacing: 0.08em;
}
.arrive { color: var(--green); animation:blink 1.1s ease-in-out infinite; }
@keyframes blink{0%,100%{opacity:1}50%{opacity:.6}}
.soon { color: var(--yellow); }
.overdue { color: var(--overdue); }
.normal { color: var(--text); }
.nodata, .error {
padding: 20px;
color: var(--muted);
font-size: 16px;
}
.footer-note {
margin-top: 18px;
color: var(--muted);
font-size: 13px;
}
.temaki--bus {
display: inline-block;
width: 30px;
height: 30px;
background-repeat: no-repeat;
background-size: 100% 100%;
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 15 15'%3E%3Cpath fill='%23fff' d='M2 3c0-1.1.9-2 2-2h7c1.1 0 2 .9 2 2v8c0 1-1 1-1 1v1s0 1-1 1s-1-1-1-1v-1H5v1s0 1-1 1s-1-1-1-1v-1c-1 0-1-1-1-1zm1.5 1c-.28 0-.5.22-.5.5v3c0 .28.22.5.5.5h8c.28 0 .5-.22.5-.5v-3c0-.28-.22-.5-.5-.5zM4 9c-.55 0-1 .45-1 1s.45 1 1 1s1-.45 1-1s-.45-1-1-1m7 0c-.55 0-1 .45-1 1s.45 1 1 1s1-.45 1-1s-.45-1-1-1M4 2.5c0 .28.22.5.5.5h6c.28 0 .5-.22.5-.5s-.22-.5-.5-.5h-6c-.28 0-.5.22-.5.5'/%3E%3C/svg%3E");
}
.temaki--trolleybus {
display: inline-block;
width: 30px;
height: 30px;
background-repeat: no-repeat;
background-size: 100% 100%;
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 15 15'%3E%3Cpath fill='%23fff' d='M8 1v1h3c1.1 0 2 .9 2 2v8c0 1-1 1-1 1v1s0 1-1 1s-1-1-1-1v-1H5v1s0 1-1 1s-1-1-1-1v-1c-1 0-1-1-1-1V4c0-1.1.9-2 2-2h3V1H4.5C4.22 1 4 .78 4 .5s.22-.5.5-.5h6c.28 0 .5.22.5.5s-.22.5-.5.5zM3.5 5c-.28 0-.5.22-.5.5v3c0 .28.22.5.5.5h8c.28 0 .5-.22.5-.5v-3c0-.28-.22-.5-.5-.5zm.5 5c-.55 0-1 .45-1 1s.45 1 1 1s1-.45 1-1s-.45-1-1-1m7 0c-.55 0-1 .45-1 1s.45 1 1 1s1-.45 1-1s-.45-1-1-1M4 3.5c0 .28.22.5.5.5h6c.28 0 .5-.22.5-.5s-.22-.5-.5-.5h-6c-.28 0-.5.22-.5.5'/%3E%3C/svg%3E");
}
.temaki--tram {
display: inline-block;
width: 30px;
height: 30px;
background-repeat: no-repeat;
background-size: 100% 100%;
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 15 15'%3E%3Cpath fill='%23fff' d='M8 1v1h1.5l1.41 1.41c.38.38.59.89.59 1.42V11c0 1.1-.9 2-2 2h-4c-1.1 0-2-.9-2-2V4.83c0-.53.21-1.04.59-1.42L5.5 2H7V1H5.5C5.22 1 5 .78 5 .5s.22-.5.5-.5h4c.28 0 .5.22.5.5s-.22.5-.5.5zM6.25 13.5L5.5 15H4l.75-1.5zm4 0L11 15H9.5l-.75-1.5zM8.5 12h1c.55 0 1-.45 1-1v-1c-1.1 0-2 .9-2 2m-2 0c0-1.1-.9-2-2-2v1c0 .55.45 1 1 1zm-2-6.5v3c0 .28.22.5.5.5h5c.28 0 .5-.22.5-.5v-3c0-.28-.22-.5-.5-.5H5c-.28 0-.5.22-.5.5m1-2c0 .28.22.5.5.5h3c.28 0 .5-.22.5-.5S9.28 3 9 3H6c-.28 0-.5.22-.5.5'/%3E%3C/svg%3E");
}
.temaki--train {
display: inline-block;
width: 30px;
height: 30px;
background-repeat: no-repeat;
background-size: 100% 100%;
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 15 15'%3E%3Cpath fill='%23fff' d='m5.75 12.5l-.25.5h4l-.25-.5h1.5L12 15h-1.5l-.5-1H5l-.5 1H3l1.25-2.5zM13 3v7c0 1.1-.9 2-2 2H4c-1.1 0-2-.9-2-2V3c0-1.1.9-2 2-2h7c1.1 0 2 .9 2 2M9 9.5c0 .55.45 1 1 1s1-.45 1-1s-.45-1-1-1s-1 .45-1 1m-3 0c0-.55-.45-1-1-1s-1 .45-1 1s.45 1 1 1s1-.45 1-1m-3-6l.01 3c0 .28.23.5.5.5h3c.27 0 .5-.22.5-.5l-.02-3c0-.28-.22-.5-.5-.5H3.5c-.28 0-.5.22-.5.5m5 0l.01 3c0 .28.23.5.5.5h3c.27 0 .5-.22.5-.5l-.02-3c0-.28-.22-.5-.5-.5H8.5c-.28 0-.5.22-.5.5'/%3E%3C/svg%3E");
}
@media (max-width: 1400px) {
.grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 1024px) {
.grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
h1 { font-size: 28px; }
}
@media (max-width: 640px) {
.wrap { padding: 14px; }
.grid { grid-template-columns: 1fr; }
.row { grid-template-columns: 68px 1fr 76px; gap: 10px; }
.badge { min-height: 48px; font-size: 20px; }
.eta { font-size: 26px; }
.stop-name { font-size: 22px; }
.main-line { font-size: 18px; }
}