visual fixes theme

This commit is contained in:
Tom Canac 2015-06-30 00:20:05 +02:00
parent 53f495c370
commit e11af5e59c
2 changed files with 16 additions and 11 deletions

View file

@ -403,7 +403,8 @@ if (!$lazyload && sizeof($dirs) + sizeof($files) > $thumbs_pr_page) {
//----------------------- //-----------------------
// BREADCRUMB NAVIGATION // BREADCRUMB NAVIGATION
//----------------------- //-----------------------
if ($requestedDir != "") { if ($requestedDir != "" && $requestedDir != "photos") {
$breadcrumb_navigation = "<div class=\"NavWrapper\">";
$breadcrumb_navigation .= "<a href='?dir='>" . $label_home . "</a> $breadcrumb_separator "; $breadcrumb_navigation .= "<a href='?dir='>" . $label_home . "</a> $breadcrumb_separator ";
$navitems = explode("/", $_REQUEST['dir']); $navitems = explode("/", $_REQUEST['dir']);
for ($i = 0; $i < sizeof($navitems); $i++) { for ($i = 0; $i < sizeof($navitems); $i++) {
@ -419,8 +420,7 @@ if ($requestedDir != "") {
$breadcrumb_navigation .= "'>" . $navitems[$i] . "</a> $breadcrumb_separator "; $breadcrumb_navigation .= "'>" . $navitems[$i] . "</a> $breadcrumb_separator ";
} }
} }
} else { $breadcrumb_navigation .= "</div>";
$breadcrumb_navigation .= $label_home;
} }
//Include hidden links for all images BEFORE current page so lightbox is able to browse images on different pages //Include hidden links for all images BEFORE current page so lightbox is able to browse images on different pages
@ -467,14 +467,14 @@ for ($y = $i; $y < sizeof($files); $y++) {
// OUTPUT MESSAGES // OUTPUT MESSAGES
//----------------------- //-----------------------
if ($messages != "") { if ($messages != "") {
$messages = $messages . " <a id=\"closeMessage\" class=\"closeMessage\" href=\"#\"><img src=\"images/close.png\" /></a>"; $messages = $messages . "<div><a id=\"closeMessage\" class=\"closeMessage\" href=\"#\"><img src=\"images/close.png\" /></a><div>";
} }
// Read folder comment. // Read folder comment.
$comment_filepath = $currentdir . $file . "/comment.html"; $comment_filepath = $currentdir . $file . "/comment.html";
if (file_exists($comment_filepath)) { if (file_exists($comment_filepath)) {
$fd = fopen($comment_filepath, "r"); $fd = fopen($comment_filepath, "r");
$comment = fread($fd, filesize($comment_filepath)); $comment = "<div class=\"Comment\">" . fread($fd, filesize($comment_filepath)) . "</div>";
fclose($fd); fclose($fd);
} }

View file

@ -14,6 +14,7 @@
font-size: 62.5%; font-size: 62.5%;
} }
body { body {
position: relative;
margin: 0; margin: 0;
padding: 0; padding: 0;
width: 100%; width: 100%;
@ -28,7 +29,8 @@
text-decoration: none; text-decoration: none;
} }
h1 { h1 {
margin: 20px 0 0 0; margin: 0;
padding: 1.5rem 0;
font-family: Georgia, Lucida, serif; font-family: Georgia, Lucida, serif;
font-style: italic; font-style: italic;
} }
@ -48,15 +50,17 @@
} }
.Message { .Message {
padding: 1rem;
background-color: #2ecc71; background-color: #2ecc71;
border-radius: 2px; border-radius: 2px;
} }
.Message > div {
padding: 1rem;
}
.closeMessage { .closeMessage {
float: right; float: right;
} }
header aside{ .Comment {
padding: 2rem 0; padding: 2rem 0;
} }
img { img {
@ -64,7 +68,9 @@
} }
nav { nav {
font-size: 1.3em; font-size: 1.3em;
padding-top: 2rem; }
.NavWrapper {
padding: 1rem 0;
} }
body > nav { body > nav {
text-align: center; text-align: center;
@ -133,7 +139,7 @@
} }
footer { footer {
padding-top: 2rem; padding-top: 2rem;
margin: 25px 0px; margin-bottom: 25px;
text-align: center; text-align: center;
} }
footer a { footer a {
@ -200,7 +206,6 @@
<div id="Message" class="Message"> <div id="Message" class="Message">
<% messages %> <% messages %>
</div> </div>
<br>
</header> </header>
<main id="container"> <main id="container">