Minor style fixes

This commit is contained in:
kvakazyambra 2023-10-12 00:56:59 +03:00
parent af49b53a9b
commit d2c6f94c33
9 changed files with 24 additions and 50 deletions

View File

@ -5,19 +5,6 @@
.albumInfo { .albumInfo {
margin-right: 224px; margin-right: 224px;
.topic {
.link {
@include font-size(1.6rem);
color: var(--blue-link);
border: none;
&:hover {
text-decoration: underline;
}
}
}
& > h1 { & > h1 {
margin: 16px 0 0; margin: 16px 0 0;
} }

View File

@ -7,6 +7,7 @@ import { Icon } from '../../_shared/Icon'
import { Topic } from '../../../graphql/types.gen' import { Topic } from '../../../graphql/types.gen'
import { getPagePath } from '@nanostores/router' import { getPagePath } from '@nanostores/router'
import { router } from '../../../stores/router' import { router } from '../../../stores/router'
import { CardTopic } from '../../Feed/CardTopic'
type Props = { type Props = {
title: string title: string
@ -29,11 +30,7 @@ export const AudioHeader = (props: Props) => {
</div> </div>
<div class={styles.albumInfo}> <div class={styles.albumInfo}>
<Show when={props.topic}> <Show when={props.topic}>
<div class={styles.topic}> <CardTopic title={props.topic.title} slug={props.topic.slug} />
<a href={getPagePath(router, 'topic', { slug: props.topic.slug })} class={styles.link}>
{props.topic.title}
</a>
</div>
</Show> </Show>
<h1>{props.title}</h1> <h1>{props.title}</h1>
<Show when={props.artistData}> <Show when={props.artistData}>

View File

@ -90,12 +90,14 @@
.authorName { .authorName {
border: none !important; border: none !important;
display: block;
font-size: 1.6rem; font-size: 1.6rem;
font-weight: 500; font-weight: 500;
margin-bottom: 0.8rem; margin-bottom: 0.8rem;
.listWrapper &:before { .listWrapper & {
display: block;
&:before {
content: ''; content: '';
height: 100%; height: 100%;
left: 0; left: 0;
@ -104,6 +106,7 @@
width: 100%; width: 100%;
z-index: 2; z-index: 2;
} }
}
} }
.authorAbout { .authorAbout {
@ -470,21 +473,6 @@
} }
} }
.buttonWriteAuthorPage {
background: #f6f6f6 !important;
border-radius: 0.8rem;
&:hover {
background: #e9e9ee !important;
border-color: #e9e9ee;
}
&:active {
background: #ccc !important;
border-color: #ccc;
}
}
.authorPage { .authorPage {
align-items: center; align-items: center;

View File

@ -353,9 +353,8 @@ export const AuthorCard = (props: Props) => {
<Show when={!props.hideWriteButton}> <Show when={!props.hideWriteButton}>
<button <button
class={styles.button} class={clsx(styles.button, styles.buttonSubscribe)}
classList={{ classList={{
[styles.buttonWriteAuthorPage]: !props.isAuthorsList,
'button--subscribe': !props.isAuthorsList, 'button--subscribe': !props.isAuthorsList,
'button--subscribe-topic': props.isAuthorsList, 'button--subscribe-topic': props.isAuthorsList,
[styles.buttonWrite]: props.liteButtons && props.isAuthorsList [styles.buttonWrite]: props.liteButtons && props.isAuthorsList

View File

@ -250,7 +250,7 @@
} }
.mainNavigationItemActive { .mainNavigationItemActive {
background: var(--link-hover-background); background: var(--link-hover-background) !important;
color: var(--link-hover-color) !important; color: var(--link-hover-color) !important;
} }

View File

@ -60,7 +60,7 @@
margin-bottom: 1.2rem; margin-bottom: 1.2rem;
margin-top: 0.5rem !important; margin-top: 0.5rem !important;
a { a:link {
border: none; border: none;
} }
} }

View File

@ -1,4 +1,4 @@
.withPadding { main.withPadding {
padding-top: 58px; padding-top: 58px;
} }

View File

@ -73,7 +73,8 @@
padding-top: 1em; padding-top: 1em;
} }
a { a:link,
:global(.link) {
border: none; border: none;
white-space: nowrap; white-space: nowrap;
@ -100,7 +101,9 @@
.shareControl { .shareControl {
text-align: left; text-align: left;
transition: color 0.3s, background-color 0.3s; transition:
color 0.3s,
background-color 0.3s;
white-space: nowrap; white-space: nowrap;
&:hover { &:hover {

View File

@ -645,7 +645,7 @@ figure {
cursor: default; cursor: default;
&:hover { &:hover {
color: #fff; background: #fff;
} }
} }
} }