forked from leaf-hsiao/catfish
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcatfish.styl
230 lines (185 loc) Β· 4.02 KB
/
catfish.styl
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
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
// custom fonts
@font-face
font-family Source Han Sans SC
font-weight normal
src local('Source Han Sans SC Regular'), url('catfish/SourceHanSansSC-Regular.otf')
@font-face
font-family Source Han Sans
font-weight bold
src local('Source Han Sans SC Bold'), url('catfish/SourceHanSansSC-Bold.otf')
@font-face
font-family Source Han Serif
font-weight normal
src local('Source Han Serif SC Regular'), url('catfish/SourceHanSerifSC-Regular.otf')
@font-face
font-family Source Han Serif
font-weight bold
src local('Source Han Serif SC Bold'), url('catfish/SourceHanSerifSC-Bold.otf')
@font-face
font-family mononoki
font-style normal
font-weight normal
src local('mononoki Regular'), url('catfish/mononoki-Regular.woff')
@font-face
font-family mononoki
font-style italic
font-weight normal
src local('mononoki Italic'), url('catfish/mononoki-Italic.woff')
@font-face
font-family mononoki
font-style normal
font-weight bold
src local('mononoki Bold'), url('catfish/mononoki-Bold.woff')
@font-face
font-family mononoki
font-style italic
font-weight bold
src local('mononoki Bold Italic'), url('catfish/mononoki-BoldItalic.woff')
@font-face
font-family Cascadia Mono PL
font-style normal
font-weight normal
src local('Cascadia Mono PL'), url('catfish/CascadiaMonoPL.ttf')
font-sans = Source Han Sans SC, sans-serif
font-serif = Source Han Serif SC, serif
font-mono = Cascadia Mono PL, mononoki, monospace
html
font-size 16px
body
background #fff
font-family font-sans
color #555
#file-library
font-family font-mono, font-sans
overflow hidden
#write
max-width 60em
margin 0 auto
padding 20px 30px 50px
// typography
h1, h2, h3, h4, h5, h6
position relative
margin-top 1em
margin-bottom 1em
font-weight bold
line-height 1.4em
h1
font-size 2em
line-height 1.2em
h2
font-size 1.5em
line-height 1.225em
h3
font-size 1.3em
line-height 1.43em
h4
font-size 1.2em
h5
font-size 1em
h6
font-size 1em
color #999
hr
border 1px solid #ddd
// links
a
text-decoration none
color #258fb8
a
&:hover, &:active
text-decoration underline
// lists
ul, ol
padding-left 2em
.task-list
padding-left 2em
.task-list-item
padding-left 1.6em
.task-list-item
input
top 3px
left 8px
// tables
table
width 100%
border-collapse collapse
border-spacing 0
th
font-weight bold
border-bottom 3px solid #ddd
padding-bottom 0.5em
td
border-bottom 1px solid #ddd
padding 10px 0
// blockquotes
blockquote
border-left 5px solid #ddd
padding-left 0.5em
font-family font-serif
color #555
blockquote
padding-right 0
// code fences
.md-fences
margin 15px auto
padding 0.7em 1em
color rgba(233, 237, 237, 1)
background #263238
font-family font-mono, font-sans
text-shadow none
// text-shadow 0 1px #eee
// code inline
code
background-color #f3f4f4
padding 0 2px 0
border 1px solid #e7eaed
border-radius 3px
font-size 0.9em
@import 'catfish/material'
.CodeMirror div.CodeMirror-cursor
border-left 1px solid #E4629A
.CodeMirror pre.CodeMirror-line
line-height 1.25rem
letter-spacing 0.025rem
// YAML front matters
#write pre.md-meta-block
min-height 35px
padding 0.5em 1em
white-space pre
border 0px
border-left 30px #f8f8f8 solid
border-right 30px #f8f8f8 solid
width 100vw
max-width calc(100% + 60px)
margin-left -30px
margin-bottom 2em
margin-top -2010px
padding-top 2000px
padding-bottom 10px
line-height 1.5em
color #7a7a7a
background-color #fafafa
font-family font-mono, font-sans
font-weight 300
clear both
padding-left 0
font-size 0.875rem
// image meta
.md-image>.md-meta
color inherit
header, .context-menu, .megamenu-content, footer
font-family font-sans
// print
@media print
html
font-size 13px
table, pre
page-break-inside avoid
pre
word-wrap break-word
// controller
header, .context-menu, .megamenu-content, footer
font-family Helvetica Neue, Helvetica, Segoe UI, Arial, sans-serif
// diagram
.md-diagram-panel-preview
color #263238