Skip to content

Commit

Permalink
Add missing common styles
Browse files Browse the repository at this point in the history
  • Loading branch information
Vishal committed Apr 4, 2024
1 parent 76e022f commit cff3a0e
Show file tree
Hide file tree
Showing 2 changed files with 61 additions and 0 deletions.
60 changes: 60 additions & 0 deletions src/common.css
Original file line number Diff line number Diff line change
@@ -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;
}
1 change: 1 addition & 0 deletions src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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');

Expand Down

0 comments on commit cff3a0e

Please sign in to comment.