Skip to content

Commit

Permalink
Добавляет эффект hover для карточки статьи
Browse files Browse the repository at this point in the history
Fix: #501
  • Loading branch information
monochromer committed Feb 8, 2022
1 parent 479b7be commit 370740b
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions src/styles/blocks/featured-article.css
Expand Up @@ -7,7 +7,19 @@
flex-direction: column;
box-sizing: border-box;
min-height: 330px;
}

.featured-article::before {
content: '';
position: absolute;
z-index: -1;
inset: 0;
background-color: var(--accent-color, hsl(0 0% 90%));
transition: opacity 0.2s;
}

.featured-article:hover::before {
opacity: 0.84;
}

.featured-article__image-wrapper {
Expand Down

0 comments on commit 370740b

Please sign in to comment.