-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyle.css
More file actions
87 lines (76 loc) · 2.18 KB
/
Copy pathstyle.css
File metadata and controls
87 lines (76 loc) · 2.18 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
body {
font-family: Arial, sans-serif;
background-color: #f0f2f5; /* Light grey background for the page */
display: flex;
justify-content: center;
align-items: center;
min-height: 100vh; /* Ensure the body takes full viewport height */
margin: 0;
}
.card-container {
padding: 20px;
}
.card {
background-color: #ffffff;
border-radius: 12px; /* Rounded corners for the card */
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Subtle shadow for depth */
width: 300px; /* Fixed width for the card, adjust as needed */
overflow: hidden; /* Ensures image corners are rounded with the card */
transition: transform 0.3s ease, box-shadow 0.3s ease; /* Smooth hover effects */
}
.card:hover {
transform: translateY(-5px); /* Lift effect on hover */
box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2); /* Deeper shadow on hover */
}
.card-image {
width: 100%;
height: 200px; /* Fixed height for consistency */
object-fit: cover; /* Ensures the image covers the area without distortion */
border-top-left-radius: 12px; /* Match card border-radius for top corners */
border-top-right-radius: 12px;
}
.card-content {
padding: 16px;
}
.card-tags {
margin-bottom: 10px;
}
.tag {
display: inline-block;
background-color: #e0efff; /* Light blue background for tags */
color: #0077ff; /* Blue text for tags */
padding: 4px 10px;
border-radius: 20px; /* Pill-shaped tags */
font-size: 12px;
font-weight: bold;
margin-right: 8px;
}
.card-title {
font-size: 24px;
font-weight: bold;
color: #333333;
margin-top: 0;
margin-bottom: 10px;
}
.card-description {
font-size: 14px;
color: #555555;
line-height: 1.5;
margin-bottom: 15px;
/* To mimic "read more" cutting off text, you might add: */
display: -webkit-box;
-webkit-line-clamp: 4; /*Limit to 4 lines */
-webkit-box-orient: vertical;
overflow: hidden;
text-overflow: ellipsis;
}
.read-more {
display: inline-block;
color: #0077ff; /* Blue color for the link */
text-decoration: none;
font-weight: bold;
transition: color 0.3s ease;
}
.read-more:hover {
color: #0056b3; /* Darker blue on hover */
}