From 0fc8dd4628dc4496100c05e9d6e5a9cf36d153ed Mon Sep 17 00:00:00 2001 From: rom-1 <37835829+rom-1@users.noreply.github.com> Date: Sat, 2 Jan 2021 17:39:13 +0100 Subject: [PATCH] Code Style Cleanup as per suggestion Code Style Cleanup as per suggesstion from Frenzie, https://github.com/FreshRSS/Extensions/pull/98#discussion_r550897011 --- xExtension-CustomCSS/README.md | 36 +++++++++++++++++----------------- 1 file changed, 18 insertions(+), 18 deletions(-) diff --git a/xExtension-CustomCSS/README.md b/xExtension-CustomCSS/README.md index ece1d32..ec58b86 100644 --- a/xExtension-CustomCSS/README.md +++ b/xExtension-CustomCSS/README.md @@ -52,34 +52,34 @@ Mobile screen resolution: The Top Menu within the mobile view might look a little bit cluttered, depending on the theme. The following CSS rules allow to hide unneccessary top menu buttons or input boxes. ```css - #nav_menu_actions /* Hides "Actions" Menu in Mobile View */ - { - display:none; - } +/* Hides "Actions" Menu in Mobile View */ +#nav_menu_actions { + display: none; +} - #nav_menu_views /* Hides "Views" Menu in Mobile View */ - { - display:none; - } +/* Hides "Views" Menu in Mobile View */ +#nav_menu_views { + display: none; +} - .nav_menu .item.search /* Hides "Search" Input Box in Mobile View */ - { - display:none; - } +/* Hides "Search" Input Box in Mobile View */ +.nav_menu .item.search { + display: none; +} - #mark-read-menu .dropdown /* Hides the Dropdown Menu Button next to the "Mark all read" Button in Mobile View */ - { - display:none; - } +/* Hides the Dropdown Menu Button next to the "Mark all read" Button in Mobile View */ +#mark-read-menu .dropdown { + display: none; +} ``` ### Sidebar: Move the unread count to the right side of a feed Some people prefer to have the unread count number of a feed on the right side after the feed's name, instead placing it between the favicon and the feeds name, as this is also the common location in other tools (e.g. e-mail inbox folder). Use this CSS code to move the number to the right side. ```css .feed .item-title:not([data-unread="0"])::before { - display:none + display: none } .feed .item-title:not([data-unread="0"])::after { - content: " (" attr(data-unread) ")"; + content: " (" attr(data-unread) ")"; } ```