summaryrefslogtreecommitdiffstats
path: root/templates/style.inc
diff options
context:
space:
mode:
authorKarl 'vollmerk' Vollmer <vollmer@ampache.org>2005-12-27 00:18:59 +0000
committerKarl 'vollmerk' Vollmer <vollmer@ampache.org>2005-12-27 00:18:59 +0000
commit6b0b77f12b6873204bfd73a250621115b1f539a0 (patch)
tree36aa24da3e984a3b38e0f1f11fc4a8a2ffdd1973 /templates/style.inc
parent380a8615ae97295f650699e8ecdf478e54f75d74 (diff)
downloadampache-6b0b77f12b6873204bfd73a250621115b1f539a0.tar.gz
ampache-6b0b77f12b6873204bfd73a250621115b1f539a0.tar.bz2
ampache-6b0b77f12b6873204bfd73a250621115b1f539a0.zip
new coolness from sigger
Diffstat (limited to 'templates/style.inc')
-rw-r--r--templates/style.inc239
1 files changed, 91 insertions, 148 deletions
diff --git a/templates/style.inc b/templates/style.inc
index cf8cdec1..730554c3 100644
--- a/templates/style.inc
+++ b/templates/style.inc
@@ -26,6 +26,25 @@
ampache, mod this to change the look and feel of the site
*/
?>
+
+<script type="text/javascript" language="javascript">
+<!-- Begin Suckerfish hover menu JS
+// function needed for IE. attaches mouseover/out events to give/remove css class .sfhover (fake hover)
+sfHover = function(navlist) {
+var sfEls = document.getElementById("navlist").getElementsByTagName("LI");
+for (var i=0; i <sfEls.length; i++) {
+ sfEls[i].onmouseover=function() {
+ this.className+=" sfhover";
+ }
+ sfEls[i].onmouseout=function() {
+ this.className=this.className.replace(new RegExp("sfhover\\b"), "");
+ }
+} // end for
+} // end function for sfHover
+if (window.attachEvent) window.attachEvent("onload", sfHover);
+// End Suckerfish hover menu JS-->
+</script>
+
<style type="text/css">
<!--
body
@@ -72,6 +91,11 @@
border-left:2px solid <?php echo conf('bg_color2'); ?>;
border-top:2px solid <?php echo conf('bg_color2'); ?>;
}
+
+ .npsong
+ {
+ background-color: #FFFF66;
+ }
table.tabledata
{
}
@@ -114,79 +138,6 @@
background: url(<?php echo conf('web_path'); ?><?php echo conf('theme_path'); ?>/images/ampache-light-bg.gif) <?php echo conf('base_color2')?> repeat-x;
vertical-align: top;
}
-/*************** Main Menu *****************/
- #mainmenu {
- float: left;
- width: 100%;
- margin: 0;
- padding: 0;
- list-style: none;
- border-top: 1px solid #000;
- border-bottom: 1px solid #000;
- border-right: 1px solid #000;
- border-left: 1px solid #000;
- background: url(<?php echo conf('web_path'); ?><?php echo conf('theme_path'); ?>/images/ampache-light-bg.gif) <?php echo conf('base_color2');?> repeat-x;
- }
- #mainmenu li {
- float: left;
- margin: 0;
- padding: 0 10px 0 10px;
- border-right: 1px solid #000;
- display: inline;
- background: url(<?php echo conf('web_path'); ?><?php echo conf('theme_path'); ?>/images/ampache-light-bg.gif) <?php echo conf('base_color2');?> repeat-x;
- }
- #mainmenu li.active {
- background: url(<?php echo conf('web_path'); ?><?php echo conf('theme_path'); ?>/images/ampache-dark-bg.gif) <?php echo conf('base_color2');?> repeat-x;
- }
- #mainmenu a {
- text-decoration: none;
- }
- #mainmenu a:hover {
- color: #000;
- }
- #mainmenu a:active {
- color: #00a;
- }
-/*************** END Main Menu *************/
-/*************** Admin Menu *************/
- #adminmenu {
- float: left;
- width: 100%;
- margin: 0;
- padding: 0;
- list-style: none;
- border-bottom: 1px solid #000;
- border-right: 1px solid #000;
- border-left: 1px solid #000;
- border-top: 1px solid #000;
- background: url(<?php echo conf('web_path'); ?><?php echo conf('theme_path'); ?>/images/ampache-light-bg.gif) <?php echo conf('base_color2')?> repeat;
- }
- #adminmenu li {
- float: left;
- margin: 0;
- padding: 0 20px 0 20px;
- border-right: 1px solid #000;
- display: inline;
- background: url(<?php echo conf('web_path'); ?><?php echo conf('theme_path'); ?>/images/ampache-light-bg.gif) <?php echo conf('base_color2');?> repeat-x;
- }
- #adminmenu li.active {
- background: url(<?php echo conf('web_path'); ?><?php echo conf('theme_path'); ?>/images/ampache-dark-bg.gif) <?php echo conf('base_color2');?> repeat-x;
- }
- #adminmenu a {
- text-decoration: none;
- }
- #adminmenu a:hover {
- color: #000;
- }
- #adminmenu a:active {
- color: #000;
- }
-/*************** END Main Menu *************/
-/*************** Page Header *********************/
- #pageheader {
- background: #8B8B8B;
- }
-/*************** END Page Header *****************/
.header1
{
color: <?php echo conf('font_color2'); ?>;
@@ -270,7 +221,6 @@
padding-right:0px;
padding-top: 0px;
padding-left: 0px;
- width:160px;
background: <?php echo conf('base_color2'); ?>;
}
/**
@@ -278,15 +228,15 @@
* These define how the page is layed out, be careful with these as changes to them
* can cause drastic layout changes
*/
- #maincontrainer
+ #maincontainer
{
- margin:0px;
+ margin: 0px;
}
#topbar
{
- margin-left: 5px;
- margin-top: 5px;
height: 80px;
+ padding-top:10px;
+ padding-left:10px;
background-color: <?php echo conf('bg_color1'); ?>;
}
#topbarright
@@ -297,89 +247,82 @@
{
float: left;
}
- #sidebar
- {
- clear: both;
- height: 100%;
- margin-left: 5px;
- margin-top:0px;
- float: left;
- width: 170px;
- }
-
- #sidebar ul
- {
- margin-left:0px;
- margin-top:0px;
- margin-bottom:0px;
- margin-right: 10px;
- padding: 0px;
- list-style-type: none;
- font-family: verdana, arial, Helvetica, sans-serif;
- }
-
- #sidebar li {
- margin: 0 0 1px 0;
- padding-top:0px;
- padding-bottom:0px;
- }
-
- #sidebar a, .navbutton
- {
- display: block;
- padding: 5px 10px;
- color: <?php echo conf('font_color1'); ?>;
- background-color: <?php echo conf('row_color2'); ?>;
- text-decoration: none;
- }
-
- #sidebar a:hover
- {
- color: <?php echo conf('font_color1'); ?>;
- background-color: <?php echo conf('row_color3'); ?>;
- text-decoration: none;
- }
-
- #sidebar ul ul li { margin: 0 0 1px 0; }
-
- #sidebar ul ul a
- {
- display: block;
- padding: 5px 5px 5px 30px;
- width: 125px;
- color: <?php echo conf('font_color1'); ?>;
- background-color: <?php echo conf('row_color1'); ?>;
- text-decoration: none;
- }
-
#navcontainer ul li
{
- float:left;
- width:100%;
+ float:left;
+ width:100%;
}
.subnavbutton
{
- background-color: <?php echo conf('row_color1'); ?>;
- text-align:center;
- text-decoration: none;
- color: <?php echo conf('font_color2'); ?>;
+ background-color: <?php echo conf('row_color1'); ?>;
+ text-align:center;
+ text-decoration: none;
+ color: <?php echo conf('font_color2'); ?>;
}
- #sidebar ul ul a:hover
- {
- color: <?php echo conf('font_color2'); ?>;
- background-color: <?php echo conf('row_color3'); ?>;
- text-decoration: none;
- }
#content
{
+ float: left;
margin-left:0px;
- padding-top:10px;
- padding-left:10px;
- vertical-align:top;
}
/**
+ * Experimental for menus (Thx Sigger)
+ * TO DO: Fill in 1px border around menus & submenu items
+ * Make padding appply to the li, not just an a. Moving paddng: to li throws off the dropdown menu alignment.
+ */
+ #sidebar {
+ clear: both;
+ height: 100%;
+ margin: 0;
+ float: left;
+ /* width: 110px; /* this controls the width of the sidebar. horizontal menu needs more width */
+ padding: 0;
+ list-style: none;
+ border: 1px solid #000;
+ line-height: 1;
+ }
+ #sidebar ul {
+ margin: 0px;
+ list-style: none;
+ padding: 0px;
+ font-family: verdana, arial, Helvetica, sans-serif;
+ line-height: 1;
+ }
+ #sidebar li {
+/* margin: 0 0 1px 0; */
+ margin: 0;
+ display: block;
+ border-bottom: 1px solid white;
+ border-left: 1px solid white;
+ border-right: 1px solid white;
+ padding: 5px 0px 5px 10px;
+ width: 10em;
+ background-color: <?php echo conf('row_color2'); ?>;
+ }
+ #sidebar a, .navbutton {
+ display: block; /*Not sure why this is neccesary, but it is for IE*/
+ text-decoration: none;
+ }
+ #sidebar li:hover, #sidebar li.sfhover {
+ color: <?php echo conf('font_color2'); ?>;
+ background-color: <?php echo conf('row_color3'); ?>;
+ }
+ #sidebar li:active {
+ background-color: <?php echo conf('row_color1'); ?>;
+ }
+ #sidebar li ul {
+ float: left;
+ position: absolute;
+ width: 12em;
+ margin: -1.5em 0 0 10em;
+/* -2em 0 0 10em for vertical menu puts the submenu back up and to the right of the hovered menu item by "the right amount"*/
+ left: -999em; /* this puts the submenu item way off to the left until it's called back by a hover (below) */
+ }
+ #sidebar li:hover ul, #sidebar li.sfhover ul {
+ left: auto; /* this calls the submenu back when the parent li is hovered. */
+ }
+/**
* End Div Definitions
* This is the end of the main structure def's
*/