-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.css
109 lines (94 loc) · 2.37 KB
/
index.css
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
:root {
font-family: "Helvetica Neue", Arial, Helvetica, sans-serif;
--margin: 0px;
--font-size: 14px;
--map-edge-margin: 10px;
--search-bar-width: 250px;
--search-bar-height: 31px;
--search-bar-padding: 5px;
--search-results-border: 5px;
--search-clear-icon-size: 15px;
--icon-nmbs-width: calc(var(--font-size) + (2 * 1px) + 1px); /* font-size + 2 * padding + border-bottom */
--icon-nmbs-margin: 5px;
}
* {
box-sizing: border-box;
padding: 0px;
margin: 0px;
}
body {
margin: var(--margin);
}
html,
body,
#map {
height: calc(100% - 2 * var(--margin));
width: calc(100% - 2 * var(--margin));
}
#location-search {
z-index: 500;
position: absolute;
width: var(--search-bar-width);
height: var(--search-bar-height);
top: var(--map-edge-margin);
left: calc((100% - var(--search-bar-width)) / 2);
}
#location-search > div {
position: relative;
}
#location-search-bar {
font-size: var(--font-size);
width: var(--search-bar-width);
height: var(--search-bar-height);
padding: var(--search-bar-padding);
border-radius: 5px;
}
#location-search-clear {
stroke: gray;
stroke-width: 1.5;
width: var(--search-clear-icon-size);
height: var(--search-clear-icon-size);
position: absolute;
top: calc((var(--search-bar-height) - var(--search-clear-icon-size)) / 2);
right: 8px;
cursor: pointer;
}
#location-search-results {
display: flex;
flex-direction: column;
background-color: white;
border: var(--search-results-border) solid white;
border-radius: 5px;
max-height: calc(100vh - (2 * var(--map-edge-margin)) - var(--search-bar-height));
overflow-y: scroll;
}
#location-search-results > div {
display: flex;
font-size: var(--font-size);
padding: 1px 0px;
background-color: white;
border-bottom: 1px solid lightgray;
cursor: default;
}
#location-search-results > div:last-child {
border: none;
}
.station {
max-width: calc(var(--search-bar-width) - (2 * var(--search-results-border)) - var(--icon-nmbs-width) - var(--icon-nmbs-margin));
}
.icon-nmbs {
width: var(--icon-nmbs-width);
margin-right: var(--icon-nmbs-margin);
}
.hidden {
display: none !important;
}
/* https://stackoverflow.com/a/54410301 */
.disable-scrollbars::-webkit-scrollbar {
background: transparent; /* Chrome/Safari/Webkit */
width: 0px;
}
.disable-scrollbars {
scrollbar-width: none; /* Firefox */
-ms-overflow-style: none; /* IE 10+ */
}