| 1 |
- {"ast":null,"code":"// styles are inspired by `react-error-overlay`\n\nvar msgStyles = {\n error: {\n backgroundColor: \"rgba(206, 17, 38, 0.1)\",\n color: \"#fccfcf\"\n },\n warning: {\n backgroundColor: \"rgba(251, 245, 180, 0.1)\",\n color: \"#fbf5b4\"\n }\n};\nvar iframeStyle = {\n position: \"fixed\",\n top: 0,\n left: 0,\n right: 0,\n bottom: 0,\n width: \"100vw\",\n height: \"100vh\",\n border: \"none\",\n \"z-index\": 9999999999\n};\nvar containerStyle = {\n position: \"fixed\",\n boxSizing: \"border-box\",\n left: 0,\n top: 0,\n right: 0,\n bottom: 0,\n width: \"100vw\",\n height: \"100vh\",\n fontSize: \"large\",\n padding: \"2rem 2rem 4rem 2rem\",\n lineHeight: \"1.2\",\n whiteSpace: \"pre-wrap\",\n overflow: \"auto\",\n backgroundColor: \"rgba(0, 0, 0, 0.9)\",\n color: \"white\"\n};\nvar headerStyle = {\n color: \"#e83b46\",\n fontSize: \"2em\",\n whiteSpace: \"pre-wrap\",\n fontFamily: \"sans-serif\",\n margin: \"0 2rem 2rem 0\",\n flex: \"0 0 auto\",\n maxHeight: \"50%\",\n overflow: \"auto\"\n};\nvar dismissButtonStyle = {\n color: \"#ffffff\",\n lineHeight: \"1rem\",\n fontSize: \"1.5rem\",\n padding: \"1rem\",\n cursor: \"pointer\",\n position: \"absolute\",\n right: 0,\n top: 0,\n backgroundColor: \"transparent\",\n border: \"none\"\n};\nvar msgTypeStyle = {\n color: \"#e83b46\",\n fontSize: \"1.2em\",\n marginBottom: \"1rem\",\n fontFamily: \"sans-serif\"\n};\nvar msgTextStyle = {\n lineHeight: \"1.5\",\n fontSize: \"1rem\",\n fontFamily: \"Menlo, Consolas, monospace\"\n};\nexport { msgStyles, iframeStyle, containerStyle, headerStyle, dismissButtonStyle, msgTypeStyle, msgTextStyle };","map":null,"metadata":{},"sourceType":"module","externalDependencies":[]}
|