Skip to content

Commit b5036fa

Browse files
committed
add dark theme
1 parent 5e14d17 commit b5036fa

File tree

1 file changed

+118
-251
lines changed
  • app/src/main/assets/markdown_css_themes

1 file changed

+118
-251
lines changed
+118-251
Original file line numberDiff line numberDiff line change
@@ -1,259 +1,126 @@
1-
body{
2-
background: #000;
3-
font-family: Georgia, Palatino, serif;
4-
color: #EEE;
5-
line-height: 1;
6-
padding: 30px;
7-
margin:auto;
8-
max-width:42em;
9-
}
10-
h1, h2, h3, h4 {
11-
font-weight: 400;
12-
}
13-
h1, h2, h3, h4, h5, p {
14-
margin-bottom: 24px;
15-
padding: 0;
16-
}
17-
h1 {
18-
font-size: 48px;
19-
}
20-
h2 {
21-
font-size: 36px;
22-
margin: 24px 0 6px;
23-
}
24-
h3 {
25-
font-size: 24px;
26-
}
27-
h4 {
28-
font-size: 21px;
29-
}
30-
h5 {
31-
font-size: 18px;
32-
}
33-
a {
34-
color: #61BFC1;
35-
margin: 0;
36-
padding: 0;
37-
text-decoration: none;
38-
vertical-align: baseline;
39-
}
40-
a:hover {
41-
text-decoration: underline;
42-
}
43-
a:visited {
44-
color: #466B6C;
45-
}
46-
ul, ol {
47-
padding: 0;
48-
margin: 0;
49-
}
50-
li {
51-
line-height: 24px;
52-
}
53-
li ul, li ul {
54-
margin-left: 24px;
55-
}
56-
p, ul, ol {
57-
font-size: 16px;
58-
line-height: 24px;
59-
max-width: 540px;
60-
}
61-
pre {
62-
padding: 0px 24px;
63-
max-width: 800px;
64-
white-space: pre-wrap;
65-
}
66-
code {
67-
font-family: Consolas, Monaco, Andale Mono, monospace;
68-
line-height: 1.5;
69-
font-size: 13px;
70-
}
71-
aside {
72-
display: block;
73-
float: right;
74-
width: 390px;
75-
}
76-
blockquote {
77-
border-left:.5em solid #eee;
78-
padding: 0 2em;
79-
margin-left:0;
80-
max-width: 476px;
81-
}
82-
blockquote cite {
83-
font-size:14px;
84-
line-height:20px;
85-
color:#bfbfbf;
86-
}
87-
blockquote cite:before {
88-
content: '\2014 \00A0';
89-
}
1+
img{ max-width:100%;}
2+
video{ max-width:100%; height:auto;}
3+
header ul li{ float:left; list-style:none; list-style-type:none; margin-right:10px;}
4+
header select{display:none;}
5+
@media (max-width:960px){
6+
header ul{ display:none;}
7+
header select{ display:inline-block;}
8+
}
909

91-
blockquote p {
92-
color: #666;
93-
max-width: 460px;
94-
}
95-
hr {
96-
width: 540px;
97-
text-align: left;
98-
margin: 0 auto 0 0;
99-
color: #999;
100-
}
10+
@charset "utf-8";
11+
body {
12+
font-family: Helvetica, Arial, Freesans, clean, sans-serif;
13+
padding:2em;
14+
margin:auto;
15+
max-width:42em;
16+
background:#fefefe;
17+
background: #222;
18+
color: #ddd;
19+
}
10120

102-
/* Code below this line is copyright Twitter Inc. */
21+
h1, h2, h3, h4, h5, h6 {
22+
font-weight: bold;
23+
}
10324

104-
button,
105-
input,
106-
select,
107-
textarea {
108-
font-size: 100%;
109-
margin: 0;
110-
vertical-align: baseline;
111-
*vertical-align: middle;
112-
}
113-
button, input {
114-
line-height: normal;
115-
*overflow: visible;
116-
}
117-
button::-moz-focus-inner, input::-moz-focus-inner {
118-
border: 0;
119-
padding: 0;
120-
}
121-
button,
122-
input[type="button"],
123-
input[type="reset"],
124-
input[type="submit"] {
125-
cursor: pointer;
126-
-webkit-appearance: button;
127-
}
128-
input[type=checkbox], input[type=radio] {
129-
cursor: pointer;
130-
}
131-
/* override default chrome & firefox settings */
132-
input:not([type="image"]), textarea {
133-
-webkit-box-sizing: content-box;
134-
-moz-box-sizing: content-box;
135-
box-sizing: content-box;
136-
}
25+
h1 {
26+
font-size: 50px;
27+
}
13728

