File tree 3 files changed +49
-14
lines changed 3 files changed +49
-14
lines changed Original file line number Diff line number Diff line change 1
1
< html >
2
2
< head >
3
3
< title > JSON Server</ title >
4
- < link href ="//netdna.bootstrapcdn .com/bootswatch/3.1.1/flatly/bootstrap .min.css " rel =" stylesheet ">
4
+ < link rel =" stylesheet " href ="//cdn.rawgit .com/milligram/milligram/master/dist/milligram .min.css ">
5
5
< link rel ="stylesheet " href ="stylesheets/style.css ">
6
6
</ head >
7
7
< body >
8
- < div class ="container ">
8
+ < main class ="container ">
9
9
< p >
10
10
< a href ="https://github.com/typicode/json-server " class ="logo ">
11
11
< img src ="images/json.png ">
@@ -54,13 +54,14 @@ <h4>Issues</h4>
54
54
< p > Please go
55
55
< a href ="https://github.com/typicode/json-server/issues "> here</ a > .
56
56
</ p >
57
+ </ main >
57
58
59
+ < footer class ="container ">
58
60
< hr >
59
-
60
61
< p >
61
- < i > To replace this page, create an index.html file in ./public, JSON Server will load it.</ i >
62
+ To replace this page, create an index.html file in ./public, JSON Server will load it.
62
63
</ p >
63
- </ div >
64
+ </ footer >
64
65
65
66
< script src ="https://unpkg.com/mithril/mithril.min.js "> </ script >
66
67
< script src ="main.js "> </ script >
Original file line number Diff line number Diff line change @@ -33,8 +33,11 @@ m.mount(
33
33
view : function ( ) {
34
34
return [
35
35
m ( 'p' , 'And the custom routes:' ) ,
36
- m ( 'ul' , Object . keys ( rules ) . map ( function ( rule ) {
37
- return m ( 'li' , rule + ' → ' + rules [ rule ] )
36
+ m ( 'table' , Object . keys ( rules ) . map ( function ( rule ) {
37
+ return m ( 'tr' , [
38
+ m ( 'td' , rule ) ,
39
+ m ( 'td' , '⇢ ' + rules [ rule ] )
40
+ ] )
38
41
} ) )
39
42
]
40
43
}
Original file line number Diff line number Diff line change 1
- a {
2
- color : # 1882BC !important ;
1
+ html {
2
+ height : 100% ;
3
+ }
4
+
5
+ body {
6
+ min-height : 100% ;
7
+ display : flex;
8
+ flex-direction : column;
9
+ }
10
+
11
+ main {
12
+ flex : 1 ;
13
+ padding : 2rem 0 ;
14
+ }
15
+
16
+ a , a : hover {
17
+ color : # 1882BC ;
18
+ text-decoration : underline;
19
+ }
20
+
21
+ table {
22
+ margin-left : 30px ;
23
+ }
24
+
25
+ td {
26
+ border : 0 ;
27
+ }
28
+
29
+ td : first-child {
30
+ width : 1% ;
31
+ white-space : nowrap;
32
+ color : # 1882BC ;
3
33
}
4
34
5
35
img {
6
36
padding-top : 50px ;
7
37
padding-bottom : 20px ;
8
38
}
9
39
10
- li {
11
- list-style-type : square;
40
+ ul {
41
+ list-style-position : inside;
42
+ padding-left : 30px ;
12
43
}
13
44
14
- h4 {
15
- padding-top : 20 px ;
16
- }
45
+ li {
46
+ list-style-type : none ;
47
+ }
You can’t perform that action at this time.
0 commit comments