From 4fa5f839899e5d264d2da254bead724ed2fb229f Mon Sep 17 00:00:00 2001 From: kvakazyambra Date: Thu, 28 Sep 2023 01:21:27 +0300 Subject: [PATCH] Style fixes --- src/components/Article/Article.module.scss | 14 ++------------ src/components/Article/CommentDate.module.scss | 3 ++- .../Author/AuthorCard/AuthorCard.module.scss | 2 +- src/components/Author/AuthorCard/AuthorCard.tsx | 2 +- src/components/Nav/Modal/Modal.module.scss | 12 ++++-------- src/components/Views/Author/Author.tsx | 2 +- 6 files changed, 11 insertions(+), 24 deletions(-) diff --git a/src/components/Article/Article.module.scss b/src/components/Article/Article.module.scss index 04ddd8c2..c9d72f1e 100644 --- a/src/components/Article/Article.module.scss +++ b/src/components/Article/Article.module.scss @@ -1,13 +1,11 @@ h1 { @include font-size(4rem); - line-height: 1.1; margin-top: 0.5em; } h2 { @include font-size(4rem); - line-height: 1.1; } @@ -72,7 +70,6 @@ img { &[data-float='left'], &[data-float='right'] { @include font-size(2.2rem); - line-height: 1.4; } @@ -97,9 +94,7 @@ img { ta-border-sub { background: #f1f2f3; display: block; - @include font-size(1.4rem); - margin: 3.2rem 0; padding: 3.2rem; @@ -178,7 +173,7 @@ img { :global(.img-align-left) { float: left; - margin: 1em 8.3333% 0.5em 0; + margin: 1em 8.3333% 1.5em 0; } :global(.width-30) { @@ -197,7 +192,7 @@ img { :global(.img-align-right) { float: right; - margin: 1em 0 0.5em 8.3333%; + margin: 1em 0 1.5em 8.3333%; } :global(.img-align-right.width-50) { @@ -309,7 +304,6 @@ img { .shoutStatsItem { @include font-size(1.5rem); - align-items: center; font-weight: 500; display: flex; @@ -422,7 +416,6 @@ img { .topicsList { @include font-size(1.2rem); - border-bottom: 1px solid #e8e8e8; letter-spacing: 0.08em; margin-top: 1.6rem; @@ -468,7 +461,6 @@ img { .commentsHeader { @include font-size(2.4rem); - margin-bottom: 1em; .newReactions { @@ -502,7 +494,6 @@ img { button { @include font-size(1.5rem); - border-radius: 0.8rem; margin-right: 1.2rem; padding: 0.9rem 1.2rem; @@ -591,7 +582,6 @@ a[data-toggle='tooltip'] { .lead { @include font-size(1.8rem); - font-weight: 600; b, diff --git a/src/components/Article/CommentDate.module.scss b/src/components/Article/CommentDate.module.scss index 7f41f215..edcb1ce9 100644 --- a/src/components/Article/CommentDate.module.scss +++ b/src/components/Article/CommentDate.module.scss @@ -1,13 +1,14 @@ .commentDates { color: #9fa1a7; align-items: center; + align-self: center; display: flex; flex: 1; @include font-size(1.2rem); font-size: 1.2rem; gap: 1rem; justify-content: flex-start; - margin: 0 1em 4px 0; + margin: 0 1em 0 0; .date { font-weight: 500; diff --git a/src/components/Author/AuthorCard/AuthorCard.module.scss b/src/components/Author/AuthorCard/AuthorCard.module.scss index 16ee3647..7b5c138b 100644 --- a/src/components/Author/AuthorCard/AuthorCard.module.scss +++ b/src/components/Author/AuthorCard/AuthorCard.module.scss @@ -1,5 +1,5 @@ .author { - align-items: flex-start; + align-items: baseline; display: flex; flex-flow: row nowrap; margin-bottom: 1.6rem; diff --git a/src/components/Author/AuthorCard/AuthorCard.tsx b/src/components/Author/AuthorCard/AuthorCard.tsx index c7fafa09..052f21c8 100644 --- a/src/components/Author/AuthorCard/AuthorCard.tsx +++ b/src/components/Author/AuthorCard/AuthorCard.tsx @@ -272,7 +272,7 @@ export const AuthorCard = (props: Props) => {