-
Notifications
You must be signed in to change notification settings - Fork 0
/
style.css
61 lines (61 loc) · 1.5 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
body{
background-color: #f5f5f5;
}
.hex-row {
clear: left;
display: flex;
justify-content: center;
align-items: center;
}
.hex:before {
content: " ";
width: 0; height: 0;
border-bottom: 40px solid #fff;
border-left: 70px solid transparent;
border-right: 70px solid transparent;
position: absolute;
top: -40px;
}
.hex {
width: 140px;
height: 80px;
background-color: #fff;
position: relative;
float: left;
margin-left: 18px;
margin-bottom: 55px;
transition: ease 0.3s;
cursor: pointer;
box-shadow: 0px 1px 30px rgba(0, 0, 0, 0.2);
}
.hex:after {
content: "";
width: 0;
position: absolute;
bottom: -40px;
border-top: 40px solid #fff;
border-left: 70px solid transparent;
border-right: 70px solid transparent;
}
.hex:hover{
transform: scale(1.2);
}
.hexImg {
position: absolute;
z-index: 5;
top: 50%;
width: 110px;
left: 50%;
transform: translate(-50%,-50%);
}
@media screen and (max-width: 882px) {
.hex-row {
flex-direction: column;
}
.hex {
margin: 50px;
}
}
.mt-5{
margin-top: 5rem;
}