Subscriptions list styles fixes
This commit is contained in:
parent
b0b0136f34
commit
82a3740f0e
|
@ -12,6 +12,27 @@
|
||||||
margin-bottom: 2.4rem;
|
margin-bottom: 2.4rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.listWrapper & {
|
||||||
|
align-items: flex-start;
|
||||||
|
margin-bottom: 2rem;
|
||||||
|
|
||||||
|
@include media-breakpoint-down(sm) {
|
||||||
|
margin-bottom: 3rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
@include media-breakpoint-between(md, lg) {
|
||||||
|
margin-bottom: 3rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.circlewrap {
|
||||||
|
margin-top: 1rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.authorDetailsWrapper {
|
||||||
|
margin-bottom: 1rem;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
@include media-breakpoint-down(lg) {
|
@include media-breakpoint-down(lg) {
|
||||||
flex-wrap: wrap;
|
flex-wrap: wrap;
|
||||||
}
|
}
|
||||||
|
@ -40,6 +61,7 @@
|
||||||
|
|
||||||
.authorDetailsWrapper {
|
.authorDetailsWrapper {
|
||||||
flex: 1 0;
|
flex: 1 0;
|
||||||
|
position: relative;
|
||||||
|
|
||||||
@include media-breakpoint-up(sm) {
|
@include media-breakpoint-up(sm) {
|
||||||
flex: 1;
|
flex: 1;
|
||||||
|
@ -64,18 +86,28 @@
|
||||||
font-weight: 500;
|
font-weight: 500;
|
||||||
line-height: 2;
|
line-height: 2;
|
||||||
margin-bottom: 0.8rem;
|
margin-bottom: 0.8rem;
|
||||||
|
|
||||||
|
.listWrapper &:before {
|
||||||
|
content: '';
|
||||||
|
height: 100%;
|
||||||
|
left: 0;
|
||||||
|
position: absolute;
|
||||||
|
top: 0;
|
||||||
|
width: 100%;
|
||||||
|
z-index: 2;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.authorAbout {
|
.authorAbout {
|
||||||
color: rgb(0 0 0 / 60%);
|
color: rgb(0 0 0 / 60%);
|
||||||
font-size: 1.4rem;
|
font-size: 1.4rem;
|
||||||
line-height: 1.4;
|
font-weight: 500;
|
||||||
|
line-height: 1.3;
|
||||||
word-break: break-word;
|
word-break: break-word;
|
||||||
}
|
}
|
||||||
|
|
||||||
.authorSubscribe {
|
.authorSubscribe {
|
||||||
align-items: center;
|
align-items: center;
|
||||||
//display: flex;
|
|
||||||
|
|
||||||
@include media-breakpoint-down(md) {
|
@include media-breakpoint-down(md) {
|
||||||
flex-wrap: wrap;
|
flex-wrap: wrap;
|
||||||
|
@ -526,7 +558,6 @@
|
||||||
|
|
||||||
.listWrapper {
|
.listWrapper {
|
||||||
max-height: 70vh;
|
max-height: 70vh;
|
||||||
overflow: auto;
|
|
||||||
//padding-right: 2rem;
|
//padding-right: 2rem;
|
||||||
|
|
||||||
:global(.row) {
|
:global(.row) {
|
||||||
|
@ -535,14 +566,19 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
.switcherCounter {
|
.switcherCounter {
|
||||||
|
align-items: center;
|
||||||
background: #f7f7f8;
|
background: #f7f7f8;
|
||||||
border-radius: 0.8rem;
|
border-radius: 0.8rem;
|
||||||
display: inline-block;
|
display: inline-flex;
|
||||||
font-size: 1.2rem;
|
font-size: 1.2rem;
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
line-height: 1.2;
|
height: 2.2rem;
|
||||||
|
justify-content: center;
|
||||||
|
line-height: 2.2rem;
|
||||||
margin-left: 0.4rem;
|
margin-left: 0.4rem;
|
||||||
padding: 0.4rem 0.6rem;
|
min-width: 2.2rem;
|
||||||
|
padding: 0 0.6rem;
|
||||||
|
text-align: center;
|
||||||
}
|
}
|
||||||
|
|
||||||
:global(.view-switcher__item--selected) .switcherCounter {
|
:global(.view-switcher__item--selected) .switcherCounter {
|
||||||
|
|
|
@ -377,7 +377,7 @@ export const AuthorCard = (props: Props) => {
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<Show when={props.followers}>
|
<Show when={props.followers}>
|
||||||
<Modal variant="wide" name="followers" onClose={handleCloseFollowModals} maxHeight>
|
<Modal variant="medium" name="followers" onClose={handleCloseFollowModals} maxHeight>
|
||||||
<>
|
<>
|
||||||
<h2>{t('Followers')}</h2>
|
<h2>{t('Followers')}</h2>
|
||||||
<div class={styles.listWrapper}>
|
<div class={styles.listWrapper}>
|
||||||
|
@ -404,7 +404,7 @@ export const AuthorCard = (props: Props) => {
|
||||||
</Show>
|
</Show>
|
||||||
|
|
||||||
<Show when={props.following}>
|
<Show when={props.following}>
|
||||||
<Modal variant="wide" name="following" onClose={handleCloseFollowModals} maxHeight>
|
<Modal variant="medium" name="following" onClose={handleCloseFollowModals} maxHeight>
|
||||||
<>
|
<>
|
||||||
<h2>{t('Subscriptions')}</h2>
|
<h2>{t('Subscriptions')}</h2>
|
||||||
<ul class="view-switcher">
|
<ul class="view-switcher">
|
||||||
|
@ -447,7 +447,14 @@ export const AuthorCard = (props: Props) => {
|
||||||
showPublicationsCounter={true}
|
showPublicationsCounter={true}
|
||||||
/>
|
/>
|
||||||
) : (
|
) : (
|
||||||
<TopicCard compact isTopicInRow showDescription isCardMode topic={subscription} />
|
<TopicCard
|
||||||
|
compact
|
||||||
|
isTopicInRow
|
||||||
|
showDescription
|
||||||
|
isCardMode
|
||||||
|
withIcon
|
||||||
|
topic={subscription}
|
||||||
|
/>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
</For>
|
</For>
|
||||||
|
|
|
@ -11,14 +11,22 @@
|
||||||
background: transparent;
|
background: transparent;
|
||||||
border: none;
|
border: none;
|
||||||
color: $link-color;
|
color: $link-color;
|
||||||
position: relative;
|
|
||||||
z-index: 2;
|
|
||||||
|
|
||||||
&:hover {
|
&:hover {
|
||||||
background: $link-color;
|
background: $link-color;
|
||||||
color: #fff !important;
|
color: #fff !important;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
a:before {
|
||||||
|
content: '';
|
||||||
|
height: 100%;
|
||||||
|
left: 0;
|
||||||
|
position: absolute;
|
||||||
|
top: 0;
|
||||||
|
width: 100%;
|
||||||
|
z-index: 2;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.shoutTopicFloorImportant {
|
.shoutTopicFloorImportant {
|
||||||
|
@ -35,4 +43,9 @@
|
||||||
|
|
||||||
.shoutTopicFeedMode {
|
.shoutTopicFeedMode {
|
||||||
font-size: 1.2rem;
|
font-size: 1.2rem;
|
||||||
|
|
||||||
|
a {
|
||||||
|
position: relative;
|
||||||
|
z-index: 2;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -43,7 +43,7 @@ export const Modal = (props: Props) => {
|
||||||
return (
|
return (
|
||||||
<Show when={visible()}>
|
<Show when={visible()}>
|
||||||
<div class={styles.backdrop} onClick={handleHide}>
|
<div class={styles.backdrop} onClick={handleHide}>
|
||||||
<div className="wide-container">
|
<div class="wide-container">
|
||||||
<div
|
<div
|
||||||
class={clsx(styles.modal, {
|
class={clsx(styles.modal, {
|
||||||
[styles.narrow]: props.variant === 'narrow',
|
[styles.narrow]: props.variant === 'narrow',
|
||||||
|
|
|
@ -33,6 +33,10 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.topicDetails {
|
||||||
|
position: relative;
|
||||||
|
}
|
||||||
|
|
||||||
.topicInRow {
|
.topicInRow {
|
||||||
align-items: center;
|
align-items: center;
|
||||||
display: flex;
|
display: flex;
|
||||||
|
@ -118,7 +122,9 @@
|
||||||
.isSubscribed {
|
.isSubscribed {
|
||||||
background: #000;
|
background: #000;
|
||||||
color: #fff;
|
color: #fff;
|
||||||
transition: background-color 0.3s, color 0.3s;
|
transition:
|
||||||
|
background-color 0.3s,
|
||||||
|
color 0.3s;
|
||||||
white-space: nowrap;
|
white-space: nowrap;
|
||||||
width: 9em;
|
width: 9em;
|
||||||
|
|
||||||
|
|
|
@ -27,6 +27,7 @@ interface TopicProps {
|
||||||
isCardMode?: boolean
|
isCardMode?: boolean
|
||||||
minimizeSubscribeButton?: boolean
|
minimizeSubscribeButton?: boolean
|
||||||
isNarrow?: boolean
|
isNarrow?: boolean
|
||||||
|
withIcon?: boolean
|
||||||
}
|
}
|
||||||
|
|
||||||
export const TopicCard = (props: TopicProps) => {
|
export const TopicCard = (props: TopicProps) => {
|
||||||
|
@ -108,6 +109,14 @@ export const TopicCard = (props: TopicProps) => {
|
||||||
{props.topic.body}
|
{props.topic.body}
|
||||||
</div>
|
</div>
|
||||||
</Show>
|
</Show>
|
||||||
|
<Show when={props.showDescription && !props.topic?.body && props.topic.stat?.shouts > 0}>
|
||||||
|
<div
|
||||||
|
class={clsx(styles.topicDescription)}
|
||||||
|
classList={{ [styles.topicDescriptionShort]: props.shortDescription }}
|
||||||
|
>
|
||||||
|
{props.topic.stat?.shouts} публикаций
|
||||||
|
</div>
|
||||||
|
</Show>
|
||||||
</div>
|
</div>
|
||||||
<div
|
<div
|
||||||
class={styles.controlContainer}
|
class={styles.controlContainer}
|
||||||
|
|
|
@ -10,12 +10,6 @@
|
||||||
.groupControls {
|
.groupControls {
|
||||||
margin-bottom: 6rem !important;
|
margin-bottom: 6rem !important;
|
||||||
margin-top: 0 !important;
|
margin-top: 0 !important;
|
||||||
|
|
||||||
@include media-breakpoint-down(md) {
|
|
||||||
border-top: 2px solid #000;
|
|
||||||
margin-top: -1.6rem;
|
|
||||||
padding-top: 1.6rem;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -74,7 +68,9 @@
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
padding-bottom: 4em;
|
padding-bottom: 4em;
|
||||||
position: relative;
|
position: relative;
|
||||||
transition: max-height 0.5s, margin-bottom 0s 0.3s;
|
transition:
|
||||||
|
max-height 0.5s,
|
||||||
|
margin-bottom 0s 0.3s;
|
||||||
|
|
||||||
&:after {
|
&:after {
|
||||||
background-image: linear-gradient(to top, #fff, rgb(255 255 255 / 0.8), rgb(255 255 255 / 0));
|
background-image: linear-gradient(to top, #fff, rgb(255 255 255 / 0.8), rgb(255 255 255 / 0));
|
||||||
|
|
Loading…
Reference in New Issue
Block a user