From e183d0f0907753f98e80e514505ffeddc4b3a44c Mon Sep 17 00:00:00 2001
From: kvakazyambra
Date: Mon, 29 May 2023 22:39:53 +0300
Subject: [PATCH] Fixed feedback popup style
---
src/components/Discours/Feedback.tsx | 5 +++--
src/components/Nav/Modal/Modal.module.scss | 22 ++++++++++++++--------
src/pages/about/manifest.page.tsx | 10 ++++------
src/styles/app.scss | 2 +-
4 files changed, 22 insertions(+), 17 deletions(-)
diff --git a/src/components/Discours/Feedback.tsx b/src/components/Discours/Feedback.tsx
index 57d7574f..809bfd9f 100644
--- a/src/components/Discours/Feedback.tsx
+++ b/src/components/Discours/Feedback.tsx
@@ -1,5 +1,6 @@
import { hideModal } from '../../stores/ui'
import { useLocalize } from '../../context/localize'
+import { Button } from '../_shared/Button'
export const Feedback = () => {
const { t } = useLocalize()
@@ -21,10 +22,10 @@ export const Feedback = () => {
}
return (
-
)
}
diff --git a/src/components/Nav/Modal/Modal.module.scss b/src/components/Nav/Modal/Modal.module.scss
index 19f5ecaa..dab7eb7b 100644
--- a/src/components/Nav/Modal/Modal.module.scss
+++ b/src/components/Nav/Modal/Modal.module.scss
@@ -16,18 +16,24 @@
.modal {
background: #fff;
max-width: 1000px;
+ padding: 5.4rem 2.4rem 2.4rem;
position: relative;
- width: 80%;
+ width: 100%;
+
+ @include media-breakpoint-up(sm) {
+ padding: 4.2rem;
+ width: 80%;
+ }
.close {
position: absolute;
- top: 1em;
+ top: 1.6rem;
cursor: pointer;
height: 18px;
width: 16px;
opacity: 1;
padding: 0;
- right: 0;
+ right: 1.6rem;
transition: opacity 0.3s;
z-index: 1;
@@ -37,17 +43,17 @@
}
&:hover {
- opacity: 0.5;
+ background: #000;
+
+ .icon {
+ filter: invert(1);
+ }
}
.icon {
height: 100%;
width: 100%;
}
-
- @media (width >= 800px) and (width <= 991px) {
- // top: 11em;
- }
}
&.narrow {
diff --git a/src/pages/about/manifest.page.tsx b/src/pages/about/manifest.page.tsx
index fbdbe7b6..9878de07 100644
--- a/src/pages/about/manifest.page.tsx
+++ b/src/pages/about/manifest.page.tsx
@@ -125,9 +125,7 @@ export const ManifestPage = () => {
Поддерживать проект
- Дискурс существует на пожертвования читателей. Если вам нравится журнал, пожалуйста,
-
-
+ Дискурс существует на пожертвования читателей. Если вам нравится журнал, пожалуйста,{' '}
поддержите нашу работу. Ваши пожертвования пойдут на выпуск
новых материалов, оплату серверов, труда программистов, дизайнеров и редакторов.
@@ -165,13 +163,13 @@ export const ManifestPage = () => {
Советуйте Дискурс друзьям и знакомым. Обсуждайте и распространяйте наши
публикации — все материалы открытой редакции можно читать и перепечатывать
бесплатно. Подпишитесь на самиздат ВКонтакте,
- в Фейсбуке
- и в Телеграме, а также на
+ в Фейсбуке и в
+ Телеграме, а также на
рассылку лучших материалов, чтобы не пропустить
ничего интересного.
- Рассказывайте о впечатлениях
+ Рассказывайте о впечатлениях{' '}
от материалов открытой редакции, делитесь идеями,
интересными темами, о которых хотели бы узнать больше, и историями, которые нужно
рассказать.
diff --git a/src/styles/app.scss b/src/styles/app.scss
index a61946e4..146c93e0 100644
--- a/src/styles/app.scss
+++ b/src/styles/app.scss
@@ -810,7 +810,7 @@ figure {
.content-index {
@include font-size(1.4rem);
-
+ line-height: 1.4;
margin: 0 3.6rem 2em 0;
@include media-breakpoint-up(md) {