.article__body {
padding: 15px 20px 30px;
background: var(--light-color);
}
.article-date {
font-size: 14px;
color: var(--gray-color);
}
.article__title a {
font-size: 20px;
font-weight: 900;
color: var(--dark-color);
-webkit-text-decoration: none;
text-decoration: none;
-webkit-transition: color 0.3s ease;
transition: color 0.3s ease;
}
.article__image img {
width: 100%;
}
.article__excerpt {
margin-top: 10px;
}
.article__excerpt p {
font-size: 17px;
}
.fav-category {
margin-bottom: 60px;
}
.fav-category__head {
display: -webkit-box;
display: -ms-flexbox;
display: flex;
-webkit-box-align: center;
-ms-flex-align: center;
align-items: center;
-webkit-box-pack: justify;
-ms-flex-pack: justify;
justify-content: space-between;
margin-bottom: 30px;
}
.fav-category__title {
font-size: 40px;
font-weight: 900;
color: var(--primary-color);
}
.fav-category__show-all {
color: var(--accent-color);
display: -webkit-box;
display: -ms-flexbox;
display: flex;
-webkit-box-align: center;
-ms-flex-align: center;
align-items: center;
gap: 10px;
font-size: 18px;
font-weight: 700;
-webkit-text-decoration: none;
text-decoration: none;
}
.fav-category__show-all--icon svg {
-webkit-transition: -webkit-transform 0.3s ease;
transition: -webkit-transform 0.3s ease;
transition: transform 0.3s ease;
transition: transform 0.3s ease, -webkit-transform 0.3s ease;
}
.fav-category__show-all--icon svg path {
fill: var(--accent-color);
}
.fav-category__list {
display: grid;
grid-template-columns: 1fr 1fr 1fr;
grid-gap: 20px;
gap: 20px;
}
@media (max-width: 767px) {
.fav-category__list {
grid-template-columns: 1fr;
}
}
@media (max-width: 560px) {
.fav-category__head {
-webkit-box-orient: vertical;
-webkit-box-direction: normal;
-ms-flex-direction: column;
flex-direction: column;
-webkit-box-align: start;
-ms-flex-align: start;
align-items: flex-start;
gap: 10px;
}
}
@media (hover: hover) {
.article__title a:hover {
color: var(--primary-color);
}
.fav-category__show-all:hover {
-webkit-text-decoration: underline;
text-decoration: underline;
}
.fav-category__show-all:hover .fav-category__show-all--icon svg {
-webkit-transform: translateX(5px);
transform: translateX(5px);
}
}
@media (hover: none) {
.article__title a:active {
color: var(--primary-color);
}
.fav-category__show-all:active {
-webkit-text-decoration: underline;
text-decoration: underline;
}
.fav-category__show-all:active .fav-category__show-all--icon svg {
-webkit-transform: translateX(5px);
transform: translateX(5px);
}
}