Author page style fixes
This commit is contained in:
parent
40b1b06875
commit
2e020c749a
|
@ -225,7 +225,7 @@
|
||||||
margin-bottom: 1.2rem;
|
margin-bottom: 1.2rem;
|
||||||
|
|
||||||
@include media-breakpoint-up(md) {
|
@include media-breakpoint-up(md) {
|
||||||
align-items: start;
|
align-items: center;
|
||||||
display: flex;
|
display: flex;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
.author {
|
.author {
|
||||||
align-items: baseline;
|
align-items: center;
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-flow: row nowrap;
|
flex-flow: row nowrap;
|
||||||
margin-bottom: 1.6rem;
|
margin-bottom: 1.6rem;
|
||||||
|
@ -226,8 +226,10 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
.button {
|
.button {
|
||||||
|
padding-left: 2rem;
|
||||||
|
padding-right: 2rem;
|
||||||
margin-right: 0.5em;
|
margin-right: 0.5em;
|
||||||
width: 9em;
|
//width: 9em;
|
||||||
|
|
||||||
&:first-of-type {
|
&:first-of-type {
|
||||||
margin-left: 0;
|
margin-left: 0;
|
||||||
|
@ -256,7 +258,7 @@
|
||||||
.authorSubscribeSocial {
|
.authorSubscribeSocial {
|
||||||
align-items: center;
|
align-items: center;
|
||||||
display: flex;
|
display: flex;
|
||||||
margin: 0 0.8rem 2rem;
|
margin: 0 0.8rem 2rem 0;
|
||||||
|
|
||||||
@include media-breakpoint-down(sm) {
|
@include media-breakpoint-down(sm) {
|
||||||
flex: 1 100%;
|
flex: 1 100%;
|
||||||
|
@ -318,25 +320,32 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.buttonWriteAuthorPage {
|
||||||
|
background: #f6f6f6 !important;
|
||||||
|
border-radius: 0.8rem;
|
||||||
|
}
|
||||||
|
|
||||||
.authorPage {
|
.authorPage {
|
||||||
|
align-items: center;
|
||||||
|
|
||||||
@include media-breakpoint-down(md) {
|
@include media-breakpoint-down(md) {
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
}
|
}
|
||||||
|
|
||||||
.authorName {
|
.authorName {
|
||||||
@include font-size(3.4rem);
|
@include font-size(4rem);
|
||||||
|
font-weight: 700;
|
||||||
font-weight: 500;
|
|
||||||
margin-bottom: 0.2em;
|
margin-bottom: 0.2em;
|
||||||
}
|
}
|
||||||
|
|
||||||
.authorAbout {
|
.authorAbout {
|
||||||
@include font-size(2rem);
|
|
||||||
color: #696969;
|
color: #696969;
|
||||||
|
@include font-size(2rem);
|
||||||
|
font-weight: 500;
|
||||||
}
|
}
|
||||||
|
|
||||||
.authorSubscribe {
|
.authorSubscribe {
|
||||||
margin: 2rem -0.8rem 0;
|
margin: 2rem -0.8rem 0 0;
|
||||||
padding-left: 0;
|
padding-left: 0;
|
||||||
|
|
||||||
@include media-breakpoint-down(md) {
|
@include media-breakpoint-down(md) {
|
||||||
|
@ -391,7 +400,7 @@
|
||||||
|
|
||||||
.button {
|
.button {
|
||||||
min-height: 4rem;
|
min-height: 4rem;
|
||||||
margin: 0 0.8rem;
|
margin: 0 0.8rem 0 0;
|
||||||
vertical-align: middle;
|
vertical-align: middle;
|
||||||
|
|
||||||
@include media-breakpoint-down(sm) {
|
@include media-breakpoint-down(sm) {
|
||||||
|
@ -431,12 +440,12 @@
|
||||||
.authorComments {
|
.authorComments {
|
||||||
.authorName {
|
.authorName {
|
||||||
@include font-size(1.2rem);
|
@include font-size(1.2rem);
|
||||||
|
line-height: 1.2;
|
||||||
margin-bottom: 0;
|
margin-bottom: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
.circlewrap {
|
.circlewrap {
|
||||||
margin-top: -0.6em;
|
margin-top: -0.4em;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -496,11 +505,21 @@
|
||||||
&:not(:first-child) {
|
&:not(:first-child) {
|
||||||
margin-left: -1.8rem;
|
margin-left: -1.8rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
> * {
|
||||||
|
line-height: 1.8rem;
|
||||||
|
min-width: auto;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.subscribersCounter {
|
.subscribersCounter {
|
||||||
|
font-weight: 500;
|
||||||
margin-left: -0.6rem;
|
margin-left: -0.6rem;
|
||||||
|
|
||||||
|
&:hover {
|
||||||
|
color: #696969;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.listWrapper {
|
.listWrapper {
|
||||||
|
|
|
@ -354,7 +354,7 @@ export const AuthorCard = (props: Props) => {
|
||||||
<button
|
<button
|
||||||
class={styles.button}
|
class={styles.button}
|
||||||
classList={{
|
classList={{
|
||||||
[styles.buttonSubscribe]: !props.isAuthorsList,
|
[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
|
||||||
|
|
|
@ -26,6 +26,7 @@
|
||||||
color: #000;
|
color: #000;
|
||||||
font-size: small;
|
font-size: small;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
|
text-transform: uppercase;
|
||||||
line-height: 32px;
|
line-height: 32px;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
height: 100%;
|
height: 100%;
|
||||||
|
|
|
@ -8,7 +8,7 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
.groupControls {
|
.groupControls {
|
||||||
margin-bottom: 2em !important;
|
margin-bottom: 6rem !important;
|
||||||
margin-top: 0 !important;
|
margin-top: 0 !important;
|
||||||
|
|
||||||
@include media-breakpoint-down(md) {
|
@include media-breakpoint-down(md) {
|
||||||
|
@ -19,6 +19,12 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.authorHeader {
|
||||||
|
border-bottom: 2px solid #000;
|
||||||
|
margin-bottom: 2.4rem;
|
||||||
|
padding-bottom: 4rem;
|
||||||
|
}
|
||||||
|
|
||||||
.ratingContainer {
|
.ratingContainer {
|
||||||
@include font-size(1.5rem);
|
@include font-size(1.5rem);
|
||||||
display: inline-flex;
|
display: inline-flex;
|
||||||
|
|
|
@ -126,12 +126,14 @@ export const AuthorView = (props: Props) => {
|
||||||
<div class={styles.authorPage}>
|
<div class={styles.authorPage}>
|
||||||
<div class="wide-container">
|
<div class="wide-container">
|
||||||
<Show when={author()}>
|
<Show when={author()}>
|
||||||
|
<div class={styles.authorHeader}>
|
||||||
<AuthorCard
|
<AuthorCard
|
||||||
author={author()}
|
author={author()}
|
||||||
isAuthorPage={true}
|
isAuthorPage={true}
|
||||||
followers={followers()}
|
followers={followers()}
|
||||||
following={following()}
|
following={following()}
|
||||||
/>
|
/>
|
||||||
|
</div>
|
||||||
</Show>
|
</Show>
|
||||||
<div class={clsx(styles.groupControls, 'row')}>
|
<div class={clsx(styles.groupControls, 'row')}>
|
||||||
<div class="col-md-16">
|
<div class="col-md-16">
|
||||||
|
@ -204,33 +206,33 @@ export const AuthorView = (props: Props) => {
|
||||||
|
|
||||||
<Match when={page().route === 'author'}>
|
<Match when={page().route === 'author'}>
|
||||||
<Show when={sortedArticles().length === 1}>
|
<Show when={sortedArticles().length === 1}>
|
||||||
<Row1 article={sortedArticles()[0]} noAuthorLink={true} />
|
<Row1 article={sortedArticles()[0]} noAuthorLink={true} nodate={true} />
|
||||||
</Show>
|
</Show>
|
||||||
|
|
||||||
<Show when={sortedArticles().length === 2}>
|
<Show when={sortedArticles().length === 2}>
|
||||||
<Row2 articles={sortedArticles()} isEqual={true} noAuthorLink={true} />
|
<Row2 articles={sortedArticles()} isEqual={true} noAuthorLink={true} nodate={true} />
|
||||||
</Show>
|
</Show>
|
||||||
|
|
||||||
<Show when={sortedArticles().length === 3}>
|
<Show when={sortedArticles().length === 3}>
|
||||||
<Row3 articles={sortedArticles()} noAuthorLink={true} />
|
<Row3 articles={sortedArticles()} noAuthorLink={true} nodate={true} />
|
||||||
</Show>
|
</Show>
|
||||||
|
|
||||||
<Show when={sortedArticles().length > 3}>
|
<Show when={sortedArticles().length > 3}>
|
||||||
<Row1 article={sortedArticles()[0]} noAuthorLink={true} />
|
<Row1 article={sortedArticles()[0]} noAuthorLink={true} nodate={true} />
|
||||||
<Row2 articles={sortedArticles().slice(1, 3)} isEqual={true} noAuthorLink={true} />
|
<Row2 articles={sortedArticles().slice(1, 3)} isEqual={true} noAuthorLink={true} />
|
||||||
<Row1 article={sortedArticles()[3]} noAuthorLink={true} />
|
<Row1 article={sortedArticles()[3]} noAuthorLink={true} nodate={true} />
|
||||||
<Row2 articles={sortedArticles().slice(4, 6)} isEqual={true} noAuthorLink={true} />
|
<Row2 articles={sortedArticles().slice(4, 6)} isEqual={true} noAuthorLink={true} />
|
||||||
<Row1 article={sortedArticles()[6]} noAuthorLink={true} />
|
<Row1 article={sortedArticles()[6]} noAuthorLink={true} nodate={true} />
|
||||||
<Row2 articles={sortedArticles().slice(7, 9)} isEqual={true} noAuthorLink={true} />
|
<Row2 articles={sortedArticles().slice(7, 9)} isEqual={true} noAuthorLink={true} />
|
||||||
|
|
||||||
<For each={shouts()}>
|
<For each={shouts()}>
|
||||||
{(shout) => (
|
{(shout) => (
|
||||||
<>
|
<>
|
||||||
<Row1 article={shout[0]} noAuthorLink={true} />
|
<Row1 article={shout[0]} noAuthorLink={true} nodate={true} />
|
||||||
<Row2 articles={shout.slice(1, 3)} isEqual={true} noAuthorLink={true} />
|
<Row2 articles={shout.slice(1, 3)} isEqual={true} noAuthorLink={true} />
|
||||||
<Row1 article={shout[3]} noAuthorLink={true} />
|
<Row1 article={shout[3]} noAuthorLink={true} nodate={true} />
|
||||||
<Row2 articles={shout.slice(4, 6)} isEqual={true} noAuthorLink={true} />
|
<Row2 articles={shout.slice(4, 6)} isEqual={true} noAuthorLink={true} />
|
||||||
<Row1 article={shout[6]} noAuthorLink={true} />
|
<Row1 article={shout[6]} noAuthorLink={true} nodate={true} />
|
||||||
<Row2 articles={shout.slice(7, 9)} isEqual={true} noAuthorLink={true} />
|
<Row2 articles={shout.slice(7, 9)} isEqual={true} noAuthorLink={true} />
|
||||||
</>
|
</>
|
||||||
)}
|
)}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user