Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Div container for each li, so that delete actions underneath

  • Loading branch information...
commit 5403aed32fd072faaa4e999ea754102db1d6b9d1 1 parent a7666bd
@matthewp authored
Showing with 19 additions and 8 deletions.
  1. +7 −3 js/atwork.js
  2. +7 −3 src/sessionlist.js
  3. +5 −2 style/atwork.css
View
10 js/atwork.js
@@ -288,6 +288,9 @@ var SessionList = {
var li = document.createElement('li');
li.id = session.id;
+ var div = document.createElement('div');
+ div.className = 'item';
+
var date = session.beginDate;
var left = document.createElement('span');
left.className = 'date';
@@ -300,9 +303,10 @@ var SessionList = {
var rule = document.createElement('hr');
- li.appendChild(left);
- li.appendChild(right);
- li.appendChild(rule);
+ div.appendChild(left);
+ div.appendChild(right);
+ div.appendChild(rule);
+ li.appendChild(div);
var hammer = new Hammer(li);
hammer.ondragstart = this.dragStart.bind(this);
View
10 src/sessionlist.js
@@ -37,6 +37,9 @@ var SessionList = {
var li = document.createElement('li');
li.id = session.id;
+ var div = document.createElement('div');
+ div.className = 'item';
+
var date = session.beginDate;
var left = document.createElement('span');
left.className = 'date';
@@ -49,9 +52,10 @@ var SessionList = {
var rule = document.createElement('hr');
- li.appendChild(left);
- li.appendChild(right);
- li.appendChild(rule);
+ div.appendChild(left);
+ div.appendChild(right);
+ div.appendChild(rule);
+ li.appendChild(div);
var hammer = new Hammer(li);
hammer.ondragstart = this.dragStart.bind(this);
View
7 style/atwork.css
@@ -141,13 +141,16 @@ nav div#buttons span:nth-child(2) {
/* Log Page */
.sessions {
- background: #3D3D3D;
font-size: 1.6em;
padding: 0;
}
-.sessions li {
+.sessions .item {
background: white;
+}
+
+.sessions li {
+ background: #3D3D3D;
list-style: none;
}
Please sign in to comment.
Something went wrong with that request. Please try again.