Skip to content

Commit 9146b41

Browse files
committed
Revert "Use styled-components for global styles"
1 parent c3b8b45 commit 9146b41

4 files changed

Lines changed: 58 additions & 45 deletions

File tree

app/globalStyles.js

Lines changed: 1 addition & 45 deletions
Original file line numberDiff line numberDiff line change
@@ -1,50 +1,6 @@
11
import { css, createGlobalStyle } from 'styled-components'
22

3-
const commonStyles = css`
4-
html,
5-
body {
6-
font-family: monaco, Consolas, Lucida Console, monospace;
7-
overflow: hidden;
8-
font-size: 100%;
9-
margin: 0;
10-
padding: 0;
11-
width: 100%;
12-
height: 100%;
13-
background-color: rgb(53, 59, 70);
14-
}
15-
16-
#root {
17-
width: 100%;
18-
height: 100%;
19-
}
20-
#logs {
21-
position: fixed;
22-
top: 0;
23-
left: 0;
24-
white-space: pre;
25-
}
26-
#loading {
27-
color: #aaa;
28-
font-size: 30px;
29-
display: flex;
30-
height: 100%;
31-
justify-content: center;
32-
align-items: center;
33-
}
34-
35-
@media print {
36-
@page {
37-
size: auto;
38-
margin: 0;
39-
}
40-
body {
41-
position: static;
42-
}
43-
}
44-
.CodeMirror {
45-
font-family: monaco, Consolas, Lucida Console, monospace !important;
46-
}
47-
`
3+
const commonStyles = css``
484

495
export const GlobalStyle =
506
process.platform !== 'darwin'

dist/app.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
<head>
44
<meta charset=utf-8>
55
<title>React Native Debugger</title>
6+
<link href='css/style.css' rel="stylesheet" />
67
</head>
78
<body>
89
<div id="root">

dist/css/style.css

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
html,
2+
body {
3+
font-family: monaco, Consolas, Lucida Console, monospace;
4+
overflow: hidden;
5+
font-size: 100%;
6+
margin: 0;
7+
padding: 0;
8+
width: 100%;
9+
height: 100%;
10+
background-color: rgb(53, 59, 70);
11+
}
12+
13+
#root {
14+
width: 100%;
15+
height: 100%;
16+
}
17+
#logs {
18+
position: fixed;
19+
top: 0;
20+
left: 0;
21+
white-space: pre;
22+
}
23+
#loading {
24+
color: #aaa;
25+
font-size: 30px;
26+
display: flex;
27+
height: 100%;
28+
justify-content: center;
29+
align-items: center;
30+
}
31+
32+
::-webkit-scrollbar {
33+
width: 8px;
34+
height: 8px;
35+
background-color: #555;
36+
}
37+
::-webkit-scrollbar-thumb {
38+
background-color: #333;
39+
}
40+
::-webkit-scrollbar-corner {
41+
background-color: #333;
42+
}
43+
44+
@media print {
45+
@page {
46+
size: auto;
47+
margin: 0;
48+
}
49+
body {
50+
position: static;
51+
}
52+
}
53+
.CodeMirror {
54+
font-family: monaco, Consolas, Lucida Console, monospace !important;
55+
}

electron/app.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
<head>
44
<meta charset=utf-8>
55
<title>React Native Debugger</title>
6+
<link href='../dist/css/style.css' rel="stylesheet" />
67
</head>
78
<body>
89
<div id="root">

0 commit comments

Comments
 (0)