-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathlayout-mobile.css
132 lines (118 loc) · 2.54 KB
/
layout-mobile.css
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
body {
position: absolute;
margin: 0;
top: 0;
bottom: 0;
width: 100%;
height: 100%;
overflow: hidden;
}
#note_list {
position: absolute;
left: 0;
top: 0;
width: 100%;
height: 100%;
overflow: hidden;
box-sizing: border-box;
-moz-box-sizing: border-box;
-webkit-box-sizing: border-box;
}
#note_list > div.list_header {
width: 100%;
height: 2rem;
top: 0;
box-sizing: border-box;
-moz-box-sizing: border-box;
-webkit-box-sizing: border-box;
}
#note_list > div.list_header span {
position: absolute;
padding: 0.5rem;
box-sizing: border-box;
-moz-box-sizing: border-box;
-webkit-box-sizing: border-box;
}
#note_list > input {
position: absolute;
bottom: 0;
width: 100%;
height: 2rem;
}
#note_list > div.list_content {
position: absolute;
width: 100%;
top: 2rem;
bottom: 2rem;
box-sizing: border-box;
-moz-box-sizing: border-box;
-webkit-box-sizing: border-box;
overflow-y: auto;
overflow-scrolling: touch;
-moz-overflow-scrolling: touch;
-webkit-overflow-scrolling: touch;
}
#note_list > div.list_content > ul {
padding: 0;
margin: 0;
}
#note_list > div.list_content > ul > li {
width: 100%;
padding: 0.5rem;
box-sizing: border-box;
-moz-box-sizing: border-box;
-webkit-box-sizing: border-box;
}
#note_view {
position: absolute;
left: 0;
top: 0;
display: block;
width: 100%;
height: 100%;
box-sizing: border-box;
-moz-box-sizing: border-box;
-webkit-box-sizing: border-box;
transition: 500ms all;
-webkit-transition: 500ms all;
}
#note_view div.note_header {
width: 100%;
height: 2rem;
top: 0;
padding: 0.5rem;
box-sizing: border-box;
-moz-box-sizing: border-box;
-webkit-box-sizing: border-box;
}
#note_view div.note_header span {
width: 80%;
overflow: hidden;
text-align: center;
}
#note_view div.note_header input {
position: absolute;
top: 0.2rem;
left: 0.3rem;
height: 1.6rem;
}
#note_view div.note_content {
position: absolute;
width: 100%;
top: 2rem;
bottom: 0;
padding: 0.5rem;
box-sizing: border-box;
-moz-box-sizing: border-box;
-webkit-box-sizing: border-box;
}
body[view=list] #note_view {
transform: translateY(100%);
-moz-transform: translateY(100%);
-webkit-transform: translate3d(0, 100%, 0);
}
body[view=note] #note_view {
transform: translateY(0);
-moz-transform: translateY(0);
-webkit-transform: translate3d(0, 0, 0);
}