-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyle.css
73 lines (59 loc) · 1.51 KB
/
style.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
@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap');
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
background-color: black;
color: white;
font-family: 'Montserrat', sans-serif;
}
/* ========== ========== */
/* ========== Navbar ========== */
.nav {
display: flex;
flex-wrap: wrap;
justify-content: center;
gap: 25px;
margin-top: 25px;
}
.nav > button {
width: 150px;
height: 35px;
border: none;
border-radius: 10px;
font-size: 17px;
font-family: 'Montserrat', sans-serif;
font-weight: 900;
cursor: pointer;
color: white;
background: #8A2387; /* fallback for old browsers */
background: -webkit-linear-gradient(to right, #F27121, #E94057, #8A2387); /* Chrome 10-25, Safari 5.1-6 */
background: linear-gradient(to right, #F27121, #E94057, #8A2387); /* W3C, IE 10+/ Edge, Firefox 16+, Chrome 26+, Opera 12+, Safari 7+ */
transition: 0.3s ease-in-out;
}
.nav > button:hover {
scale: 0.98;
}
/* ========== Clicker ========== */
.clicker {
text-align: center;
}
.clicker > img {
width: 150px;
height: 150px;
cursor: pointer;
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%,-50%);
}
.clicker > h1 {
position: absolute;
top: 70%;
left: 50%;
transform: translate(-50%,-50%);
font-size: 30px;
font-weight: 900;
}