Browse Source

Worked on Dropdowns

Looks quite okay now.
Also added Post-Navigation (Newer/Older posts) and cleaned up some spaces.
master
Kondou 8 years ago
parent
commit
5ce444e753
2 changed files with 19 additions and 13 deletions
  1. +8
    -4
      index.php
  2. +11
    -9
      style.css

+ 8
- 4
index.php View File

@ -23,10 +23,14 @@ get_header();
<span class="categories">Categories: <?php the_category(", "); ?></span>
</div>
</article>
<?php
endwhile;
endif;
?>
<?php endwhile; ?>
<div class="navigation">
<div class="alignleft"><?php previous_posts_link('&laquo; Previous Entries') ?></div>
<div class="alignright"><?php next_posts_link('Next Entries &raquo;') ?></div>
</div>
<?php else: ?>
<p>No posts found matching your criteria.</p>
<?php endif; ?>
</div>
<?php
get_sidebar();


+ 11
- 9
style.css View File

@ -124,9 +124,9 @@ header a {
.categories {
margin-bottom: 3px;
padding-top: 3px;
padding-bottom: 2px;
padding-left: 22px;
padding-top: 3px;
padding-bottom: 2px;
padding-left: 22px;
}
article {
@ -189,12 +189,11 @@ nav {
}
nav ul li > ul {
/*display: block;*/
opacity: 0;
background: #f5f5f5;
margin: 0;
padding: 0;
visibility: hidden;
background: #f5f5f5;
margin: 0;
padding: 0;
visibility: hidden;
-webkit-transition: opacity .25s;
-moz-transition: opacity .25s;
-o-transition: opacity .25s;
@ -231,7 +230,8 @@ nav ul li a {
nav ul ul li {
float: none;
border-top: 1px solid #ddd;
border: 1px solid #ddd;
border-top: 0;
}
nav ul ul li a {
@ -324,6 +324,8 @@ footer {
.sub-menu {
z-index: 9;
position: absolute;
white-space: nowrap;
}
#comments, #respond {