diff --git a/src/components/Article/Comment.module.scss b/src/components/Article/Comment.module.scss index b2515117..58f775ab 100644 --- a/src/components/Article/Comment.module.scss +++ b/src/components/Article/Comment.module.scss @@ -98,6 +98,10 @@ } } +.commentControlDelete { + align-items: center; +} + .commentControl { border: none; color: #696969; @@ -106,7 +110,10 @@ line-height: 1.2; margin-right: 0.8rem; padding: 0.2em 0.3em; - transition: opacity 0.2s, color 0.3s, background-color 0.3s; + transition: + opacity 0.2s, + color 0.3s, + background-color 0.3s; vertical-align: top; &:hover { @@ -123,7 +130,9 @@ filter: invert(0); margin-right: 0.3em; opacity: 0.6; - transition: filter 0.3s, opacity 0.2s; + transition: + filter 0.3s, + opacity 0.2s; img { margin-bottom: -0.1em; diff --git a/src/components/Author/AuthorBadge/AuthorBadge.module.scss b/src/components/Author/AuthorBadge/AuthorBadge.module.scss index 2fc2ead4..5aa176e4 100644 --- a/src/components/Author/AuthorBadge/AuthorBadge.module.scss +++ b/src/components/Author/AuthorBadge/AuthorBadge.module.scss @@ -1,15 +1,26 @@ .AuthorBadge { + align-items: flex-start; display: flex; flex-flow: row nowrap; - align-items: flex-start; - margin-bottom: 1rem; + margin-bottom: 2rem; + + @include media-breakpoint-down(sm) { + flex-wrap: wrap; + margin-bottom: 3rem; + } .info { @include font-size(1.4rem); - - display: flex; - flex-direction: column; 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 { background: unset; @@ -26,7 +37,24 @@ } .actions { - margin-left: auto; - padding-left: 1rem; + flex: 0 20%; + 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; } } diff --git a/src/components/Author/AuthorBadge/AuthorBadge.tsx b/src/components/Author/AuthorBadge/AuthorBadge.tsx index a5408d93..d60ec4cf 100644 --- a/src/components/Author/AuthorBadge/AuthorBadge.tsx +++ b/src/components/Author/AuthorBadge/AuthorBadge.tsx @@ -44,7 +44,13 @@ export const AuthorBadge = (props: Props) => { return (
- +
{props.author.name}
{ size="S" value={isSubscribing() ? t('...subscribing') : t('Subscribe')} onClick={() => handleSubscribe(true)} + class={styles.subscribeButton} /> } > - {props.following.length} + {props.following.length}
  • - + {props.following.filter((s) => 'name' in s).length}
  • @@ -415,7 +415,7 @@ export const AuthorCard = (props: Props) => { - + {props.following.filter((s) => 'title' in s).length} diff --git a/src/components/Feed/CardTopic.module.scss b/src/components/Feed/CardTopic.module.scss index 445fb8e2..df4a4849 100644 --- a/src/components/Feed/CardTopic.module.scss +++ b/src/components/Feed/CardTopic.module.scss @@ -17,16 +17,6 @@ color: #fff !important; } } - - a:before { - content: ''; - height: 100%; - left: 0; - position: absolute; - top: 0; - width: 100%; - z-index: 2; - } } .shoutTopicFloorImportant { diff --git a/src/components/Nav/Modal/Modal.module.scss b/src/components/Nav/Modal/Modal.module.scss index 7f4f3ca1..5529592a 100644 --- a/src/components/Nav/Modal/Modal.module.scss +++ b/src/components/Nav/Modal/Modal.module.scss @@ -55,6 +55,8 @@ } &.narrow { + left: 50%; + transform: translateX(-50%); width: 100%; @include media-breakpoint-up(sm) { @@ -73,6 +75,7 @@ } .modalInner { + height: 100%; overflow: auto; padding: 5.4rem 2.4rem 2.4rem; position: relative; diff --git a/src/components/Topic/Card.tsx b/src/components/Topic/Card.tsx index 2d7dd271..ca2e98bd 100644 --- a/src/components/Topic/Card.tsx +++ b/src/components/Topic/Card.tsx @@ -78,7 +78,7 @@ export const TopicCard = (props: TopicProps) => {
    { class={styles.controlContainer} 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-24 col-sm-7 col-md-6': props.compact, 'col-sm-7 col-md-6': !props.subscribeButtonBottom && !props.isNarrow && !props.compact }} > diff --git a/src/components/Topic/TopicBadge/TopicBadge.module.scss b/src/components/Topic/TopicBadge/TopicBadge.module.scss index 15c3f6ce..6c186a76 100644 --- a/src/components/Topic/TopicBadge/TopicBadge.module.scss +++ b/src/components/Topic/TopicBadge/TopicBadge.module.scss @@ -2,8 +2,12 @@ display: flex; flex-direction: row; align-items: flex-start; - gap: 1rem; - margin-bottom: 1rem; + margin-bottom: 2rem; + + @include media-breakpoint-down(sm) { + flex-wrap: wrap; + margin-bottom: 3rem; + } .picture { display: block; @@ -16,6 +20,7 @@ background-position: 50% 50%; background-repeat: no-repeat; border: none; + margin-right: 1.2rem; &:hover { background-color: var(--black-50); @@ -27,10 +32,16 @@ } .info { - display: flex; - flex-direction: column; border: none; + display: flex; + flex: 0 calc(100% - 5.2rem); + flex-direction: column; @include font-size(1.4rem); + margin-bottom: 1rem; + + @include media-breakpoint-up(sm) { + flex: 1 100%; + } &:hover { background: unset; @@ -48,7 +59,24 @@ } .actions { - margin-left: auto; - padding-left: 1rem; + flex: 0 20%; + 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; } } diff --git a/src/components/Topic/TopicBadge/TopicBadge.tsx b/src/components/Topic/TopicBadge/TopicBadge.tsx index 3d958645..958c433b 100644 --- a/src/components/Topic/TopicBadge/TopicBadge.tsx +++ b/src/components/Topic/TopicBadge/TopicBadge.tsx @@ -83,14 +83,16 @@ export const TopicBadge = (props: Props) => { size="S" value={isSubscribing() ? t('...subscribing') : t('Subscribe')} onClick={() => subscribe(true)} + class={styles.subscribeButton} /> } >