Skip to content

Commit 57c5813

Browse files
committed
init project
1 parent c4bcc10 commit 57c5813

File tree

145 files changed

+121561
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

145 files changed

+121561
-0
lines changed

.editorconfig

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
root = true
2+
3+
# 对所有文件生效
4+
[*]
5+
charset = utf-8
6+
indent_style = space
7+
indent_size = 4
8+
end_of_line = lf
9+
insert_final_newline = true
10+
trim_trailing_whitespace = true
11+
12+
# 对后缀名为 md 的文件生效
13+
[*.md]
14+
trim_trailing_whitespace = false
15+
16+
[*.js]
17+
indent_size = 2
18+
19+
[*.yml]
20+
indent_size = 2
21+
22+
[*.html]
23+
indent_size = 2
24+
25+
[*.styl]
26+
indent_size = 2
27+
28+
[*.css]
29+
indent_size = 2
30+
31+
[*.php]
32+
indent_size = 4
33+
34+
[*.vue]
35+
indent_size = 2

.gitignore

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
.idea/
2+
.phpintel/
3+
.vscode/
4+
vendor/
5+
node_modules/
6+
tmp/*
7+
!README.md
8+
composer.lock
9+
.local
10+
*.pid
11+
*.log
12+
.DS_Store
13+
.project
14+
dist/

README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# markdown site reader
2+
3+
## License
4+
5+
MIT

assets/css/layout.css

Lines changed: 212 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,212 @@
1+
body {
2+
position: relative;
3+
/*padding-top: 70px;*/
4+
}
5+
6+
::-webkit-scrollbar-thumb {
7+
background: rgba(152, 155, 156, 0.68);
8+
-webkit-border-radius: 6px;
9+
-moz-border-radius: 6px;
10+
-ms-border-radius: 6px;
11+
-o-border-radius: 6px;
12+
border-radius: 6px;
13+
}
14+
15+
::-webkit-scrollbar-thumb:hover {
16+
-webkit-box-shadow: inset 1px 1px 1px rgba(0,0,0,.25);
17+
-moz-box-shadow: inset 1px 1px 1px rgba(0,0,0,.25);
18+
-ms-box-shadow: inset 1px 1px 1px rgba(0,0,0,.25);
19+
-o-box-shadow: inset 1px 1px 1px rgba(0,0,0,.25);
20+
box-shadow: inset 1px 1px 1px rgba(0,0,0,.25);
21+
background-color: rgba(108, 110, 111, 0.68);
22+
}
23+
24+
::-webkit-scrollbar {
25+
height: 10px;
26+
width: 7px;
27+
background: #dde1e2;
28+
}
29+
30+
::-webkit-scrollbar:hover {
31+
background: #d2d5d6;
32+
}
33+
.book {
34+
width: 100%;
35+
}
36+
37+
.book .navbar {
38+
margin-bottom: 0;
39+
}
40+
41+
#doc-url {
42+
/*font-size: 18px;*/
43+
/*color: #666;*/
44+
}
45+
46+
#sidebar-box {
47+
position: fixed;
48+
top: 70px;
49+
left: -300px;
50+
z-index: 2;
51+
bottom: 0;
52+
width: 300px;
53+
overflow-y: auto;
54+
background-color: #f1f1f1;
55+
border-right: 1px solid #ccc;
56+
-webkit-transition: left 250ms ease;
57+
-moz-transition: left 250ms ease;
58+
-o-transition: left 250ms ease;
59+
transition: left 250ms ease;
60+
}
61+
62+
#search-box {
63+
padding: 15px 15px 0;
64+
border-bottom: 1px solid #bbb;
65+
}
66+
67+
.with-sidebar #sidebar-box{
68+
left: 0;
69+
}
70+
.with-sidebar #content-box{
71+
left: 300px;
72+
}
73+
.with-sidebar #sidebar-ctrl{
74+
left: 300px;
75+
}
76+
77+
@media (max-width: 1500px) {
78+
.with-sidebar .container{
79+
width: 990px;
80+
}
81+
}
82+
83+
@media (max-width: 992px) {
84+
#sidebar-box {
85+
width: 260px;
86+
left: -260px;
87+
}
88+
.with-sidebar #content-box{
89+
left: 260px;
90+
}
91+
.with-sidebar #sidebar-ctrl{
92+
left: 260px;
93+
}
94+
}
95+
96+
@media (max-width: 769px) {
97+
#content-toc-box {
98+
display: none;
99+
}
100+
}
101+
102+
#sidebar {
103+
padding: 5px 10px 10px;
104+
border-bottom: 1px solid #ccc;
105+
margin-bottom: 40px;
106+
background-color: #fdfdfd;
107+
}
108+
#sidebar>h1 {
109+
font-size: 24px;
110+
margin: 10px 0;
111+
}
112+
#sidebar ul{
113+
padding-left: 12px;
114+
margin-bottom: 0;
115+
list-style: none;
116+
}
117+
#sidebar a {
118+
display: block;
119+
padding-left: 10px;
120+
color: #666;
121+
}
122+
#sidebar a.active{
123+
border-left: 3px solid #2196F3;
124+
background-color: #f5f5f5;
125+
color: #2196F3;
126+
}
127+
#sidebar>ul>li>a{
128+
font-weight: bold;
129+
}
130+
#sidebar-ctrl {
131+
cursor: pointer;
132+
position: fixed;
133+
left: 0;
134+
top: 40%;
135+
height: 50px;
136+
width: 18px;
137+
padding-top: 14px;
138+
background-color: rgba(221, 221, 221, 0.8);
139+
border-radius: 0 5px 5px 0;
140+
z-index: 10;
141+
box-shadow: 1px 0 5px #ccc;
142+
border: 1px solid #cdcdcd;
143+
-webkit-transition: left 250ms ease;
144+
-moz-transition: left 250ms ease;
145+
-o-transition: left 250ms ease;
146+
transition: left 250ms ease;
147+
}
148+
#content-toc-box {
149+
position: fixed;
150+
top: 150px;
151+
right: 10px;
152+
min-width: 120px;
153+
max-width: 200px;
154+
max-height: 400px;
155+
background-color: #fff;
156+
157+
padding: 5px;
158+
border: 1px solid #ddd;
159+
box-shadow: 0 0 3px #dedede;
160+
}
161+
162+
#content-toc-box .title{
163+
font-weight: bold;
164+
}
165+
#content-toc {
166+
padding: 6px;
167+
}
168+
#content-box {
169+
position: fixed;
170+
top: 70px;
171+
right: 0;
172+
left: 0;
173+
z-index: 2;
174+
bottom: 0;
175+
overflow-y: auto;
176+
padding-top: 15px;
177+
-webkit-transition: left 250ms ease;
178+
-moz-transition: left 250ms ease;
179+
-o-transition: left 250ms ease;
180+
transition: left 250ms ease;
181+
}
182+
183+
.content-wrapper {
184+
margin-right: auto;
185+
margin-left: auto;
186+
padding-left: 15px;
187+
padding-right: 15px;
188+
width: 80%;
189+
max-width: 1200px;
190+
min-width: 350px; */
191+
}
192+
#content {
193+
padding-bottom: 15px;
194+
}
195+
196+
.page-footer {
197+
border-top: 1px solid #dedede;
198+
padding: 25px;
199+
color: #aaa;
200+
}
201+
.page-footer .qq-group {
202+
position: relative;
203+
padding: 10px 15px;
204+
display: block;
205+
}
206+
.info-box {
207+
padding: 15px;
208+
}
209+
.info-box .info-item {
210+
display: inline-block;
211+
margin-right: 10px;
212+
}

0 commit comments

Comments
 (0)