Merge pull request #291 from staabm/lessempty

Adjusted rendering of empty superglobals to take less visual space
This commit is contained in:
Denis Sokolov
2015-06-05 17:35:44 +03:00
2 changed files with 7 additions and 3 deletions
+4 -1
View File
@@ -261,10 +261,13 @@ header {
hyphens: auto;
}
.data-table .empty {
.data-table span.empty {
color: rgba(0, 0, 0, .3);
font-style: italic;
}
.data-table label.empty {
display: inline;
}
.handler {
padding: 10px;
@@ -3,8 +3,8 @@
<div class="data-table-container" id="data-tables">
<?php foreach ($tables as $label => $data): ?>
<div class="data-table" id="sg-<?php echo $tpl->escape($tpl->slug($label)) ?>">
<label><?php echo $tpl->escape($label) ?></label>
<?php if (!empty($data)): ?>
<label><?php echo $tpl->escape($label) ?></label>
<table class="data-table">
<thead>
<tr>
@@ -20,7 +20,8 @@
<?php endforeach ?>
</table>
<?php else: ?>
<span class="empty">empty</span>
<label class="empty"><?php echo $tpl->escape($label) ?></label>
<span class="empty">empty</span>
<?php endif ?>
</div>
<?php endforeach ?>