Repository navigation
Expand file tree
/
Copy pathfooter.css
More file actions
82 lines (76 loc) · 1.58 KB
/
Copy pathfooter.css
File metadata and controls
82 lines (76 loc) · 1.58 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
footer {
position: relative;
background-color: var(--header-footer-bg);
margin-top: -2rem;
height: 7rem;
display: flex;
align-items: center;
justify-content: flex-start;
padding-left: 2rem;
}
.scrollToTop {
display: block;
position: absolute;
right: 2rem;
background: var(--text-color) url("../assets/img/mountain.png") center center no-repeat;
background-size: 3.8rem;
border-radius: 50%;
width: 5.6rem;
height: 5.6rem;
}
.social__links {
list-style-type: none;
display: flex;
align-items: center;
gap: 2.5rem;
font-size: 3rem;
}
.social__links a {
color: var(--accent-primary);
text-decoration: none;
}
@media (min-width: 768px) {
footer {
justify-content: center;
padding-left: 0;
}
.scrollToTop {
top: -4rem;
right: 2rem;
background: var(--header-footer-bg) url("../assets/img/mountain.png");
background-position: center center;
background-repeat: no-repeat;
background-size: 8rem;
width: 10rem;
height: 10rem;
}
}
@media (hover: hover) {
.social__links a {
transition: all 0.3s ease;
}
.social__links a:hover {
color: var(--light);
font-size: 3.5rem;
}
.scrollToTop:hover {
animation-name: bounce;
animation-duration: 1s;
animation-iteration-count: infinite;
animation-fill-mode: both;
}
}
@keyframes bounce {
0%,
100% {
background-position: center center;
}
20%,
60% {
background-position: center 0.5rem;
}
40%,
80% {
background-position: center 1.25rem;
}
}