zhangdocs 1.1.3 → 1.1.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.bin/zhangdocs.js +1 -1
- package/README.md +28 -57
- package/index.html +152 -0
- package/lib/build.js +13 -2
- package/lib/toc.js +20 -2
- package/md/README.md +40 -0
- package/package.json +46 -40
- package/static/css/_partial/head_nav.styl/head_nav.styl +239 -0
- package/static/css/_partial/highlight.styl/highlight.styl +103 -0
- package/static/css/_partial/markdown.styl/markdown.styl +121 -0
- package/static/css/_partial/reset.styl/reset.styl +101 -0
- package/static/css/_partial/variables.styl/variables.styl +10 -0
- package/static/css/main.css +1 -0
- package/static/css/main.styl/main.styl +156 -0
- package/static/img/forkgithub.png/forkgithub.png +0 -0
- package/theme/handbook/footer.ejs +58 -58
- package/theme/handbook/gitignore +22 -22
- package/theme/handbook/head.ejs +57 -57
- package/theme/handbook/header.ejs +5 -5
- package/theme/handbook/layout.ejs +109 -108
- package/theme/handbook/source/css/_partial/highlight.styl +103 -103
- package/theme/handbook/source/css/_partial/markdown.styl +122 -122
- package/theme/handbook/source/css/_partial/reset.styl +100 -100
- package/theme/handbook/source/css/_partial/variables.styl +9 -9
|
@@ -0,0 +1,239 @@
|
|
|
1
|
+
.navbar
|
|
2
|
+
line-height: nav-height
|
|
3
|
+
ul
|
|
4
|
+
list-style: none
|
|
5
|
+
position: relative
|
|
6
|
+
display: inline-table
|
|
7
|
+
float: left
|
|
8
|
+
@media mq-mobile
|
|
9
|
+
position: absolute
|
|
10
|
+
ul
|
|
11
|
+
display: none
|
|
12
|
+
background: #FFFFFF
|
|
13
|
+
border-radius: 0 0 5px 5px
|
|
14
|
+
padding: 3px
|
|
15
|
+
position: absolute
|
|
16
|
+
top: 100%
|
|
17
|
+
z-index: 9
|
|
18
|
+
li.active
|
|
19
|
+
a
|
|
20
|
+
color: #463265
|
|
21
|
+
background-color: #f9f9f9
|
|
22
|
+
line-height:29px
|
|
23
|
+
height:29px
|
|
24
|
+
li
|
|
25
|
+
float: none
|
|
26
|
+
border-bottom: 1px solid #F7F2FF
|
|
27
|
+
position: relative
|
|
28
|
+
a:hover
|
|
29
|
+
color:#573E7D
|
|
30
|
+
a
|
|
31
|
+
color: #fff
|
|
32
|
+
line-height: 29px
|
|
33
|
+
white-space:nowrap
|
|
34
|
+
word-break:keep-all
|
|
35
|
+
ul
|
|
36
|
+
position: absolute
|
|
37
|
+
left: 100%
|
|
38
|
+
top:0
|
|
39
|
+
border-radius 0 5px 5px 5px
|
|
40
|
+
li
|
|
41
|
+
float: left
|
|
42
|
+
line-height: nav-height
|
|
43
|
+
a
|
|
44
|
+
display: block
|
|
45
|
+
color: #757575
|
|
46
|
+
text-decoration: none
|
|
47
|
+
padding: 0 15px
|
|
48
|
+
@media mq-mobile
|
|
49
|
+
padding: 0 5px
|
|
50
|
+
li:hover
|
|
51
|
+
background: #F3F3F3
|
|
52
|
+
a
|
|
53
|
+
color: #333
|
|
54
|
+
li.active
|
|
55
|
+
a
|
|
56
|
+
color: #463265
|
|
57
|
+
background-color: #F3F3F3
|
|
58
|
+
height: nav-height
|
|
59
|
+
ul li:hover > ul
|
|
60
|
+
display: block
|
|
61
|
+
box-shadow: rgba(0, 0, 0, 0.26) 0px 2px 2px 1px
|
|
62
|
+
ul:after
|
|
63
|
+
content: ""
|
|
64
|
+
clear: both
|
|
65
|
+
display: block
|
|
66
|
+
|
|
67
|
+
#zhangdocs_nav
|
|
68
|
+
display none
|
|
69
|
+
|
|
70
|
+
@media mq-tablet
|
|
71
|
+
.navbar
|
|
72
|
+
z-index: 2
|
|
73
|
+
background-image: linear-gradient(to bottom,#fff 0,#f8f8f8 100%)
|
|
74
|
+
|
|
75
|
+
section.zhangdocs_nav_btn
|
|
76
|
+
position relative
|
|
77
|
+
transition all 0.6s
|
|
78
|
+
z-index 999
|
|
79
|
+
display block
|
|
80
|
+
label
|
|
81
|
+
position fixed
|
|
82
|
+
display block
|
|
83
|
+
right 7px
|
|
84
|
+
top 10px
|
|
85
|
+
cursor pointer
|
|
86
|
+
z-index 99
|
|
87
|
+
width 26px
|
|
88
|
+
height 26px
|
|
89
|
+
overflow hidden
|
|
90
|
+
span,&:after,&:before
|
|
91
|
+
content ''
|
|
92
|
+
display block
|
|
93
|
+
height 3px
|
|
94
|
+
background #333
|
|
95
|
+
margin 4px 4px 0 4px
|
|
96
|
+
transform rotate(0deg)
|
|
97
|
+
transition all 0.6s
|
|
98
|
+
.menu_tree
|
|
99
|
+
transition all 0.6s
|
|
100
|
+
background #fff
|
|
101
|
+
position relative
|
|
102
|
+
width 100%
|
|
103
|
+
// display none
|
|
104
|
+
ul
|
|
105
|
+
opacity 0
|
|
106
|
+
height 0
|
|
107
|
+
overflow hidden
|
|
108
|
+
display block
|
|
109
|
+
transition all 0.6s
|
|
110
|
+
input#zhangdocs_nav:checked ~ section label span
|
|
111
|
+
display none
|
|
112
|
+
input#zhangdocs_nav:checked ~ section label:before
|
|
113
|
+
margin 12px 4px 0 4px
|
|
114
|
+
transform rotate(45deg)
|
|
115
|
+
border-radius 3px
|
|
116
|
+
background #458
|
|
117
|
+
input#zhangdocs_nav:checked ~ section label:after
|
|
118
|
+
margin -3px 4px 0 4px
|
|
119
|
+
transform rotate(-45deg)
|
|
120
|
+
border-radius 3px
|
|
121
|
+
background #458
|
|
122
|
+
input#zhangdocs_nav:checked ~ .menu_tree
|
|
123
|
+
display block
|
|
124
|
+
ul
|
|
125
|
+
width 100%
|
|
126
|
+
opacity 1
|
|
127
|
+
position relative
|
|
128
|
+
transition all 0.6s
|
|
129
|
+
padding-bottom 10px
|
|
130
|
+
display block
|
|
131
|
+
height inherit
|
|
132
|
+
li.active
|
|
133
|
+
line-height 36px
|
|
134
|
+
a
|
|
135
|
+
line-height 36px
|
|
136
|
+
height 36px
|
|
137
|
+
background-color #D7D7D7
|
|
138
|
+
li
|
|
139
|
+
float initial
|
|
140
|
+
line-height 30px
|
|
141
|
+
&:hover
|
|
142
|
+
background transparent
|
|
143
|
+
&:hover > ul
|
|
144
|
+
box-shadow #fff 0 0 0 0
|
|
145
|
+
ul
|
|
146
|
+
display block
|
|
147
|
+
position inherit
|
|
148
|
+
border-radius 0
|
|
149
|
+
float inherit
|
|
150
|
+
background #EEE
|
|
151
|
+
padding-left 7px
|
|
152
|
+
padding-bottom 0px
|
|
153
|
+
li
|
|
154
|
+
display inline-block
|
|
155
|
+
@media mq-mobile
|
|
156
|
+
.navbar
|
|
157
|
+
z-index: 2
|
|
158
|
+
background-image: linear-gradient(to bottom,#fff 0,#f8f8f8 100%)
|
|
159
|
+
|
|
160
|
+
section.zhangdocs_nav_btn
|
|
161
|
+
position relative
|
|
162
|
+
transition all 0.6s
|
|
163
|
+
z-index 999
|
|
164
|
+
display block
|
|
165
|
+
label
|
|
166
|
+
position fixed
|
|
167
|
+
display block
|
|
168
|
+
right 7px
|
|
169
|
+
top 10px
|
|
170
|
+
cursor pointer
|
|
171
|
+
z-index 99
|
|
172
|
+
width 26px
|
|
173
|
+
height 26px
|
|
174
|
+
overflow hidden
|
|
175
|
+
span,&:after,&:before
|
|
176
|
+
content ''
|
|
177
|
+
display block
|
|
178
|
+
height 3px
|
|
179
|
+
background #333
|
|
180
|
+
margin 4px 4px 0 4px
|
|
181
|
+
transform rotate(0deg)
|
|
182
|
+
transition all 0.6s
|
|
183
|
+
.menu_tree
|
|
184
|
+
transition all 0.6s
|
|
185
|
+
background #fff
|
|
186
|
+
position relative
|
|
187
|
+
width 100%
|
|
188
|
+
// display none
|
|
189
|
+
ul
|
|
190
|
+
opacity 0
|
|
191
|
+
height 0
|
|
192
|
+
overflow hidden
|
|
193
|
+
display block
|
|
194
|
+
transition all 0.6s
|
|
195
|
+
input#zhangdocs_nav:checked ~ section label span
|
|
196
|
+
display none
|
|
197
|
+
input#zhangdocs_nav:checked ~ section label:before
|
|
198
|
+
margin 12px 4px 0 4px
|
|
199
|
+
transform rotate(45deg)
|
|
200
|
+
border-radius 3px
|
|
201
|
+
background #458
|
|
202
|
+
input#zhangdocs_nav:checked ~ section label:after
|
|
203
|
+
margin -3px 4px 0 4px
|
|
204
|
+
transform rotate(-45deg)
|
|
205
|
+
border-radius 3px
|
|
206
|
+
background #458
|
|
207
|
+
input#zhangdocs_nav:checked ~ .menu_tree
|
|
208
|
+
display block
|
|
209
|
+
ul
|
|
210
|
+
width 100%
|
|
211
|
+
opacity 1
|
|
212
|
+
position relative
|
|
213
|
+
transition all 0.6s
|
|
214
|
+
padding-bottom 10px
|
|
215
|
+
display block
|
|
216
|
+
height inherit
|
|
217
|
+
li.active
|
|
218
|
+
line-height 36px
|
|
219
|
+
a
|
|
220
|
+
line-height 36px
|
|
221
|
+
height 36px
|
|
222
|
+
background-color #D7D7D7
|
|
223
|
+
li
|
|
224
|
+
float initial
|
|
225
|
+
line-height 30px
|
|
226
|
+
&:hover
|
|
227
|
+
background transparent
|
|
228
|
+
&:hover > ul
|
|
229
|
+
box-shadow #fff 0 0 0 0
|
|
230
|
+
ul
|
|
231
|
+
display block
|
|
232
|
+
position inherit
|
|
233
|
+
border-radius 0
|
|
234
|
+
float inherit
|
|
235
|
+
background #EEE
|
|
236
|
+
padding-left 7px
|
|
237
|
+
padding-bottom 0px
|
|
238
|
+
li
|
|
239
|
+
display inline-block
|
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
/*
|
|
2
|
+
github.com style (c) Vasily Polovnyov <vast@whiteants.net>
|
|
3
|
+
*/
|
|
4
|
+
.hljs
|
|
5
|
+
display: block
|
|
6
|
+
overflow-x: auto
|
|
7
|
+
padding: 0.5em
|
|
8
|
+
color: #333
|
|
9
|
+
background: #f8f8f8
|
|
10
|
+
-webkit-text-size-adjust: none
|
|
11
|
+
|
|
12
|
+
.hljs-comment,
|
|
13
|
+
.diff .hljs-header
|
|
14
|
+
color: #969896
|
|
15
|
+
font-size: 90%
|
|
16
|
+
|
|
17
|
+
.hljs-keyword,
|
|
18
|
+
.css .rule .hljs-keyword,
|
|
19
|
+
.hljs-winutils,
|
|
20
|
+
.nginx .hljs-title,
|
|
21
|
+
.hljs-subst,
|
|
22
|
+
.hljs-request,
|
|
23
|
+
.hljs-status
|
|
24
|
+
color: #a71d5d
|
|
25
|
+
font-weight: bold
|
|
26
|
+
|
|
27
|
+
.hljs-number,
|
|
28
|
+
.hljs-hexcolor,
|
|
29
|
+
.ruby .hljs-constant
|
|
30
|
+
color: #008080
|
|
31
|
+
|
|
32
|
+
.hljs-string,
|
|
33
|
+
.hljs-tag .hljs-value,
|
|
34
|
+
.hljs-doctag,
|
|
35
|
+
.tex .hljs-formula
|
|
36
|
+
color: #183691
|
|
37
|
+
|
|
38
|
+
.hljs-title,
|
|
39
|
+
.hljs-id,
|
|
40
|
+
.scss .hljs-preprocessor
|
|
41
|
+
color: #900
|
|
42
|
+
font-weight: bold
|
|
43
|
+
|
|
44
|
+
.hljs-list .hljs-keyword,
|
|
45
|
+
.hljs-subst
|
|
46
|
+
font-weight: normal
|
|
47
|
+
|
|
48
|
+
.hljs-class .hljs-title,
|
|
49
|
+
.hljs-type,
|
|
50
|
+
.vhdl .hljs-literal,
|
|
51
|
+
.tex .hljs-command
|
|
52
|
+
color: #458
|
|
53
|
+
font-weight: bold
|
|
54
|
+
|
|
55
|
+
.hljs-tag,
|
|
56
|
+
.hljs-tag .hljs-title,
|
|
57
|
+
.hljs-rule .hljs-property,
|
|
58
|
+
.django .hljs-tag .hljs-keyword
|
|
59
|
+
color: #000080
|
|
60
|
+
font-weight: normal
|
|
61
|
+
|
|
62
|
+
.hljs-attribute,
|
|
63
|
+
.hljs-variable,
|
|
64
|
+
.lisp .hljs-body,
|
|
65
|
+
.hljs-name
|
|
66
|
+
color: #008080
|
|
67
|
+
|
|
68
|
+
.hljs-regexp
|
|
69
|
+
color: #009926
|
|
70
|
+
|
|
71
|
+
.hljs-symbol,
|
|
72
|
+
.ruby .hljs-symbol .hljs-string,
|
|
73
|
+
.lisp .hljs-keyword,
|
|
74
|
+
.clojure .hljs-keyword,
|
|
75
|
+
.scheme .hljs-keyword,
|
|
76
|
+
.tex .hljs-special,
|
|
77
|
+
.hljs-prompt
|
|
78
|
+
color: #990073
|
|
79
|
+
|
|
80
|
+
.hljs-built_in
|
|
81
|
+
color: #0086b3
|
|
82
|
+
|
|
83
|
+
.hljs-preprocessor,
|
|
84
|
+
.hljs-pragma,
|
|
85
|
+
.hljs-pi,
|
|
86
|
+
.hljs-doctype,
|
|
87
|
+
.hljs-shebang,
|
|
88
|
+
.hljs-cdata
|
|
89
|
+
color: #999
|
|
90
|
+
font-weight: bold
|
|
91
|
+
|
|
92
|
+
.hljs-deletion
|
|
93
|
+
background: #fdd
|
|
94
|
+
|
|
95
|
+
.hljs-addition
|
|
96
|
+
background: #dfd
|
|
97
|
+
|
|
98
|
+
.diff .hljs-change
|
|
99
|
+
background: #0086b3
|
|
100
|
+
|
|
101
|
+
.hljs-chunk
|
|
102
|
+
color: #aaa
|
|
103
|
+
|
|
@@ -0,0 +1,121 @@
|
|
|
1
|
+
|
|
2
|
+
.markdown-body
|
|
3
|
+
padding: 30px 35px 30px 0
|
|
4
|
+
word-wrap: break-word
|
|
5
|
+
font-family: "Helvetica Neue", Helvetica, "Segoe UI", Arial, freesans, sans-serif
|
|
6
|
+
font-size: 16px
|
|
7
|
+
line-height: 1.4em
|
|
8
|
+
color:#333
|
|
9
|
+
@media mq-mobile
|
|
10
|
+
padding-right 0
|
|
11
|
+
&>*:first-child
|
|
12
|
+
margin-top: 0 !important
|
|
13
|
+
strong
|
|
14
|
+
font-weight: bold
|
|
15
|
+
hr
|
|
16
|
+
border-top: 1px solid #CACACA
|
|
17
|
+
border-width: 1px 0 0 0
|
|
18
|
+
em
|
|
19
|
+
font-style:italic
|
|
20
|
+
img
|
|
21
|
+
max-width 100%
|
|
22
|
+
h1,h2,h3,h4,h5,h6
|
|
23
|
+
position: relative
|
|
24
|
+
margin-top: 1em
|
|
25
|
+
margin-bottom: 16px
|
|
26
|
+
font-weight: bold
|
|
27
|
+
line-height: 1.4
|
|
28
|
+
a
|
|
29
|
+
display:none
|
|
30
|
+
&:hover a
|
|
31
|
+
display:inline
|
|
32
|
+
color:#000
|
|
33
|
+
font-size:85%
|
|
34
|
+
h1,h2
|
|
35
|
+
border-bottom: 1px solid #eee
|
|
36
|
+
h1
|
|
37
|
+
font-size: 2.25em
|
|
38
|
+
line-height: 1.2
|
|
39
|
+
padding-bottom: 0.3em
|
|
40
|
+
h2
|
|
41
|
+
padding-bottom: 0.3em
|
|
42
|
+
font-size: 1.75em
|
|
43
|
+
line-height: 1.225
|
|
44
|
+
border-bottom:1px dashed #DEDEDE
|
|
45
|
+
blockquote
|
|
46
|
+
padding: 0 15px
|
|
47
|
+
color: #777
|
|
48
|
+
border-left: 4px solid #ddd
|
|
49
|
+
margin: 0;
|
|
50
|
+
&>:last-child
|
|
51
|
+
margin-bottom: 0
|
|
52
|
+
&>:first-child
|
|
53
|
+
margin-top: 0
|
|
54
|
+
p,blockquote,ul,ol,dl,table,pre
|
|
55
|
+
margin-top: 0;
|
|
56
|
+
margin-bottom: 16px
|
|
57
|
+
ul,ol
|
|
58
|
+
padding-left: 1.4em
|
|
59
|
+
list-style:initial
|
|
60
|
+
ol
|
|
61
|
+
list-style-type: decimal
|
|
62
|
+
ol ol, ul ol
|
|
63
|
+
list-style-type: lower-roman;
|
|
64
|
+
ul ul ol, ul ol ol, ol ul ol, ol ol ol
|
|
65
|
+
list-style-type: lower-alpha;
|
|
66
|
+
pre
|
|
67
|
+
padding: 5px
|
|
68
|
+
overflow: auto
|
|
69
|
+
background-color: #f7f7f9
|
|
70
|
+
border-radius: 3px
|
|
71
|
+
word-break: break-all
|
|
72
|
+
word-wrap: break-word
|
|
73
|
+
font: 16px Consolas, "Liberation Mono", Menlo, Courier, monospace;
|
|
74
|
+
code
|
|
75
|
+
// letter-spacing: 1px
|
|
76
|
+
background-color:transparent
|
|
77
|
+
color: inherit
|
|
78
|
+
line-height: 16px
|
|
79
|
+
display: block
|
|
80
|
+
font-size: 14px
|
|
81
|
+
code:before,code:after,tt:before,tt:after
|
|
82
|
+
letter-spacing: 0;
|
|
83
|
+
content: "";
|
|
84
|
+
code,tt
|
|
85
|
+
padding: 0
|
|
86
|
+
padding-bottom: 2px
|
|
87
|
+
margin: 0 3px
|
|
88
|
+
vertical-align: top
|
|
89
|
+
background-color: #EDEDF7
|
|
90
|
+
border-radius: 4px
|
|
91
|
+
padding-left: 3px
|
|
92
|
+
padding-right: 3px
|
|
93
|
+
font-size: 14px
|
|
94
|
+
color: #6F5990
|
|
95
|
+
code:before,code:after,tt:before,tt:after
|
|
96
|
+
content: "\00a0"
|
|
97
|
+
vertical-align: text-top
|
|
98
|
+
table
|
|
99
|
+
width: 100%
|
|
100
|
+
border-collapse: collapse
|
|
101
|
+
border-spacing: 0
|
|
102
|
+
max-width: 100%
|
|
103
|
+
display: block
|
|
104
|
+
background-color: transparent
|
|
105
|
+
th,td
|
|
106
|
+
border: 1px solid #ddd
|
|
107
|
+
padding: 4px 10px
|
|
108
|
+
th
|
|
109
|
+
font-weight: bold
|
|
110
|
+
background: #F3F3F3
|
|
111
|
+
tr:nth-child(2n)
|
|
112
|
+
background-color: #f8f8f8
|
|
113
|
+
tbody
|
|
114
|
+
background:#fff
|
|
115
|
+
|
|
116
|
+
// markdown 增强样式
|
|
117
|
+
.markdown-body
|
|
118
|
+
.task-list-item
|
|
119
|
+
padding: 0;
|
|
120
|
+
li
|
|
121
|
+
list-style-type: none
|
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
// Reset
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
//在HTML标签在浏览器里有默认的样式,例如 p 标签有上下边距,strong标签有字体加粗样式,em标签有字体倾斜样式。不同浏览器的默认样式之间也会有差别,例如ul默认带有缩进的样式,在IE下,它的缩进是通过margin实现的,而Firefox下,它的缩进是由padding实现的。在切换页面的时候,浏览器的默认样式往往会给我们带来麻烦,影响开发效率。所以解决的方法就是一开始就将浏览器的默认样式全部去掉,更准确说就是通过重新定义标签样式。“覆盖”浏览器的CSS默认属性。最最简单的说法就是把浏览器提供的默认样式覆盖掉!这就是CSS reset。
|
|
5
|
+
|
|
6
|
+
// global-reset()
|
|
7
|
+
// nested-reset()
|
|
8
|
+
// reset-font()
|
|
9
|
+
// reset-box-model()
|
|
10
|
+
// reset-body()
|
|
11
|
+
// reset-table()
|
|
12
|
+
// reset-table-cell()
|
|
13
|
+
// reset-html5()
|
|
14
|
+
|
|
15
|
+
// http://meyerweb.com/eric/thoughts/2007/05/01/reset-reloaded/
|
|
16
|
+
// http://yuilibrary.com/yui/docs/cssreset/
|
|
17
|
+
// http://yui.yahooapis.com/3.18.1/build/cssreset/cssreset-min.css
|
|
18
|
+
// http://cssreset.com/
|
|
19
|
+
|
|
20
|
+
global-reset()
|
|
21
|
+
html, body, div, span, applet, object, iframe,
|
|
22
|
+
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
|
|
23
|
+
a, abbr, acronym, address, big, cite, code,
|
|
24
|
+
del, dfn, em, img, ins, kbd, q, s, samp,
|
|
25
|
+
small, strike, strong, sub, sup, tt, var,
|
|
26
|
+
dl, dt, dd, ol, ul, li,
|
|
27
|
+
fieldset, form, label, legend,
|
|
28
|
+
table, caption, tbody, tfoot, thead, tr, th, td
|
|
29
|
+
reset-box-model()
|
|
30
|
+
reset-font()
|
|
31
|
+
body
|
|
32
|
+
reset-body()
|
|
33
|
+
ol, ul
|
|
34
|
+
list-style: none
|
|
35
|
+
table
|
|
36
|
+
reset-table()
|
|
37
|
+
caption, th, td
|
|
38
|
+
reset-table-cell()
|
|
39
|
+
a
|
|
40
|
+
text-decoration:inherit
|
|
41
|
+
&:hover
|
|
42
|
+
text-decoration:underline
|
|
43
|
+
a img
|
|
44
|
+
border: none
|
|
45
|
+
*
|
|
46
|
+
box-sizing: border-box;
|
|
47
|
+
|
|
48
|
+
nested-reset()
|
|
49
|
+
div, span, object, iframe, h1, h2, h3, h4, h5, h6, p,
|
|
50
|
+
pre, a, abbr, acronym, address, code, del, dfn, em, img,
|
|
51
|
+
dl, dt, dd, ol, ul, li, fieldset, form, label,
|
|
52
|
+
legend, caption, tbody, tfoot, thead, tr
|
|
53
|
+
reset-box-model()
|
|
54
|
+
reset-font()
|
|
55
|
+
table
|
|
56
|
+
reset-table()
|
|
57
|
+
caption, th, td
|
|
58
|
+
reset-table-cell()
|
|
59
|
+
a img
|
|
60
|
+
border: none
|
|
61
|
+
|
|
62
|
+
reset-box-model()
|
|
63
|
+
margin: 0
|
|
64
|
+
padding: 0
|
|
65
|
+
border: 0
|
|
66
|
+
outline: 0
|
|
67
|
+
|
|
68
|
+
reset-font()
|
|
69
|
+
font-weight: inherit
|
|
70
|
+
font-style: inherit
|
|
71
|
+
font-family: inherit
|
|
72
|
+
font-size: 100%
|
|
73
|
+
vertical-align: baseline
|
|
74
|
+
|
|
75
|
+
reset-body()
|
|
76
|
+
line-height: 1
|
|
77
|
+
color: black
|
|
78
|
+
background: white
|
|
79
|
+
|
|
80
|
+
reset-table()
|
|
81
|
+
border-collapse: separate
|
|
82
|
+
border-spacing: 0
|
|
83
|
+
vertical-align: middle
|
|
84
|
+
|
|
85
|
+
reset-table-cell()
|
|
86
|
+
text-align: left
|
|
87
|
+
font-weight: normal
|
|
88
|
+
vertical-align: middle
|
|
89
|
+
|
|
90
|
+
reset-html5()
|
|
91
|
+
article, aside, canvas, details, figcaption,
|
|
92
|
+
figure, footer, header, hgroup, menu, nav,
|
|
93
|
+
section, summary, main
|
|
94
|
+
reset-box-model()
|
|
95
|
+
display: block
|
|
96
|
+
audio, canvas, video
|
|
97
|
+
display inline-block
|
|
98
|
+
*display inline
|
|
99
|
+
*zoom 1
|
|
100
|
+
audio:not([controls]),[hidden]
|
|
101
|
+
display none
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
// Media queries
|
|
2
|
+
mq-mobile = "screen and (max-width: 479px)"
|
|
3
|
+
mq-tablet = "screen and (min-width: 480px) and (max-width: 1170px)"
|
|
4
|
+
// mq-iPhones4 = "only screen and (min-device-width: 320px) and (max-device-width: 480px) and (-webkit-min-device-pixel-ratio: 2)"
|
|
5
|
+
// mq-normal = "screen and (min-width: 768px)"
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
tocwidth = 220px
|
|
10
|
+
nav-height = 49px
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
html,body,div,span,applet,object,iframe,h1,h2,h3,h4,h5,h6,p,blockquote,pre,a,abbr,acronym,address,big,cite,code,del,dfn,em,img,ins,kbd,q,s,samp,small,strike,strong,sub,sup,tt,var,dl,dt,dd,ol,ul,li,fieldset,form,label,legend,table,caption,tbody,tfoot,thead,tr,th,td{margin:0;padding:0;border:0;outline:0;font-weight:inherit;font-style:inherit;font-family:inherit;font-size:100%;vertical-align:baseline}body{line-height:1;color:#000;background:#fff}ol,ul{list-style:none}table{border-collapse:separate;border-spacing:0;vertical-align:middle}caption,th,td{text-align:left;font-weight:normal;vertical-align:middle}a{text-decoration:inherit}a:hover{text-decoration:underline}a img{border:none}*{box-sizing:border-box}.markdown-body{padding:30px 35px 30px 0;word-wrap:break-word;font-family:"Helvetica Neue",Helvetica,"Segoe UI",Arial,freesans,sans-serif;font-size:16px;line-height:1.4em;color:#333}@media screen and (max-width:479px){.markdown-body{padding-right:0}}.markdown-body>*:first-child{margin-top:0 !important}.markdown-body strong{font-weight:bold}.markdown-body hr{border-top:1px solid #cacaca;border-width:1px 0 0 0}.markdown-body em{font-style:italic}.markdown-body img{max-width:100%}.markdown-body h1,.markdown-body h2,.markdown-body h3,.markdown-body h4,.markdown-body h5,.markdown-body h6{position:relative;margin-top:1em;margin-bottom:16px;font-weight:bold;line-height:1.4}.markdown-body h1 a,.markdown-body h2 a,.markdown-body h3 a,.markdown-body h4 a,.markdown-body h5 a,.markdown-body h6 a{display:none}.markdown-body h1:hover a,.markdown-body h2:hover a,.markdown-body h3:hover a,.markdown-body h4:hover a,.markdown-body h5:hover a,.markdown-body h6:hover a{display:inline;color:#000;font-size:85%}.markdown-body h1,.markdown-body h2{border-bottom:1px solid #eee}.markdown-body h1{font-size:2.25em;line-height:1.2;padding-bottom:.3em}.markdown-body h2{padding-bottom:.3em;font-size:1.75em;line-height:1.225;border-bottom:1px dashed #dedede}.markdown-body blockquote{padding:0 15px;color:#777;border-left:4px solid #ddd;margin:0}.markdown-body blockquote>:last-child{margin-bottom:0}.markdown-body blockquote>:first-child{margin-top:0}.markdown-body p,.markdown-body blockquote,.markdown-body ul,.markdown-body ol,.markdown-body dl,.markdown-body table,.markdown-body pre{margin-top:0;margin-bottom:16px}.markdown-body ul,.markdown-body ol{padding-left:1.4em;list-style:initial}.markdown-body ol{list-style-type:decimal}.markdown-body ol ol,.markdown-body ul ol{list-style-type:lower-roman}.markdown-body ul ul ol,.markdown-body ul ol ol,.markdown-body ol ul ol,.markdown-body ol ol ol{list-style-type:lower-alpha}.markdown-body pre{padding:5px;overflow:auto;background-color:#f7f7f9;border-radius:3px;word-break:break-all;word-wrap:break-word;font:16px Consolas,"Liberation Mono",Menlo,Courier,monospace}.markdown-body pre code{background-color:transparent;color:inherit;line-height:16px;display:block;font-size:14px}.markdown-body pre code:before,.markdown-body pre code:after,.markdown-body pre tt:before,.markdown-body pre tt:after{letter-spacing:0;content:""}.markdown-body code,.markdown-body tt{padding:0;padding-bottom:2px;margin:0 3px;vertical-align:top;background-color:#ededf7;border-radius:4px;padding-left:3px;padding-right:3px;font-size:14px;color:#6f5990}.markdown-body code:before,.markdown-body code:after,.markdown-body tt:before,.markdown-body tt:after{content:"\00a0";vertical-align:text-top}.markdown-body table{width:100%;border-collapse:collapse;border-spacing:0;max-width:100%;display:block;background-color:transparent}.markdown-body table th,.markdown-body table td{border:1px solid #ddd;padding:4px 10px}.markdown-body table th{font-weight:bold;background:#f3f3f3}.markdown-body table tr:nth-child(2n){background-color:#f8f8f8}.markdown-body table tbody{background:#fff}.markdown-body .task-list-item{padding:0}.markdown-body .task-list-item li{list-style-type:none}.hljs{display:block;overflow-x:auto;padding:.5em;color:#333;background:#f8f8f8;-webkit-text-size-adjust:none}.hljs-comment,.diff .hljs-header{color:#969896;font-size:90%}.hljs-keyword,.css .rule .hljs-keyword,.hljs-winutils,.nginx .hljs-title,.hljs-subst,.hljs-request,.hljs-status{color:#a71d5d;font-weight:bold}.hljs-number,.hljs-hexcolor,.ruby .hljs-constant{color:#008080}.hljs-string,.hljs-tag .hljs-value,.hljs-doctag,.tex .hljs-formula{color:#183691}.hljs-title,.hljs-id,.scss .hljs-preprocessor{color:#900;font-weight:bold}.hljs-list .hljs-keyword,.hljs-subst{font-weight:normal}.hljs-class .hljs-title,.hljs-type,.vhdl .hljs-literal,.tex .hljs-command{color:#458;font-weight:bold}.hljs-tag,.hljs-tag .hljs-title,.hljs-rule .hljs-property,.django .hljs-tag .hljs-keyword{color:#000080;font-weight:normal}.hljs-attribute,.hljs-variable,.lisp .hljs-body,.hljs-name{color:#008080}.hljs-regexp{color:#009926}.hljs-symbol,.ruby .hljs-symbol .hljs-string,.lisp .hljs-keyword,.clojure .hljs-keyword,.scheme .hljs-keyword,.tex .hljs-special,.hljs-prompt{color:#990073}.hljs-built_in{color:#0086b3}.hljs-preprocessor,.hljs-pragma,.hljs-pi,.hljs-doctype,.hljs-shebang,.hljs-cdata{color:#999;font-weight:bold}.hljs-deletion{background:#fdd}.hljs-addition{background:#dfd}.diff .hljs-change{background:#0086b3}.hljs-chunk{color:#aaa}.navbar{line-height:49px}.navbar ul{list-style:none;position:relative;display:inline-table;float:left}@media screen and (max-width:479px){.navbar ul{position:absolute}}.navbar ul ul{display:none;background:#fff;border-radius:0 0 5px 5px;padding:3px;position:absolute;top:100%;z-index:9}.navbar ul ul li.active a{color:#463265;background-color:#f9f9f9;line-height:29px;height:29px}.navbar ul ul li{float:none;border-bottom:1px solid #f7f2ff;position:relative}.navbar ul ul li a:hover{color:#573e7d}.navbar ul ul a{color:#fff;line-height:29px;white-space:nowrap;word-break:keep-all}.navbar ul ul ul{position:absolute;left:100%;top:0;border-radius:0 5px 5px 5px}.navbar ul li{float:left;line-height:49px}.navbar ul li a{display:block;color:#757575;text-decoration:none;padding:0 15px}@media screen and (max-width:479px){.navbar ul li a{padding:0 5px}}.navbar ul li:hover{background:#f3f3f3}.navbar ul li:hover a{color:#333}.navbar ul li.active a{color:#463265;background-color:#f3f3f3;height:49px}.navbar ul li:hover > ul{display:block;box-shadow:rgba(0,0,0,0.26) 0 2px 2px 1px}.navbar ul:after{content:"";clear:both;display:block}#zhangdocs_nav{display:none}@media screen and (min-width:480px) and (max-width:1170px){.navbar{z-index:2;background-image:linear-gradient(to bottom,#fff 0,#f8f8f8 100%)}.navbar section.zhangdocs_nav_btn{position:relative;transition:all .6s;z-index:999;display:block}.navbar section.zhangdocs_nav_btn label{position:fixed;display:block;right:7px;top:10px;cursor:pointer;z-index:99;width:26px;height:26px;overflow:hidden}.navbar section.zhangdocs_nav_btn label span,.navbar section.zhangdocs_nav_btn label:after,.navbar section.zhangdocs_nav_btn label:before{content:'';display:block;height:3px;background:#333;margin:4px 4px 0 4px;transform:rotate(0);transition:all .6s}.navbar .menu_tree{transition:all .6s;background:#fff;position:relative;width:100%}.navbar .menu_tree ul{opacity:0;height:0;overflow:hidden;display:block;transition:all .6s}.navbar input#zhangdocs_nav:checked ~ section label span{display:none}.navbar input#zhangdocs_nav:checked ~ section label:before{margin:12px 4px 0 4px;transform:rotate(45deg);border-radius:3px;background:#458}.navbar input#zhangdocs_nav:checked ~ section label:after{margin:-3px 4px 0 4px;transform:rotate(-45deg);border-radius:3px;background:#458}.navbar input#zhangdocs_nav:checked ~ .menu_tree{display:block}.navbar input#zhangdocs_nav:checked ~ .menu_tree ul{width:100%;opacity:1;position:relative;transition:all .6s;padding-bottom:10px;display:block;height:inherit}.navbar input#zhangdocs_nav:checked ~ .menu_tree ul li.active{line-height:36px}.navbar input#zhangdocs_nav:checked ~ .menu_tree ul li.active a{line-height:36px;height:36px;background-color:#d7d7d7}.navbar input#zhangdocs_nav:checked ~ .menu_tree ul li{float:initial;line-height:30px}.navbar input#zhangdocs_nav:checked ~ .menu_tree ul li:hover{background:transparent}.navbar input#zhangdocs_nav:checked ~ .menu_tree ul li:hover > ul{box-shadow:#fff 0 0 0 0}.navbar input#zhangdocs_nav:checked ~ .menu_tree ul li ul{display:block;position:inherit;border-radius:0;float:inherit;background:#eee;padding-left:7px;padding-bottom:0}.navbar input#zhangdocs_nav:checked ~ .menu_tree ul li ul li{display:inline-block}}@media screen and (max-width:479px){.navbar{z-index:2;background-image:linear-gradient(to bottom,#fff 0,#f8f8f8 100%)}.navbar section.zhangdocs_nav_btn{position:relative;transition:all .6s;z-index:999;display:block}.navbar section.zhangdocs_nav_btn label{position:fixed;display:block;right:7px;top:10px;cursor:pointer;z-index:99;width:26px;height:26px;overflow:hidden}.navbar section.zhangdocs_nav_btn label span,.navbar section.zhangdocs_nav_btn label:after,.navbar section.zhangdocs_nav_btn label:before{content:'';display:block;height:3px;background:#333;margin:4px 4px 0 4px;transform:rotate(0);transition:all .6s}.navbar .menu_tree{transition:all .6s;background:#fff;position:relative;width:100%}.navbar .menu_tree ul{opacity:0;height:0;overflow:hidden;display:block;transition:all .6s}.navbar input#zhangdocs_nav:checked ~ section label span{display:none}.navbar input#zhangdocs_nav:checked ~ section label:before{margin:12px 4px 0 4px;transform:rotate(45deg);border-radius:3px;background:#458}.navbar input#zhangdocs_nav:checked ~ section label:after{margin:-3px 4px 0 4px;transform:rotate(-45deg);border-radius:3px;background:#458}.navbar input#zhangdocs_nav:checked ~ .menu_tree{display:block}.navbar input#zhangdocs_nav:checked ~ .menu_tree ul{width:100%;opacity:1;position:relative;transition:all .6s;padding-bottom:10px;display:block;height:inherit}.navbar input#zhangdocs_nav:checked ~ .menu_tree ul li.active{line-height:36px}.navbar input#zhangdocs_nav:checked ~ .menu_tree ul li.active a{line-height:36px;height:36px;background-color:#d7d7d7}.navbar input#zhangdocs_nav:checked ~ .menu_tree ul li{float:initial;line-height:30px}.navbar input#zhangdocs_nav:checked ~ .menu_tree ul li:hover{background:transparent}.navbar input#zhangdocs_nav:checked ~ .menu_tree ul li:hover > ul{box-shadow:#fff 0 0 0 0}.navbar input#zhangdocs_nav:checked ~ .menu_tree ul li ul{display:block;position:inherit;border-radius:0;float:inherit;background:#eee;padding-left:7px;padding-bottom:0}.navbar input#zhangdocs_nav:checked ~ .menu_tree ul li ul li{display:inline-block}}*{box-sizing:border-box}body,html{height:100%;font-family:"Helvetica Neue",Helvetica,Microsoft Yahei,Hiragino Sans GB,WenQuanYi Micro Hei,sans-serif}.logo{float:left;padding:0 20px 0 0;font-size:24px;font-weight:500;color:#563d7c}.logo img{vertical-align:middle;margin:-4px 0 0 0;max-height:27px}.container{padding-left:15px;padding-right:15px;width:1124px;margin:0 auto}@media screen and (min-width:480px) and (max-width:1170px){.container{width:auto}}@media screen and (max-width:479px){.container{width:auto}}.container:before{display:table;content:" "}.container:after{display:table;content:" ";clear:both}.bs-docs-header{background:#458;background-image:linear-gradient(to bottom,#458 0,#458 100%);background-repeat:repeat-x;position:relative;padding:88px 0;color:#a3afd4;font-size:24px;text-align:left;text-shadow:0 1px 0 rgba(0,0,0,0.1)}@media screen and (max-width:479px){.bs-docs-header{padding:28px 0}}.bs-docs-header h1,.bs-docs-header p{margin-right:380px}@media screen and (max-width:479px){.bs-docs-header h1,.bs-docs-header p{margin-right:0}}@media screen and (min-width:480px) and (max-width:1170px){.bs-docs-header h1,.bs-docs-header p{margin-right:50px}}.bs-docs-header h1{color:#fff;font-family:inherit;font-weight:500;margin:.67em 0;margin-bottom:10px;margin-top:0;font-size:60px;line-height:1;text-align:left}@media screen and (max-width:479px){.bs-docs-header h1{margin:.37em 0;text-align:center}}.bs-docs-header p{margin-bottom:0;font-weight:300;line-height:1.4}.navbar-line{border-bottom:1px solid #e9e9f1}.markdown-body{overflow:auto}.page-toc{width:200px;float:right;width:220px;background:#fff;padding:9px 0 25px 20px;margin-top:35px;border-left:1px solid #eee;font-family:"Lucida Grande","Lucida Sans Unicode",Helvetica,Arial,sans-serif !important}@media screen and (min-width:480px) and (max-width:1170px){.page-toc{width:auto}}@media screen and (max-width:479px){.page-toc{display:none}}.page-toc ul{list-style-type:none;margin:0}.page-toc ul a{display:block;padding:3px 0;color:#151515;text-decoration:none;font-weight:bold;line-height:16px;font-size:14px}.page-toc ul a:hover{color:#f00;text-decoration:underline}.page-toc ul li{padding-left:3px;text-align:left;float:initial}.page-toc ul ul{margin:0 0 0 10px;list-style-type:square;padding:0 0 0 9px}.page-toc ul ul li a{font-size:90%;font-weight:normal;border-bottom:0}.copyright{border-top:1px dashed #e9e9e9;padding:6px 0 5px 2px;margin:32px 0 0 0;line-height:16px;font-size:12px;color:#dfdfdf}.copyright a{color:#d6ddf8;text-decoration:underline}.copyright a:hover{color:#333}.forkgithub{position:absolute;z-index:2;right:0;background:url("../img/forkgithub.png") 14px -15px no-repeat}@media screen and (max-width:479px){.forkgithub{display:none}}@media screen and (min-width:480px) and (max-width:1170px){.forkgithub{background-image:inherit}}.forkgithub a{display:block;width:149px;height:1px;padding-top:149px;overflow:hidden}@media screen and (min-width:480px) and (max-width:1170px){.forkgithub a{padding-top:0;height:50px}}
|