138-
input[type="search"] {
139-
-webkit-appearance: textfield;
140-
-webkit-box-sizing: content-box;
141-
-moz-box-sizing: content-box;
142-
box-sizing: content-box;
143-
}
144-
input[type="search"]::-webkit-search-decoration {
145-
-webkit-appearance: none;
146-
}
147-
label,
148-
input,
149-
select,
150-
textarea {
151-
font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
152-
font-size: 13px;
153-
font-weight: normal;
154-
line-height: normal;
155-
margin-bottom: 18px;
156-
}
157-
input[type=checkbox], input[type=radio] {
158-
cursor: pointer;
159-
margin-bottom: 0;
160-
}
161-
input[type=text],
162-
input[type=password],
163-
textarea,
164-
select {
165-
display: inline-block;
166-
width: 210px;
167-
padding: 4px;
168-
font-size: 13px;
169-
font-weight: normal;
170-
line-height: 18px;
171-
height: 18px;
172-
color: #808080;
173-
border: 1px solid #ccc;
174-
-webkit-border-radius: 3px;
175-
-moz-border-radius: 3px;
176-
border-radius: 3px;
177-
}
178-
select, input[type=file] {
179-
height: 27px;
180-
line-height: 27px;
181-
}
182-
textarea {
183-
height: auto;
184-
}
29+
h2 {
30+
font-size: 42px;
31+
border-bottom: 1px solid #CCCCCC
32+
}
18533

186-
/* grey out placeholders */
187-
:-moz-placeholder {
188-
color: #bfbfbf;
189-
}
190-
::-webkit-input-placeholder {
191-
color: #bfbfbf;
192-
}
34+
h3 {
35+
font-size: 32px;
36+
}
19337

194-
input[type=text],
195-
input[type=password],
196-
select,
197-
textarea {
198-
-webkit-transition: border linear 0.2s, box-shadow linear 0.2s;
199-
-moz-transition: border linear 0.2s, box-shadow linear 0.2s;
200-
transition: border linear 0.2s, box-shadow linear 0.2s;
201-
-webkit-box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
202-
-moz-box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
203-
box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
204-
}
205-
input[type=text]:focus, input[type=password]:focus, textarea:focus {
206-
outline: none;
207-
border-color: rgba(82, 168, 236, 0.8);
208-
-webkit-box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1), 0 0 8px rgba(82, 168, 236, 0.6);
209-
-moz-box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1), 0 0 8px rgba(82, 168, 236, 0.6);
210-
box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1), 0 0 8px rgba(82, 168, 236, 0.6);
211-
}
38+
h4 {
39+
font-size: 24px;
40+
}
21241

