mirror of https://github.com/MISP/MISP
chg: [periodic_notification] Added css rule
parent
d7b07138c1
commit
8d64a57095
|
@ -142,9 +142,9 @@ if (!function_exists('computeLinePositions')) {
|
|||
<?php endforeach ?>
|
||||
</div>
|
||||
<div style="position: relative;">
|
||||
<span style="<?= sprintf('position: absolute; white-space: nowrap; translate: -50%%; left: %spx; top: %spx;', 0, 0) ?>"><?= __('Period 2') ?></span>
|
||||
<span style="<?= sprintf('position: absolute; white-space: nowrap; translate: -50%%; left: %spx; top: %spx;', $canvasWidth/2, 0) ?>"><?= __('Previous period') ?></span>
|
||||
<span style="<?= sprintf('position: absolute; white-space: nowrap; translate: -50%%; left: %spx; top: %spx;', $canvasWidth, 0) ?>"><?= __('Current period') ?></span>
|
||||
<span class="axis-label" style="<?= sprintf('left: %spx; top: %spx;', 0, 0) ?>"><?= __('Period 2') ?></span>
|
||||
<span class="axis-label" style="<?= sprintf('left: %spx; top: %spx;', $canvasWidth / 2, 0) ?>"><?= __('Previous period') ?></span>
|
||||
<span class="axis-label" style="<?= sprintf('left: %spx; top: %spx;', $canvasWidth, 0) ?>"><?= __('Current period') ?></span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
@ -297,4 +297,10 @@ if (!function_exists('computeLinePositions')) {
|
|||
height: 10px;
|
||||
border: 1px solid #000;
|
||||
}
|
||||
|
||||
.axis-label {
|
||||
position: absolute;
|
||||
white-space: nowrap;
|
||||
translate: -50%;
|
||||
}
|
||||
</style>
|
Loading…
Reference in New Issue