tiles.scss
1.36 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
.tiles{
display: grid;
grid-template-columns: auto auto auto;
column-width: 33%;
column-gap: 0px;
grid-auto-flow: dense;
grid-template-rows: masonry;
margin-top: 40px;
max-width: 100vw;
margin: auto;
transition: .5s;
background: #333;
}
.tile {
display: inline-grid;
margin: 0px;
cursor: pointer;
text-align: center;
background: #333;
vertical-align: top;
grid-column-end: span 1;
grid-row-end: span 1;
.tile_image{
background-size: cover;
background-position: center;
background-repeat: no-repeat;
height: 275px;
width: 100%;
}
.hover_content{
opacity: 0;
}
.tile_content{
display: none;
}
}
.tile:hover {
.hover_content{
opacity: 1;
background-color: rgba(0,0,0,0.6);
height: 100%;
}
}
.tile.expand {
grid-column-end: span 2;
grid-row-end: span 2;
.hover_content{
display: none;
}
.tile_content{
margin-top: -16px;
display: block;
height: 100%;
background-color: rgba(0,0,0,0.7);
}
.tile_image{
height: 550px;
}
}
.tile.expand:hover {
.hover_content{
display: none;
}
.tile_content{
display: block;
height: 100%;
background-color: rgba(0,0,0,0.7);
}
}
// .last-expand{
// .tile:nth-of-type(4){
// grid-column-end:2;
// }
// .tile:nth-of-type(5){
// grid-row-end: 4;
// grid-column-end:2;
// }
// }