Newer
Older
Sébastien DA ROCHA
committed
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
/* The overflow hidden is used to allow the sidebar-layers animation */
.map-container {
position: relative;
overflow: hidden;
}
.sidebar-container {
padding: 1rem;
height: 100%;
width: 250px;
left: -250px;
background-color: rgba(255, 255, 255, 1);
border: 1px solid grey;
top: 0;
position: absolute;
}
.sidebar-layers {
position: absolute;
right: -40px;
}
.layers-icon {
display: flex;
align-items: center;
justify-content: center;
width: 40px;
height: 40px;
cursor: pointer;
border: 1px solid grey;
border-radius: 0 5px 5px 0;
position: absolute;
right: -41px;
top: 10px;
background-color: rgba(255, 255, 255, 1);
}
.sidebar-container.expanded {
left: 0;
animation: 0.4s ease-out open-sidebar;
overflow-y: auto;
}
.sidebar-container.closing {
left: 0;
animation: 0.4s ease-in close-sidebar;
}
.sidebar-container.expanded .layers-icon {
right: 5px;
border: none;
animation: 0.4s ease-out expand-icon;
}
.sidebar-container.closing .layers-icon {
right: -41px;
border: none;
animation: 0.4s ease-in collapse-icon;
}
.sidebar-container.expanded .layers-icon svg path,
.sidebar-container.closing .layers-icon svg path {
fill: #00b5ad;
}
@keyframes open-sidebar {
0% {
left: -250px;
}
30% {
left: -200px;
}
100% {
left: 0;
}
}
@keyframes close-sidebar {
0% {
left: -0;
}
70% {
left: -200px;
}
100% {
left: -250px;
}
}
@keyframes expand-icon {
0% {
right: -40px;
}
30% {
right: 10px;
}
100% {
right: 5px;
}
}
@keyframes collapse-icon {
0% {
right: 5px;
}
70% {
right: 10px;
}
100% {
right: -40px;
}
}
.layers-icon svg {
height: 30px;
width: 30px;
}
.layers-icon svg path {
fill: 'black';
transition: fill 0.3s ease-out;
}
.layers-icon:hover svg path {
fill: #00b5ad;
}
.basemaps-title {
margin-bottom: 1rem;
}
.basemap-item {
padding: 0.5rem;
}
/* Layer item */
.layer-item {
padding-bottom: 0.5rem;
}
.layer-item i {
color: grey;
}
.layer-item .ui.divider {
margin: 0.5rem 0;
}
.error-options {
font-size: 12px;
color: red;
}
.range-container {
display: flex;
min-width: 15em; /* give space for the bubble since adding a min-width to keep its shape */
Sébastien DA ROCHA
committed
}
.range-output-bubble {
color: white;
margin-left: 5px;
padding: 4px 7px;
border-radius: 40px;
background-color: #2c3e50;
min-width: 2em;
text-align: center;
Sébastien DA ROCHA
committed
}
/* Overrides default padding of semantic-ui accordion */
.ui.styled.accordion .content {
padding-bottom: 0.5rem;
}