101 lines
1.7 KiB
CSS
101 lines
1.7 KiB
CSS
|
|
/* ==================== Blog Page ==================== */
|
||
|
|
|
||
|
|
.blog-page {
|
||
|
|
padding: 60px 0;
|
||
|
|
}
|
||
|
|
|
||
|
|
.blog-page__container {
|
||
|
|
width: 90%;
|
||
|
|
max-width: 1300px;
|
||
|
|
margin: auto;
|
||
|
|
}
|
||
|
|
|
||
|
|
.blog-page__title {
|
||
|
|
text-align: center;
|
||
|
|
color: var(--primary);
|
||
|
|
margin-bottom: 40px;
|
||
|
|
font-size: 32px;
|
||
|
|
font-weight: 600;
|
||
|
|
}
|
||
|
|
|
||
|
|
.blog-grid {
|
||
|
|
display: grid;
|
||
|
|
gap: 30px;
|
||
|
|
grid-template-columns: repeat(2, 1fr);
|
||
|
|
}
|
||
|
|
|
||
|
|
@media (min-width: 768px) {
|
||
|
|
.blog-grid {
|
||
|
|
grid-template-columns: repeat(3, 1fr);
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
@media (min-width: 1200px) {
|
||
|
|
.blog-grid {
|
||
|
|
grid-template-columns: repeat(4, 1fr);
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
.post-card {
|
||
|
|
background: var(--white);
|
||
|
|
border: 1px solid #B0D5DE;
|
||
|
|
border-radius: 20px;
|
||
|
|
overflow: hidden;
|
||
|
|
padding-bottom: 20px;
|
||
|
|
display: flex;
|
||
|
|
flex-direction: column;
|
||
|
|
text-align: center;
|
||
|
|
}
|
||
|
|
|
||
|
|
.post-card__thumb img {
|
||
|
|
width: 100%;
|
||
|
|
height: 180px;
|
||
|
|
object-fit: cover;
|
||
|
|
}
|
||
|
|
|
||
|
|
.post-card__title {
|
||
|
|
padding: 16px;
|
||
|
|
color: var(--primary);
|
||
|
|
font-size: 18px;
|
||
|
|
font-weight: 600;
|
||
|
|
flex: 1;
|
||
|
|
}
|
||
|
|
|
||
|
|
.post-card__button {
|
||
|
|
margin: 0 auto;
|
||
|
|
background-color: var(--button-color);
|
||
|
|
color: var(--white);
|
||
|
|
padding: 8px 24px;
|
||
|
|
border-radius: 28px;
|
||
|
|
font-size: 15px;
|
||
|
|
transition: 0.3s ease;
|
||
|
|
}
|
||
|
|
|
||
|
|
.post-card__button:hover {
|
||
|
|
background-color: var(--primary);
|
||
|
|
}
|
||
|
|
|
||
|
|
/* Pagination */
|
||
|
|
.blog-pagination {
|
||
|
|
margin-top: 40px;
|
||
|
|
display: flex;
|
||
|
|
justify-content: center;
|
||
|
|
}
|
||
|
|
|
||
|
|
.blog-pagination .page-numbers {
|
||
|
|
display: inline-flex;
|
||
|
|
padding: 8px 14px;
|
||
|
|
margin: 0 5px;
|
||
|
|
background: var(--white);
|
||
|
|
border-radius: 10px;
|
||
|
|
border: 1px solid var(--button-color);
|
||
|
|
color: var(--button-color);
|
||
|
|
font-weight: 500;
|
||
|
|
}
|
||
|
|
|
||
|
|
.blog-pagination .current {
|
||
|
|
background: var(--yellow);
|
||
|
|
color: var(--white);
|
||
|
|
border-color: var(--yellow);
|
||
|
|
}
|