Skip to content

Commit 3872b18

Browse files
vishalshrm539Vishal
andauthored
Add missing common styles (#463)
* Add missing common styles * Fix alignemnt issue --------- Co-authored-by: Vishal <[email protected]>
1 parent 76e022f commit 3872b18

File tree

2 files changed

+61
-0
lines changed

2 files changed

+61
-0
lines changed

src/common.css

Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
.portal-load-error {
2+
height: 100vh;
3+
width: 100vw;
4+
display: flex;
5+
flex-direction: column;
6+
justify-content: center;
7+
align-items: center;
8+
gap: 1em;
9+
font-size: 2em;
10+
padding: 2em;
11+
box-sizing: border-box;
12+
text-align: center;
13+
font-weight: 500;
14+
letter-spacing: 0.5px;
15+
color: var(--app-error-light-color);
16+
}
17+
18+
.portal-load-error .portal-name {
19+
font-style: italic;
20+
color: var(--app-warning-color-dark);
21+
}
22+
23+
.logout-btn {
24+
position: absolute;
25+
top: 1.5em;
26+
right: 1em;
27+
background: none;
28+
font-size: 1em;
29+
border: 3px solid var(--app-neutral-color);
30+
border-radius: 10px;
31+
padding: 8px 2em;
32+
color: var(--app-warning-color);
33+
font-weight: 500;
34+
letter-spacing: 0.5px;
35+
cursor: pointer;
36+
}
37+
38+
.logout-btn:hover {
39+
background: var(--app-warning-color-dark);
40+
color: var(--app-form-color);
41+
}
42+
43+
.portals-list {
44+
display: flex;
45+
justify-content: center;
46+
align-content: center;
47+
gap: 1em;
48+
color: var(--app-primary-light-color);
49+
text-decoration: underline;
50+
}
51+
52+
.portal-list-item:hover {
53+
cursor: pointer;
54+
color: var(--app-primary-dark-color);
55+
}
56+
57+
/* Overriding CurrencyTextField style for fixing the alignment issue */
58+
[class*='MuiInputAdornment-positionStart'] {
59+
margin-right: 0 !important;
60+
}

src/index.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
import { render } from 'react-dom';
33
import { BrowserRouter } from 'react-router-dom';
44
import TopLevelApp from '../src/samples/TopLevelApp';
5+
import './common.css';
56

67
const outletElement = document.getElementById('outlet');
78

0 commit comments

Comments
 (0)