From 64907a84e6e7273889d2a47002dbc15682771558 Mon Sep 17 00:00:00 2001 From: kvakazyambra Date: Wed, 9 Nov 2022 22:51:41 +0300 Subject: [PATCH] Fixed content index control style --- .../icons/content-index-control-expanded.svg | 3 ++ public/icons/content-index-control.svg | 4 +++ src/components/Pages/about/GuidePage.tsx | 12 ++++++-- src/components/Pages/about/HelpPage.tsx | 12 ++++++-- src/components/Pages/about/ManifestPage.tsx | 12 ++++++-- src/components/Pages/about/TermsOfUsePage.tsx | 12 ++++++-- src/styles/app.scss | 30 ++++++++++++++++++- 7 files changed, 72 insertions(+), 13 deletions(-) create mode 100644 public/icons/content-index-control-expanded.svg create mode 100644 public/icons/content-index-control.svg diff --git a/public/icons/content-index-control-expanded.svg b/public/icons/content-index-control-expanded.svg new file mode 100644 index 00000000..01980281 --- /dev/null +++ b/public/icons/content-index-control-expanded.svg @@ -0,0 +1,3 @@ + + + diff --git a/public/icons/content-index-control.svg b/public/icons/content-index-control.svg new file mode 100644 index 00000000..7d2861d0 --- /dev/null +++ b/public/icons/content-index-control.svg @@ -0,0 +1,4 @@ + + + + diff --git a/src/components/Pages/about/GuidePage.tsx b/src/components/Pages/about/GuidePage.tsx index 3b55056f..4d216ea6 100644 --- a/src/components/Pages/about/GuidePage.tsx +++ b/src/components/Pages/about/GuidePage.tsx @@ -1,6 +1,7 @@ import { createSignal, Show } from 'solid-js' import { MainLayout } from '../../Layouts/MainLayout' import { t } from '../../../utils/intl' +import { Icon } from '../../Nav/Icon' export const GuidePage = () => { const title = t('How it works') @@ -22,9 +23,14 @@ export const GuidePage = () => {
-

-

diff --git a/src/components/Pages/about/HelpPage.tsx b/src/components/Pages/about/HelpPage.tsx index 6e0275bd..ce728c2c 100644 --- a/src/components/Pages/about/HelpPage.tsx +++ b/src/components/Pages/about/HelpPage.tsx @@ -1,6 +1,7 @@ import { createSignal, Show } from 'solid-js' import { MainLayout } from '../../Layouts/MainLayout' import { Donate } from '../../Discours/Donate' +import { Icon } from '../../Nav/Icon' // const title = t('Support us') @@ -19,9 +20,14 @@ export const HelpPage = () => {
-

-

diff --git a/src/components/Pages/about/ManifestPage.tsx b/src/components/Pages/about/ManifestPage.tsx index 4b42465e..9834ad81 100644 --- a/src/components/Pages/about/ManifestPage.tsx +++ b/src/components/Pages/about/ManifestPage.tsx @@ -4,6 +4,7 @@ import { Modal } from '../../Nav/Modal' import { Feedback } from '../../Discours/Feedback' import Subscribe from '../../Discours/Subscribe' import Opener from '../../Nav/Opener' +import { Icon } from '../../Nav/Icon' // title={t('Manifest')} @@ -23,9 +24,14 @@ export const ManifestPage = () => {
-

-

diff --git a/src/components/Pages/about/TermsOfUsePage.tsx b/src/components/Pages/about/TermsOfUsePage.tsx index 9ea7e9bc..67293a2c 100644 --- a/src/components/Pages/about/TermsOfUsePage.tsx +++ b/src/components/Pages/about/TermsOfUsePage.tsx @@ -1,5 +1,6 @@ import { createSignal, Show } from 'solid-js' import { MainLayout } from '../../Layouts/MainLayout' +import { Icon } from '../../Nav/Icon' // const title = t('Terms of use') @@ -17,9 +18,14 @@ export const TermsOfUsePage = () => {
-

-

diff --git a/src/styles/app.scss b/src/styles/app.scss index 7258a3ed..5697045b 100644 --- a/src/styles/app.scss +++ b/src/styles/app.scss @@ -32,7 +32,7 @@ html { body { font-family: Muller, Arial, Helvetica, sans-serif; font-size: 2rem; - line-height: 1.4; + line-height: 1.6; min-height: 100%; text-size-adjust: 100%; @@ -239,6 +239,30 @@ button { } } +.button--content-index { + border: 2px solid #fff; + background: none; + height: 3.2rem; + padding: 0; + width: 3.2rem; + + .icon, + img { + vertical-align: middle; + width: auto; + } + + &:hover { + .icon { + opacity: 0.5; + } + } +} + +.content-index-control-container { + text-align: right; +} + form { .pretty-form__item { position: relative; @@ -654,6 +678,10 @@ astro-island { li { margin-bottom: 1em; } + + a { + border: none; + } } .load-more-container {