diff options
author | Karl 'vollmerk' Vollmer <vollmer@ampache.org> | 2006-01-08 04:57:19 +0000 |
---|---|---|
committer | Karl 'vollmerk' Vollmer <vollmer@ampache.org> | 2006-01-08 04:57:19 +0000 |
commit | 2bb59dfa45f008846305c62962616bd3fff3884d (patch) | |
tree | ea27d68aac0318246c3a857924c736e96fdeb4a3 /templates | |
parent | a3b348ff76a133966173db3cc7a741f342ac5c63 (diff) | |
download | ampache-2bb59dfa45f008846305c62962616bd3fff3884d.tar.gz ampache-2bb59dfa45f008846305c62962616bd3fff3884d.tar.bz2 ampache-2bb59dfa45f008846305c62962616bd3fff3884d.zip |
tweaks from sigger
Diffstat (limited to 'templates')
-rw-r--r-- | templates/header.inc | 1 | ||||
-rw-r--r-- | templates/menustyle.inc | 128 | ||||
-rw-r--r-- | templates/show_mpdpl.inc | 4 | ||||
-rw-r--r-- | templates/style.inc | 119 |
4 files changed, 137 insertions, 115 deletions
diff --git a/templates/header.inc b/templates/header.inc index 91700508..5f7eed74 100644 --- a/templates/header.inc +++ b/templates/header.inc @@ -29,6 +29,7 @@ $location = get_location(); <head> <link rel="shortcut icon" href="<?php echo conf('web_path'); ?>/favicon.ico" /> <meta http-equiv="Content-Type" content="text/html; charset=<?php echo conf('site_charset'); ?>" /> +<?php show_template('menustyle'); ?> <?php show_template('style'); ?> <title><?php echo conf('site_title'); ?> - <?php echo $location['title']; ?></title> </head> diff --git a/templates/menustyle.inc b/templates/menustyle.inc new file mode 100644 index 00000000..06139325 --- /dev/null +++ b/templates/menustyle.inc @@ -0,0 +1,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: 12em; + 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 9em; /* 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> diff --git a/templates/show_mpdpl.inc b/templates/show_mpdpl.inc index 42c0c23d..199e425f 100644 --- a/templates/show_mpdpl.inc +++ b/templates/show_mpdpl.inc @@ -39,7 +39,7 @@ $myMpd = init_mpd(); <form name="songs" action="<?php echo conf('web_path')."/amp-mpd.php"; ?>" method="post" enctype="multipart/form-data"> <table id= "mpdpl" border="0" cellpadding="0" cellspacing="1" width="100%" class="tabledata"> <tr> - <td align="center" class="table-header"> + <td style="text-align:center" class="table-header"> <b><?php echo _("MPD Server Playlist"); ?></b> <!-- <i> [<a title="<?php echo _("Refresh the Playlist Window"); ?>" href="<?php echo $_SERVER['PHP_SELF']; ?>">refresh</a>] @@ -58,7 +58,7 @@ $myMpd = init_mpd(); <td <?php echo $nopad ?>> <table cellspacing="0" cellpadding="0" border="0" width="100%"> <tr class="table-header"> - <th><a href="#" onclick="check_songs(); return false;">Select</a> - <a href="#" onclick="invert_songs(); return false;">Invert</a></th> + <th><a href="#" onclick="check_songs(); return false;">Select</a>/<br><a href="#" onclick="invert_songs(); return false;">Invert</a></th> <th align="left"><?php echo _("Song title"); ?></th> <th align="left"><?php echo _("Artist"); ?></th> <th align="left"><?php echo _("Album"); ?></th> diff --git a/templates/style.inc b/templates/style.inc index 5c7ea2d2..0019e87b 100644 --- a/templates/style.inc +++ b/templates/style.inc @@ -80,13 +80,13 @@ { /* there really isn't anything for this */ } - .nodisplay { display: none;} - .display {} .npsong { background: #FFFF66; font-weight: bold; } + .nodisplay { display: none;} + .display {} #mpdpl td { padding: 0px 2px 0px 2px; text-align: left; @@ -208,117 +208,10 @@ font-size: <?php echo conf('font_size') - 1; ?>px; cursor: pointer; } - .sidebar - { - margin-left:0px; - margin-top:0px; - margin-right:0px; - padding-right:0px; - padding-top: 0px; - padding-left: 0px; - background: <?php echo conf('base_color2'); ?>; - } -/** - * Div Definitions - * These define how the page is layed 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; - } - #navcontainer ul li - { - float:left; - width:100%; - } - - .subnavbutton - { - background-color: <?php echo conf('row_color1'); ?>; - text-align:center; - text-decoration: none; - color: <?php echo conf('font_color2'); ?>; - } +/* These three lines make a menu vertical */ + #content { float: none; } + #sidebar li { float: none; } + #sidebar li ul { margin: -1.5em 0 0 9em; } - #content - { - margin-left:0px; - } -/** - * 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.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 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 - */ --> </style> |