Skip to content
This repository was archived by the owner on Jan 19, 2022. It is now read-only.

Commit 336665d

Browse files
committed
separate list-detail logic into separate library
1 parent 00d16aa commit 336665d

File tree

7 files changed

+442
-454
lines changed

7 files changed

+442
-454
lines changed

Diff for: .gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -43,3 +43,4 @@ build/config/buildinfo.properties
4343

4444
www-built
4545
www-ghdeploy
46+
.#*

Diff for: www/css/app.css

+4
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,10 @@ section.detail .contents, section.edit .contents {
1111
padding: 1em
1212
}
1313

14+
section.detail .contents h1 {
15+
margin: 0;
16+
}
17+
1418
section.edit .field {
1519
margin-top: 1em;
1620
}

Diff for: www/css/layouts.css

+8-6
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ html, body {
44
padding: 0;
55
height: 100%;
66
overflow: hidden;
7+
font-family: Georgia, serif;
78
}
89

910
#app .list ul {
@@ -25,14 +26,15 @@ html, body {
2526
top: 0;
2627
left: 0;
2728
display: none;
29+
border-left: 1px solid black;
2830
}
2931

3032
#app > section.moving {
31-
transition: left ease-in 0.1s;
32-
-o-transition: left ease-in 0.1s;
33-
-ms-transition: left ease-in 0.1s;
34-
-moz-transition: left ease-in 0.1s;
35-
-webkit-transition: left ease-in 0.1s;
33+
transition: left ease-in 0.15s;
34+
-o-transition: left ease-in 0.15s;
35+
-ms-transition: left ease-in 0.15s;
36+
-moz-transition: left ease-in 0.15s;
37+
-webkit-transition: left ease-in 0.15s;
3638
}
3739

3840
#app {
@@ -100,5 +102,5 @@ header h1 {
100102
margin-top: 4pt;
101103
padding: 0;
102104
font-size: 2em;
103-
line-height: 31pt;
105+
line-height: 29pt;
104106
}

Diff for: www/index.html

+3-15
Original file line numberDiff line numberDiff line change
@@ -22,17 +22,15 @@
2222

2323
<section class="list open">
2424
<header>
25-
<button>Refresh</button>
26-
27-
<h1>Items</h1>
28-
25+
<button class="refresh">Refresh</button>
26+
<h1>My Items</h1>
2927
<button class="add">+</button>
3028
</header>
3129
</section>
3230

3331
<section class="detail">
3432
<header>
35-
<h1>hello</h1>
33+
<h1></h1>
3634
<button class="edit">Edit</button>
3735
</header>
3836
</section>
@@ -46,16 +44,6 @@ <h1>Edit</h1>
4644
</section>
4745
</div>
4846

49-
50-
<!-- Write your application here -->
51-
52-
53-
54-
55-
56-
57-
58-
5947
<!-- Using require.js, a module system for javascript, include the
6048
js files. This loads "main.js", which in turn can load other
6149
files, all handled by require.js:

0 commit comments

Comments
 (0)