amélioration des thèmes

This commit is contained in:
Tom Canac 2014-01-12 14:09:31 +01:00
parent d8f459769c
commit ef74392a6f
4 changed files with 223 additions and 249 deletions

View file

@ -19,7 +19,7 @@ Please enjoy this free script!
$thumbs_pr_page = "39"; //Number of thumbnails on a single page $thumbs_pr_page = "39"; //Number of thumbnails on a single page
$gallery_width = "80%"; //Gallery width. Eg: "500px" or "70%" $gallery_width = "80%"; //Gallery width. Eg: "500px" or "70%"
$backgroundcolor = "white"; //This provides a quick way to change your gallerys background to suit your website. Use either main colors like "black", "white", "yellow" etc. Or HEX colors, eg. "#AAAAAA" $backgroundcolor = "white"; //This provides a quick way to change your gallerys background to suit your website. Use either main colors like "black", "white", "yellow" etc. Or HEX colors, eg. "#AAAAAA"
$templatefile = "rounded"; //Template filename (must be placed in 'templates' folder) $templatefile = "board"; //Template filename (must be placed in 'templates' folder)
$title = "MiniBoardNano gallery"; // Text to be displayed in browser titlebar $title = "MiniBoardNano gallery"; // Text to be displayed in browser titlebar
$author = "John Doe"; $author = "John Doe";
$folder_color = "black"; // Color of folder icons: blue / black / vista / purple / green / grey $folder_color = "black"; // Color of folder icons: blue / black / vista / purple / green / grey

View file

@ -25,37 +25,37 @@
background: #E7E6E0; background: #E7E6E0;
color: #333333; color: #333333;
} }
a { a {
color: #333333; color: #333333;
font-weight: bold; font-weight: bold;
text-decoration: none; text-decoration: none;
} }
h1 { h1 {
margin: 20px 0 0 0;
font-family: Georgia, Lucida, serif; font-family: Georgia, Lucida, serif;
font-style: italic; font-style: italic;
margin: 20px 0 0 0;
} }
h1 a{ h1 a{
color: #CC2027; color: #CC2027;
} }
body > header{ body > header{
background-color:#FFF; background-color:#FFF;
padding: 1px; padding: 1px 0 0 0;
margin-bottom: 15px; margin-bottom: 1rem;
} }
#container, #innerheader{ #container, #innerheader{
max-width: <% gallery_width %>; max-width: <% gallery_width %>;
margin: 0px auto; margin: 0px auto;
} }
header aside{
padding: 2rem 0;
}
img { img {
border: none; border: none;
} }
nav { nav {
font-size: 1.3em; font-size: 1.3em;
padding: 15px 0px; padding-top: 2rem;
} }
body > nav { body > nav {
text-align: center; text-align: center;
@ -106,7 +106,6 @@
text-decoration: none; text-decoration: none;
color: #666; color: #666;
} }
/*----responsive----*/ /*----responsive----*/
#gallery li { #gallery li {
width: 24%; width: 24%;
@ -140,11 +139,12 @@
<h1><a href="<% gallery_root %>"><% title %></a></h1> <h1><a href="<% gallery_root %>"><% title %></a></h1>
<% messages %> <% messages %>
<nav role="navigation"><% breadcrumb_navigation %></nav> <nav role="navigation"><% breadcrumb_navigation %></nav>
<aside><% folder_comment %></aside>
</div> </div>
</header> </header>
<main id="container"> <main id="container">
<header><% folder_comment %></header>
<ul id="gallery"> <ul id="gallery">
<% thumbnails %> <% thumbnails %>
</ul> </ul>

View file

