aboutsummaryrefslogtreecommitdiff
path: root/public/themes
diff options
context:
space:
mode:
authorGravatar Alexandre Alapetite <alexandre@alapetite.fr> 2013-11-04 14:15:59 -0800
committerGravatar Alexandre Alapetite <alexandre@alapetite.fr> 2013-11-04 14:15:59 -0800
commitaff58561e94396f2078c4f724cc50ab8acf26898 (patch)
tree6aad9fbd05ed6b3cbd690ae7b71e2d3785193f54 /public/themes
parentcabacaff97f45ab858cc68fe00b0dd2585b6af02 (diff)
parente7dd4829799e9e14456e1b1fc3aca20412394798 (diff)
Merge pull request #214 from Alkarex/updateUnreads
Mise à jour automatique des nombres d'articles non lus et favoris
Diffstat (limited to 'public/themes')
-rw-r--r--public/themes/default/freshrss.css39
-rw-r--r--public/themes/flat-design/freshrss.css35
2 files changed, 40 insertions, 34 deletions
diff --git a/public/themes/default/freshrss.css b/public/themes/default/freshrss.css
index bf4b0ab09..144c77c92 100644
--- a/public/themes/default/freshrss.css
+++ b/public/themes/default/freshrss.css
@@ -93,9 +93,7 @@
text-align: center;
list-style: none;
}
- .categories .all,
- .categories .favorites,
- .categories .category {
+ .category {
display: block;
padding: 5px 0;
width: 220px;
@@ -105,12 +103,23 @@
white-space: nowrap;
text-overflow: ellipsis;
}
- .categories .all .btn,
- .categories .favorites .btn,
- .categories .category .btn:first-child {
+ .category .btn:first-child {
width: 195px;
position: relative;
}
+ .category .btn:first-child:not([data-unread="0"]):after {
+ content: attr(data-unread);
+ position: absolute;
+ top: 3px; right: 3px;
+ padding: 1px 5px;
+ background: #ccc;
+ color: #fff;
+ font-size: 90%;
+ border: 1px solid #bbb;
+ border-radius: 5px;
+ box-shadow: 1px 3px 3px #aaa inset;
+ text-shadow: 0 0 1px #aaa;
+ }
.categories .feeds {
width: 100%;
margin: 0;
@@ -146,6 +155,12 @@
white-space: nowrap;
text-overflow: ellipsis;
}
+ .feed:not([data-unread="0"]) {
+ font-weight:bold;
+ }
+ .feed:not([data-unread="0"]):before {
+ content: "(" attr(data-unread) ") ";
+ }
.categories .feeds .dropdown .dropdown-menu {
left: 0;
}
@@ -163,18 +178,6 @@
background-color: #fff;
border-radius: 3px;
}
- .categories .notRead {
- position: absolute;
- top: 3px; right: 3px;
- padding: 1px 5px;
- background: #ccc;
- color: #fff;
- font-size: 90%;
- border: 1px solid #bbb;
- border-radius: 5px;
- box-shadow: 1px 3px 3px #aaa inset;
- text-shadow: 0 0 1px #aaa;
- }
.post {
padding: 10px 50px;
diff --git a/public/themes/flat-design/freshrss.css b/public/themes/flat-design/freshrss.css
index ede188ccb..60c454bbe 100644
--- a/public/themes/flat-design/freshrss.css
+++ b/public/themes/flat-design/freshrss.css
@@ -92,9 +92,7 @@ body {
text-align: center;
list-style: none;
}
- .categories .all,
- .categories .favorites,
- .categories .category {
+ .category {
display: block;
padding: 5px 0;
width: 220px;
@@ -104,12 +102,21 @@ body {
white-space: nowrap;
text-overflow: ellipsis;
}
- .categories .all .btn,
- .categories .favorites .btn,
- .categories .category .btn:first-child {
+ .category .btn:first-child {
width: 195px;
position: relative;
}
+ .category .btn:first-child:not([data-unread="0"]):after {
+ content: attr(data-unread);
+ position: absolute;
+ top: 5px; right: 0px;
+ padding: 0 5px;
+ color: #fff;
+ font-size: 90%;
+ background: #3498DB;
+ border-left: 3px solid #2980B9;
+ border-radius: 5px 0 0 5px;
+ }
.categories .feeds {
width: 220px;
margin: 0 auto;
@@ -138,6 +145,12 @@ body {
white-space: nowrap;
text-overflow: ellipsis;
}
+ .feed:not([data-unread="0"]) {
+ font-weight:bold;
+ }
+ .feed:not([data-unread="0"]):before {
+ content: "(" attr(data-unread) ") ";
+ }
.categories .feeds .dropdown .dropdown-menu {
left: 0;
}
@@ -155,16 +168,6 @@ body {
background-color: #95a5a6;
border-radius: 3px;
}
- .categories .notRead {
- position: absolute;
- top: 5px; right: 0px;
- padding: 0 5px;
- color: #fff;
- font-size: 90%;
- background: #3498DB;
- border-left: 3px solid #2980B9;
- border-radius: 5px 0 0 5px;
- }
.categories .btn:hover .notRead,
.categories .btn.active .notRead {
background: #2980B9;