Skip to content

Commit c96959b

Browse files
committed
Fixed styling
1 parent 9099426 commit c96959b

File tree

7 files changed

+19
-4
lines changed

7 files changed

+19
-4
lines changed

pages/index.vue

Lines changed: 19 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ export default {
8686
<style lang="scss" scoped>
8787
.is-open {
8888
.covid-map {
89-
transform: translate3d(0, 93.7%, 0);
89+
transform: translate3d(0, 92vh, 0);
9090
}
9191
}
9292
@@ -141,11 +141,11 @@ export default {
141141
}
142142
143143
.icon {
144-
position: absolute;
144+
position: relative;
145145
left: 50%;
146146
bottom: 0;
147147
z-index: 1;
148-
transform: translate3d(0, -16px, 0);
148+
transform: translate3d(-32px, calc(-10vh - 32px), 0);
149149
display: flex;
150150
justify-content: center;
151151
align-items: center;
@@ -154,7 +154,22 @@ export default {
154154
height: 64px;
155155
cursor: pointer;
156156
background-color: rgba(153, 0, 0, 1);
157-
box-shadow: rgba(0, 0, 0, 0.2) 0px 2px 4px -1px, rgba(0, 0, 0, 0.14) 0px 4px 5px 0px, rgba(0, 0, 0, 0.12) 0px 1px 10px 0px;
158157
transition: .8s ease;
158+
animation: float 4s ease-in-out infinite;
159+
}
160+
161+
@keyframes float {
162+
0% {
163+
box-shadow: 0 5px 15px 0px rgba(0, 0, 0, 0.6);
164+
transform: translate3d(-32px, calc(-10vh - 32px), 0);
165+
}
166+
50% {
167+
box-shadow: 0 25px 15px 0px rgba(0, 0, 0, 0.2);
168+
transform: translate3d(-32px, calc(-10vh - 16px), 0);
169+
}
170+
100% {
171+
box-shadow: 0 5px 15px 0px rgba(0, 0, 0, 0.6);
172+
transform: translate3d(-32px, calc(-10vh - 32px), 0);
173+
}
159174
}
160175
</style>

static/favicon.ico

-15 KB
Binary file not shown.

static/icon.ico

104 KB
Binary file not shown.

static/icon.png

100755100644
-27.7 KB
Loading

static/images/attack.png

-3.71 KB
Binary file not shown.

static/images/standby.png

-3.14 KB
Binary file not shown.

static/images/walk.png

-3.16 KB
Binary file not shown.

0 commit comments

Comments
 (0)