Skip to content

Commit 6a38db7

Browse files
author
p01
committed
Style tweaks
1 parent 47d229a commit 6a38db7

File tree

2 files changed

+13
-8
lines changed

2 files changed

+13
-8
lines changed

src/resource-manager/resource_style.css

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -287,7 +287,7 @@ a.external:hover
287287
.resource-tree li > h2
288288
{
289289
margin:0;
290-
padding:0;
290+
padding:0 4px;
291291
white-space:nowrap;
292292
font-weight:normal;
293293
min-width:100%;
@@ -299,19 +299,22 @@ a.external:hover
299299

300300

301301

302-
.resource-tree-documents, .resource-tree-groups, .resource-tree-resources
302+
.resource-tree-documents,
303+
.resource-tree-groups,
304+
.resource-tree-resources
303305
{
304306
padding:0;
305307
margin:0;
306308
}
307309
/* zebra resources */
308310
.resource-tree-windows
309311
{
310-
width:100%;
312+
width: 100%;
311313
background-image: linear-gradient(0deg, rgba(0,0,0,.031) 50%, transparent 0%);
312314
background-size: 100% 36px;
313-
background-repeat:repeat;
314-
display:table;
315+
background-repeat: repeat;
316+
display: table;
317+
margin:4px 0;
315318
}
316319

317320
.resource-tree li > h2:hover
@@ -334,7 +337,7 @@ span.resource-tree-document-label,
334337
span.resource-tree-group-label
335338
{
336339
font-weight:bold;
337-
padding:0 0 0 18px;
340+
padding:0 0 0 21px;
338341
line-height:18px;
339342
display:inline-block;
340343
background-position:1px 1px;

src/resource-manager/resource_templates.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ templates.resource_tree =
1717
ui_strings.S_HTTP_LABEL_FILTER_OTHER
1818
],
1919

20+
DEPTH_IDENTATION: 18,
21+
2022
_expandCollapseExtras:function(context, pivotID, depth)
2123
{
2224
var hash = context.collapsed;
@@ -43,7 +45,7 @@ templates.resource_tree =
4345
'input',
4446
'type','button',
4547
'class','button-expand-collapse',
46-
'style', 'margin-left:'+ depth*18 +'px;'
48+
'style', 'margin-left:'+ depth*this.DEPTH_IDENTATION +'px;'
4749
]
4850
}
4951
});
@@ -218,7 +220,7 @@ templates.resource_tree =
218220
['span',
219221
(r.filename || r.short_distinguisher || r.url || 'NO URL'),
220222
'class','resource-tree-resource-label',
221-
'style', 'margin-left:'+ depth*18 +'px;'
223+
'style', 'margin-left:'+ (1+depth)*this.DEPTH_IDENTATION +'px;'
222224
],
223225
'handler','resource-detail',
224226
'data-resource-id',String(r.id),

0 commit comments

Comments
 (0)