generated from fastai/fastpages
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfastpages-dracula-highlight.scss
222 lines (197 loc) · 3.72 KB
/
fastpages-dracula-highlight.scss
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
// Override Syntax Highlighting In Minima With the Dracula Theme: https://draculatheme.com/
// If you wish to override any of this CSS, do so in _sass/minima/custom-styles.css
$dt-gray-dark: #282a36; // Background
$dt-code-cell-background: #323443;
$dt-gray: #44475a; // Current Line & Selection
$dt-gray-light: #f8f8f2; // Foreground
$dt-blue: #6272a4; // Comment
$dt-cyan: #8be9fd;
$dt-green: #50fa7b;
$dt-orange: #ffb86c;
$dt-pink: #ff79c6;
$dt-purple: #bd93f9;
$dt-red: #ff5555;
$dt-yellow: #f1fa8c;
$dt-green-light: rgb(172, 229, 145);
.language-python + .language-plaintext {
border-left: 1px solid grey;
margin-left: 1rem !important;
}
// ensure dark background for code in markdown
[class^="language-"]:not(.language-plaintext) pre,
[class^="language-"]:not(.language-plaintext) code {
background-color: $dt-code-cell-background !important;
color: $dt-gray-light;
}
.language-python + .language-plaintext code { background-color: white !important; }
.language-python + .language-plaintext pre { background-color: white !important; }
// for Jupyter Notebook HTML Code Cells modified from https://www.fast.ai/public/css/hyde.css
.input_area pre, .input_area div {
margin-bottom:1.0rem !important;
margin-top:1.5rem !important;
padding-bottom:0 !important;
padding-top:0 !important;
background: #323443 !important;
-webkit-font-smoothing: antialiased;
text-rendering: optimizeLegibility;
font-family: Menlo, Monaco, Consolas, "Lucida Console", Roboto, Ubuntu, monospace;
border-radius: 5px;
font-size: 105%;
}
.output_area pre, .output_area div {
margin-bottom:1rem !important;
margin-top:0rem !important;
padding-bottom:0 !important;
padding-top:0 !important;
}
.input_area pre {
border-left: 1px solid lightcoral;
}
.output_area pre {
border-left: 1px solid grey;
margin-left: 1rem !important;
font-size: 16px;
}
.code_cell table { width: auto; }
/* Dracula Theme v1.2.5
*
* https://github.com/zenorocha/dracula-theme
*
* Copyright 2016, All rights reserved
*
* Code licensed under the MIT license
*
*/
.highlight {
background: $dt-code-cell-background !important;
color: $dt-gray-light !important;
pre, code {
background: $dt-code-cell-background;
color: $dt-gray-light;
font-size: 110%;
}
.hll,
.s,
.sa,
.sb,
.sc,
.dl,
.sd,
.s2,
.se,
.sh,
.si,
.sx,
.sr,
.s1,
.ss {
color:rgb(231, 153, 122);
}
.go {
color: $dt-gray;
}
.err,
.g,
.l,
.n,
.x,
.ge,
.gr,
.gh,
.gi,
.gp,
.gs,
.gu,
.gt,
.ld,
.no,
.nd,
.pi,
.ni,
.ne,
.nn,
.nx,
.py,
.w,
.bp {
color: $dt-gray-light;
background-color: $dt-code-cell-background !important;
}
.p {
font-weight: bold;
color: rgb(102, 217, 239);
}
.ge {
text-decoration: underline;
}
.bp {
font-style: italic;
}
.c,
.ch,
.cm,
.cpf,
.cs {
color: $dt-blue;
}
.c1 {
color: gray;
}
.kd,
.kt,
.nb,
.nl,
.nv,
.vc,
.vg,
.vi,
.vm {
color: $dt-cyan;
}
.kd,
.nb,
.nl,
.nv,
.vc,
.vg,
.vi,
.vm {
font-style: italic;
}
.fm,
.na,
.nc,
.nf
{
color: $dt-green-light;
}
.k,
.o,
.cp,
.kc,
.kn,
.kp,
.kr,
.nt,
.ow {
color: $dt-pink;
}
.kc {
color: $dt-green-light;
}
.m,
.mb,
.mf,
.mh,
.mi,
.mo,
.il {
color: $dt-purple;
}
.gd {
color: $dt-red;
}
}
p code{
font-size: 19px;
}