diff options
-rw-r--r-- | css/news.css | 26 | ||||
l--------- | news | 1 | ||||
-rw-r--r-- | templates/part.items.php | 7 |
3 files changed, 23 insertions, 11 deletions
diff --git a/css/news.css b/css/news.css index 7083cdcd8..45b426082 100644 --- a/css/news.css +++ b/css/news.css @@ -657,25 +657,37 @@ div.add_parentfolder { */ .feed_item .secondary_item_utils { display: none; - color: #aaa; float: right; margin: 0 1.2em; } + .feed_item .secondary_item_utils, .feed_item .secondary_item_utils a { + color: #000; + font-weight: bold; + } + .feed_item:hover .secondary_item_utils { display: block; - } + } + + .feed_item .secondary_item_utils li { + display: inline-block; + padding-left: 25px; + } + + .feed_item li.share { + background-image: url('%webroot%/core/img/actions/share.svg'); + background-repeat: no-repeat; + background-position: right center; + padding-right: 20px; + } - /* - .feed_item a.share { - background:url('%webroot%/core/img/actions/share.svg') no-repeat center; - } - */ .feed_item:hover .secondary_item_utils li.keep_unread { cursor: pointer; } .feed_item .secondary_item_utils li input[type=checkbox]{ + margin-left: 5px; } @@ -0,0 +1 @@ +/srv/http/apps/news/
\ No newline at end of file diff --git a/templates/part.items.php b/templates/part.items.php index 58c7459da..45a45a876 100644 --- a/templates/part.items.php +++ b/templates/part.items.php @@ -51,11 +51,10 @@ foreach($items as $item) { echo '<div class="body">' . $item->getBody() . '</div>'; - echo '<div><a class="share" data-item-type="news_item" data-item="' . $item->getId() . '" title="' . $l->t('Share') . - '" data-possible-permissions="' . (OCP\Share::PERMISSION_READ | OCP\Share::PERMISSION_SHARE) . '"/></div>'; - echo '<div class="bottom_utils">'; - echo '<ul class="secondary_item_utils">'; + echo '<ul class="secondary_item_utils">'; + echo '<li class="share"><a data-item-type="news_item" data-item="' . $item->getId() . '" title="' . $l->t('Share') . + '" data-possible-permissions="' . (OCP\Share::PERMISSION_READ | OCP\Share::PERMISSION_SHARE) . '" href="#">' . $l->t('Share') . '</a></li>'; echo '<li class="keep_unread">' . $l->t('Keep unread') . '<input type="checkbox" /></li>'; echo '</ul>'; echo '</div>'; |