summaryrefslogtreecommitdiff
path: root/www
diff options
context:
space:
mode:
authorChristian Pointner <equinox@helsinki.at>2016-06-25 01:44:59 (GMT)
committerChristian Pointner <equinox@helsinki.at>2016-06-25 01:45:20 (GMT)
commit725acfe74356e46580dcc727b0f799d3e3ec3e06 (patch)
tree61768e011d89ee92b6dd3b5f4077bfa4188ce493 /www
parent08faf157b1d86e565d34bfb9507e8fc3d662d1f6 (diff)
css for nextshow is almost done (needs testing)
Diffstat (limited to 'www')
-rw-r--r--www/js/nextshows.js16
-rw-r--r--www/nextshows.html2
-rw-r--r--www/styles/nextshows.css59
-rw-r--r--www/weeks.html8
4 files changed, 67 insertions, 18 deletions
diff --git a/www/js/nextshows.js b/www/js/nextshows.js
index 39f61dd..0ab6c83 100644
--- a/www/js/nextshows.js
+++ b/www/js/nextshows.js
@@ -76,8 +76,8 @@ rh.ShowListView = function(model, len) {
};
rh.ShowListView.prototype.render = function() {
- var list = $('#shows table');
- $('tr', list).remove();
+ var list = $('#shows');
+ $('div.show', list).remove();
this.showViews = [];
var self = this;
@@ -94,23 +94,23 @@ rh.ShowView = function(model, listView) {
this.model = model;
this.listView = listView;
- this.$el = $('<tr>');
+ this.$el = $('<div>');
};
rh.ShowView.prototype.render = function() {
- var title = $('<td>').addClass('show-title').text(this.model.title);
-
var startstr = "Beginn: " + format_time(this.model.start);
- var start = $('<td>').addClass('show-start').text(startstr);
+ var start = $('<span>').addClass('show-start').text(startstr);
var endstr = "Live";
if(this.model.len > 0) {
var end = new Date(this.model.start.valueOf() + this.model.len);
endstr = "Ende: " + format_time(end);
}
- var end = $('<td>').addClass('show-end').text(endstr);
+ var end = $('<span>').addClass('show-end').text(endstr);
+
+ var title = $('<span>').addClass('show-title').text(this.model.title);
- this.$el.empty().addClass('show').append(start).append(title).append(end);
+ this.$el.empty().addClass('show').append(start).append(end).append(title);
}
diff --git a/www/nextshows.html b/www/nextshows.html
index e40a9c6..f668219 100644
--- a/www/nextshows.html
+++ b/www/nextshows.html
@@ -24,8 +24,6 @@
</div>
<div id="shows">
- <table>
- </table>
</div>
</div>
diff --git a/www/styles/nextshows.css b/www/styles/nextshows.css
index b45514e..73efce8 100644
--- a/www/styles/nextshows.css
+++ b/www/styles/nextshows.css
@@ -19,20 +19,22 @@
* along with rhrdweb. If not, see <http://www.gnu.org/licenses/>.
*/
-body, #container {
+body {
+ font-family: "Droid Sans", Helvetica, Arial, Sans;
margin: 0;
padding: 0;
- font-size: 42px;
+ font-size: 48px;
}
+
#header {
- background-color: #101010;
+ background-color: #36373B;
width: 100%;
color: white;
}
#clock {
- padding: 0.4em;
+ padding: 0.1em;
}
#clock span {
@@ -52,3 +54,52 @@ body, #container {
padding: 0.1em;
font-weight: bold;
}
+
+
+
+#shows div.show {
+ padding: 0.1em 0;
+}
+
+#shows div:nth-child(odd) {
+ background-color: white;
+}
+
+#shows div:nth-child(even) {
+ background-color: #E0E0E0;
+}
+
+div.show span {
+ font-weight: bold;
+ margin: 0.1em 0.22em;
+}
+
+div.show span.show-start, div.show span.show-end {
+ font-size: 0.75em;
+ margin-left: 1em;
+ margin-right: 1em;
+}
+
+span.show-start {
+ float: left;
+}
+
+span.show-end {
+ float: right;
+}
+
+span.show-title {
+ white-space:nowrap;
+ overflow:hidden;
+ clear: both;
+ display: block;
+ text-align: center;
+}
+
+#shows div:first-child {
+ padding-bottom: 0.5em;
+}
+
+#shows div:first-child span.show-title {
+ font-size: 1.2em;
+}
diff --git a/www/weeks.html b/www/weeks.html
index 4cba4d2..0316fad 100644
--- a/www/weeks.html
+++ b/www/weeks.html
@@ -54,10 +54,10 @@
</div>
</div>
- <script type="text/javascript">
- clock_init();
- calendar_init();
- </script>
+ <script type="text/javascript">
+ clock_init();
+ calendar_init();
+ </script>
</body>
</html>