From a9a16ce8b15d35811990bff36dc3023e3cef67df Mon Sep 17 00:00:00 2001 From: kvakazyambra Date: Thu, 16 Nov 2023 01:21:04 +0300 Subject: [PATCH] Convert donate form styles to css module --- .../Discours/Donate.module.scss} | 54 +++++-------------- src/components/Discours/Donate.tsx | 38 ++++++++----- src/components/Views/StaticPage.tsx | 3 +- src/pages/about/guide.page.tsx | 2 +- src/pages/about/help.page.tsx | 2 +- src/pages/about/manifest.page.tsx | 2 +- 6 files changed, 41 insertions(+), 60 deletions(-) rename src/{styles/help.scss => components/Discours/Donate.module.scss} (77%) diff --git a/src/styles/help.scss b/src/components/Discours/Donate.module.scss similarity index 77% rename from src/styles/help.scss rename to src/components/Discours/Donate.module.scss index e39ef129..010d164d 100644 --- a/src/styles/help.scss +++ b/src/components/Discours/Donate.module.scss @@ -1,6 +1,6 @@ -.donate-form input, -.donate-form label, -.donate-form .btn { +.donateForm input, +.donateForm label, +.donateForm .btn { font-family: Muller, Arial, Helvetica, sans-serif; border: solid 1px #595959; border-radius: 3px; @@ -10,7 +10,7 @@ text-align: center; } -.donate-form input { +.donateForm input { &::-webkit-outer-spin-button, &::-webkit-inner-spin-button { appearance: none; @@ -48,7 +48,7 @@ } } -.donate-form .btn { +.donateForm .btn { cursor: pointer; flex: 1; padding: 5px 10px; @@ -63,7 +63,7 @@ } } -.btn-group { +.btnGroup { input { &:first-child + .btn { border-top-right-radius: 0; @@ -76,12 +76,12 @@ } } - .payment-type { + .paymentType { width: 50%; } } -.donate-buttons-container { +.donateButtonsContainer { align-items: center; display: flex; flex: 1; @@ -113,14 +113,14 @@ } } -.donate-input { +.donateInput { @include media-breakpoint-down(sm) { flex: 1 100%; margin: 0 !important; } } -.send-btn { +.sendBtn { border: 2px solid #000; background-color: #000; color: #fff !important; @@ -137,40 +137,10 @@ } } -.payment-choose { +.paymentChoose { display: flex; } -.form-group:not(:first-child) { +.formGroup:not(:first-child) { margin-top: 20px; } - -.discours-help .modalwrap__inner { - max-width: 500px; -} - -/* - -.payment-form { -padding: 0 !important; - -.button { - display: block; - padding-bottom: 1.5rem; - padding-top: 1.5rem; - width: 100%; -} -} - -.delimiter-container { -position: relative; -} - -.delimiter { -left: 100%; -line-height: 1; -position: absolute; -top: 50%; -transform: translate(-50%, calc(-50% - 0.8rem)); -} -*/ diff --git a/src/components/Discours/Donate.tsx b/src/components/Discours/Donate.tsx index 71ab5dd7..a1b445d5 100644 --- a/src/components/Discours/Donate.tsx +++ b/src/components/Discours/Donate.tsx @@ -1,10 +1,12 @@ -import '../../styles/help.scss' +import { clsx } from 'clsx' import { createSignal, onMount } from 'solid-js' import { useLocalize } from '../../context/localize' import { useSnackbar } from '../../context/snackbar' import { showModal } from '../../stores/ui' +import styles from './Donate.module.scss' + export const Donate = () => { const { t } = useLocalize() const once = '' @@ -119,27 +121,27 @@ export const Donate = () => { } return ( -