back to top button added in the 3 main themes

This commit is contained in:
Tom Canac 2014-02-01 16:49:27 +01:00
parent 9c74c057a8
commit 4b04d7b16d
3 changed files with 88 additions and 48 deletions

View file

@ -20,7 +20,6 @@
html{ html{
font-size: 62.5%; font-size: 62.5%;
} }
.clear{clear:both;}
body { body {
margin: 0; margin: 0;
padding: 0; padding: 0;
@ -73,7 +72,15 @@
color: #FFCC11; color: #FFCC11;
text-decoration: none; text-decoration: none;
} }
#backtop,
#backtop:hover,
#backtop:active,
.b-lazy {
-webkit-transition:all .2s ease-in;
-ms-transition:all .2s ease-in;
-o-transition:all .2s ease-in;
transition:all .2s ease-in;
}
#gallery { #gallery {
list-style: none; list-style: none;
margin: 0; margin: 0;
@ -104,6 +111,8 @@
width: 100%; width: 100%;
} }
footer { footer {
clear:both;
padding-top: 2rem;
margin: 25px 0px; margin: 25px 0px;
text-align: center; text-align: center;
} }
@ -111,15 +120,25 @@
text-decoration: none; text-decoration: none;
color: #666; color: #666;
} }
/*----Back to top button---*/
#backtop {
display: block;
position: fixed;
bottom: 0;
right: 0;
padding: 1rem 4rem;
background-color: #CC2027;
color: #FFF;
margin: .5%;
border-radius: 4px;
-webkit-box-shadow: 0px 0px 2px -1px #000;
box-shadow: 0px 0px 2px -1px #000;
}
/*----lazyloading---*/ /*----lazyloading---*/
.loader{ .loader{
background: url('images/loader.gif') center center no-repeat; background: url('images/loader.gif') center center no-repeat;
} }
.b-lazy { .b-lazy {
-webkit-transition: opacity 100ms ease-in-out 10ms;
-moz-transition: opacity 100ms ease-in-out 10ms;
-o-transition: opacity 100ms ease-in-out 10ms;
transition: opacity 100ms ease-in-out 10ms;
opacity: 0; opacity: 0;
} }
.b-lazy.b-loaded { .b-lazy.b-loaded {
@ -163,15 +182,13 @@
</header> </header>
<main id="container"> <main id="container">
<ul id="gallery"> <ul id="gallery">
<% thumbnails %> <% thumbnails %>
</ul> </ul>
</main> </main>
<div class="clear"></div> <nav class="clear" role="navigation"><% page_navigation %></nav>
<nav role="navigation"><% page_navigation %></nav> <a href="#top" id="backtop">top</a>
<!-- CREDITS - DO NOT REMOVE OR YOU WILL VOID MiniGal Nano TERMS OF USE -->
<footer role="contentinfo"> <footer role="contentinfo">
Gallery by <% author %>. Gallery by <% author %>.
<a href="https://github.com/tmos/miniboardnano" title="Powered by MiniGal Nano" target="_blank"> <a href="https://github.com/tmos/miniboardnano" title="Powered by MiniGal Nano" target="_blank">

View file

@ -20,9 +20,6 @@
html { html {
font-size:62.5%; font-size:62.5%;
} }
.clear {
clear:both;
}
body { body {
width:100%; width:100%;
margin:0; margin:0;
@ -42,7 +39,8 @@
font-family:Georgia,Lucida,serif; font-family:Georgia,Lucida,serif;
font-style:italic; font-style:italic;
} }
h1 a { h1 a,
a {
color:#E63D24; color:#E63D24;
} }
body > header { body > header {
@ -101,7 +99,11 @@
#gallery li:hover img, #gallery li:hover img,
#gallery li img, #gallery li img,
#gallery li em, #gallery li em,
#gallery li:hover em { #gallery li:hover em
#backtop,
#backtop:hover,
#backtop:active,
.b-lazy {
-webkit-transition:all .2s ease-in; -webkit-transition:all .2s ease-in;
-ms-transition:all .2s ease-in; -ms-transition:all .2s ease-in;
-o-transition:all .2s ease-in; -o-transition:all .2s ease-in;
@ -132,22 +134,33 @@
filter:alpha(opacity=1); filter:alpha(opacity=1);
} }
footer { footer {
margin:25px 0; clear:both;
text-align:center; padding-top: 2rem;
margin: 25px 0px;
text-align: center;
} }
footer a { footer a {
text-decoration:none; text-decoration:none;
color:#666; }
/*----Back to top button---*/
#backtop {
display: block;
position: fixed;
bottom: 0;
right: 0;
padding: 4rem;
background-color: #E63D24;
color: #FFF;
margin: 1rem;
border-radius: 100%;
-webkit-box-shadow: 0px 0px 2px -1px #000;
box-shadow: 0px 0px 2px -1px #000;
} }
/*----lazyloading---*/ /*----lazyloading---*/
.loader{ .loader{
background: url('images/loader.gif') center center no-repeat; background: url('images/loader.gif') center center no-repeat;
} }
.b-lazy { .b-lazy {
-webkit-transition: opacity 100ms ease-in-out 10ms;
-moz-transition: opacity 100ms ease-in-out 10ms;
-o-transition: opacity 100ms ease-in-out 10ms;
transition: opacity 100ms ease-in-out 10ms;
opacity: 0; opacity: 0;
} }
.b-lazy.b-loaded { .b-lazy.b-loaded {
@ -188,17 +201,15 @@
<nav role="navigation"><% breadcrumb_navigation %></nav> <nav role="navigation"><% breadcrumb_navigation %></nav>
</div> </div>
</header> </header>
<a href="#top" id="backtop">top</a>
<main id="container"> <main id="container">
<header><% folder_comment %></header> <header><% folder_comment %></header>
<ul id="gallery"> <ul id="gallery">
<% thumbnails %> <% thumbnails %>
</ul> </ul>
</main> </main>
<div class="clear"></div>
<nav role="navigation"><% page_navigation %></nav> <nav role="navigation"><% page_navigation %></nav>
<!-- CREDITS - DO NOT REMOVE OR YOU WILL VOID MiniGal Nano TERMS OF USE --> <a href="#top" id="backtop">top</a>
<footer role="contentinfo"> <footer role="contentinfo">
Gallery by <% author %>. Gallery by <% author %>.
<a href="https://github.com/tmos/miniboardnano" title="Powered by MiniGal Nano" target="_blank"> <a href="https://github.com/tmos/miniboardnano" title="Powered by MiniGal Nano" target="_blank">

View file

@ -20,17 +20,10 @@
html { html {
font-size:62.5%; font-size:62.5%;
} }
.clear {
clear:both;
}
.loader{
background: url('<% gallery_root %>/img/loader.gif') center center no-repeat
}
body { body {
width:100%; width:100%;
margin:0; margin:0;
padding:0; padding:0;
text-shadow:0 1px 0 #000;
font-family:Helvetica,Arial,sans-serif; font-family:Helvetica,Arial,sans-serif;
font-size:1.5rem; font-size:1.5rem;
color:#FFF; color:#FFF;
@ -73,7 +66,11 @@
#gallery li:hover img, #gallery li:hover img,
#gallery li img, #gallery li img,
#gallery li em, #gallery li em,
#gallery li:hover em { #gallery li:hover em,
#backtop,
#backtop:hover,
#backtop:active,
.b-lazy {
-webkit-transition:all .2s ease-in; -webkit-transition:all .2s ease-in;
-ms-transition:all .2s ease-in; -ms-transition:all .2s ease-in;
-o-transition:all .2s ease-in; -o-transition:all .2s ease-in;
@ -110,18 +107,34 @@
top:0; top:0;
} }
footer { footer {
margin:25px 0; font-weight: bold;
text-align:center; clear:both;
padding-top: 2rem;
margin: 25px 0px;
text-align: center;
}
/*----Back to top button---*/
#backtop {
display: block;
position: fixed;
bottom: 0;
right: 0;
padding: 1rem 4rem;
background-color: #FFF;
color: #0063dc;
font-weight: bold;
-webkit-box-shadow: 0px 0px 2px -1px #000;
box-shadow: 0px 0px 2px -1px #000;
}
#backtop:hover,
#backtop:active{
background-color: #0063dc;
color: #FFF;
padding: 2rem 8rem;
} }
/*----lazyloading---*/ /*----lazyloading---*/
.loader{
background: url('images/loader.gif') center center no-repeat;
}
.b-lazy { .b-lazy {
-webkit-transition: opacity 100ms ease-in-out 10ms;
-moz-transition: opacity 100ms ease-in-out 10ms;
-o-transition: opacity 100ms ease-in-out 10ms;
transition: opacity 100ms ease-in-out 10ms;
opacity: 0; opacity: 0;
} }
.b-lazy.b-loaded { .b-lazy.b-loaded {
@ -155,7 +168,7 @@
</head> </head>
<body> <body>
<header role="banner"> <header id="top" role="banner">
<div id="innerheader"> <div id="innerheader">
<h1><a href="<% gallery_root %>"><% title %></a></h1> <h1><a href="<% gallery_root %>"><% title %></a></h1>
<% messages %> <% messages %>
@ -170,9 +183,8 @@
</ul> </ul>
</main> </main>
<div class="clear"></div>
<nav role="navigation"><% page_navigation %></nav> <nav role="navigation"><% page_navigation %></nav>
<!-- CREDITS - DO NOT REMOVE OR YOU WILL VOID MiniGal Nano TERMS OF USE --> <a href="#top" id="backtop">top</a>
<footer role="contentinfo"> <footer role="contentinfo">
Gallery by <% author %>. Gallery by <% author %>.
<a href="https://github.com/tmos/miniboardnano" title="Powered by MiniGal Nano" target="_blank"> <a href="https://github.com/tmos/miniboardnano" title="Powered by MiniGal Nano" target="_blank">