Permalink
Browse files

Minor styling update for 'mobile'

  • Loading branch information...
Craig Walls
Craig Walls committed Oct 16, 2012
1 parent 6a9e063 commit 0e35f957716e198ebd924c3e0119c4b752f5e8c9
@@ -3,7 +3,7 @@ S2GX.Router.create(module, {
var view = this.view('s2gx/Sessions');
var sessions = new S2GX.Collections.Sessions();
sessions.load(function() {
- view.setCollection(sessions);
+ view.setModel(sessions);
S2GX.layout.setView(view);
});
}
@@ -1,4 +1,36 @@
-body {
- background-color: #0000ff;
- color: #ffffff;
-}
+body
+ margin: 0px
+ padding: 0px
+
+header
+ height: 40px
+ line-height: 40px
+ background: -webkit-gradient(linear, left top, left bottom, from(rgba(255, 255, 255, 0.3)), color-stop(0.5, rgba(255, 255, 255, 0.1)), color-stop(0.5, rgba(255, 255, 255, 0))), -webkit-gradient(linear, left top, left bottom, from(lighten(#5b76bf, 5%)), to(#3d4f80))
+ margin: 0
+ padding: 0
+ text-align: center
+ text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.5)
+
+ h2
+ margin: 0
+ padding: 0
+ color: #fffeff
+ font-weight: bold
+ text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.5)
+
+ul.listview
+ list-style: none
+ margin: 0px
+ padding: 0px
+
+ul.listview li
+ border-bottom: 1px solid #999999
+ padding: 0 17px
+ height: 50px
+ vertical-alignment: center
+ line-height: 50px
+ overflow: hidden
+ text-overflow:ellipsis
+ white-space: nowrap
+ font-weight: bold
+
@@ -1,4 +1,8 @@
-<h2>Sessions</h2>
-{{#each sessions}}
-<li>{{title}}</li>
-{{/each}}
+<header><h2>SpringOne/2GX</h2></header>
+<article>
+<ul class="listview">
+{{#each model.models}}
+<li>{{attributes.title}}</li>
+{{/each}}
+</ul>
+</article>

0 comments on commit 0e35f95

Please sign in to comment.