Fixed author subscribe buttons style

This commit is contained in:
kvakazyambra 2023-11-11 17:27:29 +03:00
parent 52e3d7a5ea
commit 3237c3c44a
3 changed files with 12 additions and 9 deletions

View File

@ -11,9 +11,6 @@
margin-bottom: 0;
}
}
@include media-breakpoint-down(sm) {
flex-direction: column;
}
@include media-breakpoint-up(sm) {
margin-bottom: 2rem;
@ -96,7 +93,7 @@
&.iconed {
padding: 6px !important;
min-width: 32px;
min-width: 4rem;
width: unset;
&:hover img {

View File

@ -59,14 +59,14 @@ export const AuthorBadge = (props: Props) => {
}
const subscribeValue = createMemo(() => {
if (props.iconButtons) {
return <Icon name="author-subscribe" />
return <Icon name="author-subscribe" class={stylesButton.icon} />
}
return isSubscribing() ? t('subscribing...') : t('Subscribe')
})
const unsubscribeValue = () => {
if (props.iconButtons) {
return <Icon name="author-unsubscribe" />
return <Icon name="author-unsubscribe" class={stylesButton.icon} />
}
return (

View File

@ -144,8 +144,6 @@
width: 10em;
.icon {
margin-right: 0.5em;
img {
filter: invert(1);
}
@ -156,7 +154,7 @@
color: #000;
.icon img {
filter: invert(0);
filter: invert(0) !important;
}
.buttonSubscribeLabel {
@ -181,9 +179,17 @@
background: #fff;
color: #000;
.icon img {
filter: invert(0);
}
&:hover {
background: #000;
color: #fff;
.icon img {
filter: invert(1) !important;
}
}
}
}