Skip to content

Commit 47a3fa1

Browse files
committed
made help doc responsive
1 parent 57d2d0b commit 47a3fa1

File tree

2 files changed

+227
-179
lines changed

2 files changed

+227
-179
lines changed

docs/index.css

Lines changed: 88 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,9 @@ body{
88
margin: 0;
99
display: block;
1010
}
11-
code{
12-
font-family: 'Roboto Mono', monospace;
13-
}
14-
a{
15-
color:navy;
11+
a{ color:navy;}
12+
code{ font-family: 'Roboto Mono', monospace;}
1613

17-
}
1814
.banner {
1915
padding: 60px 16px;
2016
background: steelblue;
@@ -28,6 +24,43 @@ a{
2824
font-weight: 800;
2925
transition: .3s all;
3026
}
27+
.header {
28+
display: flex;
29+
align-items: center;
30+
height: 60px;
31+
justify-content: center;
32+
}
33+
34+
.logo{display:none}
35+
.menu{display:none}
36+
.code-block{
37+
font-size:12px;
38+
width:320px;
39+
}
40+
.table-block{
41+
font-size:12px;
42+
width:350px;
43+
}
44+
45+
.menu-item {
46+
margin-right: 12px;
47+
color: #fff;
48+
font-weight: 600;
49+
text-decoration: none;
50+
transition: .2s all;
51+
position: relative;
52+
}
53+
54+
.product-name {
55+
font-family:"Roboto Mono";
56+
font-weight: 800;
57+
font-size: 36px;
58+
line-height: 40px;
59+
color: #fff;
60+
transition: .3s all;
61+
min-width: 225px;
62+
}
63+
3164

3265
.features,
3366
.qstart,
@@ -108,32 +141,6 @@ a{
108141
box-shadow: 0 12px 24px rgba(0,0,0,0.25), 0 6px 6px rgba(0,0,0,0.22);
109142
}
110143

111-
.header {
112-
display: flex;
113-
align-items: center;
114-
height: 60px;
115-
display: flex;
116-
}
117-
118-
.menu-item {
119-
margin-right: 12px;
120-
color: #fff;
121-
font-weight: 600;
122-
text-decoration: none;
123-
transition: .2s all;
124-
position: relative;
125-
display: inline-block;
126-
}
127-
.product-name {
128-
font-family:"Roboto Mono";
129-
font-weight: 800;
130-
font-size: 36px;
131-
line-height: 40px;
132-
color: #fff;
133-
transition: .3s all;
134-
padding-left:10px;
135-
}
136-
137144
.mono-bold{
138145
font-family:"Roboto Mono";
139146
font-weight:700;
@@ -143,6 +150,22 @@ a{
143150
color:#777;
144151
}
145152

153+
.m-table {
154+
border-spacing: 0;
155+
border-collapse: separate;
156+
border: 1px solid #ccc;
157+
border-radius: 2px;
158+
margin: 0;
159+
}
160+
.attr-col{
161+
width:100px;
162+
text-align:right
163+
}
164+
.default-col{
165+
width:70px;
166+
text-align:left;
167+
}
168+
146169
.m-table tr:first-child td,
147170
.m-table tr:first-child th {
148171
border-top: 0 none;
@@ -161,7 +184,6 @@ a{
161184

162185
.m-table td,
163186
.m-table th {
164-
font-size: 14px;
165187
padding: 4px 5px 4px;
166188
vertical-align: top;
167189
border-bottom:1px solid #eee;
@@ -170,18 +192,24 @@ a{
170192
border-bottom:1px solid #aaa;
171193
}
172194

173-
.m-table {
174-
border-spacing: 0;
175-
border-collapse: separate;
176-
border: 1px solid #ccc;
177-
border-radius: 2px;
178-
margin: 0;
179-
max-width: 100%;
180-
}
181-
182195
@media only screen and (min-width: 768px){
196+
.header { justify-content:left }
197+
.menu { display:inline-block; }
198+
.logo { display:block; }
199+
.code-block{
200+
font-size:12px;
201+
width:650px;
202+
}
203+
.table-block{
204+
font-size:12px;
205+
width:650px;
206+
}
207+
.attr-col{ width:170px;}
208+
.default-col{ width:100px;}
209+
210+
183211
.menu-item {
184-
margin-left: 30px;
212+
margin-left: 20px;
185213
margin-right: 0;
186214
}
187215
.banner {
@@ -203,6 +231,22 @@ a{
203231
display:block;
204232
border-radius: 4px;
205233
}
206-
234+
}
235+
236+
@media only screen and (min-width: 800px){
237+
.menu { display:inline-block; }
238+
.logo { display:block; }
239+
.code-block{
240+
font-size:14px;
241+
width:730px;
242+
}
243+
.table-block{
244+
font-size:14px;
245+
width:730px;
246+
}
247+
.menu-item {
248+
margin-left: 24px;
249+
margin-right: 0;
250+
}
207251
}
208252

0 commit comments

Comments
 (0)