forked from janavipandole/Cara
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathblog.css
More file actions
103 lines (90 loc) · 1.75 KB
/
Copy pathblog.css
File metadata and controls
103 lines (90 loc) · 1.75 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
/* ============================================
BLOG PAGE SPECIFIC STYLES
============================================ */
#blog-head {
background-image: url("images/banner/b19.jpg");
background-size: cover;
background-position: center;
height: 50vh;
display: flex;
align-items: center;
justify-content: center;
font-size: 14px;
transition: all 0.3s ease;
}
#blog-head h2,
#blog-head p {
color: #fff;
text-align: center;
}
#blog {
padding: 150px 150px 0 150px;
}
#blog .blog-box {
display: flex;
align-items: center;
width: 100%;
position: relative;
padding-bottom: 90px;
}
#blog .blog-box h1 {
font-size: 70px;
font-weight: 700;
color: var(--border-color);
position: absolute;
top: -40px;
left: 0;
z-index: -1;
}
#blog .blog-img {
width: 50%;
margin-right: 40px;
}
#blog img {
width: 100%;
height: 300px;
object-fit: cover;
}
#blog .blog-details {
width: 50%;
}
#blog .blog-details a {
text-decoration: none;
font-size: 11px;
color: var(--text-primary);
font-weight: 700;
position: relative;
transition: 0.3s;
}
#blog .blog-details a::after {
content: "";
width: 50px;
height: 1px;
background: var(--text-primary);
position: absolute;
top: 4px;
right: -60px;
}
#blog .blog-details a:hover {
color: var(--accent);
}
#blog .blog-details a:hover::after {
background: var(--accent);
}
@media (max-width: 991px) {
#blog {
padding: 40px;
}
#blog .blog-box {
flex-direction: column;
align-items: flex-start;
gap: 20px;
}
#blog .blog-img {
width: 100%;
margin-right: 0;
}
#blog .blog-details {
width: 100%;
}
}