Skip to content

Commit

Permalink
Revert "Use styled-components for global styles"
Browse files Browse the repository at this point in the history
  • Loading branch information
jhen0409 committed Jul 30, 2023
1 parent c3b8b45 commit 9146b41
Show file tree
Hide file tree
Showing 4 changed files with 58 additions and 45 deletions.
46 changes: 1 addition & 45 deletions app/globalStyles.js
Original file line number Diff line number Diff line change
@@ -1,50 +1,6 @@
import { css, createGlobalStyle } from 'styled-components'

const commonStyles = css`
html,
body {
font-family: monaco, Consolas, Lucida Console, monospace;
overflow: hidden;
font-size: 100%;
margin: 0;
padding: 0;
width: 100%;
height: 100%;
background-color: rgb(53, 59, 70);
}
#root {
width: 100%;
height: 100%;
}
#logs {
position: fixed;
top: 0;
left: 0;
white-space: pre;
}
#loading {
color: #aaa;
font-size: 30px;
display: flex;
height: 100%;
justify-content: center;
align-items: center;
}
@media print {
@page {
size: auto;
margin: 0;
}
body {
position: static;
}
}
.CodeMirror {
font-family: monaco, Consolas, Lucida Console, monospace !important;
}
`
const commonStyles = css``

export const GlobalStyle =
process.platform !== 'darwin'
Expand Down
1 change: 1 addition & 0 deletions dist/app.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
<head>
<meta charset=utf-8>
<title>React Native Debugger</title>
<link href='css/style.css' rel="stylesheet" />
</head>
<body>
<div id="root">
Expand Down
55 changes: 55 additions & 0 deletions dist/css/style.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
html,
body {
font-family: monaco, Consolas, Lucida Console, monospace;
overflow: hidden;
font-size: 100%;
margin: 0;
padding: 0;
width: 100%;
height: 100%;
background-color: rgb(53, 59, 70);
}

#root {
width: 100%;
height: 100%;
}
#logs {
position: fixed;
top: 0;
left: 0;
white-space: pre;
}
#loading {
color: #aaa;
font-size: 30px;
display: flex;
height: 100%;
justify-content: center;
align-items: center;
}

::-webkit-scrollbar {
width: 8px;
height: 8px;
background-color: #555;
}
::-webkit-scrollbar-thumb {
background-color: #333;
}
::-webkit-scrollbar-corner {
background-color: #333;
}

@media print {
@page {
size: auto;
margin: 0;
}
body {
position: static;
}
}
.CodeMirror {
font-family: monaco, Consolas, Lucida Console, monospace !important;
}
1 change: 1 addition & 0 deletions electron/app.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
<head>
<meta charset=utf-8>
<title>React Native Debugger</title>
<link href='../dist/css/style.css' rel="stylesheet" />
</head>
<body>
<div id="root">
Expand Down

0 comments on commit 9146b41

Please sign in to comment.