summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPaul Arthur <paul.arthur@flowerysong.com>2013-01-28 11:32:16 -0500
committerPaul Arthur <paul.arthur@flowerysong.com>2013-01-28 13:26:11 -0500
commitcd54a287fa5860ac10bc7b4cfd6b015b0d8de4c8 (patch)
tree3e9dedf20e2daec6898179f32f19fb196741db1a
parent959aebe07fffe334bf3dc3f2bfcf9c5e77fad92a (diff)
downloadampache-cd54a287fa5860ac10bc7b4cfd6b015b0d8de4c8.tar.gz
ampache-cd54a287fa5860ac10bc7b4cfd6b015b0d8de4c8.tar.bz2
ampache-cd54a287fa5860ac10bc7b4cfd6b015b0d8de4c8.zip
Add some CSS defaults for the HTML5 player
Requires less boilerplate in the individual themes.
-rw-r--r--templates/base.css2
-rw-r--r--templates/html5_player.css83
-rw-r--r--templates/show_html5_player.inc.php1
-rw-r--r--themes/classic/templates/default.css67
-rw-r--r--themes/fresh/templates/default.css66
5 files changed, 106 insertions, 113 deletions
diff --git a/templates/base.css b/templates/base.css
index cecf6c9f..d4a88bd1 100644
--- a/templates/base.css
+++ b/templates/base.css
@@ -52,4 +52,4 @@ a.tag_size1, a.tag_size2, a.tag_size3, a.tag_size4 { text-decoration: none; }
}
.item_off {
color: #FF0000;
-}
+}
diff --git a/templates/html5_player.css b/templates/html5_player.css
new file mode 100644
index 00000000..ea23d5c1
--- /dev/null
+++ b/templates/html5_player.css
@@ -0,0 +1,83 @@
+/* vim:set softtabstop=4 shiftwidth=4 expandtab: */
+/**
+ *
+ * LICENSE: GNU General Public License, version 2 (GPLv2)
+ * Copyright 2001 - 2013 Ampache.org
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License v2
+ * as published by the Free Software Foundation.
+ *
+ * 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.
+ *
+ */
+
+#html5_player #albumart img
+{
+ width: 200px;
+ float: left;
+ margin: 5px;
+}
+#html5_player #title
+{
+ padding-top: 5px;
+}
+#html5_player #artist, #html5_player #album
+{
+ display: inline;
+}
+#html5_player #artist:before
+{
+ content: ' by ';
+}
+#html5_player #progress_text
+{
+ margin: 10px 0px 10px 0px;
+}
+#html5_player #stop, #html5_player #play,#html5_player #pause,#html5_player #next,#html5_player #previous,#html5_player #clear_search
+{
+ display: inline;
+ border: thin solid black;
+ cursor: pointer;
+ padding: 2px;
+ margin-right: 5px;
+}
+#html5_player #playlist
+{
+ overflow-x: hidden;
+ overflow-y: scroll;
+ position: absolute;
+ top: 105px;
+ left: 210px;
+ right: 5px;
+ bottom: 5px;
+}
+#html5_player #playlist li
+{
+ cursor: pointer;
+}
+#html5_player #playlist li.playing
+{
+ font-weight: bold;
+}
+#html5_player #stop.inactive, #html5_player #pause.inactive, #html5_player #play.inactive
+{
+ display: none;
+}
+#html5_player #search
+{
+ top: 54px;
+ right: 5px;
+ position: absolute;
+}
+#html5_player #search input
+{
+ background: transparent;
+}
diff --git a/templates/show_html5_player.inc.php b/templates/show_html5_player.inc.php
index 505909b2..04a25652 100644
--- a/templates/show_html5_player.inc.php
+++ b/templates/show_html5_player.inc.php
@@ -28,6 +28,7 @@ header('Expires: ' . gmdate(DATE_RFC1123, time()-1));
<html>
<head>
<title><?php echo Config::get('site_title'); ?></title>
+<link rel="stylesheet" href="<?php echo Config::get('web_path'); ?>/templates/html5_player.css" type="text/css" media="screen" />
<link rel="stylesheet" href="<?php echo Config::get('web_path').Config::get('theme_path').'/templates/'.'default.css'; ?>" type="text/css" media="screen" />
<script src="<?php echo Config::get('web_path'); ?>/modules/prototype/prototype.js" language="javascript" type="text/javascript"></script>
<script type="text/javascript">
diff --git a/themes/classic/templates/default.css b/themes/classic/templates/default.css
index c9e7592c..f127fa37 100644
--- a/themes/classic/templates/default.css
+++ b/themes/classic/templates/default.css
@@ -698,68 +698,23 @@ td.lp_current a {
/************************************************/
/* HTML5 Player */
/************************************************/
-#html5_player #albumart img
-{
- width: 200px;
- float: left;
- margin: 5px;
-}
-#html5_player #title
-{
- padding-top: 5px;
-}
-#html5_player #artist, #html5_player #album
-{
- display: inline;
-}
-#html5_player #artist:before
-{
- content: ' by ';
-}
-#html5_player #progress_text
-{
- margin: 10px 0px 10px 0px;
-}
-#html5_player #stop, #html5_player #play,#html5_player #pause,#html5_player #next,#html5_player #previous,#html5_player #clear_search
-{
- display: inline;
- border: thin solid black;
- cursor: pointer;
- padding: 2px;
- margin-right: 5px;
-}
#html5_player #playlist
{
- overflow-x: hidden;
- overflow-y: scroll;
- position: absolute;
- top: 105px;
- left: 210px;
- right: 5px;
- bottom: 5px;
-}
-#html5_player #playlist li
-{
- cursor: pointer;
-}
-#html5_player #playlist li.playing
-{
- font-weight: bold;
-}
-#html5_player #stop.inactive, #html5_player #pause.inactive, #html5_player #play.inactive
-{
- display: none;
+ overflow-x: hidden;
+ overflow-y: scroll;
+ position: absolute;
+ top: 105px;
+ left: 210px;
+ right: 5px;
+ bottom: 5px;
}
#html5_player #search
{
- top: 54px;
- right: 5px;
- position: absolute;
-}
-#html5_player #search input
-{
- background: transparent;
+ position: absolute;
+ top: 54px;
+ right: 5px;
}
+
/************************************************/
/* Styles for Login template */
/************************************************/
diff --git a/themes/fresh/templates/default.css b/themes/fresh/templates/default.css
index 4ab2b2b2..a542a3c0 100644
--- a/themes/fresh/templates/default.css
+++ b/themes/fresh/templates/default.css
@@ -996,68 +996,22 @@ table.tabledata .cel_php_setting, table.tabledata .cel_configuration, .cel_prefe
/************************************************/
/* HTML5 Player */
/************************************************/
-#html5_player #albumart img
-{
- width: 200px;
- float: left;
- margin: 5px;
-}
-#html5_player #title
-{
- padding-top: 5px;
-}
-#html5_player #artist, #html5_player #album
-{
- display: inline;
-}
-#html5_player #artist:before
-{
- content: ' by ';
-}
-#html5_player #progress_text
-{
- margin: 10px 0px 10px 0px;
-}
-#html5_player #stop, #html5_player #play,#html5_player #pause,#html5_player #next,#html5_player #previous,#html5_player #clear_search
-{
- display: inline;
- border: thin solid black;
- cursor: pointer;
- padding: 2px;
- margin-right: 5px;
-}
#html5_player #playlist
{
- overflow-x: hidden;
- overflow-y: scroll;
- position: absolute;
- top: 85px;
- left: 210px;
- right: 5px;
- bottom: 5px;
-}
-#html5_player #playlist li
-{
- cursor: pointer;
-}
-#html5_player #playlist li.playing
-{
- font-weight: bold;
-}
-#html5_player #stop.inactive, #html5_player #pause.inactive, #html5_player #play.inactive
-{
- display: none;
+ overflow-x: hidden;
+ overflow-y: scroll;
+ top: 85px;
+ left: 210px;
+ right: 5px;
+ bottom: 5px;
}
#html5_player #search
{
- top: 56px;
- right: 5px;
- position: absolute;
-}
-#html5_player #search input
-{
- background: transparent;
+ position: absolute;
+ top: 56px;
+ right: 5px;
}
+
/***********************************************
Other
***********************************************/