-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path3.css
More file actions
126 lines (108 loc) · 2.21 KB
/
3.css
File metadata and controls
126 lines (108 loc) · 2.21 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
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
/* General styles */
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
html {
font-family: "Poppins", sans-serif;
font-size: 10px;
}
body {
width: 100%;
height: 100vh;
display: flex;
align-items: center;
justify-content: center;
background-color: #1a1d24;
padding: 0 1.5rem;
font-size: 1.6rem;
}
a {
text-decoration: none;
}
/* General styles end*/
.blog-post {
display: flex;
align-items: center;
max-width: 90rem;
background-color: #fff;
padding: 2.5rem;
box-shadow: 0 1.4rem 8rem rgba(0, 0, 0, 0.2);
border-radius: 0.8rem;
}
.blog-post__img {
position: relative;
min-width: 35rem;
max-width: 35rem;
height: 30rem;
transform: translateX(-8rem);
}
.blog-post__img img {
display: block;
width: 100%;
height: 100%;
object-fit: cover;
border-radius: 0.8rem;
}
.blog-post__img::before {
content: "";
position: absolute;
inset: 0;
background: linear-gradient(to right, #4facfe 0%, #00f2fe 100%);
box-shadow: 0.5rem 0.5rem 3rem 1px rgba(0, 0, 0, 0.05);
border-radius: 0.8rem;
opacity: 0.5;
}
.blog-post__date span {
display: block;
color: #8e8c8c;
font-weight: 600;
margin: 0.5rem 0;
}
.blog-post__title {
font-size: 2.5rem;
margin: 1.5rem 0 2rem;
text-transform: uppercase;
color: #4facfe;
}
.blog-post__info p {
margin-bottom: 3rem;
color: rgba(0, 0, 0, 0.7);
}
.blog-post__cta {
display: inline-block;
background-image: linear-gradient(to right, #4facfe 0%, #00f2fe 100%);
padding: 1.5rem 3rem;
letter-spacing: 1px;
text-transform: uppercase;
color: #fff;
border-radius: 0.8rem;
}
.blog-post__cta:hover {
background-image: linear-gradient(to right, #00f2fe 0%, #4facfe 100%);
}
@media (max-width: 1068px) {
.blog-post {
max-width: 80rem;
}
.blog-post__img {
min-width: 30rem;
max-width: 30rem;
}
}
@media (max-width: 868px) {
.blog-post {
max-width: 70rem;
}
}
@media (max-width: 768px) {
.blog-post {
padding: 2.5rem;
flex-direction: column;
}
.blog-post__img {
min-width: 100%;
transform: translate(0, -8rem);
}
}