-
Notifications
You must be signed in to change notification settings - Fork 216
/
styles.css
110 lines (95 loc) · 2.25 KB
/
styles.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
/* Basic Reset */
@import url('https://fonts.googleapis.com/css2?family=Lato:ital,wght@0,100;0,300;0,400;0,700;0,900;1,100;1,300;1,400;1,700;1,900&display=swap');
body, h1, h2, p {
margin: 0;
padding: 0;
font-family: Arial, sans-serif;
}
/* Body styles */
body {
background: radial-gradient(328px at 2.9% 15%, rgb(191, 224, 251) 0%, rgb(232, 233, 251) 25.8%, rgb(252, 239, 250) 50.8%, rgb(234, 251, 251) 77.6%, rgb(240, 251, 244) 100.7%);
color: #333;
line-height: 1.6;
}
/* Header styles */
header {
background-color: #FF6F61; /* Ice cream color */
color: white;
text-align: center;
padding: 20px 0;
}
/* Main section styles */
main {
padding: 20px;
}
/* Blog details section */
#blog-details {
display: flex;
flex-direction: column;
gap: 20px;
}
/* Blog detail article styles */
.blog-detail {
display: flex;
align-items: center;
justify-content: center;
flex-wrap: wrap;
flex-direction: column;
/* background: rgb(0, 0, 0); */
background: linear-gradient(109.6deg, rgb(0, 0, 0) 11.2%, rgb(11, 132, 145) 91.1%);
border-radius: 15px;
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
overflow: hidden;
transition: transform 0.3s, box-shadow 0.3s;
}
.blog-detail p:hover{
color: red;
/* transform: scale(1.1); */
cursor: pointer;
transition: 0.2s;
}
.blog-detail img{
border-radius: 10px;
margin: 50px;
box-shadow: 0 4px 8px #defcf9;
transition: transform 0.3s, box-shadow 0.3s;
}
.blog-detail p{
font-size: larger;
font-family: "Lato";
font-style: italic;
}
.blog-detail:hover {
transform: translateY(-5px);
box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}
.blog-detail img:hover {
transform: translateY(-5px);
box-shadow: -1px -1px 3px 4px #fcf4d9;
}
/* Image styles */
.blog-detail img {
width: 650px;
border-bottom: 1px solid #ddd;
}
/* Heading styles */
h2 {
color: #FF6F61; /* Ice cream color */
padding: 10px;
text-align: center;
}
/* Paragraph styles */
p {
padding: 0 15px 15px;
color: white;
}
/* Footer styles */
footer {
text-align: center;
padding: 10px;
background-color: #FF6F61; /* Ice cream color */
color: white;
position: relative;
bottom: 0;
width: 100%;
}