From 4c0d975532ff3096a1f30d708d37b9651c132925 Mon Sep 17 00:00:00 2001 From: denfil Date: Sun, 28 Feb 2016 22:35:25 +0300 Subject: [PATCH] Make clickable icons --- assets/css/app.css | 23 ++++++++++++++++++----- templates/bookmark_links.php | 18 +++++++++--------- templates/item.php | 13 +++++++++---- templates/status_links.php | 25 +++++++++---------------- 4 files changed, 45 insertions(+), 34 deletions(-) diff --git a/assets/css/app.css b/assets/css/app.css index 5df0e10..f80fb6b 100644 --- a/assets/css/app.css +++ b/assets/css/app.css @@ -365,17 +365,30 @@ a.btn-red:hover, } /* icons */ -article[data-item-status="read"] .read-icon:before { +article .read-icon, +article .bookmark-icon { + display: inline-block; + color: #ccc; + font-size: 20px; + width: 20px; + height: 20px; + line-height: 20px; + text-align: center; + margin: 0 1px; + cursor: pointer; +} + +article .read-icon:before { content: "✔"; } -article[data-item-bookmark="1"] .bookmark-icon:before { +article .bookmark-icon:before { content: "★"; } -/* not bookmarked icon only in article view */ -article[data-item-bookmark="0"] .item-infos .bookmark-icon:before { - content: "☆"; +article[data-item-status="read"] .read-icon, +article[data-item-bookmark="1"] .bookmark-icon { + color: #444; } /* counter brackets */ diff --git a/templates/bookmark_links.php b/templates/bookmark_links.php index c105ca8..55f92f6 100644 --- a/templates/bookmark_links.php +++ b/templates/bookmark_links.php @@ -1,17 +1,17 @@ -
  • - + title="" + > - - -
  • \ No newline at end of file + title="" + > + \ No newline at end of file diff --git a/templates/item.php b/templates/item.php index d20ca49..b52ca29 100644 --- a/templates/item.php +++ b/templates/item.php @@ -7,8 +7,8 @@ >

    > - - + $item, 'menu' => $menu, 'offset' => $offset, 'source' => '')) ?> + $item, 'redirect' => $menu, 'offset' => $offset)) ?> - $item, 'menu' => $menu, 'offset' => $offset, 'source' => '')) ?> - $item, 'redirect' => $menu, 'offset' => $offset)) ?> +
  • + +
  • >
    diff --git a/templates/status_links.php b/templates/status_links.php index 00adfeb..e67dc92 100644 --- a/templates/status_links.php +++ b/templates/status_links.php @@ -1,24 +1,17 @@ -
  • - -
  • -
  • - + title="" + > - - -
  • \ No newline at end of file + title="" + > + \ No newline at end of file