-
Notifications
You must be signed in to change notification settings - Fork 0
/
style.css
88 lines (84 loc) · 1.41 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
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
*{
margin: 0;
padding: 0;
box-sizing: border-box;
}
body{
background-color: #191919;
}
.container{
width: 100%;
padding-left: 15px;
padding-right: 15px;
margin-left: auto;
margin-right: auto;
}
.gallery-wrap {
display: flex;
align-items: center;
justify-content: center;
margin: 10% auto;
}
.gallery {
width: 900px;
display: flex;
overflow-x: scroll;
}
.gallery::-webkit-scrollbar{
display: none;
}
.gallery div{
width: 100%;
display: grid;
grid-template-columns: auto auto auto;
grid-gap: 20px;
padding: 10px;
flex: none;
}
.gallery div img{
width: 100%;
transition: transform 0.3s;
filter: grayscale(100);
}
.gallery div img:hover{
transform: scale(1.1);
filter: grayscale(0);
}
#back-icon, #next-icon{
width: 40px;
margin: 20px;
cursor: pointer;
}
@media(max-width: 578px){
.container{
max-width: 720px;
}
.gallery {
width: 580px;
flex-wrap: nowrap;
}
.gallery div{
grid-template-columns: auto;
}
}
@media(min-width: 768px){
.container{
max-width: 720px;
}
.gallery div{
grid-template-columns: auto;
}
}
@media(min-width: 992px){
.container{
max-width: 960px;
}
.gallery div{
grid-template-columns: auto auto auto;
}
}
@media (min-width: 1200px){
.container{
max-width: 1140px;
}
}