-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.css
134 lines (114 loc) · 2.45 KB
/
index.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
@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');
: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%);
--font-size: 15px;
--font-family: "Poppins";
}
* {
margin: 0;
padding: 0;
box-sizing: border-box;
font-family: var(--font-family);
}
body {
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
min-height: 100vh;
background-color: var(--very-light-gray);
color: var(--grayish-blue);
}
h1, h2 {
color: var(--very-dark-blue);
}
p {
font-size: var(--font-size);
font-weight: 400;
}
#heading1 {
font-weight: 200;
}
h1 {
font-weight: 600;
}
header {
text-align: center;
margin-top: 3em;
display: flex;
flex-direction: column;
gap: var(--space-s);
}
main {
display: grid;
}
.card {
background-color: white;
border-radius: 0.5em;
box-shadow: 0 1em 2em -1em var(--grayish-blue);
padding: 2em 2em 0em 2em;
margin: 2em;
display: flex;
flex-direction: column;
align-items: flex-start;
transition: all 0.3s ease;
}
.card:hover {
box-shadow: 0 1em 2em -1em var(--very-dark-blue);
cursor: pointer;
transition: all 0.3s ease;
}
.card img {
margin-bottom: 1em;
width: 4em;
height: auto;
align-self: flex-end;
justify-content: flex-end;
}
.card:nth-child(1) {
border-top: 0.3em solid var(--cyan);
}
.card:nth-child(2) {
border-top: 0.3em solid var(--red);
}
.card:nth-child(3) {
border-top: 0.3em solid var(--orange);
}
.card:nth-child(4) {
border-top: 0.3em solid var(--blue);
}
@media (min-width: 28em) {
main {
grid-template-columns: repeat(5, 1fr);
grid-template-rows: 5% 35% 5% 35% 5%;
}
.card {
width: 22em;
}
.card:nth-child(1) {
grid-column-start: 2;
grid-row-start: 3;
align-self: center;
}
.card:nth-child(2) {
grid-column-start: 3;
grid-row-start: 2;
align-self: end;
}
.card:nth-child(3) {
grid-column-start: 3;
grid-row-start: 4;
align-self: start;
}
.card:nth-child(4) {
grid-column-start: 4;
grid-row-start: 3;
align-self: center;
}
}