-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathstyle.css
152 lines (132 loc) · 2.64 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
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
/* Resets */
*,
*::before,
*::after {
margin: 0;
padding: 0;
box-sizing: border-box;
}
/* Fonts */
@font-face {
font-family: "PP Hatton Light";
src: url(./assets/fonts/PPHatton-Ultralight.otf);
}
@font-face {
font-family: "PP Hatton Medium";
src: url(./assets/fonts/PPHatton-Medium.otf);
}
@font-face {
font-family: "PP Hatton Bold";
src: url(./assets/fonts/PPHatton-Bold.otf);
}
/* Variables */
:root {
--primary: #000000;
--bg: #f0f1f4;
}
/* Base Styles */
body {
background-color: var(--bg);
color: var(--primary);
}
.logo h1 {
font-family: "PP Hatton Light";
font-style: normal;
font-weight: 100;
font-size: 1.125rem;
line-height: 120%;
letter-spacing: -0.02em;
text-transform: uppercase;
}
main h2 {
font-family: "PP Hatton Light";
font-style: normal;
font-weight: 100;
font-size: 4rem;
line-height: 100%;
text-align: center;
letter-spacing: -0.02em;
text-transform: uppercase;
}
.logo h1 > span,
main h2 > span {
font-family: "PP Hatton Medium";
font-weight: 500;
display: block;
}
header {
display: flex;
justify-content: space-between;
padding: 1.875rem;
}
img {
max-width: 100%;
}
/* Mobile Styles */
.grid {
display: grid;
grid-template-columns: repeat(4, 1fr);
grid-template-areas:
"image1 image1 . image2"
"texts texts texts texts"
". image3 image3 .";
grid-row-gap: 1rem;
justify-items: center;
}
.image:nth-child(1) {
grid-area: image1;
}
.image:nth-last-child(2) {
grid-area: image2;
}
.image:nth-last-child(1) {
grid-area: image3;
}
h2 {
grid-area: texts;
}
/* Small Tablet Styles */
@media screen and (min-width: 690px) {
main h2 {
font-size: 5rem;
}
}
/* Large Tablet and Laptop Styles */
@media screen and (min-width: 900px) {
.grid {
grid-template-columns: repeat(8, 1fr);
grid-template-areas:
". image1 image1 . . . image2 ."
". texts texts texts texts texts image2 ."
". . image3 image3 image3 image3 . .";
}
.image:nth-last-child(2) {
align-self: end;
}
}
/* Desktop Styles */
@media screen and (min-width: 1200px) {
main {
max-width: 1600px;
margin: 0 auto;
}
.grid {
grid-template-columns: repeat(12, 1fr);
grid-template-areas:
". image1 image1 . . . . . . . . ."
". texts texts texts texts texts texts texts texts texts image2 ."
". . image3 image3 image3 image3 . . . . . .";
}
main h2 {
font-size: 8rem;
}
.image:nth-last-child(2) {
align-self: center;
}
.image:nth-last-child(1) {
justify-self: end;
}
.image:nth-child(1) img {
margin-bottom: -4rem;
}
}