-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyles.css
More file actions
72 lines (61 loc) · 1.17 KB
/
styles.css
File metadata and controls
72 lines (61 loc) · 1.17 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
html, body {
margin: 0;
display: flex;
justify-content: center;
align-items: center;
flex-direction: column;
}
main {
width: 90%;
max-width: 800px;
text-align: center;
}
section {
margin-bottom: 20px;
}
img {
max-width: 100%;
height: auto;
}
footer {
margin-top: 20px;
}
ul, ol {
text-align: left;
padding-left: 20px;
}
li {
margin-bottom: 10px;
}
section {
padding: 20px;
margin-bottom: 20px;
border-radius: 8px;
}
section:nth-child(odd) {
background-color: rgba(0, 0, 0, 0.05);
}
section:nth-child(even) {
background-color: rgba(0, 0, 0, 0.2);
}
.scroll-to-top {
position: fixed;
bottom: 20px;
right: 20px;
width: 60px;
height: 60px;
border-radius: 50%;
background-color: rgba(200, 200, 200, 0.8);
background-image: url('img/arrow.svg');
background-size: 24px;
background-repeat: no-repeat;
background-position: center;
cursor: pointer;
display: none;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
transition: background-color 0.3s, transform 0.3s;
}
.scroll-to-top:hover {
background-color: rgba(150, 150, 150, 1);
transform: scale(1.1);
}