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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 96498e8bc639617b5a89ca28b272159ac6bbe0181cf06e4940a8d3e484ab3e9c
4
- data.tar.gz: 1963b426197beb23d966e2e8de61abd2288b344d764cde9ece68636e8dddc68c
3
+ metadata.gz: 64e23af743852732351b47a317581898a46eb51166c89d34d269ec28f0705208
4
+ data.tar.gz: fcc2886a0faa1321a78607e86eb75c7dfda7b9920a06aa50c438f0b1303ee8f0
5
5
  SHA512:
6
- metadata.gz: '09b6df42042eac5648af2d3606fe05dbf1cd811753e7a932ab62de701f999729f7dad969c99a1ca910ff490221648bba03706942395f3d439958d83080d99fd2'
7
- data.tar.gz: db5215c5227cec136a7b9191040f2fbf06f550499804d03d99ef33b0d736aebbe906523fedaa18bff7f64c7aa26210e3c373448941247c6f7239e8ea7a961b6e
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
- There are some fonts and component on this theme going under the MIT licence as well in this theme.
508
- [The MIT License (MIT)](https://raw.githubusercontent.com/Sylhare/Type-on-Strap/master/LICENSE)
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,2 @@
1
+ {%- assign citation = site.data.biblio | where:"key", include.key | first -%}
2
+ <span class="cit-authors">{{citation.authors}}</span>, <span class="cit-title">{{citation.title}}</span>
@@ -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>
@@ -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=true src="{{ '/assets/js/main.min.js' | relative_url }}"></script>
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.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>
51
- <script>
52
- window.ga=window.ga||function(){(ga.q=ga.q||[]).push(arguments)};ga.l=+new Date;
53
- ga('create', '{{ site.google_analytics }}', 'auto');
54
- ga('send', 'pageview');
55
- </script>
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 %}
@@ -1,6 +1,6 @@
1
1
  <!DOCTYPE html>
2
2
  <!--
3
- Type on Strap jekyll theme v2.2.1
3
+ Type on Strap jekyll theme v2.2.4
4
4
  Copyright 2016-2019 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
@@ -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
- <h1 id="{{ page.title | default: "" | cgi_escape }}" class="title">
9
- {{ page.title }}
10
- </h1>
11
- {% if page.subtitle %}
12
- <h2 class="subtitle">{{ page.subtitle }}</h2>
13
- {% endif %}
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">
@@ -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
- {% unless page.hide_title %}
7
- <h1 id="{{ page.title | cgi_escape }}" class="title">{{ page.title }}</h1>
8
- {% include post_info.html author=page.author date=page.date %}
9
- {% endunless %}
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">
@@ -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
 
@@ -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; // Only used when no header image
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: Monaco, Consolas, "Lucida Console", monospace !default;
58
- $font-size-code: 0.75em !default; // ~12px
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: #263238 !default; // Default Background
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; // Comments, Invisibles, Line Highlighting
66
- $base04: #B2CCD6 !default; // Dark Foreground (Used for status bars)
67
- $base05: #EEFFFF !default; // Default Foreground, Caret, Delimiters, Operators
68
- $base06: #EEFFFF !default; // Light Foreground (Not often used)
69
- $base07: #FFFFFF !default; // Light Background (Not often used)
70
- $base08: #F07178 !default; // Variables, XML Tags, Markup Link Text, Markup Lists, Diff Deleted
71
- $base09: #F78C6C !default; // Integers, Boolean, Constants, XML Attributes, Markup Link Url
72
- $base0a: #FFCB6B !default; // Classes, Markup Bold, Search Text Background
73
- $base0b: #98C379 !default; // Strings, Inherited Class, Markup Code, Diff Inserted
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; // Functions, Methods, Attribute IDs, Headings
76
- $base0e: #C792EA !default; // Keywords, Storage, Selector, Markup Italic, Diff Changed
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
 
