mirror of
https://github.com/til-schneider/slim-wiki.git
synced 2025-08-04 23:57:30 +02:00
Fixed overflow behaviour (e.g. for small screens)
This commit is contained in:
@@ -2,6 +2,7 @@
|
|||||||
font-size: 16px;
|
font-size: 16px;
|
||||||
color: @colorText;
|
color: @colorText;
|
||||||
line-height: 1.4;
|
line-height: 1.4;
|
||||||
|
overflow: hidden;
|
||||||
|
|
||||||
p, h5, h6 {
|
p, h5, h6 {
|
||||||
margin: 15px 0;
|
margin: 15px 0;
|
||||||
|
@@ -38,6 +38,10 @@ body {
|
|||||||
background-color: white;
|
background-color: white;
|
||||||
cursor: default;
|
cursor: default;
|
||||||
|
|
||||||
|
a, span {
|
||||||
|
white-space: nowrap;
|
||||||
|
}
|
||||||
|
|
||||||
.main-column {
|
.main-column {
|
||||||
padding: 15px 0;
|
padding: 15px 0;
|
||||||
border-bottom: 1px solid #ddd;
|
border-bottom: 1px solid #ddd;
|
||||||
|
@@ -105,24 +105,25 @@ if ($mode == 'edit') {
|
|||||||
|
|
||||||
if ($mode == 'view' || $mode == 'edit' || $mode == 'noSuchArticle' || $mode == 'createArticle') {
|
if ($mode == 'view' || $mode == 'edit' || $mode == 'noSuchArticle' || $mode == 'createArticle') {
|
||||||
?><nav class="breadcrumbs"><div class="main-column"><?php
|
?><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;
|
$isFirst = true;
|
||||||
foreach ($data['breadcrumbs'] as $item) {
|
foreach ($data['breadcrumbs'] as $item) {
|
||||||
if (! $isFirst) {
|
if (! $isFirst) {
|
||||||
echo ' / ';
|
echo ' / ';
|
||||||
}
|
}
|
||||||
if ($item['active'] || is_null($item['path'])) {
|
if ($item['active'] || is_null($item['path'])) {
|
||||||
echo $item['name'];
|
echo '<span>' . $item['name'] . '</span>';
|
||||||
} else {
|
} else {
|
||||||
?><a href="<?php echo $data['basePath'] . $item['path'] . (($mode == 'edit') ? '?edit' : ''); ?>"><?php echo $item['name']; ?></a><?php
|
?><a href="<?php echo $data['basePath'] . $item['path'] . (($mode == 'edit') ? '?edit' : ''); ?>"><?php echo $item['name']; ?></a><?php
|
||||||
}
|
}
|
||||||
$isFirst = false;
|
$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
|
?></div></nav><?php
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user