From cff3a0eb76bf1b3f831e7fdde3174c227ebd7c41 Mon Sep 17 00:00:00 2001 From: Vishal Date: Fri, 5 Apr 2024 02:20:33 +0530 Subject: [PATCH 1/2] Add missing common styles --- src/common.css | 60 ++++++++++++++++++++++++++++++++++++++++++++++++++ src/index.tsx | 1 + 2 files changed, 61 insertions(+) create mode 100644 src/common.css diff --git a/src/common.css b/src/common.css new file mode 100644 index 000000000..03b50a991 --- /dev/null +++ b/src/common.css @@ -0,0 +1,60 @@ +.portal-load-error { + height: 100vh; + width: 100vw; + display: flex; + flex-direction: column; + justify-content: center; + align-items: center; + gap: 1em; + font-size: 2em; + padding: 2em; + box-sizing: border-box; + text-align: center; + font-weight: 500; + letter-spacing: 0.5px; + color: var(--app-error-light-color); +} + +.portal-load-error .portal-name { + font-style: italic; + color: var(--app-warning-color-dark); +} + +.logout-btn { + position: absolute; + top: 1.5em; + right: 1em; + background: none; + font-size: 1em; + border: 3px solid var(--app-neutral-color); + border-radius: 10px; + padding: 8px 2em; + color: var(--app-warning-color); + font-weight: 500; + letter-spacing: 0.5px; + cursor: pointer; +} + +.logout-btn:hover { + background: var(--app-warning-color-dark); + color: var(--app-form-color); +} + +.portals-list { + display: flex; + justify-content: center; + align-content: center; + gap: 1em; + color: var(--app-primary-light-color); + text-decoration: underline; +} + +.portal-list-item:hover { + cursor: pointer; + color: var(--app-primary-dark-color); +} + +/* Overriding CurrencyTextField style for fixing the alignment issue */ +.MuiInputAdornment-positionStart-457 { + margin-right: 0 !important; +} diff --git a/src/index.tsx b/src/index.tsx index ccf95a88c..6496e06c4 100644 --- a/src/index.tsx +++ b/src/index.tsx @@ -2,6 +2,7 @@ import { render } from 'react-dom'; import { BrowserRouter } from 'react-router-dom'; import TopLevelApp from '../src/samples/TopLevelApp'; +import './common.css'; const outletElement = document.getElementById('outlet'); From bf909fc400167bc43e3d02b1546687b1ae0b1b16 Mon Sep 17 00:00:00 2001 From: Vishal Date: Fri, 5 Apr 2024 20:18:14 +0530 Subject: [PATCH 2/2] Fix alignemnt issue --- src/common.css | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/common.css b/src/common.css index 03b50a991..76541480d 100644 --- a/src/common.css +++ b/src/common.css @@ -55,6 +55,6 @@ } /* Overriding CurrencyTextField style for fixing the alignment issue */ -.MuiInputAdornment-positionStart-457 { +[class*='MuiInputAdornment-positionStart'] { margin-right: 0 !important; }