Show website link on hover in social links block
This commit is contained in:
parent
cbdd6187d4
commit
0f54752111
|
@ -144,6 +144,15 @@
|
||||||
&::before {
|
&::before {
|
||||||
filter: invert(1);
|
filter: invert(1);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.authorSubscribeSocialLabel {
|
||||||
|
color: #000;
|
||||||
|
display: block;
|
||||||
|
@include font-size(1.6rem);
|
||||||
|
left: 100%;
|
||||||
|
padding-left: 0.4rem;
|
||||||
|
position: absolute;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -151,18 +160,36 @@
|
||||||
&::before {
|
&::before {
|
||||||
background-image: url(/icons/user-link-facebook.svg);
|
background-image: url(/icons/user-link-facebook.svg);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
&:hover {
|
||||||
|
.authorSubscribeSocialLabel {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
a[href*='twitter.com/'] {
|
a[href*='twitter.com/'] {
|
||||||
&::before {
|
&::before {
|
||||||
background-image: url(/icons/user-link-twitter.svg);
|
background-image: url(/icons/user-link-twitter.svg);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
&:hover {
|
||||||
|
.authorSubscribeSocialLabel {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
a[href*='telegram.com/'] {
|
a[href*='telegram.com/'] {
|
||||||
&::before {
|
&::before {
|
||||||
background-image: url(/icons/user-link-telegram.svg);
|
background-image: url(/icons/user-link-telegram.svg);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
&:hover {
|
||||||
|
.authorSubscribeSocialLabel {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
a[href*='vk.cc/'],
|
a[href*='vk.cc/'],
|
||||||
|
@ -170,77 +197,143 @@
|
||||||
&::before {
|
&::before {
|
||||||
background-image: url(/icons/user-link-vk.svg);
|
background-image: url(/icons/user-link-vk.svg);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
&:hover {
|
||||||
|
.authorSubscribeSocialLabel {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
a[href*='tumblr.com/'] {
|
a[href*='tumblr.com/'] {
|
||||||
&::before {
|
&::before {
|
||||||
background-image: url(/icons/user-link-tumblr.svg);
|
background-image: url(/icons/user-link-tumblr.svg);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
&:hover {
|
||||||
|
.authorSubscribeSocialLabel {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
a[href*='instagram.com/'] {
|
a[href*='instagram.com/'] {
|
||||||
&::before {
|
&::before {
|
||||||
background-image: url(/icons/user-link-instagram.svg);
|
background-image: url(/icons/user-link-instagram.svg);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
&:hover {
|
||||||
|
.authorSubscribeSocialLabel {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
a[href*='behance.net/'] {
|
a[href*='behance.net/'] {
|
||||||
&::before {
|
&::before {
|
||||||
background-image: url(/icons/user-link-behance.svg);
|
background-image: url(/icons/user-link-behance.svg);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
&:hover {
|
||||||
|
.authorSubscribeSocialLabel {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
a[href*='dribbble.com/'] {
|
a[href*='dribbble.com/'] {
|
||||||
&::before {
|
&::before {
|
||||||
background-image: url(/icons/user-link-dribbble.svg);
|
background-image: url(/icons/user-link-dribbble.svg);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
&:hover {
|
||||||
|
.authorSubscribeSocialLabel {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
a[href*='github.com/'] {
|
a[href*='github.com/'] {
|
||||||
&::before {
|
&::before {
|
||||||
background-image: url(/icons/user-link-github.svg);
|
background-image: url(/icons/user-link-github.svg);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
&:hover {
|
||||||
|
.authorSubscribeSocialLabel {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
a[href*='linkedin.com/'] {
|
a[href*='linkedin.com/'] {
|
||||||
&::before {
|
&::before {
|
||||||
background-image: url(/icons/user-link-linkedin.svg);
|
background-image: url(/icons/user-link-linkedin.svg);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
&:hover {
|
||||||
|
.authorSubscribeSocialLabel {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
a[href*='medium.com/'] {
|
a[href*='medium.com/'] {
|
||||||
&::before {
|
&::before {
|
||||||
background-image: url(/icons/user-link-medium.svg);
|
background-image: url(/icons/user-link-medium.svg);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
&:hover {
|
||||||
|
.authorSubscribeSocialLabel {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
a[href*='ok.ru/'] {
|
a[href*='ok.ru/'] {
|
||||||
&::before {
|
&::before {
|
||||||
background-image: url(/icons/user-link-ok.svg);
|
background-image: url(/icons/user-link-ok.svg);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
&:hover {
|
||||||
|
.authorSubscribeSocialLabel {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
a[href*='pinterest.com/'] {
|
a[href*='pinterest.com/'] {
|
||||||
&::before {
|
&::before {
|
||||||
background-image: url(/icons/user-link-pinterest.svg);
|
background-image: url(/icons/user-link-pinterest.svg);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
&:hover {
|
||||||
|
.authorSubscribeSocialLabel {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
a[href*='reddit.com/'] {
|
a[href*='reddit.com/'] {
|
||||||
&::before {
|
&::before {
|
||||||
background-image: url(/icons/user-link-reddit.svg);
|
background-image: url(/icons/user-link-reddit.svg);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
&:hover {
|
||||||
|
.authorSubscribeSocialLabel {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
a[href*='tiktok.com/'] {
|
a[href*='tiktok.com/'] {
|
||||||
&::before {
|
&::before {
|
||||||
background-image: url(/icons/user-link-tiktok.svg);
|
background-image: url(/icons/user-link-tiktok.svg);
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
a[href*='vk.com/'] {
|
&:hover {
|
||||||
&::before {
|
.authorSubscribeSocialLabel {
|
||||||
background-image: url(/icons/user-link-vk.svg);
|
display: none;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -249,12 +342,24 @@
|
||||||
&::before {
|
&::before {
|
||||||
background-image: url(/icons/user-link-youtube.svg);
|
background-image: url(/icons/user-link-youtube.svg);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
&:hover {
|
||||||
|
.authorSubscribeSocialLabel {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
a[href*='dzen.ru/'] {
|
a[href*='dzen.ru/'] {
|
||||||
&::before {
|
&::before {
|
||||||
background-image: url(/icons/user-link-dzen.svg);
|
background-image: url(/icons/user-link-dzen.svg);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
&:hover {
|
||||||
|
.authorSubscribeSocialLabel {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.button {
|
.button {
|
||||||
|
@ -286,6 +391,10 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.authorSubscribeSocialLabel {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
|
||||||
.authorSubscribeSocial {
|
.authorSubscribeSocial {
|
||||||
align-items: center;
|
align-items: center;
|
||||||
display: flex;
|
display: flex;
|
||||||
|
|
|
@ -276,7 +276,13 @@ export const AuthorCard = (props: Props) => {
|
||||||
<div class={styles.authorSubscribe}>
|
<div class={styles.authorSubscribe}>
|
||||||
<Show when={!props.noSocialButtons && !props.hideWriteButton && props.author.links}>
|
<Show when={!props.noSocialButtons && !props.hideWriteButton && props.author.links}>
|
||||||
<div class={styles.authorSubscribeSocial}>
|
<div class={styles.authorSubscribeSocial}>
|
||||||
<For each={props.author.links}>{(link) => <a href={link} />}</For>
|
<For each={props.author.links}>
|
||||||
|
{(link) => (
|
||||||
|
<a href={link}>
|
||||||
|
<span class={styles.authorSubscribeSocialLabel}>{link}</span>
|
||||||
|
</a>
|
||||||
|
)}
|
||||||
|
</For>
|
||||||
</div>
|
</div>
|
||||||
</Show>
|
</Show>
|
||||||
<Show when={!props.minimizeSubscribeButton}>
|
<Show when={!props.minimizeSubscribeButton}>
|
||||||
|
|
Loading…
Reference in New Issue
Block a user