-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyle.css
91 lines (74 loc) · 1.4 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
89
body {
padding: 0;
margin: 0;
box-sizing: border-box;
}
nav {
width: 100%;
height: auto;
background-color: #333;
padding: 1em;
display: flex;
justify-content: center;
align-items: center;
box-shadow: -5px 5px 7px #949393;
box-sizing: border-box;
z-index: 100;
}
nav h1 {
text-transform: uppercase;
font-size: 5vw;
color: white;
margin: 0;
}
.gallery {
display: flex;
justify-content: space-around;
flex-flow: row wrap;
margin: 20px 0px 0px;
row-gap: 20px;
}
.gallery .image {
width: 32%;
height: auto;
padding: 1.5em;
border-radius: 8px;
background-color: white;
box-sizing: border-box;
box-shadow: 5px 5px 7px #949393;
overflow: hidden;
}
.gallery .image img {
transition: transform .5s ease;
filter: grayscale(0);
cursor: pointer;
}
.gallery .image img:hover {
transform: scale(1.17);
filter: grayscale(100%);
}
/* media queries */
/* tablette */
@media screen and (max-width: 1024px) {
.gallery {
display: flex;
justify-content:center;
gap: 20px;
}
.gallery .image {
width: 45%;
padding: 1em;
}
}
/* mobile*/
@media screen and (max-width:480px) {
.gallery{
display: flex;
flex-direction: column;
margin: 20px;
}
.gallery .image{
padding: 1em;
width: 100%;
}
}