|
Last change
on this file was 9af201e, checked in by MBK <marija.karapandzova@…>, 12 days ago |
|
Fix frontend appearance
|
-
Property mode
set to
100644
|
|
File size:
1.5 KB
|
| Line | |
|---|
| 1 | // styles are inspired by `react-error-overlay`
|
|---|
| 2 |
|
|---|
| 3 | var msgStyles = {
|
|---|
| 4 | error: {
|
|---|
| 5 | backgroundColor: "rgba(206, 17, 38, 0.1)",
|
|---|
| 6 | color: "#fccfcf"
|
|---|
| 7 | },
|
|---|
| 8 | warning: {
|
|---|
| 9 | backgroundColor: "rgba(251, 245, 180, 0.1)",
|
|---|
| 10 | color: "#fbf5b4"
|
|---|
| 11 | }
|
|---|
| 12 | };
|
|---|
| 13 | var iframeStyle = {
|
|---|
| 14 | position: "fixed",
|
|---|
| 15 | top: 0,
|
|---|
| 16 | left: 0,
|
|---|
| 17 | right: 0,
|
|---|
| 18 | bottom: 0,
|
|---|
| 19 | width: "100vw",
|
|---|
| 20 | height: "100vh",
|
|---|
| 21 | border: "none",
|
|---|
| 22 | "z-index": 9999999999
|
|---|
| 23 | };
|
|---|
| 24 | var containerStyle = {
|
|---|
| 25 | position: "fixed",
|
|---|
| 26 | boxSizing: "border-box",
|
|---|
| 27 | left: 0,
|
|---|
| 28 | top: 0,
|
|---|
| 29 | right: 0,
|
|---|
| 30 | bottom: 0,
|
|---|
| 31 | width: "100vw",
|
|---|
| 32 | height: "100vh",
|
|---|
| 33 | fontSize: "large",
|
|---|
| 34 | padding: "2rem 2rem 4rem 2rem",
|
|---|
| 35 | lineHeight: "1.2",
|
|---|
| 36 | whiteSpace: "pre-wrap",
|
|---|
| 37 | overflow: "auto",
|
|---|
| 38 | backgroundColor: "rgba(0, 0, 0, 0.9)",
|
|---|
| 39 | color: "white"
|
|---|
| 40 | };
|
|---|
| 41 | var headerStyle = {
|
|---|
| 42 | color: "#e83b46",
|
|---|
| 43 | fontSize: "2em",
|
|---|
| 44 | whiteSpace: "pre-wrap",
|
|---|
| 45 | fontFamily: "sans-serif",
|
|---|
| 46 | margin: "0 2rem 2rem 0",
|
|---|
| 47 | flex: "0 0 auto",
|
|---|
| 48 | maxHeight: "50%",
|
|---|
| 49 | overflow: "auto"
|
|---|
| 50 | };
|
|---|
| 51 | var dismissButtonStyle = {
|
|---|
| 52 | color: "#ffffff",
|
|---|
| 53 | lineHeight: "1rem",
|
|---|
| 54 | fontSize: "1.5rem",
|
|---|
| 55 | padding: "1rem",
|
|---|
| 56 | cursor: "pointer",
|
|---|
| 57 | position: "absolute",
|
|---|
| 58 | right: 0,
|
|---|
| 59 | top: 0,
|
|---|
| 60 | backgroundColor: "transparent",
|
|---|
| 61 | border: "none"
|
|---|
| 62 | };
|
|---|
| 63 | var msgTypeStyle = {
|
|---|
| 64 | color: "#e83b46",
|
|---|
| 65 | fontSize: "1.2em",
|
|---|
| 66 | marginBottom: "1rem",
|
|---|
| 67 | fontFamily: "sans-serif"
|
|---|
| 68 | };
|
|---|
| 69 | var msgTextStyle = {
|
|---|
| 70 | lineHeight: "1.5",
|
|---|
| 71 | fontSize: "1rem",
|
|---|
| 72 | fontFamily: "Menlo, Consolas, monospace"
|
|---|
| 73 | };
|
|---|
| 74 | export { msgStyles, iframeStyle, containerStyle, headerStyle, dismissButtonStyle, msgTypeStyle, msgTextStyle }; |
|---|
Note:
See
TracBrowser
for help on using the repository browser.