-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyle.css
128 lines (105 loc) · 2.03 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
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@200;400;600&display=swap');
* {
box-shadow: border-box;
margin: 0;
padding: 0;
}
body {
font-family: 'Poppins', sans-serif;
display: grid;
place-items: center;
min-height: 100vh;
color: hsl(229, 6%, 66%);
background-color: hsl(0, 0%, 98%);
}
.header {
text-align: center;
margin: 40px 20px 40px 20px;
}
.title {
font-size: 2.5rem;
line-height: 1.4;
font-weight: 200;
color: hsl(234, 12%, 34%);
font-size: 40px;
}
.bold_title {
font-size: 2.5rem;
line-height: 1.4;
font-weight: bold;
color: hsl(234, 12%, 34%);
font-size: 40px;
}
.description {
color: hsl(229, 6%, 66%);
font-size: 16px;
padding: 24px 0 0;
max-width: 500px;
margin: 0 auto;
}
.cards {
display: grid;
max-width: 1250px;
grid-template-columns: 1fr 1fr;
gap: 1.7em;
margin: 5em 2em 3.5em 2em;
}
.card {
padding: 1.5em 2em 7.7em 2em;
border-radius: 5px;
box-shadow: 0 7px 18px rgba(97, 98, 158, 0.3);
position: relative;
min-width: 250px;
transform: translateY(-20px);
}
.card:nth-of-type(1) {
border-top: 4px solid hsl(180, 62%, 55%);
}
.card:nth-of-type(2) {
border-top: 4px solid hsl(0, 78%, 62%);
}
.card:nth-of-type(3) {
border-top: 4px solid hsl(34, 97%, 64%);
}
.card:nth-of-type(4) {
border-top: 4px solid hsl(212, 86%, 64%);
}
.card_title {
color: hsl(234, 12%, 34%);
font-size: 1.2rem;
line-height: 2;
}
.card_description {
color: hsl(229, 6%, 66%);
font-size: .8rem;
line-height: 1.7;
}
.card_img {
position: absolute;
right: 1.8em;
bottom: 1.8em;
}
.attribution {
text-align: center;
font-size: 12px;
color: #111;
}
.attribution a {
color: red;
}
@media(max-width:747px) {
.cards {
grid-template-columns: 1fr;
}
.title {
font-size: 24px;
}
.bold_title {
font-size: 24px;
}
}
@media(max-width:380px) {
.card {
min-width: 180px;
}
}