mirror of
https://git.rdcenter.ru/RDCenter/skb-kit.git
synced 2026-12-05 06:29:45 +00:00
Ссылки футера, добавление эффекта на ссылки в заголовках
This commit is contained in:
1 parent
a358f4d329
commit
928c062091
3 files changed
+29
-17
No files matched your search
@@ -2,7 +2,7 @@ import { Link } from "react-router-dom";
|
||||
|
||||
function FooterLink({ link }) {
|
||||
return (
|
||||
<Link to={ link.to } className="link">
|
||||
<Link to={ link.to } className="link" target="_blank">
|
||||
<img src={ link.icon } alt='icon' className='icon'/>
|
||||
</Link>
|
||||
);
|
||||
|
||||
@@ -29,8 +29,6 @@ $primary-text-color: white;
|
||||
align-items: center;
|
||||
|
||||
.nav-link {
|
||||
position: relative;
|
||||
|
||||
font-size: 16px;
|
||||
font-weight: 500;
|
||||
line-height: 20px;
|
||||
@@ -43,21 +41,7 @@ $primary-text-color: white;
|
||||
}
|
||||
|
||||
.nav-link::after {
|
||||
position: absolute;
|
||||
content: '';
|
||||
left: 50%;
|
||||
transform: translateX(-50%);
|
||||
bottom: 0;
|
||||
display: block;
|
||||
width: 0;
|
||||
height: 1px;
|
||||
background: white;
|
||||
transition: 0.3s;
|
||||
}
|
||||
|
||||
.nav-link:hover:after,
|
||||
.nav-link.active:after {
|
||||
width: 100%;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -81,3 +81,31 @@ $btn-dark: #585858;
|
||||
color: white;
|
||||
background-color: $btn-dark;
|
||||
}
|
||||
|
||||
.block .heading a,
|
||||
.navbar .nav-link {
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.block .heading a::after,
|
||||
.navbar .nav-link::after {
|
||||
position: absolute;
|
||||
content: '';
|
||||
left: 50%;
|
||||
transform: translateX(-50%);
|
||||
bottom: 0;
|
||||
display: block;
|
||||
width: 0;
|
||||
height: 1px;
|
||||
transition: 0.3s;
|
||||
}
|
||||
|
||||
.block .heading a::after {
|
||||
background: black;
|
||||
}
|
||||
|
||||
.block .heading a:hover:after,
|
||||
.navbar .nav-link:hover:after,
|
||||
.navbar .nav-link.active:after {
|
||||
width: 100%;
|
||||
}
|
||||
Reference in new issue
Block a user