-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.css
167 lines (140 loc) · 3.42 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
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
@import "https://cdn.jsdelivr.net/npm/bulma@0.9.4/css/bulma.min.css";
:root {
--primary-orange: #ff6600;
--primary-blue: #0044aa;
--secondary-gray: #b7c4c8;
--secondary-brown: #9B7653
}
.primary-orange {
color: var(--primary-orange)
}
.primary-blue {
color: var(--primary-blue)
}
.secondary-gray {
color: var(--primary-gray)
}
.secondary-brown {
color: var(--primary-brown)
}
body {
font-family: 'Source Sans Pro', sans-serif;
margin: 0;
padding: 0;
}
#map-view {
width:100%;
height:400px
}
#title {
text-align: center;
}
/* Hiding the original input field */
#uploadFile {
display: none;
}
/* Styling the label that is acting like our custom input field */
.file-upload-label {
padding: 10px;
color: var(--primary-orange);
background-color: white;
border-radius: 5px;
display: inline-block;
cursor: pointer;
border-radius: 5px;
padding: 6px;
outline: 1px solid var(--primary-orange);
margin: 8px;
}
/* Changing appearance when the user hovers the 'button' */
.file-upload-label:hover {
outline: 3px solid var(--primary-orange);
}
#header-camera{
width: 30px
}
#camera-icon {
width: 100px
}
#upload-btn-icon {
width: 20px
}
button {
margin: 8px;
width: 180px;
border-radius: 5px;
padding: 6px;
border: 3px solid var(--primary-orange);
background-color: white;
color: var(--primary-orange);
}
#picture-options-container {
margin: 24px;
}
button:hover {
cursor: pointer;
}
@media only screen and (max-width: 450px) {
#picture-container {
width: 100%;
height: 100%;
}
}
@media only screen and (min-width: 601px) {
}
/* The snackbar - position it at the bottom and in the middle of the screen */
#snackbar {
visibility: hidden; /* Hidden by default. Visible on click */
min-width: 250px; /* Set a default minimum width */
margin-left: -125px; /* Divide value of min-width by 2 */
background-color: #333; /* Black background color */
color: #fff; /* White text color */
text-align: center; /* Centered text */
border-radius: 2px; /* Rounded borders */
padding: 16px; /* Padding */
position: fixed; /* Sit on top of the screen */
z-index: 1; /* Add a z-index if needed */
left: 50%; /* Center the snackbar */
bottom: 30px; /* 30px from the bottom */
}
/* Show the snackbar when clicking on a button (class added with JavaScript) */
#snackbar.show {
visibility: visible; /* Show the snackbar */
/* Add animation: Take 0.5 seconds to fade in and out the snackbar.
However, delay the fade out process for 2.5 seconds */
-webkit-animation: fadein 0.5s, fadeout 0.5s 2.5s;
animation: fadein 0.5s, fadeout 0.5s 2.5s;
}
/* Animations to fade the snackbar in and out */
@-webkit-keyframes fadein {
from {bottom: 0; opacity: 0;}
to {bottom: 30px; opacity: 1;}
}
@keyframes fadein {
from {bottom: 0; opacity: 0;}
to {bottom: 30px; opacity: 1;}
}
@-webkit-keyframes fadeout {
from {bottom: 30px; opacity: 1;}
to {bottom: 0; opacity: 0;}
}
@keyframes fadeout {
from {bottom: 30px; opacity: 1;}
to {bottom: 0; opacity: 0;}
}
.runner {
position: absolute;
z-index: 9999;
background: repeating-linear-gradient(to right, #0044aa 0%, #ff6600 50%);
width: 100%;
height: 2px;
background-size: 200% auto;
background-position: 0 100%;
animation: gradient 1.5s infinite;
animation-fill-mode: forwards;
animation-timing-function: linear;
}
@keyframes gradient {
0% { background-position: 0 0; }
100% { background-position: -200% 0; }
}