diff --git a/public/icons/key.svg b/public/icons/key.svg new file mode 100644 index 00000000..11d788ca --- /dev/null +++ b/public/icons/key.svg @@ -0,0 +1,4 @@ + + + diff --git a/src/components/Article/Comment.module.scss b/src/components/Article/Comment.module.scss index 58f775ab..eb8eea1b 100644 --- a/src/components/Article/Comment.module.scss +++ b/src/components/Article/Comment.module.scss @@ -1,5 +1,5 @@ .comment { - margin: 0.5em 0; + margin: 0 0 0.5em; padding: 1rem; transition: background-color 0.3s; position: relative; diff --git a/src/components/Article/CommentDate.module.scss b/src/components/Article/CommentDate.module.scss index edcb1ce9..f9672066 100644 --- a/src/components/Article/CommentDate.module.scss +++ b/src/components/Article/CommentDate.module.scss @@ -4,14 +4,15 @@ align-self: center; display: flex; flex: 1; + flex-wrap: wrap; @include font-size(1.2rem); font-size: 1.2rem; - gap: 1rem; justify-content: flex-start; margin: 0 1em 0 0; .date { font-weight: 500; + margin-right: 1rem; .icon { line-height: 1; diff --git a/src/components/Author/AuthorBadge/AuthorBadge.module.scss b/src/components/Author/AuthorBadge/AuthorBadge.module.scss index 5aa176e4..da653817 100644 --- a/src/components/Author/AuthorBadge/AuthorBadge.module.scss +++ b/src/components/Author/AuthorBadge/AuthorBadge.module.scss @@ -9,6 +9,10 @@ margin-bottom: 3rem; } + @include media-breakpoint-down(md) { + text-align: left; + } + .info { @include font-size(1.4rem); border: none; diff --git a/src/components/Author/AuthorCard/AuthorCard.module.scss b/src/components/Author/AuthorCard/AuthorCard.module.scss index 240e4be2..3fc01878 100644 --- a/src/components/Author/AuthorCard/AuthorCard.module.scss +++ b/src/components/Author/AuthorCard/AuthorCard.module.scss @@ -42,7 +42,7 @@ flex: 1; @include media-breakpoint-up(sm) { - align-items: baseline; + align-items: center; display: flex; } @@ -426,6 +426,10 @@ } } +.shareControl { + display: inline-block; +} + .buttonSubscribe { align-items: center; aspect-ratio: 1/1; @@ -490,6 +494,7 @@ color: #696969; @include font-size(2rem); font-weight: 500; + margin-top: 1.5rem; } .authorSubscribe { diff --git a/src/components/Author/AuthorCard/AuthorCard.tsx b/src/components/Author/AuthorCard/AuthorCard.tsx index 9e5433c4..6fded1f2 100644 --- a/src/components/Author/AuthorCard/AuthorCard.tsx +++ b/src/components/Author/AuthorCard/AuthorCard.tsx @@ -208,76 +208,57 @@ export const AuthorCard = (props: Props) => { } >
- - 0 && !props.isCurrentUser}> - - - {(f) => } - -
- {t('SubscriberWithCount', { count: props.followers.length })} -
-
-
- 0 && props.isCurrentUser}> -
- - + + 0}> + +
{
+ + +
+
+
diff --git a/src/components/Feed/Sidebar/Sidebar.module.scss b/src/components/Feed/Sidebar/Sidebar.module.scss index c09de070..5735b053 100644 --- a/src/components/Feed/Sidebar/Sidebar.module.scss +++ b/src/components/Feed/Sidebar/Sidebar.module.scss @@ -1,9 +1,11 @@ .sidebar { + margin-top: -0.7rem; max-height: calc(100vh - 120px); overflow: auto; top: 120px; @include media-breakpoint-up(md) { + margin-top: 0; position: sticky; ul > li { diff --git a/src/components/Nav/Header/Header.module.scss b/src/components/Nav/Header/Header.module.scss index 9d6fc432..93bfe8aa 100644 --- a/src/components/Nav/Header/Header.module.scss +++ b/src/components/Nav/Header/Header.module.scss @@ -104,9 +104,9 @@ position: relative; @include media-breakpoint-down(lg) { - flex: 1 !important; max-width: 100% !important; - padding: 0 !important; + position: absolute; + right: 0; } } @@ -139,7 +139,7 @@ overflow: auto; padding: $container-padding-x !important; position: fixed; - top: 64px; + top: 58px; width: 100%; z-index: 1; @@ -191,8 +191,9 @@ } } - ul { + :global(.view-switcher) { margin-top: 0; + overflow: hidden; } li { @@ -217,6 +218,10 @@ .fixed & { display: block; } + + a { + padding-top: 0.1em; + } } .mainNavigationSocial a { @@ -246,6 +251,30 @@ background: #f7f7f8; border: none; border-radius: 1.6rem; + padding-right: 5.6rem; + + &:not(:placeholder-shown) { + & ~ .mobileSubscriptionSubmit { + display: block; + } + } + } +} + +.mobileSubscriptionSubmit { + aspect-ratio: 1/1; + display: none; + height: 100%; + position: absolute; + right: 0; + top: 0; + + img { + aspect-ratio: 1/1; + left: 50%; + position: relative; + transform: translateX(-50%); + width: 16px !important; } } @@ -387,19 +416,11 @@ display: flex; justify-content: flex-end; position: absolute; - right: 5rem; + right: 0; top: 50%; transform: translateY(-50%); width: 100%; - @include media-breakpoint-up(lg) { - right: 0; - } - - @include media-breakpoint-up(xl) { - right: 2rem; - } - .control { cursor: pointer; border: 0; @@ -446,10 +467,6 @@ z-index: -1; } - @include media-breakpoint-down(md) { - padding: divide($container-padding-x, 2); - } - .userpic { align-items: center; margin-right: 0; @@ -491,6 +508,7 @@ a, a:link { border: none; + cursor: pointer; height: auto; margin: 0; padding: 0; @@ -534,6 +552,12 @@ } &:global(.loginbtn) { + background: #e9e9ee; + + @include media-breakpoint-up(xl) { + background: none; + } + .icon { height: 2.4rem; width: 2.4rem; diff --git a/src/components/Nav/Header/Header.tsx b/src/components/Nav/Header/Header.tsx index 855086ac..23cc3435 100644 --- a/src/components/Nav/Header/Header.tsx +++ b/src/components/Nav/Header/Header.tsx @@ -173,6 +173,11 @@ export const Header = (props: Props) => {