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

@ -12,171 +12,150 @@
<link rel="stylesheet" href="<% gallery_root %>css/mediaboxAdvWhite.css" type="text/css" media="screen" /> <link rel="stylesheet" href="<% gallery_root %>css/mediaboxAdvWhite.css" type="text/css" media="screen" />
<style type="text/css"> <style type="text/css">
html { html {
font-size:62.5%; font-size:62.5%;
} }
.clear {
.clear { clear:both;
clear:both; }
} body {
width:100%;
body { margin:0;
width:100%; padding:0;
margin:0; font-family:Helvetica,Arial,sans-serif;
padding:0; font-size:1.5rem;
font-family:Helvetica,Arial,sans-serif; color:#FFF;
font-size:1.5rem; background:#3B3A37;
color:#FFF; }
background:#3B3A37; a {
} text-decoration:none;
font-weight:bold;
a { color:#FFF;
text-decoration:none; }
font-weight:bold; h1 {
color:#FFF; margin:20px 0 0;
} font-family:Georgia,Lucida,serif;
font-style:italic;
h1 { }
margin:20px 0 0; h1 a {
font-family:Georgia,Lucida,serif; color:#E63D24;
font-style:italic; }
} body > header {
padding:1px;
h1 a { text-align:center;
color:#E63D24; }
} #container,
#innerheader {
body > header { margin:0 auto;
margin-bottom:15px; max-width:<% gallery_width %>;
padding:1px; }
text-align:center; #container header {
} padding:2rem 0;
}
#container, img {
#innerheader { border:none;
margin:0 auto; }
max-width:<% gallery_width %>; nav {
} padding-top:15px;
font-size:1.3em;
img { }
border:none; body > nav {
} text-align:center;
}
nav { #folder_comment {
padding:15px 0; margin-bottom:10px;
font-size:1.3em; }
} #folder_comment a {
text-decoration:none;
body > nav { color:#FFCC11;
text-align:center; }
} #gallery {
margin:0;
#folder_comment { padding:0;
margin-bottom:10px; list-style:none;
} }
#gallery li,
#folder_comment a { #gallery li img {
text-decoration:none; border-radius:4px;
color:#FFCC11; }
} #gallery li {
float:left;
#gallery { position:relative;
margin:0; margin:.5%;
padding:0; }
list-style:none; #gallery li img {
} width:100%;
border-radius:100%;
#gallery li, -webkit-box-shadow:0 0 2px -1px #000;
#gallery li img { box-shadow:0 0 2px -1px #000;
border-radius:4px; }
} #gallery li:hover img {
-webkit-box-shadow:0 0 5px 0 #000;
#gallery li { box-shadow:0 0 5px 0 #000;
float:left; }
position:relative; #gallery li:hover img,
margin:.5%; #gallery li img,
} #gallery li em,
#gallery li:hover em {
#gallery li img { -webkit-transition:all .2s ease-in;
width:100%; -ms-transition:all .2s ease-in;
border-radius:100%; -o-transition:all .2s ease-in;
-webkit-box-shadow:0 0 2px -1px #000; transition:all .2s ease-in;
box-shadow:0 0 2px -1px #000; }
} #gallery em {
position:absolute;
#gallery li:hover img { top:-1px;
-webkit-box-shadow:0 0 5px 0 #000; bottom:-1px;
box-shadow:0 0 5px 0 #000; zoom:1;
} width:100%;
margin:-0.5px 0 0 -0.5px;
#gallery li:hover img, padding:40% 0;
#gallery li img, border:1px solid #000;
#gallery li em, border-radius:100%;
#gallery li:hover em { text-align:center;
-webkit-transition:all .2s ease-in; font-family:Georgia,Lucida,serif;
-ms-transition:all .2s ease-in; font-size:2.5rem;
-o-transition:all .2s ease-in; font-style:italic;
transition:all .2s ease-in; color:#FFF;
} opacity:0;
background:#000;
#gallery em { filter:alpha(opacity=0);
position:absolute; }
top:-1px; #gallery li:hover em {
bottom:-1px; zoom:1;
zoom:1; opacity:1;
width:100%; filter:alpha(opacity=1);
padding:40% 0; }
border-radius:100%; footer {
text-align:center; margin:25px 0;
font-family:Georgia,Lucida,serif; text-align:center;
font-size:2.5rem; }
font-style:italic; footer a {
color:#FFF; text-decoration:none;
margin: -0.5px 0 0 -0.5px; color:#666;
border:1px solid black; }
opacity:0;
background:#000;
filter:alpha(opacity=0);
}
#gallery li:hover em {
zoom:1;
opacity:1;
filter:alpha(opacity=1);
}
footer {
margin:25px 0;
text-align:center;
}
footer a {
text-decoration:none;
color:#666;
}
/*----responsive----*/ /*----responsive----*/
#gallery li { #gallery li {
width: 24%; width:24%;
height: 0; height:0;
padding-bottom: 24%; padding-bottom:24%;
} }
@media (max-width: 1000px) { @media(max-width:1000px) {
#gallery li { #gallery li {
width: 32%; width:32%;
padding-bottom: 32%; padding-bottom:32%;
} }
} }
@media (max-width: 800px) { @media(max-width:800px) {
#gallery li { #gallery li {
width: 48%; width:48%;
padding-bottom: 48%; padding-bottom:48%;
} }
} }
@media (max-width: 450px) { @media(max-width:450px) {
#gallery li { #gallery li {
width: 100%; width:100%;
padding-bottom: 100%; padding-bottom:100%;
} }
} }
</style> </style>

View file

@ -12,126 +12,121 @@
<link rel="stylesheet" href="<% gallery_root %>css/mediaboxAdvWhite.css" type="text/css" media="screen" /> <link rel="stylesheet" href="<% gallery_root %>css/mediaboxAdvWhite.css" type="text/css" media="screen" />
<style type="text/css"> <style type="text/css">
html{ html {
font-size: 62.5%; font-size:62.5%;
}
.clear {
clear:both;
} }
.clear{clear:both;}
body { body {
margin: 0; width:100%;
padding: 0; margin:0;
width: 100%; padding:0;
font-size: 1.5rem; text-shadow:0 1px 0 #000;
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; text-decoration:none;
font-weight: bold; color:#FF0084;
text-decoration: none;
} }
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 {
font-size: 1.3em; padding-top:15px;
padding: 15px 0px; 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 {
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;
position: relative; position:relative;
overflow:hidden; overflow:hidden;
} }
#gallery li img{ #gallery li img {
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%;
text-align: center; padding:40% 0;
font-family: Georgia, Lucida, serif; text-align:center;
font-style: italic; font-family:Georgia,Lucida,serif;
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%;
height: 0; height:0;
padding-bottom: 24%; padding-bottom:24%;
} }
@media (max-width: 1000px) { @media(max-width:1000px) {
#gallery li { #gallery li {
width: 32%; width:32%;
padding-bottom: 32%; padding-bottom:32%;
} }
} }
@media (max-width: 800px) { @media(max-width:800px) {
#gallery li { #gallery li {
width: 48%; width:48%;
padding-bottom: 48%; padding-bottom:48%;
} }
} }
@media (max-width: 450px) { @media(max-width:450px) {
#gallery li { #gallery li {
width: 100%; width:100%;
padding-bottom: 100%; padding-bottom:100%;
} }
} }
</style> </style>