summaryrefslogtreecommitdiffstats
path: root/templates/menustyle.inc
blob: e9a999ebabadc2847633ad4ff78f26fd5899d09c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
<?php
/*

 Copyright (c) 2001 - 2006 Ampache.org
 All rights reserved.

 This program is free software; you can redistribute it and/or
 modify it under the terms of the GNU General Public License
 as published by the Free Software Foundation; either version 2
 of the License, or (at your option) any later version.

 This program is distributed in the hope that it will be useful,
 but WITHOUT ANY WARRANTY; without even the implied warranty of
 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 GNU General Public License for more details.

 You should have received a copy of the GNU General Public License
 along with this program; if not, write to the Free Software
 Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.

*/

/*!
 @header Style File
 @discussion this is the css that handles the menu mojo (#sidebar, etc) and the 
        outer layer of layout (#maincontainer, #topbar, #content, etc
*/
?>
<style type="text/css">
<!--
/**
 * Div Definitions
 * These define how the page is laid out, be careful with these as changes to them
 * can cause drastic layout changes
 */
        #maincontainer
                {
                        margin: 0px;
                }
        #topbar
                {
                        height: 80px;
                        padding-top:10px;
                        padding-left:10px;
                        background-color: <?php echo conf('bg_color1'); ?>;
                }
        #topbarright
                {
                        float: right;
                }
        #topbarleft
                {
                        float: left;
                }
        .nodisplay { display: none;}
        .display {}
        #mpdpl td {
                padding: 0px 2px 0px 2px;
                text-align: left;
                }
/**
 * End Div Definitions
 * This is the end of the main structure def's
 */

/**
 * 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.
 */
	#content {
/*                float: left;    /*                      use for horizontal menu; comment out otherwise */
                margin-left:0px;
	}
    #sidebar {
        clear: both;
        height: 100%;
        margin: 0;
        float: left;
        padding: 0;
        list-style: none;
        border: 1px solid #000;
        line-height: 1.0;
    }
    #sidebar ul {
        margin: 0px;
        list-style: none;
        padding: 0px;
        font-family: verdana, arial, Helvetica, sans-serif;
        line-height: 1.0;
    }
    #sidebar li {
        margin: 0;
        display: block;
        border-bottom: 1px solid white;
        border-left: 1px solid white;
        border-right: 1px solid white;
/*        float: left;                /*          use for horizontal menu; comment out otherwise */
        padding: 5px 0px 5px 10px;
        width: 10.5em;
        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: 9em;
	margin: -1.5em 0 0 10.5em;  /* for vertical menu; comment out otherwise */
/*	margin: 0.5em 0 0 -1.1em;  /* for horizontal menu;  comment out otherwise */

        left: -999em;  /* this -999em 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. */
    }

-->
</style>