type-on-strap 2.2.1 → 2.2.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +16 -3
- data/_includes/citation.html +2 -0
- data/_includes/cookie-consent.html +51 -0
- data/_includes/head.html +21 -19
- data/_layouts/default.html +1 -1
- data/_layouts/page.html +10 -6
- data/_layouts/post.html +9 -5
- data/_sass/base/_global.scss +1 -6
- data/_sass/base/_variables.scss +33 -18
- data/_sass/external/_syntax.scss +172 -74
- data/_sass/includes/_cookie_consent.scss +17 -0
- data/_sass/includes/_footer.scss +1 -0
- data/_sass/layouts/_page.scss +1 -0
- data/_sass/type-on-strap.scss +1 -0
- metadata +5 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 64e23af743852732351b47a317581898a46eb51166c89d34d269ec28f0705208
|
4
|
+
data.tar.gz: fcc2886a0faa1321a78607e86eb75c7dfda7b9920a06aa50c438f0b1303ee8f0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 651b591231960d11c4a15885ea219bf81033a7c8612ce35be0bbacf92ed3ed930867fe42de05c8e3b1a730cfe1cda57a5b0b34c421c689793a4c44a81c9ec193
|
7
|
+
data.tar.gz: add83657f5553e3789477ae2947c6a3fb6ea8de67b84147401dffd61ea42541131479eb6c9af6d7d0d022cb62abe5b88a5fa568f1e045d6bd70e2bca9564e854
|
data/README.md
CHANGED
@@ -189,12 +189,17 @@ $$
|
|
189
189
|
In `_data/social.yml` you can customize the social icons from other wbesite you wish to display in the blog.
|
190
190
|
The site icons come from [Font Awesome](https://fontawesome.com/).
|
191
191
|
|
192
|
+
### Cookie consent
|
193
|
+
|
194
|
+
You can add a cookie consent with a disclaimer if you use Google Analytics while respecting the [GDPR](https://en.wikipedia.org/wiki/General_Data_Protection_Regulation).
|
195
|
+
Set to true, there will be a banner at the bottom of the page with the disclaimer and a approve button.
|
196
|
+
Once the user clicks on "Approve" the cookies will be created for Google Analytics.
|
197
|
+
|
192
198
|
#### Share in article
|
193
199
|
|
194
200
|
The share icons are the one at the bottom of the blog page if enabled,
|
195
201
|
to share the article on those platform.
|
196
202
|
|
197
|
-
|
198
203
|
#### Footer
|
199
204
|
|
200
205
|
Display in the footer.
|
@@ -287,6 +292,12 @@ Use it in any markdown file. There are two fields in the include you need to loo
|
|
287
292
|
- `column=3` set 3 columns
|
288
293
|
- `column="auto"` makes as many columns as images
|
289
294
|
|
295
|
+
#### Code highlight
|
296
|
+
|
297
|
+
Like all CSS variables in the theme, you can edit the color of the code highlight in _sass > base > _variables.scss.
|
298
|
+
The code highlighting works with [base16](https://github.com/chriskempson/base16-html-previews/tree/master/css) you can find existing example
|
299
|
+
of your favourite highlight color scheme on this format.
|
300
|
+
|
290
301
|
## Other Layouts
|
291
302
|
Please refer to the [Jekyll docs for writing posts](https://jekyllrb.com/docs/posts/).
|
292
303
|
Non-standard features are documented below.
|
@@ -504,5 +515,7 @@ remote_theme: sylhare/Type-on-Strap
|
|
504
515
|
|
505
516
|
## License
|
506
517
|
|
507
|
-
|
508
|
-
|
518
|
+
This theme is licensed under the [The MIT License (MIT)](https://raw.githubusercontent.com/Sylhare/Type-on-Strap/master/LICENSE)
|
519
|
+
|
520
|
+
- Pictures from [Pexels](https://www.pexels.com/) are under Creative Commons Zero (CC0) license
|
521
|
+
- Fonts are licensed under the [SIL Open Font License (OFL)](https://scripts.sil.org/cms/scripts/page.php?site_id=nrsi&id=OFL)
|
@@ -0,0 +1,51 @@
|
|
1
|
+
<div id="cookie-notice"><span>{{ site.cookie_consent_disclaimer
|
2
|
+
| default: 'We would like to use third party cookies and scripts to improve the functionality of this website.' }}
|
3
|
+
</span><a id="cookie-notice-accept" class="button">Approve</a>
|
4
|
+
</div>
|
5
|
+
<script async src="https://www.googletagmanager.com/gtag/js?id={{ site.google_analytics }}"></script>
|
6
|
+
<script async src='https://www.google-analytics.com/analytics.js'></script>
|
7
|
+
<script>
|
8
|
+
function createCookie(name, value, days) {
|
9
|
+
var expires = "";
|
10
|
+
if (days) {
|
11
|
+
var date = new Date();
|
12
|
+
date.setTime(date.getTime() + (days * 24 * 60 * 60 * 1000));
|
13
|
+
expires = "; expires=" + date.toUTCString();
|
14
|
+
}
|
15
|
+
document.cookie = name + "=" + value + expires + "; path=/";
|
16
|
+
}
|
17
|
+
|
18
|
+
function readCookie(name) {
|
19
|
+
var nameEQ = name + "=";
|
20
|
+
var ca = document.cookie.split(';');
|
21
|
+
for (var i = 0; i < ca.length; i++) {
|
22
|
+
var c = ca[i];
|
23
|
+
while (c.charAt(0) === ' ') c = c.substring(1, c.length);
|
24
|
+
if (c.indexOf(nameEQ) === 0) return c.substring(nameEQ.length, c.length);
|
25
|
+
}
|
26
|
+
return null;
|
27
|
+
}
|
28
|
+
|
29
|
+
if(readCookie('cookie-notice-dismissed')==='true') {
|
30
|
+
{% if site.google_analytics %}
|
31
|
+
// Google tag manager
|
32
|
+
window.dataLayer = window.dataLayer || [];
|
33
|
+
function gtag(){dataLayer.push(arguments);}
|
34
|
+
gtag('js', new Date());
|
35
|
+
gtag('config', '{{ site.google_analytics }}');
|
36
|
+
// Google analytics
|
37
|
+
window.ga=window.ga||function(){(ga.q=ga.q||[]).push(arguments)};ga.l=+new Date;
|
38
|
+
ga('create', '{{ site.google_analytics }}', 'auto');
|
39
|
+
ga('send', 'pageview');
|
40
|
+
{% endif %}
|
41
|
+
} else {
|
42
|
+
document.getElementById('cookie-notice').style.display = 'block';
|
43
|
+
}
|
44
|
+
|
45
|
+
document.getElementById('cookie-notice-accept').addEventListener("click",function() {
|
46
|
+
createCookie('cookie-notice-dismissed','true',31);
|
47
|
+
document.getElementById('cookie-notice').style.display = 'none';
|
48
|
+
location.reload();
|
49
|
+
});
|
50
|
+
|
51
|
+
</script>
|
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 }}">
|
@@ -36,25 +36,27 @@
|
|
36
36
|
{% endif %}
|
37
37
|
|
38
38
|
<!-- Google Analytics -->
|
39
|
-
{% if site.
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
39
|
+
{% if site.cookie_consent %}
|
40
|
+
{% include cookie-consent.html %}
|
41
|
+
{% elsif site.google_analytics and !%}
|
42
|
+
<!-- Global site tag (gtag.js) -->
|
43
|
+
<script async src="https://www.googletagmanager.com/gtag/js?id={{ site.google_analytics }}"></script>
|
44
|
+
<script>
|
45
|
+
window.dataLayer = window.dataLayer || [];
|
46
|
+
function gtag(){dataLayer.push(arguments);}
|
47
|
+
gtag('js', new Date());
|
48
|
+
gtag('config', '{{ site.google_analytics }}');
|
49
|
+
</script>
|
50
|
+
|
51
|
+
<!-- Page analysis (analytics.js) -->
|
52
|
+
<script async src='https://www.google-analytics.com/analytics.js'></script>
|
53
|
+
<script>
|
54
|
+
window.ga=window.ga||function(){(ga.q=ga.q||[]).push(arguments)};ga.l=+new Date;
|
55
|
+
ga('create', '{{ site.google_analytics }}', 'auto');
|
56
|
+
ga('send', 'pageview');
|
57
|
+
</script>
|
58
|
+
<!-- End Google Analytics -->
|
56
59
|
{% endif %}
|
57
|
-
<!-- End Google Analytics -->
|
58
60
|
|
59
61
|
<!-- seo tags -->
|
60
62
|
{% seo %}
|
data/_layouts/default.html
CHANGED
data/_layouts/page.html
CHANGED
@@ -5,12 +5,16 @@ layout: default
|
|
5
5
|
<article {% if page.feature-img %}class="feature-image"{% endif %}>
|
6
6
|
|
7
7
|
<header id="main" style="background-image: url('{{ page.feature-img | relative_url }}')">
|
8
|
-
<
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
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>
|
14
18
|
</header>
|
15
19
|
|
16
20
|
<section class="post-content">
|
data/_layouts/post.html
CHANGED
@@ -1,12 +1,16 @@
|
|
1
1
|
---
|
2
2
|
layout: default
|
3
3
|
---
|
4
|
-
<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 %}>
|
5
5
|
<header id="main" style="">
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
6
|
+
<div class="title-padder">
|
7
|
+
{% if page.hide_title %}
|
8
|
+
<div class="feature-image-padding"></div>
|
9
|
+
{% else %}
|
10
|
+
<h1 id="{{ page.title | cgi_escape }}" class="title">{{ page.title }}</h1>
|
11
|
+
{% include post_info.html author=page.author date=page.date %}
|
12
|
+
{% endif %}
|
13
|
+
</div>
|
10
14
|
</header>
|
11
15
|
|
12
16
|
<section class="post-content">
|
data/_sass/base/_global.scss
CHANGED
@@ -106,12 +106,6 @@ img[align=right] {
|
|
106
106
|
p, li, td {
|
107
107
|
font-size: 0.8em;
|
108
108
|
}
|
109
|
-
li li {
|
110
|
-
font-size: 0.95em;
|
111
|
-
}
|
112
|
-
li li * {
|
113
|
-
font-size: 1em;
|
114
|
-
}
|
115
109
|
|
116
110
|
iframe,
|
117
111
|
img,
|
@@ -211,6 +205,7 @@ dl,
|
|
211
205
|
// Lists within lists
|
212
206
|
li {
|
213
207
|
p {
|
208
|
+
font-size: inherit;
|
214
209
|
display: inline;
|
215
210
|
}
|
216
211
|
|
data/_sass/base/_variables.scss
CHANGED
@@ -37,7 +37,7 @@ $selection-color: #D4D4D4; // visible when highlighting text
|
|
37
37
|
$blockquote-color: #EEF7FA; // $background-color;
|
38
38
|
|
39
39
|
// Header
|
40
|
-
$header-background-color: $theme-color;
|
40
|
+
$header-background-color: $theme-color; // Only used when no header image
|
41
41
|
$header-text-color: #fff;
|
42
42
|
$header-link-color: #383838;
|
43
43
|
$navbar-separator-opacity: 0;
|
@@ -54,29 +54,44 @@ $search-color: #999;
|
|
54
54
|
|
55
55
|
/* Syntax highlighting */
|
56
56
|
// Syntax typography
|
57
|
-
$monospace:
|
58
|
-
$font-size-code: 0.
|
57
|
+
$monospace: Consolas, Menlo, Monaco, Lucida Console, Liberation Mono, DejaVu Sans Mono, Bitstream Vera Sans Mono, Courier New, monospace, sans-serif !default;
|
58
|
+
$font-size-code: 0.85em !default;
|
59
|
+
$font-height-code: 1.3em !default;
|
59
60
|
$border-radius: 4px !default;
|
60
61
|
|
61
62
|
// base16 Material Theme
|
62
|
-
$base00: #
|
63
|
+
$base00: #302f2d !default; // Default Background
|
63
64
|
$base01: #2E3C43 !default; // Lighter Background (Used for status bars)
|
64
65
|
$base02: #314549 !default; // Selection Background
|
65
|
-
$base03: #546E7A !default; //
|
66
|
-
$base04: #B2CCD6 !default; //
|
67
|
-
$base05: #EEFFFF !default; //
|
68
|
-
$base06: #EEFFFF !default; // Light
|
69
|
-
$base07: #FFFFFF !default; //
|
70
|
-
$base08: #F07178 !default; //
|
71
|
-
$base09: #F78C6C !default; //
|
72
|
-
$base0a: #FFCB6B !default; //
|
73
|
-
$base0b: #98C379 !default; //
|
66
|
+
$base03: #546E7A !default; // Dark Foreground (Used for status bars)
|
67
|
+
$base04: #B2CCD6 !default; // Comments, Invisible, Line Highlighting
|
68
|
+
$base05: #EEFFFF !default; // Light Foreground (Not often used)
|
69
|
+
$base06: #EEFFFF !default; // Light Background (Not often used)
|
70
|
+
$base07: #FFFFFF !default; // Default Foreground, Default text color
|
71
|
+
$base08: #F07178 !default; // Parenthesis, Caret, Delimiters, Operators
|
72
|
+
$base09: #F78C6C !default; // Classes, Markup Bold, Search Text Background
|
73
|
+
$base0a: #FFCB6B !default; // Strings, Inherited Class, Markup Code, Diff Inserted
|
74
|
+
$base0b: #98C379 !default; // Functions, Methods, Attribute IDs, Headings
|
74
75
|
$base0c: #89DDFF !default; // Support, Regular Expressions, Escape Characters, Markup Quotes
|
75
|
-
$base0d: #82AAFF !default; //
|
76
|
-
$base0e: #C792EA !default; //
|
76
|
+
$base0d: #82AAFF !default; // Keywords, Storage, Selector, Markup Italic, Diff Changed
|
77
|
+
$base0e: #C792EA !default; // Integers, Boolean, Constants, XML Attributes, Markup Link Url
|
77
78
|
$base0f: #FF5370 !default; // Deprecated, Opening/Closing Embedded Language Tags e.g.
|
78
79
|
|
79
|
-
|
80
|
-
|
81
|
-
|
80
|
+
// base16 Monokai
|
81
|
+
//$base00: #272822 !default; // Default Background
|
82
|
+
//$base01: #383830 !default; // Lighter Background (Used for status bars)
|
83
|
+
//$base02: #49483e !default; // Selection Background
|
84
|
+
//$base03: #75715e !default; // Dark Foreground (Used for status bars)
|
85
|
+
//$base04: #a59f85 !default; // Comments, Invisible, Line Highlighting
|
86
|
+
//$base05: #f8f8f2 !default; // Light Foreground (Not often used)
|
87
|
+
//$base06: #f5f4f1 !default; // Light Background (Not often used)
|
88
|
+
//$base07: #f9f8f5 !default; // Default text color
|
89
|
+
//$base08: #f92672 !default; // Parenthesis, Caret, Delimiters, Operators
|
90
|
+
//$base09: #fd971f !default; // Classes, Markup Bold, Search Text Background
|
91
|
+
//$base0a: #e6db74 !default; // Strings, Inherited Class, Markup Code, Diff Inserted
|
92
|
+
//$base0b: #a6e22e !default; // Functions, Methods, Attribute IDs, Headings
|
93
|
+
//$base0c: #a1efe4 !default; // Support, Regular Expressions, Escape Characters, Markup Quotes
|
94
|
+
//$base0d: #66d9ef !default; // Keywords, Storage, Selector, Markup Italic, Diff Changed
|
95
|
+
//$base0e: #ae81ff !default; // Integers, Boolean, Constants, XML Attributes, Markup Link Url
|
96
|
+
//$base0f: #cc6633 !default; // Deprecated, Opening/Closing Embedded Language Tags e.g.
|
82
97
|
|
data/_sass/external/_syntax.scss
CHANGED
@@ -1,27 +1,49 @@
|
|
1
|
-
// Inspired by: https://github.com/mmistakes/minimal-mistakes/blob/master/_sass/minimal-mistakes/_syntax.scss
|
2
|
-
|
3
1
|
// ==========================================================================
|
4
2
|
// Syntax highlighting
|
5
|
-
// ==========================================================================
|
3
|
+
// ==========================================================================
|
6
4
|
|
7
5
|
div.highlighter-rouge,
|
8
|
-
figure.highlight
|
6
|
+
figure.highlight,
|
7
|
+
.highlight code {
|
9
8
|
position: relative;
|
10
|
-
margin-bottom: 1em;
|
11
9
|
background: $base00;
|
12
10
|
color: $base05;
|
13
11
|
font-family: $monospace;
|
14
12
|
font-size: $font-size-code;
|
15
|
-
line-height:
|
13
|
+
line-height: $font-height-code;
|
16
14
|
border-radius: $border-radius;
|
17
15
|
|
16
|
+
|
18
17
|
> pre,
|
19
18
|
pre.highlight {
|
20
19
|
margin: 0;
|
21
|
-
padding: 1em
|
20
|
+
padding: 1em;
|
22
21
|
}
|
23
22
|
}
|
24
23
|
|
24
|
+
li .highlight * {
|
25
|
+
font-size: 14px;
|
26
|
+
}
|
27
|
+
|
28
|
+
pre .rouge-table,
|
29
|
+
.highlight pre,
|
30
|
+
.code pre {
|
31
|
+
margin: 0;
|
32
|
+
}
|
33
|
+
|
34
|
+
.rouge-table * {
|
35
|
+
font-size: 1em;
|
36
|
+
}
|
37
|
+
|
38
|
+
li div.highlighter-rouge {
|
39
|
+
margin-top: 0.5em;
|
40
|
+
}
|
41
|
+
|
42
|
+
div.highlighter-rouge,
|
43
|
+
figure.highlight {
|
44
|
+
margin-bottom: 1em;
|
45
|
+
}
|
46
|
+
|
25
47
|
code.highlighter-rouge {
|
26
48
|
padding: 0.2em 0.4em;
|
27
49
|
font-size: $font-size-code;
|
@@ -62,73 +84,143 @@ code.highlighter-rouge {
|
|
62
84
|
}
|
63
85
|
}
|
64
86
|
|
65
|
-
.highlight pre{
|
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
|
-
|
87
|
+
.highlight pre {
|
88
|
+
width: 100%
|
89
|
+
}
|
90
|
+
|
91
|
+
.highlight .hll {
|
92
|
+
background-color: $base06
|
93
|
+
}
|
94
|
+
|
95
|
+
.highlight {
|
96
|
+
.bp{ /* Name.Builtin.Pseudo */
|
97
|
+
color: $base0c }
|
98
|
+
.c { /* Comment */
|
99
|
+
color: $base04 }
|
100
|
+
.cm{ /* Comment.Multiline */
|
101
|
+
color: $base04 }
|
102
|
+
.cp{ /* Comment.Preproc */
|
103
|
+
color: $base04 }
|
104
|
+
.c1{ /* Comment.Single */
|
105
|
+
color: $base04 }
|
106
|
+
.cs{ /* Comment.Special */
|
107
|
+
color: $base04 }
|
108
|
+
.dl{ /* String.Quotes 8 */
|
109
|
+
color: $base0a }
|
110
|
+
.err { /* Error */
|
111
|
+
color: $base0c }
|
112
|
+
.gd{ /* Generic.Deleted */
|
113
|
+
color: $base0c }
|
114
|
+
.ge{ /* Generic.Emph */
|
115
|
+
font-style: italic }
|
116
|
+
.gh{ /* Generic.Heading */
|
117
|
+
color: $base05;font-weight: bold }
|
118
|
+
.gi{ /* Generic.Inserted */
|
119
|
+
color: $base0a }
|
120
|
+
.gp{ /* Generic.Prompt */
|
121
|
+
color: $base04;font-weight: bold }
|
122
|
+
.gs{ /* Generic.Strong */
|
123
|
+
font-weight: bold }
|
124
|
+
.gu{ /* Generic.Subheading */
|
125
|
+
color: $base08;font-weight: bold }
|
126
|
+
.il{ /* Literal.Number.Integer.Long */
|
127
|
+
color: $base0e }
|
128
|
+
.k { /* Keyword */
|
129
|
+
color: $base0d }
|
130
|
+
.kc{ /* Keyword.Constant */
|
131
|
+
color: $base0d }
|
132
|
+
.kd{ /* Keyword.Declaration */
|
133
|
+
color: $base0d }
|
134
|
+
.kn{ /* Keyword.Namespace */
|
135
|
+
color: $base09 }
|
136
|
+
.kp{ /* Keyword.Pseudo */
|
137
|
+
color: $base0d }
|
138
|
+
.kr{ /* Keyword.Reserved */
|
139
|
+
color: $base0d }
|
140
|
+
.kt{ /* Keyword.Type */
|
141
|
+
color: $base09 }
|
142
|
+
.l{ /* Literal */
|
143
|
+
color: $base0e }
|
144
|
+
.ld{ /* Literal.Date */
|
145
|
+
color: $base0a }
|
146
|
+
.m{ /* Literal.Number */
|
147
|
+
color: $base0e }
|
148
|
+
.mf{ /* Literal.Number.Float */
|
149
|
+
color: $base0e }
|
150
|
+
.mh{ /* Literal.Number.Hex */
|
151
|
+
color: $base0e }
|
152
|
+
.mi{ /* Literal.Number.Integer */
|
153
|
+
color: $base0e }
|
154
|
+
.mo{ /* Literal.Number.Oct */
|
155
|
+
color: $base0e }
|
156
|
+
.n{ /* Name */
|
157
|
+
color: $base05 }
|
158
|
+
.na{ /* Name.Attribute */
|
159
|
+
color: $base0b }
|
160
|
+
.nb{ /* Name.Builtin */
|
161
|
+
color: $base05 }
|
162
|
+
.nc{ /* Name.Class */
|
163
|
+
color: $base05 }
|
164
|
+
.no{ /* Name.Constant */
|
165
|
+
color: $base05 }
|
166
|
+
.nd{ /* Name.Decorator */
|
167
|
+
color: $base08 }
|
168
|
+
.ni{ /* Name.Entity */
|
169
|
+
color: $base05 }
|
170
|
+
.ne{ /* Name.Exception */
|
171
|
+
color: $base0c }
|
172
|
+
.nf{ /* Name.Function */
|
173
|
+
color: $base0b }
|
174
|
+
.nl{ /* Name.Label */
|
175
|
+
color: $base05 }
|
176
|
+
.nn{ /* Name.Namespace */
|
177
|
+
color: $base05 }
|
178
|
+
.nt{ /* Name.Tag */
|
179
|
+
color: $base08 }
|
180
|
+
.nv{ /* Name.Variable */
|
181
|
+
color: $base0c }
|
182
|
+
.nx{ /* Name.Other */
|
183
|
+
color: $base0b }
|
184
|
+
.o{ /* Operator */
|
185
|
+
color: $base08 }
|
186
|
+
.ow{ /* Operator.Word */
|
187
|
+
color: $base0d }
|
188
|
+
.p{ /* Punctuation */
|
189
|
+
color: $base05 }
|
190
|
+
.py{ /* Name.Property */
|
191
|
+
color: $base05 }
|
192
|
+
.s{ /* Literal.String */
|
193
|
+
color: $base0a }
|
194
|
+
.sb{ /* Literal.String.Backtick */
|
195
|
+
color: $base0a }
|
196
|
+
.sc{ /* Literal.String.Char */
|
197
|
+
color: $base05 }
|
198
|
+
.sd{ /* Literal.String.Doc */
|
199
|
+
color: $base04 }
|
200
|
+
.s2{ /* Literal.String.Double */
|
201
|
+
color: $base0a }
|
202
|
+
.se{ /* Literal.String.Escape */
|
203
|
+
color: $base0e }
|
204
|
+
.sh{ /* Literal.String.Heredoc */
|
205
|
+
color: $base0a }
|
206
|
+
.si{ /* Literal.String.Interpol */
|
207
|
+
color: $base0e }
|
208
|
+
.sx{ /* Literal.String.Other */
|
209
|
+
color: $base0a }
|
210
|
+
.sr{ /* Literal.String.Regex */
|
211
|
+
color: $base0a }
|
212
|
+
.s1{ /* Literal.String.Single */
|
213
|
+
color: $base0a }
|
214
|
+
.ss{ /* Literal.String.Symbol */
|
215
|
+
color: $base0a }
|
216
|
+
.vc{ /* Name.Variable.Class */
|
217
|
+
color: $base0c }
|
218
|
+
.vg{ /* Name.Variable.Global */
|
219
|
+
color: $base0c }
|
220
|
+
.vi{ /* Name.Variable.Instance */
|
221
|
+
color: $base0c }
|
222
|
+
.w{ /* Text.Whitespace */
|
223
|
+
color: $base05 }
|
132
224
|
}
|
133
225
|
|
134
226
|
// Fix Github syntax display
|
@@ -136,6 +228,12 @@ code.highlighter-rouge {
|
|
136
228
|
width: 3.5% !important;
|
137
229
|
}
|
138
230
|
|
231
|
+
.gist {
|
232
|
+
th, td {
|
233
|
+
border-bottom: 0;
|
234
|
+
}
|
235
|
+
}
|
236
|
+
|
139
237
|
// Fix nbconvert dataframe
|
140
238
|
.dataframe tbody {
|
141
239
|
font-size: 0.8em;
|
@@ -0,0 +1,17 @@
|
|
1
|
+
#cookie-notice {
|
2
|
+
padding: 0.5rem 1rem;
|
3
|
+
display: none;
|
4
|
+
text-align: center;
|
5
|
+
position: fixed;
|
6
|
+
bottom: 0;
|
7
|
+
width: 100%;
|
8
|
+
background: rgba(2, 2, 2, 0.85);
|
9
|
+
color: lightgray;
|
10
|
+
z-index: 1000;
|
11
|
+
}
|
12
|
+
|
13
|
+
#cookie-notice a {
|
14
|
+
display: inline-block;
|
15
|
+
cursor: pointer;
|
16
|
+
margin-left: 0.6rem;
|
17
|
+
}
|
data/_sass/includes/_footer.scss
CHANGED
data/_sass/layouts/_page.scss
CHANGED
data/_sass/type-on-strap.scss
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: type-on-strap
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.2.
|
4
|
+
version: 2.2.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Sylhare
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2020-
|
12
|
+
date: 2020-06-26 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: jekyll
|
@@ -90,6 +90,8 @@ files:
|
|
90
90
|
- _includes/aligner.html
|
91
91
|
- _includes/blog.html
|
92
92
|
- _includes/blog_nav.html
|
93
|
+
- _includes/citation.html
|
94
|
+
- _includes/cookie-consent.html
|
93
95
|
- _includes/disqus.html
|
94
96
|
- _includes/footer.html
|
95
97
|
- _includes/gallery.html
|
@@ -132,6 +134,7 @@ files:
|
|
132
134
|
- _sass/external/font-awesome/_variables.scss
|
133
135
|
- _sass/external/font-awesome/font-awesome.scss
|
134
136
|
- _sass/includes/_blog_nav.scss
|
137
|
+
- _sass/includes/_cookie_consent.scss
|
135
138
|
- _sass/includes/_footer.scss
|
136
139
|
- _sass/includes/_grid.scss
|
137
140
|
- _sass/includes/_navbar.scss
|