@@ -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: 1.8;
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{ width:100%}
66
- .highlight .hll{ background-color:$base06}
67
-
68
- .highlight{
69
- .c{ /* Comment */ color:$base04}
70
- .err{ /* Error */ color:$base08}
71
- .k{ /* Keyword */ color:$base0e}
72
- .l{ /* Literal */ color:$base09}
73
- .n{ /* Name */ color:$base05}
74
- .o{ /* Operator */ color:$base0c}
75
- .p{ /* Punctuation */ color:$base05}
76
- .cm{ /* Comment.Multiline */ color:$base04}
77
- .cp{ /* Comment.Preproc */ color:$base04}
78
- .c1{ /* Comment.Single */ color:$base04}
79
- .cs{ /* Comment.Special */ color:$base04}
80
- .gd{ /* Generic.Deleted */ color:$base08}
81
- .ge{ /* Generic.Emph */ font-style:italic}
82
- .gh{ /* Generic.Heading */ color:$base05; font-weight:bold}
83
- .gi{ /* Generic.Inserted */ color:$base0b}
84
- .gp{ /* Generic.Prompt */ color:$base04; font-weight:bold}
85
- .gs{ /* Generic.Strong */ font-weight:bold}
86
- .gu{ /* Generic.Subheading */ color:$base0c; font-weight:bold}
87
- .kc{ /* Keyword.Constant */ color:$base0e}
88
- .kd{ /* Keyword.Declaration */ color:$base0e}
89
- .kn{ /* Keyword.Namespace */ color:$base0c}
90
- .kp{ /* Keyword.Pseudo */ color:$base0e}
91
- .kr{ /* Keyword.Reserved */ color:$base0e}
92
- .kt{ /* Keyword.Type */ color:$base0a}
93
- .ld{ /* Literal.Date */ color:$base0b}
94
- .m{ /* Literal.Number */ color:$base09}
95
- .s{ /* Literal.String */ color:$base0b}
96
- .na{ /* Name.Attribute */ color:$base0d}
97
- .nb{ /* Name.Builtin */ color:$base05}
98
- .nc{ /* Name.Class */ color:$base0a}
99
- .no{ /* Name.Constant */ color:$base08}
100
- .nd{ /* Name.Decorator */ color:$base0c}
101
- .ni{ /* Name.Entity */ color:$base05}
102
- .ne{ /* Name.Exception */ color:$base08}
103
- .nf{ /* Name.Function */ color:$base0d}
104
- .nl{ /* Name.Label */ color:$base05}
105
- .nn{ /* Name.Namespace */ color:$base0a}
106
- .nx{ /* Name.Other */ color:$base0d}
107
- .py{ /* Name.Property */ color:$base05}
108
- .nt{ /* Name.Tag */ color:$base0c}
109
- .nv{ /* Name.Variable */ color:$base08}
110
- .ow{ /* Operator.Word */ color:$base0c}
111
- .w{ /* Text.Whitespace */ color:$base05}
112
- .mf{ /* Literal.Number.Float */ color:$base09}
113
- .mh{ /* Literal.Number.Hex */ color:$base09}
114
- .mi{ /* Literal.Number.Integer */ color:$base09}
115
- .mo{ /* Literal.Number.Oct */ color:$base09}
116
- .sb{ /* Literal.String.Backtick */ color:$base0b}
117
- .sc{ /* Literal.String.Char */ color:$base05}
118
- .sd{ /* Literal.String.Doc */ color:$base04}
119
- .s2{ /* Literal.String.Double */ color:$base0b}
120
- .se{ /* Literal.String.Escape */ color:$base09}
121
- .sh{ /* Literal.String.Heredoc */ color:$base0b}
122
- .si{ /* Literal.String.Interpol */ color:$base09}
123
- .sx{ /* Literal.String.Other */ color:$base0b}
124
- .sr{ /* Literal.String.Regex */ color:$base0b}
125
- .s1{ /* Literal.String.Single */ color:$base0b}
126
- .ss{ /* Literal.String.Symbol */ color:$base0b}
127
- .bp{ /* Name.Builtin.Pseudo */ color:$base05}
128
- .vc{ /* Name.Variable.Class */ color:$base08}
129
- .vg{ /* Name.Variable.Global */ color:$base08}
130
- .vi{ /* Name.Variable.Instance */ color:$base08}
131
- .il{ /* Literal.Number.Integer.Long */ color:$base09}
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
+ }
@@ -1,5 +1,6 @@
1
1
  .site-footer {
2
2
  @extend %padding-post;
3
+ z-index: -1;
3
4
  display: inline-block;
4
5
  text-align: center;
5
6
  width: 100%;
@@ -22,6 +22,7 @@ h1.title {
22
22
  .row {
23
23
  display: flex;
24
24
  flex-wrap: wrap;
25
+ padding: 0.9% 0 1.5% 0;
25
26
  }
26
27
 
27
28
  .column {
@@ -24,3 +24,4 @@
24
24
  @import 'includes/grid';
25
25
  @import 'includes/share_buttons';
26
26
  @import 'includes/blog_nav.scss';
27
+ @import 'includes/cookie_consent.scss';
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.1
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-05-20 00:00:00.000000000 Z
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