Skip to content

Commit 1b31b9b

Browse files
Added new styles for blog entries cards in home-page.scss
1 parent 12daae0 commit 1b31b9b

File tree

1 file changed

+23
-4
lines changed

1 file changed

+23
-4
lines changed

webpack/sass/home-page.scss

+23-4
Original file line numberDiff line numberDiff line change
@@ -171,15 +171,34 @@
171171
}
172172
}
173173

174+
// Card styling within the blog entries section
175+
.card.entry-post.horizontal {
176+
display: flex;
177+
flex-direction: column;
178+
align-items: center;
179+
gap: 30px;
180+
border-radius: 25px;
181+
background-color: #FFFFFF;
182+
padding: 20px; /* Adjust padding as needed */
183+
margin-top: 2rem;
184+
185+
// Image styling inside the card
186+
.blog-image {
187+
width: auto;
188+
height: 8rem;
189+
margin-top: -3rem;
190+
}
191+
}
192+
174193
.blog-entries {
175194
.column {
176195
border-bottom: 0.1875rem solid $color-light-gray;
177196
}
178-
/* last row, irrespective of the number of elements */
179-
.column:nth-last-child(-n + 3):nth-child(3n + 1), /* first element of the last row */
197+
/* last row, irrespective of the number of elements */
198+
.column:nth-last-child(-n + 3):nth-child(3n + 1), /* first element of the last row */
180199
.column:nth-last-child(-n + 3):nth-child(3n + 1) ~ .column /* all its following elements */ {
181-
border-bottom: none;
182-
}
200+
border-bottom: none;
201+
}
183202

184203
.blog-entry {
185204
@extend .padding-vertical-larger;

0 commit comments

Comments
 (0)