]> git.immae.eu Git - github/wallabag/wallabag.git/commitdiff
Externalize top link style
authorNumEricR <eric.github@gmail.com>
Sun, 25 Aug 2013 14:41:20 +0000 (16:41 +0200)
committerNumEricR <eric.github@gmail.com>
Sun, 25 Aug 2013 14:42:04 +0000 (16:42 +0200)
tpl/_head.twig
tpl/css/style.css

index 6a8258a2dcbea9c827e0aabbf8657476018d90fe..cab317a84f780cf9f420b31430bbe23e7158438d 100644 (file)
@@ -9,4 +9,4 @@
         <link rel="stylesheet" href="./tpl/css/print.css" media="print">
         <link href='//fonts.googleapis.com/css?family=Roboto' rel='stylesheet' type='text/css'>
         <script src="./tpl/js/jquery-2.0.3.min.js"></script>
-        <script type="text/javascript">$(document).ready(function(){$("body").prepend('<a href="#top" class="top_link" title="{% trans "back to top" %}"><img src="./tpl/img/{{ constant("THEME") }}/backtotop.png" alt={% trans "back to top" %}"/></a>');$(".top_link").css({position:"fixed",right:"15px",bottom:"15px",display:"none",padding:"20px",background:"#ccc","-moz-border-radius":"40px","-webkit-border-radius":"40px","border-radius":"40px",opacity:"0.9","z-index":"2000"});$(window).scroll(function(){posScroll=$(document).scrollTop();if(posScroll>=400)$(".top_link").fadeIn(600);else $(".top_link").fadeOut(600)})})</script>
\ No newline at end of file
+        <script type="text/javascript">$(document).ready(function(){$("body").prepend('<a href="#top" class="top_link" title="{% trans "back to top" %}"><img src="./tpl/img/{{ constant("THEME") }}/backtotop.png" alt={% trans "back to top" %}"/></a>');$(window).scroll(function(){posScroll=$(document).scrollTop();if(posScroll>=400)$(".top_link").fadeIn(600);else $(".top_link").fadeOut(600)})})</script>
\ No newline at end of file
index 3d3c538572cf4bd616d5535aea72df3d304af3a7..7633534c3a428b307bae56880cdafa45164c8dbc 100644 (file)
@@ -236,6 +236,20 @@ a, a:hover, a:visited {
     cursor: move;
 }
 
+.top_link {
+    position: fixed;
+    right: 15px;
+    bottom: 15px;
+    display: none;
+    padding: 20px;
+    background: #ccc;
+    -moz-border-radius: 40px;
+    -webkit-border-radius: 40px;
+    border-radius: 40px;
+    opacity: 0.9;
+    z-index: 2000;
+}
+
 footer {
     clear: both;
 }