-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyle.css
144 lines (134 loc) · 2.57 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
/* import google font */
@import url("https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap");
/* font-family: "Poppins", sans-serif; */
:root {
--ff-poppins: "Poppins", sans-serif;
--Very-Dark-Blue: hsl(234, 12%, 34%);
--Grayish-Blue: hsl(229, 6%, 66%);
--Very-Light-Gray: hsl(0, 0%, 98%);
--Red: hsl(0, 78%, 62%);
--Cyan: hsl(180, 62%, 55%);
--Orange: hsl(34, 97%, 64%);
--Blue: hsl(212, 86%, 64%);
}
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: var(--ff-poppins);
background: var(--Very-Light-Gray);
}
p {
font-size: 0.938rem;
color: var(--Grayish-Blue);
}
.wrapper {
padding-inline: 1.5rem;
max-width: 1100px;
margin: 0 auto;
}
/* header section */
header {
text-align: center;
margin: 3rem 0;
}
.header-raw {
max-width: 500px;
}
.header-raw h1 {
font-size: 2rem;
color: var(--Grayish-Blue);
font-weight: 400;
line-height: 39px;
padding-bottom: 1rem;
}
.header-raw h1 span {
color: var(--Very-Dark-Blue);
font-weight: 600;
}
/* Four card feature section */
.layout-gird {
display: grid;
grid-template-columns: repeat(3, 1fr);
grid-template-areas:
"... two ..."
"one two four"
"one three four"
"... three ...";
gap: 2rem;
}
.layout-gird > :nth-child(1) {
grid-area: one;
}
.layout-gird > :nth-child(2) {
grid-area: two;
}
.layout-gird > :nth-child(3) {
grid-area: three;
}
.layout-gird > :nth-child(4) {
grid-area: four;
}
.card {
padding: 1.5rem;
border-radius: 5px;
box-shadow: rgba(149, 157, 165, 0.2) 0px 8px 24px;
}
.card h2 {
font-size: 1.25rem;
color: var(--Very-Dark-Blue);
font-weight: 600;
}
.card p {
padding: 0.5rem 0 2rem 0;
}
.card img {
display: block;
margin-left: auto;
}
.card:nth-child(1) {
border-top: 5px solid var(--Cyan);
}
.card:nth-child(2) {
border-top: 5px solid var(--Red);
}
.card:nth-child(3) {
border-top: 5px solid var(--Orange);
}
.card:nth-child(4) {
border-top: 5px solid var(--Blue);
}
/* footer */
.attribution {
margin: 1.5rem 0;
font-size: 11px;
text-align: center;
}
.attribution a {
color: hsl(228, 45%, 44%);
}
/* tab */
@media (max-width: 895px) {
.layout-gird {
grid-template-columns: repeat(2, 1fr);
grid-template-areas:
"one two"
"three four";
}
}
/* mobile */
@media (max-width: 768px) {
.header-raw h1 {
font-size: 1.6rem;
}
.layout-gird {
grid-template-columns: 1fr;
grid-template-areas:
"one"
"two"
"three"
"four";
}
}