@ -15,11 +15,9 @@
html { html {
font-size:62.5%; font-size:62.5%;
} }
.clear { .clear {
clear:both; clear:both;
} }
body { body {
width:100%; width:100%;
margin:0; margin:0;
@ -29,86 +27,72 @@ body {
color:#FFF; color:#FFF;
background:#3B3A37; background:#3B3A37;
} }
a { a {
text-decoration:none; text-decoration:none;
font-weight:bold; font-weight:bold;
color:#FFF; color:#FFF;
} }
h1 { h1 {
margin:20px 0 0; margin:20px 0 0;
font-family:Georgia,Lucida,serif; font-family:Georgia,Lucida,serif;
font-style:italic; font-style:italic;
} }
h1 a { h1 a {
color:#E63D24; color:#E63D24;
} }
body > header { body > header {
margin-bottom:15px;
padding:1px; padding:1px;
text-align:center; text-align:center;
} }
#container, #container,
#innerheader { #innerheader {
margin:0 auto; margin:0 auto;
max-width:<% gallery_width %>; max-width:<% gallery_width %>;
} }
#container header {
padding:2rem 0;
}
img { img {
border:none; border:none;
} }
nav { nav {
padding:15px 0; padding-top:15px;
font-size:1.3em; font-size:1.3em;
} }
body > nav { body > nav {
text-align:center; text-align:center;
} }
#folder_comment { #folder_comment {
margin-bottom:10px; margin-bottom:10px;
} }
#folder_comment a { #folder_comment a {
text-decoration:none; text-decoration:none;
color:#FFCC11; color:#FFCC11;
} }
#gallery { #gallery {
margin:0; margin:0;
padding:0; padding:0;
list-style:none; list-style:none;
} }
#gallery li, #gallery li,
#gallery li img { #gallery li img {
border-radius:4px; border-radius:4px;
} }
#gallery li { #gallery li {
float:left; float:left;
position:relative; position:relative;
margin:.5%; margin:.5%;
} }
#gallery li img { #gallery li img {
width:100%; width:100%;
border-radius:100%; border-radius:100%;
-webkit-box-shadow:0 0 2px -1px #000; -webkit-box-shadow:0 0 2px -1px #000;
box-shadow:0 0 2px -1px #000; box-shadow:0 0 2px -1px #000;
} }
#gallery li:hover img { #gallery li:hover img {
-webkit-box-shadow:0 0 5px 0 #000; -webkit-box-shadow:0 0 5px 0 #000;
box-shadow:0 0 5px 0 #000; box-shadow:0 0 5px 0 #000;
} }
#gallery li:hover img, #gallery li:hover img,
#gallery li img, #gallery li img,
#gallery li em, #gallery li em,
@ -118,43 +102,38 @@ body > nav {
-o-transition:all .2s ease-in; -o-transition:all .2s ease-in;
transition:all .2s ease-in; transition:all .2s ease-in;
} }
#gallery em { #gallery em {
position:absolute; position:absolute;
top:-1px; top:-1px;
bottom:-1px; bottom:-1px;
zoom:1; zoom:1;
width:100%; width:100%;
margin:-0.5px 0 0 -0.5px;
padding:40% 0; padding:40% 0;
border:1px solid #000;
border-radius:100%; border-radius:100%;
text-align:center; text-align:center;
font-family:Georgia,Lucida,serif; font-family:Georgia,Lucida,serif;
font-size:2.5rem; font-size:2.5rem;
font-style:italic; font-style:italic;
color:#FFF; color:#FFF;
margin: -0.5px 0 0 -0.5px;
border:1px solid black;
opacity:0; opacity:0;
background:#000; background:#000;
filter:alpha(opacity=0); filter:alpha(opacity=0);
} }
#gallery li:hover em { #gallery li:hover em {
zoom:1; zoom:1;
opacity:1; opacity:1;
filter:alpha(opacity=1); filter:alpha(opacity=1);
} }
footer { footer {
margin:25px 0; margin:25px 0;
text-align:center; text-align:center;
} }
footer a { footer a {
text-decoration:none; text-decoration:none;
color:#666; color:#666;
} }
/*----responsive----*/ /*----responsive----*/
#gallery li { #gallery li {
width:24%; width:24%;

View file

@ -15,60 +15,66 @@
html { html {
font-size:62.5%; font-size:62.5%;
} }
.clear{clear:both;} .clear {
clear:both;
}
body { body {
width:100%;
margin:0; margin:0;
padding:0; padding:0;
width: 100%; text-shadow:0 1px 0 #000;
font-size: 1.5rem;
font-family:Helvetica,Arial,sans-serif; font-family:Helvetica,Arial,sans-serif;
background: #2B2B2B; font-size:1.5rem;
color: #BBB; color:#FFF;
background:#232321;
} }
a,
a, h1 a { h1 a {
color: #CE4D45;
font-weight: bold;
text-decoration:none; text-decoration:none;
color:#FF0084;
} }
h1 { h1 {
margin: 20px 0 0 0; margin:20px 0 0;
font-weight:normal;
} }
body > header { body > header {
padding:1px; padding:1px;
text-align:center; text-align:center;
} }
#container, #innerheader{ #container,
/*max-width: <% gallery_width %>;*/ #innerheader {
margin: 0px auto; margin:0 auto;
} }
img { #container header {
border: none; padding:2rem;
} }
nav { nav {
padding-top:15px;
font-size:1.3em; font-size:1.3em;
padding: 15px 0px;
} }
body > nav { body > nav {
text-align:center; text-align:center;
} }
#folder_comment #folder_comment {
{
margin-bottom:10px; margin-bottom:10px;
} }
#folder_comment a { #folder_comment a {
color: #FFCC11;
text-decoration:none; text-decoration:none;
color:#FFCC11;
}
#gallery li:hover img,
#gallery li img,
#gallery li em,
#gallery li:hover em {
-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;
margin:0; margin:0;
padding:0; padding:0;
} list-style:none;
#gallery li, #gallery li img {
} }
#gallery li { #gallery li {
float:left; float:left;
@ -79,37 +85,26 @@
width:100%; width:100%;
} }
#gallery em { #gallery em {
padding: 40% 0%;
display:block; display:block;
position:absolute; position:absolute;
bottom:0px;
width: 100%;
top:100%; top:100%;
color: #FFF; bottom:0;
background: rgba(0,0,0, .9); width:100%;
padding:40% 0;
text-align:center; text-align:center;
font-family:Georgia,Lucida,serif; font-family:Georgia,Lucida,serif;
font-style: italic;
font-size:2.5rem; font-size:2.5rem;
-webkit-transition: all .2s ease-in; font-style:italic;
-moz-transition: all .2s ease-in; color:#FFF;
-ms-transition: all .2s ease-in; background:rgba(0,0,0,.9);
-o-transition: all .2s ease-in;
transition: all .2s ease-in;
} }
#gallery li:hover em { #gallery li:hover em {
top:0%; top:0;
-webkit-transition: all .2s ease-in;
-moz-transition: all .2s ease-in;
-ms-transition: all .2s ease-in;
-o-transition: all .2s ease-in;
transition: all .2s ease-in;
} }
footer { footer {
margin: 25px 0px; margin:25px 0;
text-align:center; text-align:center;
} }
/*----responsive----*/ /*----responsive----*/
#gallery li { #gallery li {
width:25%; width:25%;