type-on-strap 2.1.0 → 2.2.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/LICENSE +1 -1
- data/README.md +101 -65
- data/_data/language.yml +3 -0
- data/_includes/aligner.html +6 -2
- data/_includes/citation.html +2 -0
- data/_includes/disqus.html +12 -10
- data/_includes/head.html +31 -26
- data/_includes/icons.html +3 -3
- data/_layouts/custom.html +21 -24
- data/_layouts/default.html +2 -2
- data/_layouts/home.html +6 -6
- data/_layouts/page.html +15 -12
- data/_layouts/post.html +16 -16
- data/_layouts/search.html +3 -3
- data/_sass/base/_global.scss +4 -11
- data/_sass/base/_highlight.scss +290 -0
- data/_sass/base/_variables.scss +39 -21
- data/_sass/includes/_cookie_consent.scss +17 -0
- data/_sass/includes/_footer.scss +1 -0
- data/_sass/includes/_navbar.scss +27 -28
- data/_sass/layouts/_blog.scss +1 -0
- data/_sass/layouts/_page.scss +17 -3
- data/_sass/layouts/_posts.scss +5 -1
- data/_sass/type-on-strap.scss +10 -9
- data/assets/data/search.json +2 -2
- data/assets/js/main.min.js +1 -1
- data/assets/js/partials/cookie_consent_init.js +57 -0
- data/assets/js/partials/navbar.js +3 -6
- data/assets/js/vendor/auto-render.min.js +1 -0
- data/assets/js/vendor/katex.min.js +1 -1
- data/assets/js/vendor/simple-jekyll-search.min.js +3 -3
- metadata +12 -18
- data/_includes/share_thumbnail.html +0 -7
- data/_sass/external/_syntax.scss +0 -188
- data/assets/js/partials/katex_init.js +0 -28
data/_includes/head.html
CHANGED
@@ -3,7 +3,7 @@
|
|
3
3
|
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
|
4
4
|
|
5
5
|
<!-- Main JS (navbar.js, katex_init.js and masonry_init.js)-->
|
6
|
-
<script defer
|
6
|
+
<script defer src="{{ '/assets/js/main.min.js' | relative_url }}"></script>
|
7
7
|
|
8
8
|
<!-- CSS -->
|
9
9
|
<link rel="stylesheet" href="{{ '/assets/css/main.css' | relative_url }}">
|
@@ -20,7 +20,6 @@
|
|
20
20
|
{% if page.bootstrap %}
|
21
21
|
<!-- Bootstrap-4.1.3 isolation CSS -->
|
22
22
|
<link rel="stylesheet" type="text/css" href="{{ '/assets/css/vendor/bootstrap-iso.min.css' | relative_url }}">
|
23
|
-
|
24
23
|
<!-- JQuery 3.3.1 -->
|
25
24
|
<script src="https://code.jquery.com/jquery-3.3.1.slim.min.js" integrity="sha384-q8i/X+965DzO0rT7abK41JStQIAqVgRVzpbzo5smXKp4YfRvH+8abtTE1Pi6jizo" crossorigin="anonymous"></script>
|
26
25
|
<!-- Bootstrap 4.1.3 compiled and minified JavaScript -->
|
@@ -29,37 +28,43 @@
|
|
29
28
|
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.3/umd/popper.min.js" integrity="sha384-ZMP7rVo3mIykV+2+9J3UJ46jBk0WLaUAdn689aCwoqbBJiSnjAK/l8WvCWPIPm49" crossorigin="anonymous"></script>
|
30
29
|
{% endif %}
|
31
30
|
|
32
|
-
<!-- KaTeX 0.
|
31
|
+
<!-- KaTeX 0.12.0 -->
|
33
32
|
<!-- if you have any issue check https://github.com/KaTeX/KaTeX -->
|
34
33
|
{% if site.katex or site.theme_settings.katex %}
|
35
|
-
<script src="{{ '/assets/js/vendor/katex.min.js' | relative_url }}"></script>
|
34
|
+
<script defer src="{{ '/assets/js/vendor/katex.min.js' | relative_url }}"></script>
|
35
|
+
<script defer src="{{ '/assets/js/vendor/auto-render.min.js' | relative_url }}" onload="renderMathInElement(document.body);"></script>
|
36
36
|
{% endif %}
|
37
37
|
|
38
|
-
<!-- Google Analytics -->
|
39
|
-
{% if site.google_analytics %}
|
40
|
-
<!-- Global site tag (gtag.js) -->
|
41
|
-
<script async src="https://www.googletagmanager.com/gtag/js?id={{ site.google_analytics }}"></script>
|
42
|
-
<script>
|
43
|
-
window.dataLayer = window.dataLayer || [];
|
44
|
-
function gtag(){dataLayer.push(arguments);}
|
45
|
-
gtag('js', new Date());
|
46
|
-
gtag('config', '{{ site.google_analytics }}');
|
47
|
-
</script>
|
48
|
-
|
49
|
-
<!-- Page analysis (analytics.js) -->
|
50
|
-
<script async src='https://www.google-analytics.com/analytics.js'></script>
|
38
|
+
<!-- Google Analytics / Cookie Consent -->
|
51
39
|
<script>
|
52
|
-
|
53
|
-
|
54
|
-
|
40
|
+
const cookieName = 'cookie-notice-dismissed-{{ site.url }}';
|
41
|
+
const isCookieConsent = '{{ site.cookie_consent }}';
|
42
|
+
const analyticsName = '{{ site.google_analytics }}';
|
55
43
|
</script>
|
56
|
-
|
44
|
+
|
45
|
+
{% if site.cookie_consent %}
|
46
|
+
<div id="cookie-notice"><span>{{ site.data.language.str_cookie_disclaimer | default: "We would like to use third party cookies and scripts to improve the functionality of this website." }}
|
47
|
+
</span><a id="cookie-notice-accept" class="button">{{ site.data.language.str_cookie_approve | default: "Approve" }}</a>
|
48
|
+
</div>
|
49
|
+
{% endif %}
|
50
|
+
{% if site.google_analytics %}
|
51
|
+
<!-- Global site tag (gtag.js) -->
|
52
|
+
<script async src="https://www.googletagmanager.com/gtag/js?id={{ site.google_analytics }}"></script>
|
53
|
+
<!-- Page analysis (analytics.js) -->
|
54
|
+
<script async src='https://www.google-analytics.com/analytics.js'></script>
|
55
|
+
{% endif %}
|
57
56
|
|
58
57
|
<!-- seo tags -->
|
58
|
+
<meta property="og:image" content="{{ '/' | absolute_url }}{% if page.thumbnail %}{{ page.thumbnail }}{% else %}{{ page.feature-img | default: site.header_feature_image }}{% endif %}">
|
59
59
|
{% seo %}
|
60
|
-
|
61
|
-
<!--
|
62
|
-
|
63
|
-
|
64
|
-
-->
|
60
|
+
|
61
|
+
<!-- RSS -->
|
62
|
+
{% feed_meta %}
|
63
|
+
|
64
|
+
<!-- Twitter Cards -->
|
65
|
+
<meta name="twitter:title" content="{% if page.title %}{{ page.title }}{% else %}{{ site.theme_settings.title }}{% endif %}">
|
66
|
+
<meta name="twitter:description" content="{{ page.content | strip_html | strip_newlines | truncate: 160 }}">
|
67
|
+
{% if site.theme_settings.twitter %}<meta name="twitter:creator" content="@{{ site.theme_settings.twitter }}">{% endif %}
|
68
|
+
<meta name="twitter:card" content="{% unless page.thumbnail %}summary{% else %}summary_large_image{% endunless %}">
|
69
|
+
<meta name="twitter:image" content="{{ '/' | absolute_url }}{% if page.thumbnail %}{{ page.thumbnail }}{% else %}{{ page.feature-img | default: site.header_feature_image }}{% endif %}">
|
65
70
|
</head>
|
data/_includes/icons.html
CHANGED
@@ -1,8 +1,8 @@
|
|
1
1
|
{% if site.data.social.rss or site.theme_settings.rss %}
|
2
2
|
<li>
|
3
|
-
<a feed.xml href="{{
|
4
|
-
|
5
|
-
|
3
|
+
<a feed.xml href="{{ site.data.social.feed.path | default: 'feed.xml' | relative_url }}"
|
4
|
+
title="{{ site.data.language.str_rss_follow | default: "Follow RSS feed" }}">
|
5
|
+
<span class="fa-stack fa-lg">
|
6
6
|
<i class="fa fa-circle fa-stack-2x"></i>
|
7
7
|
<i class="fa fa-rss fa-stack-1x fa-inverse"></i>
|
8
8
|
</span>
|
data/_layouts/custom.html
CHANGED
@@ -1,35 +1,32 @@
|
|
1
1
|
---
|
2
2
|
layout: default
|
3
3
|
---
|
4
|
-
|
5
|
-
|
6
|
-
<
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
4
|
+
|
5
|
+
<article {% if page.feature-img %}class="feature-image" {% endif %} style="padding:0;">
|
6
|
+
<header id="main" style="background-image: url('{{ page.feature-img | relative_url }}')">
|
7
|
+
<h1 id="{{ page.title | cgi_escape }}" class="title">{{ page.title }}</h1>
|
8
|
+
{% if include.is_post %}
|
9
|
+
{% include post_info.html author=page.author date=page.date %}
|
10
|
+
{% else %}
|
11
|
+
</header>
|
12
|
+
<section class="post-content">{{ content }}</section>
|
13
|
+
|
14
|
+
<div style="display: inline-block;">
|
15
|
+
<!-- Social media shares -->
|
16
|
+
{% if include.is_post %} {% include share_buttons.html %} {% endif %}
|
17
|
+
|
18
|
+
<!-- Tag list -->
|
19
|
+
{% capture tag_list %}{{ page.tags | join: "|"}}{% endcapture %}
|
20
|
+
{% include tags_list.html tags=tag_list %}
|
21
21
|
</div>
|
22
|
-
|
22
|
+
|
23
23
|
</article>
|
24
24
|
|
25
25
|
<!-- Disqus -->
|
26
|
-
{% if site.disqus_shortname %}
|
27
|
-
|
28
|
-
{% include disqus.html %}
|
29
|
-
</div>
|
30
|
-
{% endif %}
|
26
|
+
{% if site.disqus_shortname or site.theme_settings.disqus_shortname %}
|
27
|
+
{% include disqus.html %}{% endif %}
|
31
28
|
|
32
29
|
<!-- Post navigation -->
|
33
30
|
{% if site.post_navigation %}
|
34
|
-
|
31
|
+
{% include post_nav.html %}
|
35
32
|
{% endif %}
|
data/_layouts/default.html
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
<!DOCTYPE html>
|
2
2
|
<!--
|
3
|
-
Type on Strap jekyll theme v2.
|
4
|
-
Copyright 2016-
|
3
|
+
Type on Strap jekyll theme v2.2.6
|
4
|
+
Copyright 2016-2020 Sylhare
|
5
5
|
Theme free for personal and commercial use under the MIT license
|
6
6
|
https://github.com/sylhare/Type-on-Strap/blob/master/LICENSE
|
7
7
|
-->
|
data/_layouts/home.html
CHANGED
@@ -4,11 +4,11 @@ layout: default
|
|
4
4
|
|
5
5
|
<div class="home">
|
6
6
|
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
7
|
+
<div id="main" class="call-out"
|
8
|
+
style="background-image: url('{{ site.header_feature_image | relative_url }}')">
|
9
|
+
<h1> {{ site.header_text | default: "Change <code>header_text</code> in <code>_config.yml</code>"}} </h1>
|
10
|
+
</div>
|
11
|
+
|
12
|
+
{% include blog.html %}
|
11
13
|
|
12
|
-
{% include blog.html %}
|
13
|
-
|
14
14
|
</div>
|
data/_layouts/page.html
CHANGED
@@ -1,19 +1,22 @@
|
|
1
1
|
---
|
2
2
|
layout: default
|
3
3
|
---
|
4
|
-
{% include share_thumbnail.html page=page %}
|
5
4
|
|
6
5
|
<article {% if page.feature-img %}class="feature-image"{% endif %}>
|
6
|
+
|
7
7
|
<header id="main" style="background-image: url('{{ page.feature-img | relative_url }}')">
|
8
|
-
<
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
8
|
+
<div class="title-padder">
|
9
|
+
{% if page.hide_title %}
|
10
|
+
<div class="feature-image-padding"></div>
|
11
|
+
{% else %}
|
12
|
+
<h1 id="{{ page.title | default: "" | cgi_escape }}" class="title"> {{ page.title }}</h1>
|
13
|
+
{% if page.subtitle %}
|
14
|
+
<h2 class="subtitle">{{ page.subtitle }}</h2>
|
15
|
+
{% endif %}
|
16
|
+
{% endif %}
|
17
|
+
</div>
|
16
18
|
</header>
|
19
|
+
|
17
20
|
<section class="post-content">
|
18
21
|
{% if page.bootstrap %}
|
19
22
|
<div class="bootstrap-iso">
|
@@ -23,10 +26,10 @@ layout: default
|
|
23
26
|
</div>
|
24
27
|
{% endif %}
|
25
28
|
</section>
|
26
|
-
|
27
|
-
|
29
|
+
|
30
|
+
|
28
31
|
<!-- Tag list for portfolio -->
|
29
32
|
{% capture tag_list %}{{ page.tags | join: "|"}}{% endcapture %}
|
30
33
|
{% include tags_list.html tags=tag_list %}
|
31
|
-
|
34
|
+
|
32
35
|
</article>
|
data/_layouts/post.html
CHANGED
@@ -1,15 +1,18 @@
|
|
1
1
|
---
|
2
2
|
layout: default
|
3
3
|
---
|
4
|
-
{%
|
5
|
-
|
6
|
-
<article {% if page.feature-img or page.color %}class="feature-image"{% endif %}>
|
4
|
+
<article {% if page.feature-img or page.color %}class="feature-image" {% endif %}>
|
7
5
|
<header id="main" style="">
|
8
|
-
|
6
|
+
<div class="title-padder">
|
7
|
+
{% if page.hide_title %}
|
8
|
+
<div class="feature-image-padding"></div>
|
9
|
+
{% else %}
|
9
10
|
<h1 id="{{ page.title | cgi_escape }}" class="title">{{ page.title }}</h1>
|
10
11
|
{% include post_info.html author=page.author date=page.date %}
|
11
|
-
|
12
|
+
{% endif %}
|
13
|
+
</div>
|
12
14
|
</header>
|
15
|
+
|
13
16
|
<section class="post-content">
|
14
17
|
{% if page.bootstrap %}
|
15
18
|
<div class="bootstrap-iso">
|
@@ -31,10 +34,7 @@ layout: default
|
|
31
34
|
|
32
35
|
<!-- Disqus -->
|
33
36
|
{% if site.disqus_shortname or site.theme_settings.disqus_shortname %}
|
34
|
-
|
35
|
-
{% include disqus.html %}
|
36
|
-
</div>
|
37
|
-
{% endif %}
|
37
|
+
{% include disqus.html %}{% endif %}
|
38
38
|
|
39
39
|
<!-- Post navigation -->
|
40
40
|
{% if site.post_navigation or site.theme_settings.post_navigation %}
|
@@ -44,16 +44,16 @@ layout: default
|
|
44
44
|
<!-- To change color of links in the page -->
|
45
45
|
<style>
|
46
46
|
{% if page.color %}
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
47
|
+
.feature-image a { color: {{ page.color }} !important; }
|
48
|
+
div#post-nav a { color: {{ page.color }} !important; }
|
49
|
+
footer a { color: {{ page.color }} !important; }
|
50
|
+
.site-header nav a:hover { color: {{ page.color }} !important; }
|
51
|
+
header#main { background-color: {{ page.color }} !important; }
|
52
52
|
{% endif %}
|
53
53
|
|
54
54
|
header#main {
|
55
55
|
background-repeat:no-repeat;
|
56
|
-
|
57
|
-
|
56
|
+
{% if page.feature-img %} background-image: url('{{ page.feature-img | relative_url }}');
|
57
|
+
{% elsif page.color %}background-image: url('{{ site.color_image | relative_url }}'); {% endif %}
|
58
58
|
}
|
59
59
|
</style>
|
data/_layouts/search.html
CHANGED
@@ -3,14 +3,14 @@ layout: page
|
|
3
3
|
---
|
4
4
|
|
5
5
|
<!-- Html Elements for Search -->
|
6
|
-
<input type="text" id="search-input" placeholder="Enter keywords..." class="search-bar">
|
6
|
+
<input type="text" id="search-input" placeholder="Enter keywords..." class="search-bar" autofocus>
|
7
7
|
<br>
|
8
8
|
<br>
|
9
9
|
<ul id="results-container"></ul>
|
10
10
|
|
11
11
|
<section>
|
12
12
|
<!-- Script pointing to jekyll-search.js -->
|
13
|
-
<script src="{{
|
13
|
+
<script src="{{ '/assets/js/vendor/simple-jekyll-search.min.js' | relative_url }}" type="text/javascript"></script>
|
14
14
|
|
15
15
|
<script type="text/javascript">
|
16
16
|
SimpleJekyllSearch({
|
@@ -18,7 +18,7 @@ layout: page
|
|
18
18
|
resultsContainer: document.getElementById('results-container'),
|
19
19
|
json: '{{ "/assets/data/search.json" | relative_url }}',
|
20
20
|
searchResultTemplate: '<div class="search-title"><a href="{url}"><h3> {title}</h3></a><div class="meta">{date} <div class="right"><i class="fa fa-tag"></i> {tags}</div></div><p>{excerpt}</p></div><hr> ',
|
21
|
-
noResultsText: 'No
|
21
|
+
noResultsText: '{{ site.data.language.str_no_result_found | default: "No result found" }}',
|
22
22
|
limit: 10,
|
23
23
|
fuzzy: false,
|
24
24
|
exclude: []
|
data/_sass/base/_global.scss
CHANGED
@@ -13,10 +13,6 @@ figure {
|
|
13
13
|
box-sizing: content-box;
|
14
14
|
}
|
15
15
|
|
16
|
-
pre {
|
17
|
-
overflow-x: scroll;
|
18
|
-
}
|
19
|
-
|
20
16
|
html {
|
21
17
|
background: $background-color;
|
22
18
|
}
|
@@ -76,6 +72,8 @@ object,
|
|
76
72
|
video {
|
77
73
|
max-width: 100%;
|
78
74
|
padding: 0 9%;
|
75
|
+
margin-left: auto;
|
76
|
+
margin-right: auto;
|
79
77
|
}
|
80
78
|
|
81
79
|
img[align=left] {
|
@@ -104,12 +102,6 @@ img[align=right] {
|
|
104
102
|
p, li, td {
|
105
103
|
font-size: 0.8em;
|
106
104
|
}
|
107
|
-
li li {
|
108
|
-
font-size: 0.95em;
|
109
|
-
}
|
110
|
-
li li * {
|
111
|
-
font-size: 1em;
|
112
|
-
}
|
113
105
|
|
114
106
|
iframe,
|
115
107
|
img,
|
@@ -163,9 +155,9 @@ footer *:last-child {
|
|
163
155
|
}
|
164
156
|
|
165
157
|
table {
|
158
|
+
word-wrap: break-word;
|
166
159
|
table-layout: fixed;
|
167
160
|
width: 100%;
|
168
|
-
word-wrap: break-word;
|
169
161
|
display: inline-block;
|
170
162
|
}
|
171
163
|
|
@@ -209,6 +201,7 @@ dl,
|
|
209
201
|
// Lists within lists
|
210
202
|
li {
|
211
203
|
p {
|
204
|
+
font-size: inherit;
|
212
205
|
display: inline;
|
213
206
|
}
|
214
207
|
|
@@ -0,0 +1,290 @@
|
|
1
|
+
// ==========================================================================
|
2
|
+
// Syntax highlighting
|
3
|
+
// ==========================================================================
|
4
|
+
|
5
|
+
div.highlighter-rouge,
|
6
|
+
figure.highlight,
|
7
|
+
.highlight code {
|
8
|
+
position: relative;
|
9
|
+
background: $base00;
|
10
|
+
color: $base05;
|
11
|
+
font-family: $monospace;
|
12
|
+
font-size: $font-size-code;
|
13
|
+
line-height: $font-height-code;
|
14
|
+
border-radius: $border-radius;
|
15
|
+
|
16
|
+
|
17
|
+
> pre,
|
18
|
+
pre.highlight {
|
19
|
+
margin: 0;
|
20
|
+
padding: 1em;
|
21
|
+
}
|
22
|
+
}
|
23
|
+
|
24
|
+
li .highlight * {
|
25
|
+
font-size: 14px;
|
26
|
+
}
|
27
|
+
|
28
|
+
pre .rouge-table,
|
29
|
+
.highlight pre,
|
30
|
+
.code pre {
|
31
|
+
margin: 0;
|
32
|
+
overflow: auto;
|
33
|
+
}
|
34
|
+
|
35
|
+
.rouge-table * {
|
36
|
+
font-size: 1em;
|
37
|
+
}
|
38
|
+
|
39
|
+
li div.highlighter-rouge {
|
40
|
+
margin-top: 0.5em;
|
41
|
+
}
|
42
|
+
|
43
|
+
div.highlighter-rouge,
|
44
|
+
figure.highlight {
|
45
|
+
margin-bottom: 1em;
|
46
|
+
}
|
47
|
+
|
48
|
+
code.highlighter-rouge {
|
49
|
+
padding: 0.2em 0.4em;
|
50
|
+
font-size: $font-size-code;
|
51
|
+
background-color: transparentize($base00, 0.85);
|
52
|
+
color: rgb(36, 41, 46);
|
53
|
+
border-radius: 2px;
|
54
|
+
font-family: $monospace;
|
55
|
+
}
|
56
|
+
|
57
|
+
table.rouge-table {
|
58
|
+
margin-bottom: 0;
|
59
|
+
font-size: 1em;
|
60
|
+
width: 100%;
|
61
|
+
border: 0;
|
62
|
+
|
63
|
+
td {
|
64
|
+
padding: 0;
|
65
|
+
width: calc(100% - 1em);
|
66
|
+
border: 0;
|
67
|
+
/* line numbers*/
|
68
|
+
&.gutter,
|
69
|
+
&.rouge-gutter {
|
70
|
+
padding-right: 1em;
|
71
|
+
width: 2em;
|
72
|
+
color: $base04;
|
73
|
+
border-right: 1px solid $base04;
|
74
|
+
text-align: right
|
75
|
+
}
|
76
|
+
|
77
|
+
/* code */
|
78
|
+
&.code,
|
79
|
+
&.rouge-code {
|
80
|
+
padding-left: 1em
|
81
|
+
}
|
82
|
+
}
|
83
|
+
|
84
|
+
pre {
|
85
|
+
margin: 0
|
86
|
+
}
|
87
|
+
}
|
88
|
+
|
89
|
+
.highlight pre {
|
90
|
+
width: 100%
|
91
|
+
}
|
92
|
+
|
93
|
+
.highlight .hll {
|
94
|
+
background-color: $base06
|
95
|
+
}
|
96
|
+
|
97
|
+
.highlight {
|
98
|
+
.bp{ /* Name.Builtin.Pseudo */
|
99
|
+
color: $base0c }
|
100
|
+
.c { /* Comment */
|
101
|
+
color: $base04 }
|
102
|
+
.cm{ /* Comment.Multiline */
|
103
|
+
color: $base04 }
|
104
|
+
.cp{ /* Comment.Preproc */
|
105
|
+
color: $base04 }
|
106
|
+
.c1{ /* Comment.Single */
|
107
|
+
color: $base04 }
|
108
|
+
.cs{ /* Comment.Special */
|
109
|
+
color: $base04 }
|
110
|
+
.dl{ /* String.Quotes 8 */
|
111
|
+
color: $base0a }
|
112
|
+
.err { /* Error */
|
113
|
+
color: $base0c }
|
114
|
+
.gd{ /* Generic.Deleted */
|
115
|
+
color: $base0c }
|
116
|
+
.ge{ /* Generic.Emph */
|
117
|
+
font-style: italic }
|
118
|
+
.gh{ /* Generic.Heading */
|
119
|
+
color: $base05;font-weight: bold }
|
120
|
+
.gi{ /* Generic.Inserted */
|
121
|
+
color: $base0a }
|
122
|
+
.gp{ /* Generic.Prompt */
|
123
|
+
color: $base04;font-weight: bold }
|
124
|
+
.gs{ /* Generic.Strong */
|
125
|
+
font-weight: bold }
|
126
|
+
.gu{ /* Generic.Subheading */
|
127
|
+
color: $base08;font-weight: bold }
|
128
|
+
.il{ /* Literal.Number.Integer.Long */
|
129
|
+
color: $base0e }
|
130
|
+
.k { /* Keyword */
|
131
|
+
color: $base0d }
|
132
|
+
.kc{ /* Keyword.Constant */
|
133
|
+
color: $base0d }
|
134
|
+
.kd{ /* Keyword.Declaration */
|
135
|
+
color: $base0d }
|
136
|
+
.kn{ /* Keyword.Namespace */
|
137
|
+
color: $base0d }
|
138
|
+
.kp{ /* Keyword.Pseudo */
|
139
|
+
color: $base0d }
|
140
|
+
.kr{ /* Keyword.Reserved */
|
141
|
+
color: $base0d }
|
142
|
+
.kt{ /* Keyword.Type */
|
143
|
+
color: $base09 }
|
144
|
+
.l{ /* Literal */
|
145
|
+
color: $base0e }
|
146
|
+
.ld{ /* Literal.Date */
|
147
|
+
color: $base0a }
|
148
|
+
.m{ /* Literal.Number */
|
149
|
+
color: $base0e }
|
150
|
+
.mb{ /* Literal.Bytes */
|
151
|
+
color: $base0e }
|
152
|
+
.mf{ /* Literal.Number.Float */
|
153
|
+
color: $base0e }
|
154
|
+
.mh{ /* Literal.Number.Hex */
|
155
|
+
color: $base0e }
|
156
|
+
.mi{ /* Literal.Number.Integer */
|
157
|
+
color: $base0e }
|
158
|
+
.mo{ /* Literal.Number.Oct */
|
159
|
+
color: $base0e }
|
160
|
+
.n{ /* Name */
|
161
|
+
color: $base05 }
|
162
|
+
.na{ /* Name.Attribute */
|
163
|
+
color: $base0b }
|
164
|
+
.nb{ /* Name.Builtin */
|
165
|
+
color: $base05 }
|
166
|
+
.nc{ /* Name.Class */
|
167
|
+
color: $base05 }
|
168
|
+
.no{ /* Name.Constant */
|
169
|
+
color: $base05 }
|
170
|
+
.nd{ /* Name.Decorator */
|
171
|
+
color: $base0f }
|
172
|
+
.ni{ /* Name.Entity */
|
173
|
+
color: $base05 }
|
174
|
+
.ne{ /* Name.Exception */
|
175
|
+
color: $base0c }
|
176
|
+
.nf{ /* Name.Function */
|
177
|
+
color: $base0b }
|
178
|
+
.nl{ /* Name.Label */
|
179
|
+
color: $base05 }
|
180
|
+
.nn{ /* Name.Namespace */
|
181
|
+
color: $base05 }
|
182
|
+
.nt{ /* Name.Tag */
|
183
|
+
color: $base08 }
|
184
|
+
.nv{ /* Name.Variable */
|
185
|
+
color: $base0c }
|
186
|
+
.nx{ /* Name.Other */
|
187
|
+
color: $base0b }
|
188
|
+
.o{ /* Operator */
|
189
|
+
color: $base08 }
|
190
|
+
.ow{ /* Operator.Word */
|
191
|
+
color: $base0d }
|
192
|
+
.p{ /* Punctuation */
|
193
|
+
color: $base05 }
|
194
|
+
.py{ /* Name.Property */
|
195
|
+
color: $base05 }
|
196
|
+
.s{ /* Literal.String */
|
197
|
+
color: $base0a }
|
198
|
+
.sb{ /* Literal.String.Backtick */
|
199
|
+
color: $base0a }
|
200
|
+
.sc{ /* Literal.String.Char */
|
201
|
+
color: $base05 }
|
202
|
+
.sd{ /* Literal.String.Doc */
|
203
|
+
color: $base04 }
|
204
|
+
.s2{ /* Literal.String.Double */
|
205
|
+
color: $base0a }
|
206
|
+
.se{ /* Literal.String.Escape */
|
207
|
+
color: $base0e }
|
208
|
+
.sh{ /* Literal.String.Heredoc */
|
209
|
+
color: $base0a }
|
210
|
+
.si{ /* Literal.String.Interpol */
|
211
|
+
color: $base0e }
|
212
|
+
.sx{ /* Literal.String.Other */
|
213
|
+
color: $base0a }
|
214
|
+
.sr{ /* Literal.String.Regex */
|
215
|
+
color: $base0a }
|
216
|
+
.s1{ /* Literal.String.Single */
|
217
|
+
color: $base0a }
|
218
|
+
.ss{ /* Literal.String.Symbol */
|
219
|
+
color: $base0a }
|
220
|
+
.vc{ /* Name.Variable.Class */
|
221
|
+
color: $base0c }
|
222
|
+
.vg{ /* Name.Variable.Global */
|
223
|
+
color: $base0c }
|
224
|
+
.vi{ /* Name.Variable.Instance */
|
225
|
+
color: $base0c }
|
226
|
+
.w{ /* Text.Whitespace */
|
227
|
+
color: $base05 }
|
228
|
+
}
|
229
|
+
|
230
|
+
// Fix Github syntax display
|
231
|
+
.gist .blob-num {
|
232
|
+
width: 3.5% !important;
|
233
|
+
}
|
234
|
+
|
235
|
+
.gist {
|
236
|
+
th, td {
|
237
|
+
border-bottom: 0;
|
238
|
+
}
|
239
|
+
}
|
240
|
+
|
241
|
+
// Fix nbconvert dataframe
|
242
|
+
.dataframe tbody {
|
243
|
+
font-size: 0.8em;
|
244
|
+
border-color: white;
|
245
|
+
|
246
|
+
tr {
|
247
|
+
:nth-child(even) {
|
248
|
+
background-color: #f8f8f8;
|
249
|
+
}
|
250
|
+
|
251
|
+
th {
|
252
|
+
border-top: 0;
|
253
|
+
border-left: 0;
|
254
|
+
border-bottom: 0;
|
255
|
+
}
|
256
|
+
|
257
|
+
|
258
|
+
td {
|
259
|
+
padding: 0;
|
260
|
+
border: 0;
|
261
|
+
text-align: center;
|
262
|
+
}
|
263
|
+
}
|
264
|
+
|
265
|
+
|
266
|
+
}
|
267
|
+
|
268
|
+
.dataframe thead tr {
|
269
|
+
:nth-child(n+2) {
|
270
|
+
color: black;
|
271
|
+
//width: 100px;
|
272
|
+
|
273
|
+
font-size: 0.75em;
|
274
|
+
text-align: center !important;
|
275
|
+
border-top: 0;
|
276
|
+
border-left: 0;
|
277
|
+
border-right: 0;
|
278
|
+
}
|
279
|
+
|
280
|
+
:first-child {
|
281
|
+
border-top: 0;
|
282
|
+
border-left: 0;
|
283
|
+
}
|
284
|
+
|
285
|
+
}
|
286
|
+
|
287
|
+
table.dataframe {
|
288
|
+
border: 0 solid $border-color;
|
289
|
+
border-collapse: collapse;
|
290
|
+
}
|