forked from typora/theme.typora.io
-
Notifications
You must be signed in to change notification settings - Fork 0
/
doc.html
140 lines (131 loc) · 4.63 KB
/
doc.html
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
133
134
135
136
137
138
---
layout: home
title: Themes Gallery
---
<style type="text/css">
.doc-wrapper {
width: 100%;
padding-right: 2rem;
padding-left: 2rem;
margin-right: auto;
margin-left: auto;
padding-bottom: 4rem;
}
.doc {
margin-right: auto;
margin-left: auto;
width: 600px;
/*box-shadow: 0 4px 9px rgba(0,0,0,0.3);
background-color: #f6f6f6;*/
min-height: 300px;
padding: 1rem;
}
.doc h2 {
text-align: center;
font-weight: normal;
border-bottom: 0;
font-family: 'Merriweather','Hiragino Sans GB','Microsoft YaHei','WenQuanYi Micro Hei',sans-serif;
color: #445588;
}
#content {
background-color: white;
}
.nav {
border-bottom: 1px dashed #999999;
}
a.more-content {
text-align: center;
color: #445588;
font-size: 0.9em;
display: block;
padding: 4px;
background-color: #eee;
}
a {
cursor: pointer;
}
.doc ul {
list-style-type: none;
}
.doc ul li {
position: relative;
}
.doc ul li:before {
content: "+";
display: inline-block;
position: absolute;
color: #008080;
left: -16px;
}
footer {
display: none;
}
</style>
<div class="doc-wrapper">
<div class="doc">
<h2># How to install a theme</h2>
<article>
<ul>
<li><p>Download theme from this website or other place.</p></li>
<li><p>Open typora. Click "Open Theme Folder" button from `Preference Panel` → `Appearance` section.</p></li>
<li><p>Put downloaded content into the opened folder, make sure your css files are directly under that directory.</p></li>
</ul>
</article>
<a class='more-content' href="/doc/Install-Theme/">Read More...</a>
</div>
</div>
<div class="doc-wrapper">
<div class="doc">
<h2># How to write a theme</h2>
<article>
<ul>
<li><p>Write custom CSS styles for h1, p, blockquote, etc.</p></li>
<li><p>Download the <a href="https://github.com/typora/typora-theme-toolkit">toolkit</a>. Copy content into `test.css` from the toolkit folder, and check rendered HTML in browser.</p></li>
<li><p>Name your css using use lowercase and "-" (no capitalised characters or whitespace), eg: my-typora-theme.css.</p></li>
<li><p>Follow instructions for "install theme", and test in typora.</p></li>
</ul>
</article>
<a class='more-content' href="/doc/Write-Custom-Theme/">Read More...</a>
</div>
</div>
<div class="doc-wrapper">
<div class="doc">
<h2># How to submit a theme</h2>
<article>
<ul>
<li><p>Fork <a href="https://github.com/typora/typora-theme-gallery" target="_blank">this site</a> on Github</p></li>
<li><p>Create a new post in the `_posts` directory and fill out the relevant YAML fields</p></li>
<li><p>Make a 250x200 thumbnail and drop it in the `thumbnails` directory. List its filename in the post's markdown file.</p></li>
<li><p>Test it out (also test your theme), then push your changes up and open a pull request.</p></li>
</ul>
</article>
<a class='more-content' href="/doc/Submit-A-Theme/">Read More...</a>
</div>
</div>
<div class="doc-wrapper">
<div class="doc">
<h2># More Tips & Docs on Styles</h2>
<article>
<ul>
<li><p><a target="_blank" href="http://support.typora.io/Add-Custom-CSS/">Add Custom CSS</a></p></li>
<li><p><a target="_blank" hre="http://support.typora.io/Custom-Font/">Custom Font</a></p></li>
<li><p><a target="_blank" href="http://support.typora.io/Code-Block-Styles/">Change Code Block Styles</a></p></li>
<li><p>See "Read More.." for more documentations.</p></li>
</ul>
</article>
<a class='more-content' href="http://support.typora.io/style" target="_blank">Read More...</a>
</div>
</div>
<div class="doc-wrapper">
<div class="doc">
<h2># About this Site</h2>
<article>
<ul>
<li><p>Hosted on <a href="https://github.com/typora/typora-theme-gallery" target="_blank">Github</a>.</p></li>
<li><p>Forked from <a href="https://github.com/mattvh/jekyllthemes" target="_blank">jekyllthemes</a> and <a href="https://github.com/typora/wiki-website">typora-wiki</a>.</p></li>
<li><p>Contact to <a href="mailto:hi@typora.io">hi@typora.io</a>.</p></li>
</ul>
</article>
<a class='more-content' target="_blank" href="https://github.com/typora/typora-theme-gallery" >Fork Me on Github</a>
</div>
</div>