-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyle.css
46 lines (38 loc) · 831 Bytes
/
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
@import url('https://fonts.googleapis.com/css2?family=Rubik&display=swap');
* {
margin: 0;
padding: 0;
box-sizing: border-box;
font-family: 'Rubik', sans-serif;
}
body {
min-height: 100vh;
background: #222;
}
.container {
position: relative;
max-width: 100%;
display: grid;
grid-template-columns: repeat(3, 1fr);
grid-gap: 10px;
grid-auto-rows: minmax(100px, auto);
margin: 30px;
}
.container .box{
background: #333;
padding: 20px;
font-size: 20px;
color: lightgray;
text-align: center;
transition: 600ms;
}
.container .box:hover{
background: lightcoral;
color: black;
}
.container .box img {
position: relative;
max-width: 150px;
/* height: auto; */
margin-bottom: 10px;
}