213-
/* buttons */
214-
button {
215-
display: inline-block;
216-
padding: 4px 14px;
217-
font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
218-
font-size: 13px;
219-
line-height: 18px;
220-
-webkit-border-radius: 4px;
221-
-moz-border-radius: 4px;
222-
border-radius: 4px;
223-
-webkit-box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 1px 2px rgba(0, 0, 0, 0.05);
224-
-moz-box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 1px 2px rgba(0, 0, 0, 0.05);
225-
box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 1px 2px rgba(0, 0, 0, 0.05);
226-
background-color: #0064cd;
227-
background-repeat: repeat-x;
228-
background-image: -khtml-gradient(linear, left top, left bottom, from(#049cdb), to(#0064cd));
229-
background-image: -moz-linear-gradient(top, #049cdb, #0064cd);
230-
background-image: -ms-linear-gradient(top, #049cdb, #0064cd);
231-
background-image: -webkit-gradient(linear, left top, left bottom, color-stop(0%, #049cdb), color-stop(100%, #0064cd));
232-
background-image: -webkit-linear-gradient(top, #049cdb, #0064cd);
233-
background-image: -o-linear-gradient(top, #049cdb, #0064cd);
234-
background-image: linear-gradient(top, #049cdb, #0064cd);
235-
color: #fff;
236-
text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25);
237-
border: 1px solid #004b9a;
238-
border-bottom-color: #003f81;
239-
-webkit-transition: 0.1s linear all;
240-
-moz-transition: 0.1s linear all;
241-
transition: 0.1s linear all;
242-
border-color: #0064cd #0064cd #003f81;
243-
border-color: rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.25);
244-
}
245-
button:hover {
246-
color: #fff;
247-
background-position: 0 -15px;
248-
text-decoration: none;
249-
}
250-
button:active {
251-
-webkit-box-shadow: inset 0 3px 7px rgba(0, 0, 0, 0.15), 0 1px 2px rgba(0, 0, 0, 0.05);
252-
-moz-box-shadow: inset 0 3px 7px rgba(0, 0, 0, 0.15), 0 1px 2px rgba(0, 0, 0, 0.05);
253-
box-shadow: inset 0 3px 7px rgba(0, 0, 0, 0.15), 0 1px 2px rgba(0, 0, 0, 0.05);
254-
}
255-
button::-moz-focus-inner {
256-
padding: 0;
257-
border: 0;
258-
}
42+
h5 {
43+
font-size: 18px;
44+
}
25945

46+
h6 {
47+
font-size: 14px;
48+
}
49+
hr {
50+
height: 0.2em;
51+
border: 0;
52+
color: #CCCCCC;
53+
background-color: #CCCCCC;
54+
}
55+
56+
p, blockquote, ul, ol, dl, li, table, pre {
57+
margin: 15px 0;
58+
}
59+
60+
code, pre {
61+
white-space: pre-wrap;
62+
border-radius: 3px;
63+
color: inherit;
64+
}
65+
66+
code {
67+
border: 1px solid #EAEAEA;
68+
margin: 0 2px;
69+
padding: 0 5px;
70+
}
71+
72+
pre {
73+
border: 1px solid #CCCCCC;
74+
line-height: 1.25em;
75+
overflow: auto;
76+
padding: 6px 10px;
77+
word-break: break-all;
78+
word-wrap: break-word;
79+
}
80+
81+
pre > code {
82+
border: 0;
83+
margin: 0;
84+
padding: 0;
85+
}
86+
87+
a, a:visited {
88+
color: #4183C4;
89+
background-color: inherit;
90+
text-decoration: none;
91+
}
92+
/* twilight syntax highlighting */
93+
.highlight,.highlight pre,.highlight table{background:#181818!important;color:#F8F8F8!important;
94+
font-family:Consolas, Monaco,"Lucida Console"!important;}
95+
.highlight *{font-family:Consolas, Monaco,"Lucida Console"!important;}
96+
.highlight .hll{background-color:#ffc!important;}
97+
.highlight .err{border:#B22518!important;}
98+
.highlight .cp{color:#5F5A60!important;}
99+
.highlight .gd{background:#420E09!important;}
100+
.highlight .ge{font-style:italic!important;}
101+
.highlight .gr{background:#B22518!important;}
102+
.highlight .gh{color:navy!important;font-weight:700!important;}
103+
.highlight .gi{background:#253B22!important;}
104+
.highlight .gu{color:purple!important;font-weight:700!important;}
105+
.highlight .kd{color:#e9df8f!important;}
106+
.highlight .kp{color:#9B703F!important;}
107+
.highlight .na{color:#F9EE98!important;}
108+
.highlight .no{color:#9B859D!important;}
109+
.highlight .ni{color:#CF6A4C!important;font-weight:700!important;}
110+
.highlight .nf{color:#9B703F!important;font-weight:700!important;}
111+
.highlight .nt{color:#CDA869!important;font-weight:700!important;}
112+
.highlight .ow{color:#A2F!important;font-weight:700!important;}
113+
.highlight .w{color:#141414!important;}
114+
.highlight .sd{color:#8F9D6A!important;font-style:italic!important;}
115+
.highlight .se{color:#F9EE98!important;font-weight:700!important;}
116+
.highlight .si{color:#DAEFA3!important;font-weight:700!important;}
117+
.highlight .sr{color:#E9C062!important;}
118+
.highlight .bp{color:#0aa!important;}
119+
.highlight .il{color:#099!important;}
120+
.highlight .c,.highlight .cm,.highlight .c1,.highlight .cs{color:#5F5A60!important;font-style:italic!important;}
121+
.highlight .k,.highlight .nb{color:#CDA869!important;}
122+
.highlight .gp,.highlight .gs{font-weight:700!important;}
123+
.highlight .nc,.highlight .nn{color:#9B859D!important;font-weight:700!important;}
124+
.highlight .nd,.highlight .nv,.highlight .vc,.highlight .vg,.highlight .vi{color:#7587A6!important;}
125+
.highlight .mf,.highlight .mh,.highlight .mi,.highlight .mo,.highlight .ss{color:#CF6A4C!important;}
126+
.highlight .sb,.highlight .sc,.highlight .s2,.highlight .sh,.highlight .sx,.highlight .s1{color:#8F9D6A!important;}

0 commit comments

Comments
 (0)