Skip to content

Commit 38d201d

Browse files
committed
move inspector json styles into source and customize to match chrome UI
1 parent 9dd1b2e commit 38d201d

2 files changed

Lines changed: 102 additions & 20 deletions

File tree

views/devpanel.css

Lines changed: 102 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
/* Basic reset, typography, and icons */
12
body, html {
23
font-family: 'Lucida Grande', 'Segoe UI', Tahoma, sans-serif;
34
height: 100%;
@@ -45,23 +46,7 @@ body, html {
4546
content: "\e602";
4647
}
4748

48-
49-
.scroll-panel {
50-
overflow: scroll;
51-
border-top-color: #E6E6E6;
52-
padding: 10px;
53-
max-height: 100%;
54-
}
55-
56-
pre.scroll-panel {
57-
border-width: 1px 0 0 0;
58-
font-size: 11px;
59-
font-family: Menlo, monospace;
60-
background: #fff;
61-
border-radius: 0;
62-
max-height: 90%;
63-
}
64-
49+
/*Side tabs */
6550
.sidetab-column {
6651
height: 100%;
6752
padding: 0;
@@ -106,6 +91,8 @@ pre.scroll-panel {
10691
display: none;
10792
}
10893

94+
/* Main panel and tab content */
95+
10996
.panel-column {
11097
height: 100%;
11198
position: static;
@@ -122,6 +109,12 @@ pre.scroll-panel {
122109
margin-top: 0;
123110
}
124111

112+
.tabs-left {
113+
border: 0;
114+
}
115+
116+
/* Server log toolbar */
117+
125118
.server-log-buttons {
126119
height: 23px;
127120
font-size: 12px;
@@ -143,6 +136,96 @@ pre.scroll-panel {
143136
background-color: inherit;
144137
}
145138

146-
.tabs-left {
147-
border: 0;
139+
/* Panel typography and layout */
140+
.scroll-panel {
141+
overflow: scroll;
142+
border-top-color: #E6E6E6;
143+
padding: 10px;
144+
max-height: 100%;
145+
}
146+
147+
pre.scroll-panel, .inspector-json {
148+
border-width: 1px 0 0 0;
149+
font-size: 11px;
150+
font-family: Menlo, monospace;
151+
background: #fff;
152+
border-radius: 0;
153+
max-height: 90%;
154+
}
155+
156+
.inspector-json * {
157+
white-space: pre-wrap;
158+
word-wrap: break-word;
159+
}
160+
161+
.inspector-json ol, .inspector-json ul {
162+
list-style-type: none;
163+
padding: 0 0 0 2em;
164+
}
165+
166+
.inspector-json > ol,
167+
.inspector-json > ul {
168+
padding: 0;
169+
border-left: none;
170+
}
171+
172+
.inspector-json var {
173+
font-style: normal;
174+
}
175+
176+
.inspector-json li > strong,
177+
.inspector-json li > a {
178+
margin-right: 8px;
179+
}
180+
181+
.inspector-json li > a {
182+
text-decoration: none;
183+
color: rgb(136, 19, 145);
184+
}
185+
186+
.inspector-json li > a:after {
187+
content: ':';
188+
}
189+
190+
.inspector-json li > strong {
191+
color: rgb(136, 19, 145);
192+
}
193+
194+
.inspector-json li strong {
195+
font-weight: normal;
196+
}
197+
198+
.inspector-json li.object > a:before,
199+
.inspector-json li.array > a:before {
200+
content: '\25BC'; /* down pointing triangle */
201+
display: inline-block;
202+
width: 10px;
203+
margin-right: 5px;
204+
color: #808080;
205+
}
206+
207+
.inspector-json li.collapsed > a:before {
208+
content: '\25B6'; /* right pointing triangle */
209+
}
210+
211+
.inspector-json li.collapsed > ol,
212+
.inspector-json li.collapsed > ul {
213+
display: none;
214+
}
215+
216+
.inspector-json li > span {
217+
color: rgb(196, 26, 22);
218+
}
219+
220+
.inspector-json li > em {
221+
color: rgb(48, 57, 66);
222+
font-style: normal;
223+
}
224+
225+
.inspector-json li > var {
226+
color: rgb(28, 0, 207);
227+
}
228+
229+
.inspector-json li > i {
230+
color: rgb( 150, 150, 150 );
148231
}

views/devpanel.html

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111
<script src="../bower_components/Inspector-JSON/inspector-json.js"></script>
1212
<script src="../bower_components/bootstrap/dist/js/bootstrap.min.js"></script>
1313

14-
<link href="../bower_components/Inspector-JSON/inspector-json.css" media="all" rel="stylesheet" type="text/css">
1514
<link href="../bower_components/bootstrap/dist/css/bootstrap.min.css" media="all" rel="stylesheet" type="text/css">
1615
<link href="../bower_components/bootstrap-vertical-tabs/bootstrap.vertical-tabs.min.css" media="all" rel="stylesheet" type="text/css">
1716
<link href="devpanel.css" media="all" rel="stylesheet" type="text/css">

0 commit comments

Comments
 (0)