-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyle.css
75 lines (67 loc) · 2.01 KB
/
style.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
/* Apply basic styles to reset default spacing and box model for all elements */
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
/* Set the background color of the entire page */
body {
background-color: hsl(47, 88%, 63%);
height: 100vh;
width: 100wh;
display: flex;
align-items: center;
justify-content: center;
}
/* Styles for the container housing the blog preview card */
.container {
padding: 20px;
display: flex;
flex-direction: column;
align-items: center;
width: 370px; /* Set initial and maximum width of the container */
height: 33rem;
min-width: 370px;
background-color: hsl(0, 0%, 100%); /* Background color for the container */
border: 1px solid black;
border-radius: 20px;
box-shadow: 5px 5px 0px rgb(10, 9, 9); /* Box shadow for a subtle lift */
/* Remove box shadow on hover for a cleaner look */
&:hover {
box-shadow: none;
}
}
/* Styles for the image and SVG element inside the container */
.image {
display: flex;
justify-content: center;
align-items: center;
width: 100%;
}
.images {
border-radius: 20px;
width: 21rem;
}
/* Styles for the button inside the container */
button {
width: 25%; /* Set the width of the button to 50% of its container */
height: auto;
margin-top: 20px;
margin-bottom: 5px; /* Add bottom margin for spacing */
background-color: hsl(47, 88%, 63%); /* Background color for the button */
border: none; /* Remove border */
padding: 8px; /* Add padding for a comfortable touch */
border-radius: 5px;
font-weight: bold;
}
/* Styles for the footer section containing the author information */
.footer {
display: flex; /* Use flexbox for layout */
margin-top: 10px; /* Add top margin for spacing */
}
/* Styles for the author name in the footer */
.footer > strong {
display: flex; /* Use flexbox for layout */
align-items: center; /* Align items in the center vertically */
margin-left: 10px; /* Add left margin for spacing */
}