-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyle.css
114 lines (112 loc) · 2.19 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
:root{
--Red: hsl(0, 78%, 62%);
--Cyan: hsl(180, 62%, 55%);
--Orange: hsl(34, 97%, 64%);
--Blue: hsl(212, 86%, 64%);
--Very-Dark-Blue: hsl(234, 12%, 34%);
--Grayish-Blue: hsl(229, 6%, 66%);
--Very-Light-Gray: hsl(0, 0%, 98%);
}
*{
box-sizing: border-box;
margin: 0;
padding: 0;
}
body{
font-family: 'Poppins', sans-serif;
font-size: 15px;
color: var(--Very-Dark-Blue);
}
.container{
width: 90%;
margin: 0 auto 0;
background: var(--Very-Light-Gray);
text-align: center;
padding: 2em;
}
h1:first-of-type{
font-weight: 200;
margin-bottom: 10px;
}
h1:last-of-type{
font-weight: 600;
margin-bottom: 10px;
}
p{
margin-bottom: 20px;
font-weight: 200;
}
h2{
font-weight: 600;
}
.cards{
text-align: start;
display: grid;
grid-gap: 10px;
grid-template: "one two four" auto "one three four" auto / 1fr 1fr 1fr
}
.card-1{
grid-area: one;
align-self: center;
border-top: 3px solid var(--Cyan);
padding: 20px;
height: 200px;
position: relative;
margin-bottom: 20px;
box-shadow: 0 0 1em rgba(0,0,0,0.5);
}
.card-2{
grid-area: two;
border-top: 3px solid var(--Red);
padding: 10px;
height: 200px;
position: relative;
margin-bottom: 20px;
box-shadow: 0 0 1em rgba(0,0,0,0.5);
}
.card-3{
grid-area: three;
border-top: 3px solid var(--Orange);
padding: 20px;
height: 200px;
position: relative;
margin-bottom: 20px;
box-shadow: 0 0 1em rgba(0,0,0,0.5);
}
.card-4{
grid-area: four;
align-self: center;
border-top: 3px solid var(--Blue);
padding: 20px;
height: 200px;
position: relative;
margin-bottom: 20px;
box-shadow: 0 0 1em rgba(0,0,0,0.5);
}
.card-1 img{
position: absolute;
bottom: 10px;
right: 10px;
}
.card-2 img{
position: absolute;
bottom: 10px;
right: 10px;
}
.card-3 img{
position: absolute;
bottom: 10px;
right: 10px;
}
.card-4 img{
position: absolute;
bottom: 10px;
right: 10px;
}
@media(max-width: 600px){
.cards{
display: grid;
gap: 10px;
grid-template-areas: "one one one" "two two two" "three three three" "four four four";
}
}