1
0
mirror of https://github.com/til-schneider/slim-wiki.git synced 2025-01-29 09:57:48 +01:00

Fixed overflow behaviour (e.g. for small screens)

This commit is contained in:
til-schneider 2015-12-28 18:03:06 +01:00
parent d18fb24e08
commit 12860e7b5b
3 changed files with 13 additions and 7 deletions

View File

@ -2,6 +2,7 @@
font-size: 16px;
color: @colorText;
line-height: 1.4;
overflow: hidden;
p, h5, h6 {
margin: 15px 0;

View File

@ -38,6 +38,10 @@ body {
background-color: white;
cursor: default;
a, span {
white-space: nowrap;
}
.main-column {
padding: 15px 0;
border-bottom: 1px solid #ddd;

View File

@ -105,24 +105,25 @@ if ($mode == 'edit') {
if ($mode == 'view' || $mode == 'edit' || $mode == 'noSuchArticle' || $mode == 'createArticle') {
?><nav class="breadcrumbs"><div class="main-column"><?php
if ($data['showCreateUserButton']) {
?><a class="btn btn-default btn-xs pull-right" href="<?php echo $data['requestPath']; ?>?createUser"><?php echo $i18n['button.createUser']; ?></a><?php
}
if ($mode == 'view' || $mode == 'noSuchArticle') {
?><a class="btn btn-default btn-xs pull-right" href="<?php echo $data['requestPath']; ?>?edit"><?php echo $i18n['button.edit']; ?></a><?php
}
$isFirst = true;
foreach ($data['breadcrumbs'] as $item) {
if (! $isFirst) {
echo ' / ';
}
if ($item['active'] || is_null($item['path'])) {
echo $item['name'];
echo '<span>' . $item['name'] . '</span>';
} else {
?><a href="<?php echo $data['basePath'] . $item['path'] . (($mode == 'edit') ? '?edit' : ''); ?>"><?php echo $item['name']; ?></a><?php
}
$isFirst = false;
}
if ($data['showCreateUserButton']) {
?><a class="btn btn-default btn-xs pull-right" href="<?php echo $data['requestPath']; ?>?createUser"><?php echo $i18n['button.createUser']; ?></a><?php
}
if ($mode == 'view' || $mode == 'noSuchArticle') {
?><a class="btn btn-default btn-xs pull-right" href="<?php echo $data['requestPath']; ?>?edit"><?php echo $i18n['button.edit']; ?></a><?php
}
?></div></nav><?php
}