visual fixes theme
This commit is contained in:
parent
53f495c370
commit
e11af5e59c
2 changed files with 16 additions and 11 deletions
10
index.php
10
index.php
|
@ -403,7 +403,8 @@ if (!$lazyload && sizeof($dirs) + sizeof($files) > $thumbs_pr_page) {
|
|||
//-----------------------
|
||||
// BREADCRUMB NAVIGATION
|
||||
//-----------------------
|
||||
if ($requestedDir != "") {
|
||||
if ($requestedDir != "" && $requestedDir != "photos") {
|
||||
$breadcrumb_navigation = "<div class=\"NavWrapper\">";
|
||||
$breadcrumb_navigation .= "<a href='?dir='>" . $label_home . "</a> $breadcrumb_separator ";
|
||||
$navitems = explode("/", $_REQUEST['dir']);
|
||||
for ($i = 0; $i < sizeof($navitems); $i++) {
|
||||
|
@ -419,8 +420,7 @@ if ($requestedDir != "") {
|
|||
$breadcrumb_navigation .= "'>" . $navitems[$i] . "</a> $breadcrumb_separator ";
|
||||
}
|
||||
}
|
||||
} else {
|
||||
$breadcrumb_navigation .= $label_home;
|
||||
$breadcrumb_navigation .= "</div>";
|
||||
}
|
||||
|
||||
//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
|
||||
//-----------------------
|
||||
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.
|
||||
$comment_filepath = $currentdir . $file . "/comment.html";
|
||||
if (file_exists($comment_filepath)) {
|
||||
$fd = fopen($comment_filepath, "r");
|
||||
$comment = fread($fd, filesize($comment_filepath));
|
||||
$comment = "<div class=\"Comment\">" . fread($fd, filesize($comment_filepath)) . "</div>";
|
||||
fclose($fd);
|
||||
}
|
||||
|
||||
|
|
|
@ -14,6 +14,7 @@
|
|||
font-size: 62.5%;
|
||||
}
|
||||
body {
|
||||
position: relative;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
width: 100%;
|
||||
|
@ -28,7 +29,8 @@
|
|||
text-decoration: none;
|
||||
}
|
||||
h1 {
|
||||
margin: 20px 0 0 0;
|
||||
margin: 0;
|
||||
padding: 1.5rem 0;
|
||||
font-family: Georgia, Lucida, serif;
|
||||
font-style: italic;
|
||||
}
|
||||
|
@ -48,15 +50,17 @@
|
|||
}
|
||||
|
||||
.Message {
|
||||
padding: 1rem;
|
||||
background-color: #2ecc71;
|
||||
border-radius: 2px;
|
||||
}
|
||||
.Message > div {
|
||||
padding: 1rem;
|
||||
}
|
||||
.closeMessage {
|
||||
float: right;
|
||||
}
|
||||
|
||||
header aside{
|
||||
.Comment {
|
||||
padding: 2rem 0;
|
||||
}
|
||||
img {
|
||||
|
@ -64,7 +68,9 @@
|
|||
}
|
||||
nav {
|
||||
font-size: 1.3em;
|
||||
padding-top: 2rem;
|
||||
}
|
||||
.NavWrapper {
|
||||
padding: 1rem 0;
|
||||
}
|
||||
body > nav {
|
||||
text-align: center;
|
||||
|
@ -133,7 +139,7 @@
|
|||
}
|
||||
footer {
|
||||
padding-top: 2rem;
|
||||
margin: 25px 0px;
|
||||
margin-bottom: 25px;
|
||||
text-align: center;
|
||||
}
|
||||
footer a {
|
||||
|
@ -200,7 +206,6 @@
|
|||
<div id="Message" class="Message">
|
||||
<% messages %>
|
||||
</div>
|
||||
<br>
|
||||
</header>
|
||||
|
||||
<main id="container">
|
||||
|
|
Loading…
Reference in a new issue