Skip to content

Commit

Permalink
Расширяет область клика у карточки (#1264)
Browse files Browse the repository at this point in the history
* Расширяет область клика у карточки

* Удаляет комментарий

* Удаляет комментарий
  • Loading branch information
TatianaFokina authored May 14, 2024
1 parent 58e9d9a commit c1a517f
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 10 deletions.
20 changes: 13 additions & 7 deletions src/styles/blocks/featured-article.css
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,11 @@
opacity: 0.84;
}

.featured-article:focus-within {
outline: 2px solid hsl(var(--color-base-text));
outline-offset: 1px;
}

.featured-article__image-wrapper {
margin-bottom: auto;
position: relative;
Expand Down Expand Up @@ -69,18 +74,19 @@
--stroke-width: 2px;
}

.featured-article__link::after {
content: "";
position: absolute;
inset: 0;
}

.featured-article__link:hover {
--stroke-opacity: 0;
--stroke-width: 0;
}

.featured-article__link::after {
content: "";
position: absolute;
top: 0;
bottom: 0;
left: 0;
right: 0;
.featured-article__link:focus-visible {
outline: 0;
}

.offline .featured-article__title .link::after {
Expand Down
6 changes: 3 additions & 3 deletions src/styles/blocks/link.css
Original file line number Diff line number Diff line change
Expand Up @@ -50,14 +50,14 @@
opacity: var(--cached-opacity);
}

.online .link:not(.nav-list__link, .article-indexes-list__link)::after {
.online .link:not(.nav-list__link, .article-indexes-list__link, .featured-article__link)::after {
display: none;
}

.online .link--cached:not(.nav-list__link, .article-indexes-list__link)::after {
.online .link--cached:not(.nav-list__link, .article-indexes-list__link, .featured-article__link)::after {
display: none;
}

.online .link--non-cached:not(.nav-list__link, .article-indexes-list__link)::after {
.online .link--non-cached:not(.nav-list__link, .article-indexes-list__link, .featured-article__link)::after {
display: none;
}

0 comments on commit c1a517f

Please sign in to comment.