Fixed subscriptions style
This commit is contained in:
parent
e2c110140a
commit
a9798c3726
|
@ -1,15 +1,26 @@
|
||||||
.AuthorBadge {
|
.AuthorBadge {
|
||||||
|
align-items: flex-start;
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-flow: row nowrap;
|
flex-flow: row nowrap;
|
||||||
align-items: flex-start;
|
margin-bottom: 2rem;
|
||||||
margin-bottom: 1rem;
|
|
||||||
|
@include media-breakpoint-down(sm) {
|
||||||
|
flex-wrap: wrap;
|
||||||
|
margin-bottom: 3rem;
|
||||||
|
}
|
||||||
|
|
||||||
.info {
|
.info {
|
||||||
@include font-size(1.4rem);
|
@include font-size(1.4rem);
|
||||||
|
|
||||||
display: flex;
|
|
||||||
flex-direction: column;
|
|
||||||
border: none;
|
border: none;
|
||||||
|
display: flex;
|
||||||
|
flex: 0 calc(100% - 5.2rem);
|
||||||
|
flex-direction: column;
|
||||||
|
line-height: 1.3;
|
||||||
|
margin-bottom: 1rem;
|
||||||
|
|
||||||
|
@include media-breakpoint-up(sm) {
|
||||||
|
flex: 1 100%;
|
||||||
|
}
|
||||||
|
|
||||||
&:hover {
|
&:hover {
|
||||||
background: unset;
|
background: unset;
|
||||||
|
@ -26,7 +37,24 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
.actions {
|
.actions {
|
||||||
margin-left: auto;
|
flex: 0 20%;
|
||||||
padding-left: 1rem;
|
margin-left: 5.2rem;
|
||||||
|
|
||||||
|
@include media-breakpoint-up(sm) {
|
||||||
|
margin-left: 2rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
@include media-breakpoint-up(md) {
|
||||||
|
flex: 1;
|
||||||
|
margin-left: auto;
|
||||||
|
padding-left: 1rem;
|
||||||
|
text-align: right;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.subscribeButton {
|
||||||
|
border-radius: 0.8rem !important;
|
||||||
|
margin-right: 0 !important;
|
||||||
|
width: 9em;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -44,7 +44,13 @@ export const AuthorBadge = (props: Props) => {
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div class={clsx(styles.AuthorBadge)}>
|
<div class={clsx(styles.AuthorBadge)}>
|
||||||
<Userpic hasLink={true} isMedium={true} name={props.author.name} userpic={props.author.userpic} />
|
<Userpic
|
||||||
|
hasLink={true}
|
||||||
|
isMedium={true}
|
||||||
|
name={props.author.name}
|
||||||
|
userpic={props.author.userpic}
|
||||||
|
slug={props.author.slug}
|
||||||
|
/>
|
||||||
<a href={`/author/${props.author.slug}`} class={styles.info}>
|
<a href={`/author/${props.author.slug}`} class={styles.info}>
|
||||||
<div class={styles.name}>{props.author.name}</div>
|
<div class={styles.name}>{props.author.name}</div>
|
||||||
<Switch
|
<Switch
|
||||||
|
@ -84,14 +90,16 @@ export const AuthorBadge = (props: Props) => {
|
||||||
size="S"
|
size="S"
|
||||||
value={isSubscribing() ? t('...subscribing') : t('Subscribe')}
|
value={isSubscribing() ? t('...subscribing') : t('Subscribe')}
|
||||||
onClick={() => handleSubscribe(true)}
|
onClick={() => handleSubscribe(true)}
|
||||||
|
class={styles.subscribeButton}
|
||||||
/>
|
/>
|
||||||
}
|
}
|
||||||
>
|
>
|
||||||
<Button
|
<Button
|
||||||
variant="secondary"
|
variant="bordered"
|
||||||
size="S"
|
size="S"
|
||||||
value={t('You are subscribed')}
|
value={t('You are subscribed')}
|
||||||
onClick={() => handleSubscribe(false)}
|
onClick={() => handleSubscribe(false)}
|
||||||
|
class={styles.subscribeButton}
|
||||||
/>
|
/>
|
||||||
</Show>
|
</Show>
|
||||||
</Show>
|
</Show>
|
||||||
|
|
|
@ -52,6 +52,10 @@
|
||||||
|
|
||||||
@include media-breakpoint-between(md, lg) {
|
@include media-breakpoint-between(md, lg) {
|
||||||
flex-wrap: wrap;
|
flex-wrap: wrap;
|
||||||
|
|
||||||
|
.listWrapper & {
|
||||||
|
flex-wrap: nowrap;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
&.authorDetailsShrinked {
|
&.authorDetailsShrinked {
|
||||||
|
@ -69,6 +73,10 @@
|
||||||
|
|
||||||
@include media-breakpoint-between(md, lg) {
|
@include media-breakpoint-between(md, lg) {
|
||||||
flex: 1 0 100%;
|
flex: 1 0 100%;
|
||||||
|
|
||||||
|
.listWrapper & {
|
||||||
|
flex: 1;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@include media-breakpoint-up(md) {
|
@include media-breakpoint-up(md) {
|
||||||
|
@ -669,11 +677,6 @@
|
||||||
|
|
||||||
.listWrapper {
|
.listWrapper {
|
||||||
max-height: 70vh;
|
max-height: 70vh;
|
||||||
//padding-right: 2rem;
|
|
||||||
|
|
||||||
:global(.row) {
|
|
||||||
margin-right: 0;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.switcherCounter {
|
.switcherCounter {
|
||||||
|
|
|
@ -73,6 +73,7 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
.modalInner {
|
.modalInner {
|
||||||
|
height: 100%;
|
||||||
overflow: auto;
|
overflow: auto;
|
||||||
padding: 5.4rem 2.4rem 2.4rem;
|
padding: 5.4rem 2.4rem 2.4rem;
|
||||||
position: relative;
|
position: relative;
|
||||||
|
|
|
@ -78,7 +78,7 @@ export const TopicCard = (props: TopicProps) => {
|
||||||
<div
|
<div
|
||||||
classList={{
|
classList={{
|
||||||
[clsx('col-sm-18 col-md-24 col-lg-14 col-xl-15', styles.topicDetails)]: props.isNarrow,
|
[clsx('col-sm-18 col-md-24 col-lg-14 col-xl-15', styles.topicDetails)]: props.isNarrow,
|
||||||
[clsx('col-12 col-xs-17 col-md-18', styles.topicDetails)]: props.compact,
|
[clsx('col-24 col-sm-17 col-md-18', styles.topicDetails)]: props.compact,
|
||||||
[clsx('col-sm-17 col-md-18', styles.topicDetails)]:
|
[clsx('col-sm-17 col-md-18', styles.topicDetails)]:
|
||||||
!props.subscribeButtonBottom && !props.isNarrow && !props.compact
|
!props.subscribeButtonBottom && !props.isNarrow && !props.compact
|
||||||
}}
|
}}
|
||||||
|
@ -122,7 +122,7 @@ export const TopicCard = (props: TopicProps) => {
|
||||||
class={styles.controlContainer}
|
class={styles.controlContainer}
|
||||||
classList={{
|
classList={{
|
||||||
'col-sm-6 col-md-24 col-lg-10 col-xl-9': props.isNarrow,
|
'col-sm-6 col-md-24 col-lg-10 col-xl-9': props.isNarrow,
|
||||||
'col-12 col-xs-7 col-md-6': props.compact,
|
'col-24 col-sm-7 col-md-6': props.compact,
|
||||||
'col-sm-7 col-md-6': !props.subscribeButtonBottom && !props.isNarrow && !props.compact
|
'col-sm-7 col-md-6': !props.subscribeButtonBottom && !props.isNarrow && !props.compact
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
|
|
|
@ -2,8 +2,12 @@
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: row;
|
flex-direction: row;
|
||||||
align-items: flex-start;
|
align-items: flex-start;
|
||||||
gap: 1rem;
|
margin-bottom: 2rem;
|
||||||
margin-bottom: 1rem;
|
|
||||||
|
@include media-breakpoint-down(sm) {
|
||||||
|
flex-wrap: wrap;
|
||||||
|
margin-bottom: 3rem;
|
||||||
|
}
|
||||||
|
|
||||||
.picture {
|
.picture {
|
||||||
display: block;
|
display: block;
|
||||||
|
@ -16,6 +20,7 @@
|
||||||
background-position: 50% 50%;
|
background-position: 50% 50%;
|
||||||
background-repeat: no-repeat;
|
background-repeat: no-repeat;
|
||||||
border: none;
|
border: none;
|
||||||
|
margin-right: 1.2rem;
|
||||||
|
|
||||||
&:hover {
|
&:hover {
|
||||||
background-color: var(--black-50);
|
background-color: var(--black-50);
|
||||||
|
@ -27,10 +32,16 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
.info {
|
.info {
|
||||||
display: flex;
|
|
||||||
flex-direction: column;
|
|
||||||
border: none;
|
border: none;
|
||||||
|
display: flex;
|
||||||
|
flex: 0 calc(100% - 5.2rem);
|
||||||
|
flex-direction: column;
|
||||||
@include font-size(1.4rem);
|
@include font-size(1.4rem);
|
||||||
|
margin-bottom: 1rem;
|
||||||
|
|
||||||
|
@include media-breakpoint-up(sm) {
|
||||||
|
flex: 1 100%;
|
||||||
|
}
|
||||||
|
|
||||||
&:hover {
|
&:hover {
|
||||||
background: unset;
|
background: unset;
|
||||||
|
@ -48,7 +59,24 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
.actions {
|
.actions {
|
||||||
margin-left: auto;
|
flex: 0 20%;
|
||||||
padding-left: 1rem;
|
margin-left: 5.2rem;
|
||||||
|
|
||||||
|
@include media-breakpoint-up(sm) {
|
||||||
|
margin-left: 2rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
@include media-breakpoint-up(md) {
|
||||||
|
flex: 1;
|
||||||
|
margin-left: auto;
|
||||||
|
padding-left: 1rem;
|
||||||
|
text-align: right;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.subscribeButton {
|
||||||
|
border-radius: 0.8rem !important;
|
||||||
|
margin-right: 0 !important;
|
||||||
|
width: 9em;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -83,14 +83,16 @@ export const TopicBadge = (props: Props) => {
|
||||||
size="S"
|
size="S"
|
||||||
value={isSubscribing() ? t('...subscribing') : t('Subscribe')}
|
value={isSubscribing() ? t('...subscribing') : t('Subscribe')}
|
||||||
onClick={() => subscribe(true)}
|
onClick={() => subscribe(true)}
|
||||||
|
class={styles.subscribeButton}
|
||||||
/>
|
/>
|
||||||
}
|
}
|
||||||
>
|
>
|
||||||
<Button
|
<Button
|
||||||
onClick={() => subscribe(false)}
|
onClick={() => subscribe(false)}
|
||||||
variant="secondary"
|
variant="bordered"
|
||||||
size="S"
|
size="S"
|
||||||
value={t('You are subscribed')}
|
value={t('You are subscribed')}
|
||||||
|
class={styles.subscribeButton}
|
||||||
/>
|
/>
|
||||||
</Show>
|
</Show>
|
||||||
</Show>
|
</Show>
|
||||||
|
|
|
@ -118,6 +118,6 @@
|
||||||
height: 32px;
|
height: 32px;
|
||||||
min-width: 53px;
|
min-width: 53px;
|
||||||
font-size: 15px;
|
font-size: 15px;
|
||||||
padding: 8px 16px;
|
padding: 1rem 1.2rem;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user