-
Notifications
You must be signed in to change notification settings - Fork 0
/
style.css
128 lines (126 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
115
116
117
118
119
120
121
122
123
124
125
126
127
128
@import url('https://fonts.googleapis.com/css2?family=Karla:wght@400;700&display=swap');
:root{
--Cyan: hsl(179, 62%, 43%);
--Bright-Yellow: hsl(71, 73%, 54%);
--Light-Gray: hsl(204, 43%, 93%);
--Grayish-Blue: hsl(218, 22%, 67%);
}
html {
font-size: 16px;
font-family: 'karla', sans-serif;
}
body{
display: grid;
place-content: center;
background-color: var(--Light-Gray);
}
* {
padding: 0;
margin: 0;
box-sizing: border-box;
}
section {
min-height: 100vh;
width: 100%;
display: flex;
align-items: center;
justify-content: center;
background-color:var(--Light-Gray);
padding: 100px 30px;
}
.container {
display: grid;
grid-template-columns: 100%;
max-width: 550px;
border-radius: 8px;
overflow: hidden;
box-shadow: 0px 0px 14px 1px #00000024;
}
body {
min-height: 100vh;
display: grid;
place-items: center;
}
.item {
padding: 30px;
}
.item-1 {
background-color: white;
}
.item-1 h2 {
color: var(--Cyan);
font-weight: 700;
font-size: 1.3rem;
margin-bottom: 15px;
}
.item-1 h3 {
color: var(--Bright-Yellow);
font-size: 1rem;
margin-bottom: 15px;
}
.item-1 p {
color: var(--Grayish-Blue);
font-size: 1rem;
line-height: 1.5rem;
}
.item-2 {
background-color: var(--Cyan);
}
.item-2 h3 {
color: white;
font-weight: 400;
font-size: 1.rem;
margin-bottom: 15px;
}
.item-2 p {
color: var(--Light-Gray);
font-size: 1rem;
font-weight: 400;
margin-bottom: 10px;
}
.item-2 p span {
font-size: 2.5rem;
font-weight: 600;
position: relative;
top: 10px;
}
.item-2 a {
text-align: center;
width: 100%;
padding: 15px;
border-radius: 8px;
display: inline-block;
background-color: var(--Bright-Yellow);
color: white;
text-decoration: none;
font-size: 1.2rem;
margin-top: 30px;
font-weight: 700;
box-shadow: 0px 4px 10px 1px #00000033;
}
.item-3 {
background-color: #4abebd;
}
.item-3 h3 {
color: white;
font-weight: 400;
font-size: 1.3rem;
margin-bottom: 15px;
}
.item-3 p {
color: var(--Light-Gray);
line-height: 1.5rem;
padding-top: 12px;
}
@media only screen and (min-width: 768px) {
.container {
grid-template-columns: 1fr 1fr;
}
.container .item-1 {
grid-area: 1 / 1 / 2 / 3;
}
.container .item-2,
.container .item-3 {
grid-row: 2;
}
}