-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyles.css
More file actions
94 lines (90 loc) · 1.48 KB
/
Copy pathstyles.css
File metadata and controls
94 lines (90 loc) · 1.48 KB
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
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
background-color: hsl(0, 0%, 98%);
font-family: 'Poppins', sans-serif;
}
header {
margin: 0 auto;
margin-top: 70px;
max-width: 500px;
text-align: center;
padding: 10px;
}
header h1:nth-child(1) {
color: hsl(229, 6%, 66%);
font-weight: 400;
margin: 0;
}
header h1:nth-child(2) {
color: hsl(234, 12%, 34%);
font-weight: 600;
}
header p {
font-size: 14px;
margin-top: 20px;
}
p {
color: hsl(229, 6%, 66%);
}
.container {
display: flex;
flex-wrap: wrap;
justify-content: center;
max-width: 1140px;
margin: 0 auto;
margin-top: 40px;
}
.box {
background-color: #fff;
box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05), 0 6px 6px rgba(0, 0, 0, 0.1);
border-radius: 5px;
padding: 20px;
margin: 15px;
width: 350px;
position: relative;
overflow: hidden;
}
.box-push {
transform: translateY(50%);
}
.box::after {
content: '';
position: absolute;
top: 0;
left: 0;
height: 5px;
width: 100%;
}
.box h2 {
font-size: 18px;
color: hsl(234, 12%, 34%);
}
.box p {
font-size: 14px;
margin: 15px 0 50px;
}
.box img {
display: block;
margin-left: auto;
}
.box:nth-child(1) {
border-top: 3px solid hsl(180, 62%, 55%);
}
.box:nth-child(2) {
border-top: 3px solid hsl(0, 78%, 62%);
}
.box:nth-child(3) {
border-top: 3px solid hsl(212, 86%, 64%);
}
.box:nth-child(4) {
border-top: 3px solid hsl(34, 97%, 64%);
}
@media (max-width: 775px) {
.box-push {
transform: translateY(0);
}
}