- Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.css
More file actions
Latest commit
94 lines (78 loc) · 1.32 KB
/
Copy pathmain.css
File metadata and controls
94 lines (78 loc) · 1.32 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
83
84
85
86
87
88
89
90
91
92
93
94
html {
box-sizing: border-box;
font-family:'helvetica neue';
}
body {
background-color:#e6e1e1;
margin:0;
}
*,*:before,*:after {
box-sizing: inherit;
}
header {
font-size:18px;
margin:0 auto;
padding:2em5em0;
}
h1 {
text-align: center;
}
.contain {
-ms-flex-pack: justify;
-ms-flex-wrap: wrap;
-webkit-box-pack: justify;
display: -ms-flexbox;
display: -webkit-box;
display: flex;
flex-wrap: wrap;
justify-content: space-around;
margin:0 auto;
overflow: hidden;
padding:2em4em;
}
.item {
width:calc(25%-1rem);
-webkit-transition: all 0.2s;
background:#fff;
box-shadow:0010px2pxrgba(0,0,0,0.2);
height:250px;
/* justify-content: center;
*/list-style: none;
margin-bottom:2rem;
padding:1rem;
position: relative;
transition: all 0.2s;
}
.itema {
text-decoration: none;
}
.item:hover {
-webkit-transform:scale(1.1);
box-shadow:0015px4pxrgba(0,0,0,0.05);
transform:scale(1.1);
z-index:2;
}
.itemimg {
-o-object-fit: cover;
height:170px;
margin-left:-1rem;
margin-top:-1rem;
object-fit: cover;
width:calc(100%+2rem);
}
@mediaonly screen and (max-width:991px) {
.item {
width:calc(30%-1rem);
}
}
@mediaonly screen and (max-width:767px) {
header {
padding:2em1em;
}
.items {
padding:1em;
}
.item {
width:100%;
}
}