Make read/bookmark icons more usable in mobile view

This commit is contained in:
Frederic Guillot 2016-03-20 19:00:11 -04:00
parent b0ba363871
commit b8a9c91e79
2 changed files with 26 additions and 2 deletions

View File

@ -369,6 +369,7 @@ article .read-icon,
article .bookmark-icon { article .bookmark-icon {
cursor: pointer; cursor: pointer;
color: #aaa; color: #aaa;
font-weight: 200;
} }
article[data-item-bookmark="0"] .bookmark-icon:before { article[data-item-bookmark="0"] .bookmark-icon:before {
@ -955,4 +956,23 @@ html[dir="rtl"] span.items-count:before {
section li { section li {
font-size: 0.85em; font-size: 0.85em;
} }
.item-icons {
display: block;
float: right;
}
.item-title {
display: block;
}
.item-icons .read-icon,
.item-icons .bookmark-icon {
font-size: 1.7em;
margin-left: 15px;
}
.item-infos .bookmark-icon {
font-size: 2.0em;
}
} }

View File

@ -7,8 +7,11 @@
<?= $hide ? 'data-hide="true"' : '' ?> <?= $hide ? 'data-hide="true"' : '' ?>
> >
<h2 <?= Helper\is_rtl($item) ? 'dir="rtl"' : 'dir="ltr"' ?>> <h2 <?= Helper\is_rtl($item) ? 'dir="rtl"' : 'dir="ltr"' ?>>
<span class="item-icons">
<?= \Template\load('bookmark_links', array('item' => $item, 'menu' => $menu, 'offset' => $offset, 'source' => '')) ?> <?= \Template\load('bookmark_links', array('item' => $item, 'menu' => $menu, 'offset' => $offset, 'source' => '')) ?>
<?= \Template\load('status_links', array('item' => $item, 'redirect' => $menu, 'offset' => $offset)) ?> <?= \Template\load('status_links', array('item' => $item, 'redirect' => $menu, 'offset' => $offset)) ?>
</span>
<span class="item-title">
<?= Helper\favicon($favicons, $item['feed_id']) ?> <?= Helper\favicon($favicons, $item['feed_id']) ?>
<?php if ($display_mode === 'full' || $item_title_link == 'original'): ?> <?php if ($display_mode === 'full' || $item_title_link == 'original'): ?>
<a class="original" rel="noreferrer" target="_blank" <a class="original" rel="noreferrer" target="_blank"
@ -23,6 +26,7 @@
title="<?= Helper\escape($item['title']) ?>" title="<?= Helper\escape($item['title']) ?>"
><?= Helper\escape($item['title']) ?></a> ><?= Helper\escape($item['title']) ?></a>
<?php endif ?> <?php endif ?>
</span>
</h2> </h2>
<ul class="item-menu"> <ul class="item-menu">
<?php if ($menu !== 'feed-items'): ?> <?php if ($menu !== 'feed-items'): ?>