From 876d721877525db59fd6ade97259b079564750d5 Mon Sep 17 00:00:00 2001 From: Sergey Yarkov Date: Mon, 20 Jul 2020 00:56:08 +0300 Subject: [PATCH] share btns upd --- src/components/Article/Article.js | 13 +++++------ src/components/Article/Article.scss | 34 +++++++++++++++++++++-------- src/components/Footer/Footer.scss | 8 +++++++ src/components/Header/Header.scss | 8 +++++++ src/images/facebook-icon__large.svg | 4 +++- src/images/twitter-icon__large.svg | 4 +++- src/images/vk-icon.svg | 4 +++- src/styles/global.scss | 6 +++++ 8 files changed, 62 insertions(+), 19 deletions(-) diff --git a/src/components/Article/Article.js b/src/components/Article/Article.js index ba6a807..a174024 100644 --- a/src/components/Article/Article.js +++ b/src/components/Article/Article.js @@ -38,14 +38,7 @@ const Article = ({ data: { slug, keywords, title, image, description, category, -
-

{title}

-
-
- {category} -
- Поделиться:
@@ -58,6 +51,12 @@ const Article = ({ data: { slug, keywords, title, image, description, category,
+
+

{title}

+
+
+ {category} +

{description} diff --git a/src/components/Article/Article.scss b/src/components/Article/Article.scss index 5a375b4..8e00552 100644 --- a/src/components/Article/Article.scss +++ b/src/components/Article/Article.scss @@ -39,14 +39,30 @@ } } & .article-share { - display: flex; - align-items: center; - margin-bottom: 15px; - &__social{ - margin-left: 15px; + position: sticky; + top: 75px; + height: 0; + margin: 0 0 0 -50px; + &__social { + display: flex; + flex-direction: column; + width: 1.3rem; & a { + width: 1.3rem; text-decoration: none; margin-right: 10px; + margin-bottom: 20px; + & svg:hover { + & .vk-icon { + fill: #4680C2; + } + & .twitter-icon { + fill: #00acee; + } + & .facebook-icon { + fill: #3b5998; + } + } } & a:nth-child(3) { margin-right: 0; @@ -112,11 +128,11 @@ } } -@media (min-width: 768px) and (max-width: 991px) { +@media (max-width: 1300px) { .article { - article { - & .article-image { - padding: 0 5rem; + & article { + & .article-share { + display: none; } } } diff --git a/src/components/Footer/Footer.scss b/src/components/Footer/Footer.scss index 1fbe504..99f35d1 100644 --- a/src/components/Footer/Footer.scss +++ b/src/components/Footer/Footer.scss @@ -106,6 +106,14 @@ footer { } } +@media (max-width: 991px) { + footer { + & .footer-content { + max-width: 880px; + } + } +} + @media (max-width: 768px) { footer { & .footer-content { diff --git a/src/components/Header/Header.scss b/src/components/Header/Header.scss index 109c777..656dcb6 100644 --- a/src/components/Header/Header.scss +++ b/src/components/Header/Header.scss @@ -249,6 +249,14 @@ header { } } +@media (max-width: 991px) { + header { + & .header-content { + max-width: 880px; + } + } +} + @media (min-width: 768px) { header { & .header-content { diff --git a/src/images/facebook-icon__large.svg b/src/images/facebook-icon__large.svg index 11bb596..21655da 100644 --- a/src/images/facebook-icon__large.svg +++ b/src/images/facebook-icon__large.svg @@ -1 +1,3 @@ - \ No newline at end of file + + + diff --git a/src/images/twitter-icon__large.svg b/src/images/twitter-icon__large.svg index 8133a8b..5272024 100644 --- a/src/images/twitter-icon__large.svg +++ b/src/images/twitter-icon__large.svg @@ -1 +1,3 @@ - \ No newline at end of file + + + diff --git a/src/images/vk-icon.svg b/src/images/vk-icon.svg index 8098be6..5002d3c 100644 --- a/src/images/vk-icon.svg +++ b/src/images/vk-icon.svg @@ -1 +1,3 @@ - \ No newline at end of file + + + diff --git a/src/styles/global.scss b/src/styles/global.scss index 30f590d..dd7ec0c 100644 --- a/src/styles/global.scss +++ b/src/styles/global.scss @@ -263,6 +263,12 @@ a { } } +@media (max-width: 991px) { + .container-fluid { + max-width: 880px; + } +} + @media (max-width: 768px) { .error { & span {