summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBernhard Posselt <nukeawhale@gmail.com>2013-07-18 23:32:54 +0200
committerBernhard Posselt <nukeawhale@gmail.com>2013-07-18 23:32:54 +0200
commitfa3b8c8e541d03af0eace146e3dc9bfd6f5566d4 (patch)
tree09e77486056d85b98cfabf7aa385e78d55c06dba
parent5ac1c9feaccc8ff811e081d45c4d6d730a6fac45 (diff)
add additional html heading tag for plugins
-rw-r--r--css/items.css25
-rw-r--r--templates/part.items.php5
2 files changed, 19 insertions, 11 deletions
diff --git a/css/items.css b/css/items.css
index a94f0aa76..b99d07789 100644
--- a/css/items.css
+++ b/css/items.css
@@ -117,19 +117,26 @@
}
/**
+ * Heading which is used for plugins only
+ */
+ .feed_item .item_heading {
+ display: none;
+ }
+
+ /**
* Feed title
*/
- .feed_item h1.item_title {
+ .feed_item .item_title {
font-size: 19px;
margin: 0 182px 0 42px;
font-weight: bold;
word-wrap: break-word;
}
- .feed_item h1.item_title a {
+ .feed_item .item_title a {
color: #222;
}
- .feed_item h1.item_title a:hover {
+ .feed_item .item_title a:hover {
color: #222;
text-decoration: underline;
}
@@ -137,18 +144,18 @@
/**
* Feed title when read
*/
- .feed_item.read h1.item_title {
+ .feed_item.read .item_title {
font-weight: normal;
}
- .feed_item.read h1.item_title a {
+ .feed_item.read .item_title a {
color: #888;
}
/**
* Title of the feed to which the item belongs
*/
- .feed_item h2.item_feed_title {
+ .feed_item .item_feed_title {
color: #aaa;
font-size: 15px;
margin-left: 42px;
@@ -157,17 +164,17 @@
/**
* Author of the item
*/
- .feed_item h2.item_author {
+ .feed_item .item_author {
color: #aaa;
font-size: 15px;
margin: 3px 0 0 42px;
}
- .feed_item h2.item_author a {
+ .feed_item .item_author a {
color: inherit;
}
- .feed_item h2.item_author a:hover {
+ .feed_item .item_author a:hover {
text-decoration: underline;
}
diff --git a/templates/part.items.php b/templates/part.items.php
index b6527dfff..f20e80c75 100644
--- a/templates/part.items.php
+++ b/templates/part.items.php
@@ -2,7 +2,7 @@
<li class="feed_item"
ng-repeat="item in itemBusinessLayer.getAll() | orderBy:['-id'] "
ng-class="{ read: item.isRead() }"
- data-id="{{ item.id }}"
+ data-id="{{ item.id }}">
<h2 class="item_date">
<span class="timeago" title="{{item.pubDate*1000|date:'dd-MM-yyyy'}}">
{{ getRelativeDate(item.pubDate) }}
@@ -19,7 +19,8 @@
</ul>
</div>
- <h1 class="item_title" title="{{ item.title|ocRemoveTags:['em', 'b', 'i'] }}">
+ <h1 class="item_heading">{{ item.title|ocRemoveTags:['em', 'b', 'i'] }}</h1>
+ <h1 class="item_title">
<a ng-click="itemBusinessLayer.setRead(item.id)"
target="_blank" ng-href="{{ item.url|ocSanitizeURL }}">
{{ item.title|ocRemoveTags:['em', 'b', 'i'] }}