Author page style fixes
This commit is contained in:
parent
a9798c3726
commit
66d6eb4595
|
@ -90,9 +90,9 @@
|
||||||
|
|
||||||
.authorName {
|
.authorName {
|
||||||
border: none !important;
|
border: none !important;
|
||||||
|
display: block;
|
||||||
font-size: 1.6rem;
|
font-size: 1.6rem;
|
||||||
font-weight: 500;
|
font-weight: 500;
|
||||||
line-height: 2;
|
|
||||||
margin-bottom: 0.8rem;
|
margin-bottom: 0.8rem;
|
||||||
|
|
||||||
.listWrapper &:before {
|
.listWrapper &:before {
|
||||||
|
@ -678,24 +678,3 @@
|
||||||
.listWrapper {
|
.listWrapper {
|
||||||
max-height: 70vh;
|
max-height: 70vh;
|
||||||
}
|
}
|
||||||
|
|
||||||
.switcherCounter {
|
|
||||||
align-items: center;
|
|
||||||
background: #f7f7f8;
|
|
||||||
border-radius: 0.8rem;
|
|
||||||
display: inline-flex;
|
|
||||||
font-size: 1.2rem;
|
|
||||||
font-weight: bold;
|
|
||||||
height: 2.2rem;
|
|
||||||
justify-content: center;
|
|
||||||
line-height: 2.2rem;
|
|
||||||
margin-left: 0.4rem;
|
|
||||||
min-width: 2.2rem;
|
|
||||||
padding: 0 0.6rem;
|
|
||||||
text-align: center;
|
|
||||||
}
|
|
||||||
|
|
||||||
:global(.view-switcher__item--selected) .switcherCounter {
|
|
||||||
background: #000;
|
|
||||||
color: #fff;
|
|
||||||
}
|
|
||||||
|
|
|
@ -401,13 +401,13 @@ export const AuthorCard = (props: Props) => {
|
||||||
<button type="button" onClick={() => setSubscriptionFilter('all')}>
|
<button type="button" onClick={() => setSubscriptionFilter('all')}>
|
||||||
{t('All')}
|
{t('All')}
|
||||||
</button>
|
</button>
|
||||||
<span class={styles.switcherCounter}>{props.following.length}</span>
|
<span class="view-switcher__counter">{props.following.length}</span>
|
||||||
</li>
|
</li>
|
||||||
<li class={clsx({ 'view-switcher__item--selected': subscriptionFilter() === 'users' })}>
|
<li class={clsx({ 'view-switcher__item--selected': subscriptionFilter() === 'users' })}>
|
||||||
<button type="button" onClick={() => setSubscriptionFilter('users')}>
|
<button type="button" onClick={() => setSubscriptionFilter('users')}>
|
||||||
{t('Users')}
|
{t('Users')}
|
||||||
</button>
|
</button>
|
||||||
<span class={styles.switcherCounter}>
|
<span class="view-switcher__counter">
|
||||||
{props.following.filter((s) => 'name' in s).length}
|
{props.following.filter((s) => 'name' in s).length}
|
||||||
</span>
|
</span>
|
||||||
</li>
|
</li>
|
||||||
|
@ -415,7 +415,7 @@ export const AuthorCard = (props: Props) => {
|
||||||
<button type="button" onClick={() => setSubscriptionFilter('topics')}>
|
<button type="button" onClick={() => setSubscriptionFilter('topics')}>
|
||||||
{t('Topics')}
|
{t('Topics')}
|
||||||
</button>
|
</button>
|
||||||
<span class={styles.switcherCounter}>
|
<span class="view-switcher__counter">
|
||||||
{props.following.filter((s) => 'title' in s).length}
|
{props.following.filter((s) => 'title' in s).length}
|
||||||
</span>
|
</span>
|
||||||
</li>
|
</li>
|
||||||
|
|
|
@ -17,6 +17,7 @@
|
||||||
border-bottom: 2px solid #000;
|
border-bottom: 2px solid #000;
|
||||||
margin-bottom: 2.4rem;
|
margin-bottom: 2.4rem;
|
||||||
padding-bottom: 4rem;
|
padding-bottom: 4rem;
|
||||||
|
padding-top: 2.6rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
.ratingContainer {
|
.ratingContainer {
|
||||||
|
|
|
@ -138,14 +138,14 @@ export const AuthorView = (props: Props) => {
|
||||||
<div class="col-md-16">
|
<div class="col-md-16">
|
||||||
<ul class="view-switcher">
|
<ul class="view-switcher">
|
||||||
<li classList={{ 'view-switcher__item--selected': page().route === 'author' }}>
|
<li classList={{ 'view-switcher__item--selected': page().route === 'author' }}>
|
||||||
<a href={getPagePath(router, 'author', { slug: props.authorSlug })}>
|
<a href={getPagePath(router, 'author', { slug: props.authorSlug })}>{t('Publications')}</a>
|
||||||
{t('Publications')} ({author().stat.shouts})
|
<span class="view-switcher__counter">{author().stat.shouts}</span>
|
||||||
</a>
|
|
||||||
</li>
|
</li>
|
||||||
<li classList={{ 'view-switcher__item--selected': page().route === 'authorComments' }}>
|
<li classList={{ 'view-switcher__item--selected': page().route === 'authorComments' }}>
|
||||||
<a href={getPagePath(router, 'authorComments', { slug: props.authorSlug })}>
|
<a href={getPagePath(router, 'authorComments', { slug: props.authorSlug })}>
|
||||||
{t('Comments')} ({author().stat.commented})
|
{t('Comments')}
|
||||||
</a>
|
</a>
|
||||||
|
<span class="view-switcher__counter">{author().stat.commented}</span>
|
||||||
</li>
|
</li>
|
||||||
<li classList={{ 'view-switcher__item--selected': page().route === 'authorAbout' }}>
|
<li classList={{ 'view-switcher__item--selected': page().route === 'authorAbout' }}>
|
||||||
<a
|
<a
|
||||||
|
|
|
@ -651,6 +651,27 @@ figure {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.view-switcher__counter {
|
||||||
|
align-items: center;
|
||||||
|
background: #f7f7f8;
|
||||||
|
border-radius: 0.8rem;
|
||||||
|
display: inline-flex;
|
||||||
|
font-size: 1.2rem;
|
||||||
|
font-weight: bold;
|
||||||
|
height: 2.2rem;
|
||||||
|
justify-content: center;
|
||||||
|
line-height: 2.2rem;
|
||||||
|
margin-left: 0.4rem;
|
||||||
|
min-width: 2.2rem;
|
||||||
|
padding: 0 0.6rem;
|
||||||
|
text-align: center;
|
||||||
|
|
||||||
|
.view-switcher__item--selected & {
|
||||||
|
background: #000;
|
||||||
|
color: #fff;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
.view-switcher__search {
|
.view-switcher__search {
|
||||||
flex: 1 100%;
|
flex: 1 100%;
|
||||||
text-align: right;
|
text-align: right;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user