Skip to content

Commit

Permalink
Чинит оформление ссылок на главной (#1261)
Browse files Browse the repository at this point in the history
* Исключает селекторы поломавшихся ссылок из стилей оффлайн доки

* Убирает подчёркивания у соцсетевых ссылок в оффлайн доке
  • Loading branch information
skorobaeus authored May 1, 2024
1 parent 72a38cc commit 90d3b65
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 12 deletions.
5 changes: 5 additions & 0 deletions src/styles/blocks/footer.css
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,11 @@

.footer-list__link_social {
padding: 5px;
text-decoration: none;
}

.footer-list__link_social::after {
margin: 0;
}

.footer-list__link_social:hover {
Expand Down
24 changes: 12 additions & 12 deletions src/styles/blocks/link.css
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,6 @@
--stroke-opacity: 0.1;
}

.online .link::after {
display: none;
}

.offline .link::after {
content: ' ';
display: inline-block;
Expand All @@ -40,19 +36,11 @@
filter: invert(calc(var(--is-dark-theme-on) * 1));
}

.online .link--cached::after {
display: none;
}

.offline .link--cached::after {
background-image: url('/images/assets/cached-link.svg');
background-repeat: no-repeat;
}

.online .link--non-cached::after {
display: none;
}

.offline .link--non-cached {
color: hsla(var(--color-base-text) / var(--cached-opacity));
}
Expand All @@ -61,3 +49,15 @@
background-image: url('/images/assets/non-cached-link.svg');
opacity: var(--cached-opacity);
}

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

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

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

0 comments on commit 90d3b65

Please sign in to comment.