changeset 2487:3530bd246d26

Fixes display of permalinks always, to onHover and onFocus of headlines
author sharky93 <rishabhr123@gmail.com>
date Sun, 15 Sep 2013 01:34:04 +0530
parents f338be977912
children dc05bbf035d3
files MoinMoin/themes/basic/static/css/basic.css MoinMoin/themes/basic/static/custom-less/basic.less
diffstat 2 files changed, 31 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/themes/basic/static/css/basic.css	Sun Sep 15 01:22:55 2013 +0530
+++ b/MoinMoin/themes/basic/static/css/basic.css	Sun Sep 15 01:34:04 2013 +0530
@@ -4208,6 +4208,24 @@
     display: none !important;
   }
 }
+h1:hover .moin-permalink,
+h2:hover .moin-permalink,
+h3:hover .moin-permalink,
+h4:hover .moin-permalink,
+h5:hover .moin-permalink,
+h6:hover .moin-permalink,
+h1:focus .moin-permalink,
+h2:focus .moin-permalink,
+h3:focus .moin-permalink,
+h4:focus .moin-permalink,
+h5:focus .moin-permalink,
+h6:focus .moin-permalink {
+  display: inline;
+  text-decoration: none;
+}
+.moin-permalink {
+  display: none;
+}
 .moin-logo {
   text-align: center;
   position: relative;
--- a/MoinMoin/themes/basic/static/custom-less/basic.less	Sun Sep 15 01:22:55 2013 +0530
+++ b/MoinMoin/themes/basic/static/custom-less/basic.less	Sun Sep 15 01:34:04 2013 +0530
@@ -3,6 +3,19 @@
 // ---- Customising the top navbar breakpoint
 @grid-float-breakpoint: @screen-medium;
 
+h1, h2, h3, h4, h5, h6 {
+  &:hover, &:focus {
+    .moin-permalink {
+      display: inline;
+      text-decoration: none;
+    }
+  }
+}
+
+.moin-permalink {
+  display: none;
+}
+
 .moin-logo {
   .text-center;
   position: relative;