Skip to content
This repository was archived by the owner on Apr 8, 2019. It is now read-only.

Commit 8e389a1

Browse files
committed
Fix #18
- change the layout for logo - add link to logo
1 parent b29d473 commit 8e389a1

File tree

6 files changed

+30
-15
lines changed

6 files changed

+30
-15
lines changed

doc/README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,9 @@ var y = 3
2222

2323
#### I am nested, yeah
2424

25-
A la la la
25+
| name | type | comment |
26+
| ---- | ---- | ------- |
27+
| id | int | test |
2628

2729
## Contribute
2830

public/assets/script/bundle.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
/**
22
* Created by Pillar on 2015/8/2.
3-
*/
3+
*/
4+
$('table').addClass('table');

public/assets/style/bundle.css

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,19 +17,22 @@ ul {
1717
top: 0;
1818
left: 0;
1919
padding: 10px;
20-
width: 18%;
20+
width: 16%;
2121
height: 100%;
2222
overflow-x: hidden;
2323
overflow-y: auto; }
2424
.sidebar li {
2525
list-style: none; }
2626
.sidebar a {
2727
color: white; }
28+
.sidebar .doc-viewer-logo-con {
29+
padding: 5px;
30+
text-align: center; }
2831

2932
.markdown-content {
30-
margin-left: 20%;
31-
padding: 10px;
32-
width: 75%;
33+
margin-left: 16%;
34+
padding: 20px;
35+
width: 70%;
3336
height: 100%;
3437
overflow: auto; }
3538

@@ -38,7 +41,7 @@ ul {
3841
top: 0;
3942
right: 0;
4043
padding: 10px;
41-
width: 18%; }
44+
width: 23%; }
4245
.markdown-toc li {
4346
list-style: none; }
4447

views/assets/javascript/app.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
/**
22
* Created by Pillar on 2015/8/2.
3-
*/
3+
*/
4+
$('table').addClass('table');

views/assets/style/layout.scss

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ ul{
1818

1919
padding: 10px;
2020

21-
width: 18%;
21+
width: 16%;
2222
height: 100%;
2323

2424
overflow-x: hidden;
@@ -31,14 +31,20 @@ ul{
3131
a {
3232
color: white;
3333
}
34+
35+
.doc-viewer-logo-con {
36+
padding:5px;
37+
38+
text-align: center;
39+
}
3440
}
3541

3642
.markdown-content {
43+
// TODO:refactor using variables
44+
margin-left: 16%;
45+
padding: 20px;
3746

38-
margin-left: 20%;
39-
padding: 10px;
40-
41-
width: 75%;
47+
width: 70%;
4248
height: 100%;
4349

4450
overflow: auto;
@@ -50,7 +56,7 @@ ul{
5056
right: 0;
5157

5258
padding: 10px;
53-
width: 18%;
59+
width: 23%;
5460

5561
li {
5662
list-style: none;

views/doc.ejs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,9 @@
99
<!--A slide bar to show search and folder or category? -->
1010
<div class="sidebar dark-blue-bkg">
1111
<!-- TODO: add css for the logo -->
12-
<img src="/doc-viewer.PNG" alt="">
12+
<div class="doc-viewer-logo-con">
13+
<a href="https://github.com/at15/doc-viewer" target="_blank"><img src="/doc-viewer.PNG" alt="logo"></a>
14+
</div>
1315
<ul>
1416
<% for(var i = 0;i < dir.length;i++) { %>
1517
<li>

0 commit comments

Comments
 (0)