Style fixes

This commit is contained in:
kvakazyambra 2023-09-28 00:28:32 +03:00
parent a2382344d2
commit dc3eb7de63
8 changed files with 67 additions and 59 deletions

View File

@ -29,10 +29,6 @@
flex-wrap: wrap; flex-wrap: wrap;
} }
@include media-breakpoint-down(md) {
text-align: center;
}
@include media-breakpoint-between(md, lg) { @include media-breakpoint-between(md, lg) {
flex-wrap: wrap; flex-wrap: wrap;
} }
@ -353,6 +349,7 @@
@include media-breakpoint-down(md) { @include media-breakpoint-down(md) {
flex: 1 100%; flex: 1 100%;
text-align: center;
} }
} }
@ -509,7 +506,11 @@
.listWrapper { .listWrapper {
max-height: 70vh; max-height: 70vh;
overflow: auto; overflow: auto;
padding-right: 2rem; //padding-right: 2rem;
:global(.row) {
margin-right: 0;
}
} }
.switcherCounter { .switcherCounter {

View File

@ -286,8 +286,6 @@
} }
.shoutCardContent { .shoutCardContent {
margin-bottom: 1em;
@include media-breakpoint-up(md) { @include media-breakpoint-up(md) {
margin-bottom: 2em; margin-bottom: 2em;
@ -395,7 +393,7 @@
.shoutCardWithCover { .shoutCardWithCover {
aspect-ratio: 16/9; aspect-ratio: 16/9;
padding: 0 2.4rem; //padding: 0 2.4rem;
width: 100%; width: 100%;
@include media-breakpoint-down(xl) { @include media-breakpoint-down(xl) {
@ -454,8 +452,6 @@
z-index: 1; z-index: 1;
@include media-breakpoint-down(xl) { @include media-breakpoint-down(xl) {
padding-left: 0;
padding-right: 0;
position: relative; position: relative;
} }
} }

View File

@ -72,6 +72,7 @@ export const Beside = (props: BesideProps) => {
iconButton={props.iconButton} iconButton={props.iconButton}
showPublications={true} showPublications={true}
isCardMode={true} isCardMode={true}
isNarrow={true}
/> />
</Show> </Show>
<Show when={props.wrapper === 'author'}> <Show when={props.wrapper === 'author'}>

View File

@ -1,3 +1,7 @@
.authFormHeader {
margin-right: 3.2rem;
}
.authFormDescription { .authFormDescription {
font-size: 14px; font-size: 14px;
font-weight: 400; font-weight: 400;

View File

@ -78,7 +78,7 @@ export const AuthModalHeader = (props: Props) => {
return ( return (
<> <>
<h4>{title}</h4> <h4 class={styles.authFormHeader}>{title}</h4>
<Show when={description}> <Show when={description}>
<p class={styles.authFormDescription} innerHTML={description} /> <p class={styles.authFormDescription} innerHTML={description} />
</Show> </Show>

View File

@ -33,10 +33,14 @@
width: 16px; width: 16px;
opacity: 1; opacity: 1;
padding: 0; padding: 0;
right: 1.6rem; right: 2.4rem;
transition: opacity 0.3s; transition: opacity 0.3s;
z-index: 1; z-index: 1;
@include media-breakpoint-up(sm) {
right: 1.6rem;
}
svg { svg {
display: block; display: block;
pointer-events: none; pointer-events: none;
@ -57,21 +61,25 @@
} }
&.narrow { &.narrow {
max-width: 460px; width: 100%;
width: 50%;
@media (width >= 800px) and (width <= 991px) { @include media-breakpoint-up(sm) {
width: 80%; max-width: 460px;
}
@include media-breakpoint-up(md) {
width: 50%;
} }
.close { .close {
right: 12px; right: 3.6rem;
top: 12px; top: 12px;
} }
} }
} }
.noPadding { .noPadding {
background: none;
padding: 0 2rem; padding: 0 2rem;
} }

View File

@ -1,4 +1,6 @@
.topicContainer { .topicContainer {
margin-top: 3.6rem;
li:last-child & { li:last-child & {
border: none; border: none;
} }
@ -8,9 +10,25 @@
align-items: baseline; align-items: baseline;
margin-top: 3.2rem; margin-top: 3.2rem;
.stats & { @include media-breakpoint-down(sm) {
.topicDetailsItem { margin: 0;
margin-bottom: 1.2rem; position: relative;
&:not(.topicCompact) {
.topicDetails {
order: 2;
}
.controlContainer {
margin: 0;
position: relative;
button {
position: absolute;
right: 0;
top: 100%;
}
}
} }
} }
} }
@ -62,7 +80,6 @@
.topicDescription { .topicDescription {
@include font-size(1.4rem); @include font-size(1.4rem);
font-weight: 500; font-weight: 500;
color: #696969; color: #696969;
line-height: 1.3; line-height: 1.3;
@ -76,50 +93,19 @@
} }
} }
.topicDetails {
@include font-size(1.6rem);
color: #9fa1a7;
display: flex;
margin-bottom: 1em;
@include media-breakpoint-down(md) {
flex-wrap: wrap;
}
}
.topicDetailsItem {
@include font-size(1.4rem);
margin-right: 1.6rem;
white-space: nowrap;
&:last-child {
margin-right: 0;
}
&.compact {
font-size: small;
}
&.followers {
word-break: keep-all;
}
&.button {
float: right;
}
}
.controlContainer { .controlContainer {
margin-bottom: 1.6rem; margin-bottom: 1.6rem;
@include media-breakpoint-up(sm) { @include media-breakpoint-up(sm) {
.topicCompact & {
text-align: right; text-align: right;
} }
} }
}
.topicCompact { .topicCompact {
margin-top: 2.4rem;
.topicTitle { .topicTitle {
@include font-size(1.6rem); @include font-size(1.6rem);
} }

View File

@ -26,6 +26,7 @@ interface TopicProps {
showDescription?: boolean showDescription?: boolean
isCardMode?: boolean isCardMode?: boolean
minimizeSubscribeButton?: boolean minimizeSubscribeButton?: boolean
isNarrow?: boolean
} }
export const TopicCard = (props: TopicProps) => { export const TopicCard = (props: TopicProps) => {
@ -73,7 +74,14 @@ export const TopicCard = (props: TopicProps) => {
[styles.topicInRow]: props.isTopicInRow [styles.topicInRow]: props.isTopicInRow
}} }}
> >
<div classList={{ 'col-sm-18 col-md-24 col-lg-14 col-xl-15': !props.subscribeButtonBottom }}> <div
classList={{
[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-sm-17 col-md-18', styles.topicDetails)]:
!props.subscribeButtonBottom && !props.isNarrow && !props.compact
}}
>
<Show when={props.topic.title && !props.isCardMode}> <Show when={props.topic.title && !props.isCardMode}>
<h3 class={styles.topicTitle}> <h3 class={styles.topicTitle}>
<a href={`/topic/${props.topic.slug}`}>{capitalize(props.topic.title || '')}</a> <a href={`/topic/${props.topic.slug}`}>{capitalize(props.topic.title || '')}</a>
@ -103,7 +111,11 @@ export const TopicCard = (props: TopicProps) => {
</div> </div>
<div <div
class={styles.controlContainer} class={styles.controlContainer}
classList={{ 'col-sm-6 col-md-24 col-lg-10 col-xl-9': !props.subscribeButtonBottom }} classList={{
'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-sm-7 col-md-6': !props.subscribeButtonBottom && !props.isNarrow && !props.compact
}}
> >
<ShowOnlyOnClient> <ShowOnlyOnClient>
<Show when={isSessionLoaded()}> <Show when={isSessionLoaded()}>