-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyle.css
More file actions
80 lines (66 loc) · 1.33 KB
/
style.css
File metadata and controls
80 lines (66 loc) · 1.33 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
.navbar {
overflow: hidden;
background-color: rgb(63, 148, 148);
position: fixed;
top: 0;
width: 100%;
height: 8%;
left: 0;
}
body{
margin:0;
}
img{
max-width: 100%;
height:auto;
}
.gallery{
margin: 0 0.65rem;
}
.gallery-item{
height: auto;
margin: 0.5rem;
}
.gallery-item img{
width: 100%;
height: 100%;
object-fit: cover;
}
@media (min-width:650px){
.gallery{
display:grid;
grid-template-columns: repeat(2,1fr);
grid-template-rows: repeat(5,300fr);
grid-auto-flow:row dense ;
}
.gallery-item{
margin: 0.7rem;
}
.gallery-item:first-child{
grid-row: span 1;
}
.gallery-item:nth-child(2){
grid-column: 2/3;
grid-row:span 2;
}
.gallery-item:nth-child(2),
.gallery-item:nth-child(8)
grid-row:span 2;
}
}
@media(min-width:960px){
.gallery{
grid-template-columns: repeat(5,1fr);
grid-template-rows: repeat(3,auto-flow);
}
.gallery-item:nth-child,
.gallery-item:nth-child(7),
.gallery-item:nth-child(8){
grid-column: span 2;
grid-row: span 1;
}
.gallery-item:nth-child(2){
grid-column: span 2;
grid-row: span 2;
}
}