-
Notifications
You must be signed in to change notification settings - Fork 0
/
style.css
95 lines (82 loc) · 1.49 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
90
91
92
93
94
95
body {
margin: 50px;
color: #323031;
background-color: #A3A866;
background-color: #2a9ec1;
font-family: 'Lato', sans-serif;
}
h2, h3 {
font-family: 'Montserrat', sans-serif;
}
h2 {
font-size: 1.6em;
margin: 0 30px 5px 30px;
text-transform: uppercase;
}
h3 {
font-size: 0.9em;
margin: 0 30px 5px 30px;
text-transform: uppercase;
}
p {
margin: 0 30px 0 30px;
}
.image-container {
margin: auto;
width: 90vw;
display: grid;
grid-row-gap: 15px;
grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
}
.smallgrid {
display: grid;
grid-template-columns: 1fr 1fr 1fr;
}
.text-holder {
position: absolute;
top: 50%;
transform: translateY(-50%);
}
.odd>.description {
background-color: #db3a34;
z-index: 4;
width: 112%;
margin-left: -10.5%;
transform: perspective(1000px) rotateY(-30deg);
grid-column: 1 / 3;
grid-row: 1 / 2;
text-align: right;
}
.odd>.description>.text-holder {
right: 0;
}
.even>.description {
z-index: 2;
background-color: #5bba6f;
width: 112%;
transform: perspective(1000px) rotateY(30deg);
grid-column: 2 / 4;
grid-row: 1 / 2;
}
.even>.photo {
z-index: 3;
width: 150%;
margin-left: -23%;
transform: perspective(1000px) rotateY(-45deg);
grid-column: 1 / 2;
grid-row: 1 / 2;
}
.odd>.photo {
z-index: 5;
width: 150%;
margin-left: -25%;
transform: perspective(1000px) rotateY(45deg);
grid-column: 3 / 4;
grid-row: 1 / 2;
}
img {
display: block;
width: 100%;
height: 100%;
object-fit: conver;
}