Skip to content

Commit

Permalink
monitoring/CSS: Don't use text-small mixin for the selection info
Browse files Browse the repository at this point in the history
refs #5543
  • Loading branch information
lippserd committed Nov 2, 2015
1 parent 4c576a7 commit ecfeb4f
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 8 deletions.
@@ -1,6 +1,15 @@
<?php
$helpMessage = $this->translate('Press and hold the Ctrl key while clicking on rows to select multiple rows or press and hold the Shift key to select a range of rows.', 'multiselection');
$helpMessage = $this->translate(
'Press and hold the Ctrl key while clicking on rows to select multiple rows or press and hold the Shift key to'
.' select a range of rows',
'Multi-selection help'
);
?>
<div class="selection-info text-small" title="<?= $this->escape($helpMessage) ?>">
<span class="selection-info-count">0</span> <?= $this->translate('row(s) selected', 'multiselection') ?>
<div class="selection-info" title="<?= $this->escape($helpMessage) ?>">
<?= sprintf(
/// TRANSLATORS: Please leave %s as it is because the selection counter is wrapped in a span tag for updating
/// the counter via JavaScript
$this->translate('%s row(s) selected', 'Multi-selection count'),
'<span class="selection-info-count">0</span>'
) ?>
</div>
11 changes: 11 additions & 0 deletions modules/monitoring/public/css/module.less
Expand Up @@ -14,6 +14,17 @@
}
}

// Multi-selection info
.selection-info {
float: right;
font-size: @font-size-small;
padding: @vertical-padding / 2 0;

&:hover {
cursor: help;
}
}

.hosts-summary,
.services-summary {
.v-center();
Expand Down
5 changes: 0 additions & 5 deletions public/css/icinga/main.less
Expand Up @@ -200,9 +200,4 @@ table.listing-table {
.pull-right();
padding: @vertical-padding / 2 0;
}

.selection-info {
.pull-right();
padding: @vertical-padding / 2 0;
}
}

0 comments on commit ecfeb4f

Please sign in to comment.