commit 47743ab620fdcc507a29ec1688ff25590b5e1b61
parent ef20d39baa2ea1e0fbdeb50b8c19439623cccf3a
Author: cipher <haris@2f30.org>
Date: Thu, 28 Nov 2013 15:52:41 +0200
.css clean, add menu class and target li items on .css
Diffstat:
2 files changed, 6 insertions(+), 7 deletions(-)
diff --git a/bin/bliper-generate.pl b/bin/bliper-generate.pl
@@ -25,7 +25,7 @@ chdir($pagedir) or die "Can't change path to $pagedir $!\n";
print "\n\t\t\tblipper (BLog In PERl) v0.1\n\n";
print "Entering " . getcwd . "\n\n";
open (OUT, '>>', "../$outdir/tmp") or die $!; # begin creating menu for individual pages in a file
-print OUT "<ul>"; # begin list for menu items
+print OUT "<ul class=\"menu\">"; # begin list for menu items
print OUT "<li><a href=\"index.html\">home</a></li>";
my @pages = <*>; # create individual pages
diff --git a/output/style.css b/output/style.css
@@ -1,6 +1,5 @@
body {
background-color: #424242;
- /* font-family: Terminus, monospace; */
font-family: sans-serif;
font-size: 1em;
}
@@ -17,16 +16,16 @@ body {
}
/* menu */
-ul {
+.menu {
line-height: 1.5em;
text-align: right;
}
-ul li {
+.menu li {
display: inline;
}
-li a {
+.menu li a {
text-decoration: none;
font-weight: bold;
padding: 0.3em;
@@ -34,8 +33,9 @@ li a {
color: #e8e8e8;
}
-li a:hover, li a.current {
+.menu li a:hover, .menu li a.current {
border-top: 0.5ex solid #aaaaaa;
+ color: #ff9900;
}
h3 {
@@ -49,7 +49,6 @@ p {
}
pre {
- /* font-family: Terminus, monospace; */
font-family: sans-serif;
color: #e8e8e8;
/* border: 1px solid #000000; */