Improve layout

This commit is contained in:
Midgard 2020-06-18 13:30:46 +02:00
parent 1fd0f751ee
commit 543c7e76c7
Signed by: midgard
GPG key ID: 511C112F1331BBB4
2 changed files with 6 additions and 4 deletions

View file

@ -115,10 +115,12 @@ tr.line .destination {
} }
.disturbance ul, .disturbance li, .disturbance p { .disturbance ul, .disturbance li, .disturbance p {
margin: 0; margin: 0;
margin-top: 0.2em; margin-top: 0.4em;
padding: 0; padding: 0;
list-style: none; list-style: none;
white-space: pre-wrap; }
.disturbance li:first-child, .disturbance p:first-child {
margin-top: 0.4em;
} }
.disturbance h3, .disturbance h4 { .disturbance h3, .disturbance h4 {
margin: 0; margin: 0;

View file

@ -106,7 +106,7 @@
echo '<div class="disturbance"><h3>Omleidingen</h3><ul>'; echo '<div class="disturbance"><h3>Omleidingen</h3><ul>';
foreach ($this->detours as $detour) { foreach ($this->detours as $detour) {
$description = $detour['omleidingen'][0]; $description = $detour['omleidingen'][0];
echo '<li><h4>' . HTMLTools::makeSafe($description['title']) . '</h4><p>' . HTMLTools::makeSafe($description['omleiding']) . '</p>'; echo '<li><h4>' . HTMLTools::makeSafe($description['title']) . '</h4><p>' . str_replace("\n", "</p><p>", HTMLTools::makeSafe($description['omleiding'])) . '</p>';
if (!empty($detour['verstoordeLijnenSet'])) { if (!empty($detour['verstoordeLijnenSet'])) {
echo '<p class="affectedLines">'; echo '<p class="affectedLines">';