Improve css for preview full content

This commit is contained in:
Frederic Guillot 2015-05-17 13:14:33 -04:00
parent 729c2bfb42
commit a78cf795b6
2 changed files with 20 additions and 1 deletions

View File

@ -534,6 +534,25 @@ nav .active a {
color: #666; color: #666;
} }
/* item preview full-content */
.preview-full-content {
overflow: auto;
margin-bottom: 10px;
color: #666;
}
.preview-full-content p {
margin-top: 15px;
margin-bottom: 15px;
}
.preview-full-content img {
max-width: 100%;
display: block;
margin-top: 10px;
margin-bottom: 10px;
}
/* item */ /* item */
.item { .item {
padding-left: 5px; padding-left: 5px;

View File

@ -16,7 +16,7 @@
><?= Helper\escape($item['title']) ?></a> ><?= Helper\escape($item['title']) ?></a>
</h2> </h2>
<?php if ($display_mode === 'full'): ?> <?php if ($display_mode === 'full'): ?>
<div class="preview" <?= Helper\is_rtl($item) ? 'dir="rtl"' : 'dir="ltr"' ?>> <div class="preview-full-content" <?= Helper\is_rtl($item) ? 'dir="rtl"' : 'dir="ltr"' ?>>
<?= $item['content'] ?> <?= $item['content'] ?>
</div> </div>
<?php else: ?> <?php else: ?>