Skip to content

Commit 53bffc2

Browse files
author
p01
committed
Style update: better colors for the zebra table, hover and highlighting
1 parent 3abcfbd commit 53bffc2

File tree

2 files changed

+10
-20
lines changed

2 files changed

+10
-20
lines changed

src/resource-manager/resource_style.css

Lines changed: 7 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -312,13 +312,14 @@ a.external:hover
312312
white-space:nowrap;
313313
font-weight:normal;
314314
min-width:100%;
315-
display: inline-block;
315+
display: block;
316316
font-size:11px;
317317
line-height:18px;
318318
vertical-align: middle;
319319
}
320320

321321

322+
322323
.resource-tree-documents, .resource-tree-groups, .resource-tree-resources
323324
{
324325
padding:0;
@@ -327,25 +328,20 @@ a.external:hover
327328
/* zebra resources */
328329
.resource-tree-windows
329330
{
330-
background-image: linear-gradient(0deg, rgba(0,0,0,.05) 50%, transparent 0%);
331+
background-image: linear-gradient(0deg, rgba(0,0,0,.031) 50%, transparent 0%);
331332
background-size: 100% 36px;
332333
background-repeat:repeat;
333334
}
334335

335-
h2.resource-highlight
336-
{
337-
background-color:yellow;
338-
}
339336
.resource-tree li > h2:hover
340337
{
341-
background-color:orange;
338+
background-color: rgba(137, 173, 232, 0.196);
342339
}
343340

344-
.wat:before
341+
.resource-tree li > h2.resource-highlight
345342
{
346-
margin-left:-18px
347-
content:url(../ui-images/error-console-warning.png);
348-
padding:1px;
343+
color:#fff;
344+
background-color:rgba(55, 115, 211, 0.702);
349345
}
350346

351347
span.resource-tree-count

src/resource-manager/resource_templates.js

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -140,8 +140,7 @@ templates.resource_tree =
140140
'('+resources.length+')',
141141
'class','resource-tree-count'
142142
],
143-
'class','resource-tree-document'+(d.sameOrigin?'':' resource-different-origin'),
144-
'title',JSON.stringify(d)
143+
'class','resource-tree-document'+(d.sameOrigin?'':' resource-different-origin')
145144
],
146145
[
147146
this.resource_groups(context, resources),
@@ -219,12 +218,9 @@ templates.resource_tree =
219218
],
220219
'handler','resource-detail',
221220
'data-resource-id',''+r.id,
222-
'data-tooltip',!r.url&&'js-script-select',
223-
'data-tooltip-text',!r.url&&JSON.stringify(r),
224221
'class','resource-tree-resource'
225222
+(r.sameOrigin?'':' resource-different-origin')
226223
+(context.selectedResourceID==r.id?' resource-highlight':'')
227-
+(!r.url?' wat':'')
228224
]
229225
]);
230226
}
@@ -292,7 +288,7 @@ templates.resource_detail =
292288
{
293289
var info =
294290
{
295-
'human_url':resource.human_url,
291+
'human_url':resource.short_distinguisher,
296292
'type':resource.type,
297293
'mimeType':resource.data.mimeType,
298294
'size':resource.size||resource.data.contentLength||resource.data.content.length,
@@ -328,9 +324,7 @@ templates.resource_detail =
328324
text:function(resource)
329325
{
330326
return (
331-
[
332-
['pre',resource.data.content.stringData],
333-
['ptr',new Option(JSON.stringify(resource)).innerHTML]
327+
['pre',resource.data.content.stringData
334328
]);
335329
},
336330

0 commit comments

Comments
 (0)