jekyll-theme-penumbra 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (48) hide show
  1. checksums.yaml +7 -0
  2. data/LICENSE +21 -0
  3. data/README.md +26 -0
  4. data/_config.yml +20 -0
  5. data/_includes/color-scheme.html +8 -0
  6. data/_includes/footer.html +1 -0
  7. data/_includes/head-custom-google-analytics.html +10 -0
  8. data/_includes/head-custom.html +12 -0
  9. data/_includes/header.html +17 -0
  10. data/_includes/ie-support.html +3 -0
  11. data/_includes/links-mobile.html +6 -0
  12. data/_includes/sidebar.html +8 -0
  13. data/_layouts/default.html +35 -0
  14. data/_layouts/post.html +14 -0
  15. data/_sass/colors.scss +126 -0
  16. data/_sass/fonts.scss +55 -0
  17. data/_sass/jekyll-theme-penumbra.scss +360 -0
  18. data/_sass/penumbra.scss +4 -0
  19. data/_sass/rouge-github.scss +219 -0
  20. data/assets/css/colors-auto-default-dark.scss +17 -0
  21. data/assets/css/colors-auto.scss +15 -0
  22. data/assets/css/colors-dark.scss +15 -0
  23. data/assets/css/colors-light.scss +9 -0
  24. data/assets/css/style.scss +75 -0
  25. data/assets/fonts/Noto-Sans-700/Noto-Sans-700.eot +0 -0
  26. data/assets/fonts/Noto-Sans-700/Noto-Sans-700.svg +336 -0
  27. data/assets/fonts/Noto-Sans-700/Noto-Sans-700.ttf +0 -0
  28. data/assets/fonts/Noto-Sans-700/Noto-Sans-700.woff +0 -0
  29. data/assets/fonts/Noto-Sans-700/Noto-Sans-700.woff2 +0 -0
  30. data/assets/fonts/Noto-Sans-700italic/Noto-Sans-700italic.eot +0 -0
  31. data/assets/fonts/Noto-Sans-700italic/Noto-Sans-700italic.svg +334 -0
  32. data/assets/fonts/Noto-Sans-700italic/Noto-Sans-700italic.ttf +0 -0
  33. data/assets/fonts/Noto-Sans-700italic/Noto-Sans-700italic.woff +0 -0
  34. data/assets/fonts/Noto-Sans-700italic/Noto-Sans-700italic.woff2 +0 -0
  35. data/assets/fonts/Noto-Sans-italic/Noto-Sans-italic.eot +0 -0
  36. data/assets/fonts/Noto-Sans-italic/Noto-Sans-italic.svg +337 -0
  37. data/assets/fonts/Noto-Sans-italic/Noto-Sans-italic.ttf +0 -0
  38. data/assets/fonts/Noto-Sans-italic/Noto-Sans-italic.woff +0 -0
  39. data/assets/fonts/Noto-Sans-italic/Noto-Sans-italic.woff2 +0 -0
  40. data/assets/fonts/Noto-Sans-regular/Noto-Sans-regular.eot +0 -0
  41. data/assets/fonts/Noto-Sans-regular/Noto-Sans-regular.svg +335 -0
  42. data/assets/fonts/Noto-Sans-regular/Noto-Sans-regular.ttf +0 -0
  43. data/assets/fonts/Noto-Sans-regular/Noto-Sans-regular.woff +0 -0
  44. data/assets/fonts/Noto-Sans-regular/Noto-Sans-regular.woff2 +0 -0
  45. data/assets/img/logo.png +0 -0
  46. data/assets/js/footer.fix.js +16 -0
  47. data/assets/js/scale.fix.js +27 -0
  48. metadata +159 -0
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: ba2133e4906b74a176f5ed65c28fdcbead863bba17a4bc9c876b395ecf5e268f
4
+ data.tar.gz: b79695d804965ff1dd490b70b5b3c4f5e101980fc60bb91f50ea465c203510a6
5
+ SHA512:
6
+ metadata.gz: b8715feb634c3d1d500498dd60f9432a3a9f5cb2a8982a798dd1362c7630922672fb5e8f0b8e691f63baa7cfaa715f0195c7600b097afe65a141634778efc1df
7
+ data.tar.gz: 3e5bb2e884a68ac18edca96f688a7afaa481aafb664a022a08f3b6cae1acc0e3bcaa31c9d0b882a68958512f27f8768bed8df045652a387dad03c2bdaecc5b9f
data/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2022 Cvtx
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
data/README.md ADDED
@@ -0,0 +1,26 @@
1
+ # Penumbra Jekyll Theme
2
+
3
+ *Penumbra is a Jekyll theme for GitHub Pages. You can [preview the theme to see what it looks like](http://cvtx.github.io/penumbra), or even [use it today](#usage).*
4
+
5
+ ## Usage
6
+
7
+ To use the Penumrba theme:
8
+
9
+ 1. Add the following to your site's `_config.yml`:
10
+
11
+ ```yml
12
+ remote_theme: Cvtx/penumbra
13
+ plugins:
14
+ - jekyll-remote-theme # add this line to the plugins list if you already have one
15
+ ```
16
+
17
+ 2. Optionally, if you'd like to preview your site on your computer, add the following to your site's `Gemfile`:
18
+
19
+ ```ruby
20
+ gem "github-pages", group: :jekyll_plugins
21
+ ```
22
+
23
+ ## License
24
+
25
+ The theme is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
26
+
data/_config.yml ADDED
@@ -0,0 +1,20 @@
1
+ title: Penumbra Theme
2
+ description: Penumbra is a theme for GitHub Pages.
3
+ logo: /assets/img/logo.png
4
+ google_analytics:
5
+ show_downloads: true
6
+ color-scheme: auto
7
+ theme: jekyll-theme-penumbra
8
+ plugins:
9
+ - jekyll-sitemap
10
+ - jekyll-seo-tag
11
+
12
+ sidebar:
13
+ - name: GitHub
14
+ icon: <i class="fa-brands fa-github"></i>
15
+ link: https://github.com/Cvtx/penumbra
16
+ - name: Blog
17
+ icon: <i class="fa-solid fa-pen"></i>
18
+ link: https://cvtx.github.io/blog/
19
+
20
+ github: [metadata]
@@ -0,0 +1,8 @@
1
+ {% case site.color-scheme %}
2
+ {% when "", nil, false, 0, empty %}
3
+ {% assign ColorScheme = "auto" %}
4
+ {% else %}
5
+ {% assign ColorScheme = site.color-scheme %}
6
+ {% endcase %}
7
+
8
+ <link rel="stylesheet" href="{{ "/assets/css/colors-ColorScheme.css?v=" | replace: "ColorScheme", ColorScheme | append: site.github.build_revision | relative_url }}">
@@ -0,0 +1 @@
1
+ <small><a href="https://github.com/Cvtx/penumbra">Penumbra</a> theme by <a href="https://cvtx.github.io/">Cvtx</a></small>
@@ -0,0 +1,10 @@
1
+ {% if site.google_analytics %}
2
+ <script>
3
+ (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
4
+ (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
5
+ m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
6
+ })(window,document,'script','//www.google-analytics.com/analytics.js','ga');
7
+ ga('create', '{{ site.google_analytics }}', 'auto');
8
+ ga('send', 'pageview');
9
+ </script>
10
+ {% endif %}
@@ -0,0 +1,12 @@
1
+ <!-- start custom head snippets, customize with your own _includes/head-custom.html file -->
2
+ <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@fortawesome/fontawesome-free/css/all.min.css">
3
+
4
+ <!-- Setup Google Analytics -->
5
+ {% include head-custom-google-analytics.html %}
6
+
7
+ <!-- You can set your favicon here -->
8
+ {% if site.favicon %}
9
+ <link rel="shortcut icon" type="image/x-icon" href="{{ '/favicon.ico' | relative_url }}">
10
+ {% endif %}
11
+
12
+ <!-- end custom head snippets -->
@@ -0,0 +1,17 @@
1
+ {% if site.logo %}
2
+ <img class="img-circle" src="{{site.logo | relative_url}}" alt="Logo">
3
+ {% endif %}
4
+
5
+ {% if site.blank_title %}
6
+ <h1>{{ site.title | default: site.github.repository_name }}</h1>
7
+ {% else %}
8
+ <h1><a href="{{ "/" | absolute_url }}">{{ site.title | default: site.github.repository_name }}</a></h1>
9
+ {% endif %}
10
+
11
+ {% if site.email %}
12
+ <p class="addr"><i class="fa-regular fa-envelope"></i>&nbsp;{{ site.email }}</p>
13
+ {% endif %}
14
+
15
+ <p>{{ site.description | default: site.github.project_tagline }}</p>
16
+
17
+ {% include sidebar.html %}
@@ -0,0 +1,3 @@
1
+ <!--[if lt IE 9]>
2
+ <script src="https://cdnjs.cloudflare.com/ajax/libs/html5shiv/3.7.3/html5shiv.min.js"></script>
3
+ <![endif]-->
@@ -0,0 +1,6 @@
1
+ <div class="link-wrapper-mobile" id="link-wrapper-mobile">
2
+ {%- for platform in site.sidebar %}
3
+ <nobr><a href="{{ platform.link }}" rel="me">{{ platform.icon }}&nbsp;{{ platform.name }}</a>
4
+ {%- unless forloop.last %}<span style="margin-left: 6px;"></span>{% endunless %}</nobr>
5
+ {%- endfor %}
6
+ </div>
@@ -0,0 +1,8 @@
1
+ <div class="link-wrapper">
2
+ <ul class="link">
3
+ {%- for platform in site.sidebar %}
4
+ <!-- <li><a href="{{ platform.link }}"><i class="{{ platform.icon }}"></i> {{ platform.name }}</a></li> -->
5
+ <li><a href="{{ platform.link }}">{{ platform.icon }}&nbsp;{{ platform.name }}</a></li>
6
+ {%- endfor %}
7
+ </ul>
8
+ </div>
@@ -0,0 +1,35 @@
1
+ <!DOCTYPE html>
2
+ <html lang="{{ site.lang | default: "en-US" }}">
3
+ <head>
4
+ <meta charset="UTF-8">
5
+ <meta http-equiv="X-UA-Compatible" content="IE=edge">
6
+ <meta name="viewport" content="width=device-width, initial-scale=1">
7
+ {% seo %}
8
+ {% include color-scheme.html %}
9
+ <link rel="stylesheet" href="{{ "/assets/css/style.css?v=" | append: site.github.build_revision | relative_url }}">
10
+ <link rel="preload" href="{{site.logo | relative_url}}" as="image">
11
+ {% include ie-support.html %}
12
+ {% include head-custom.html %}
13
+ </head>
14
+ <body>
15
+ <div class="wrapper">
16
+ <div class="sidebar">
17
+ <header>
18
+ {% include header.html %}
19
+ </header>
20
+ {% include links-mobile.html %}
21
+ <div class="sidebar-footer">
22
+ {% include footer.html %}
23
+ </div>
24
+ </div>
25
+ <section>
26
+ {{ content }}
27
+ </section>
28
+ <footer>
29
+ {% include footer.html %}
30
+ </footer>
31
+ </div>
32
+ <script src="{{ "/assets/js/scale.fix.js" | relative_url }}"></script>
33
+ <script src="{{ "/assets/js/footer.fix.js" | relative_url }}"></script>
34
+ </body>
35
+ </html>
@@ -0,0 +1,14 @@
1
+ ---
2
+ layout: default
3
+ ---
4
+
5
+ <small>{{ page.date | date: "%-d %B %Y" }}</small>
6
+ <h1>{{ page.title }}</h1>
7
+
8
+ <p class="view">by {{ page.author | default: site.author }}</p>
9
+
10
+ {{content}}
11
+
12
+ {% if page.tags %}
13
+ <small>tags: <em>{{ page.tags | join: "</em> - <em>" }}</em></small>
14
+ {% endif %}
data/_sass/colors.scss ADDED
@@ -0,0 +1,126 @@
1
+ /*
2
+ H -> hue
3
+ L -> luminosity
4
+ S -> saturation
5
+ clr -> color
6
+ bg -> background
7
+ hvr -> hover
8
+ */
9
+
10
+ // colors
11
+ :root {
12
+ // red
13
+ --code-d14: #d14;
14
+ --code-aa0000: #aa0000;
15
+ --code-990000: #990000;
16
+ // cyan
17
+ --code-009999: #009999;
18
+ --code-008080: #008080;
19
+ --code-3c5d5d: #3c5d5d;
20
+ // green
21
+ --code-009926: #009926;
22
+ // pink
23
+ --code-990073: #990073;
24
+ --code-800080: #800080;
25
+ // purple
26
+ --code-445588: #445588;
27
+ // blue
28
+ --code-000080: #000080;
29
+ // grey
30
+ --code-aaaaaa: #aaaaaa;
31
+ --code-999999: #999999;
32
+ --code-888888: #888888;
33
+ --code-555555: #555555;
34
+ }
35
+
36
+ @mixin colors {
37
+ // buttons
38
+ --L-a-text-hover-change: 0.8;//the number that --L-a-text gets changed by when it is hovered eg a button has 30% luminosity when left it luminosity is then timesed by 0.8 when the button is hovered
39
+ --clr-a-text: hsl(200, 100%, var(--L-a-text));
40
+ --clr-a-text-hvr: hsl(200, 100%, calc(var(--L-a-text) * var(--L-a-text-hover-change)));
41
+ --clr-buttons-main-bg: hsl(0, 0%, var(--L-buttons-main-bg));//the buttons in the main section at the top titled "download zip" "download tarbell" "veiw on github"
42
+ --clr-buttons-main-border: hsl(0, 0%, var(--L-buttons-main-border));
43
+ --clr-buttons-main-text: hsl(0, 0%, var(--L-buttons-main-text));
44
+ --clr-buttons-main-text-hover: hsl(0, 6%, var(--L-buttons-main-text-hover));
45
+ // headers + text
46
+ --clr-h1-and-bold: hsl(0, 0%, var(--L-h1-and-bold));
47
+ --clr-h2: hsl(0, 0%, var(--L-h2));
48
+ --clr-h-3-6: hsl(0, 0%, var(--L-h-3-6));
49
+ --clr-text: hsl(0, 0%, var(--L-text));
50
+ // code blocks
51
+ --clr-code-text: hsl(0, 0%, var(--L-code-text));
52
+ --clr-code-bg: hsl(0, 0%, var(--L-code-bg));
53
+ --clr-code-border: hsl(0, 0%, var(--L-code-border));
54
+ --clr-code-bold-text: hsl(0, 0%, var(--L-code-bold-text));
55
+ // kbd these are keyboard shortcuts eg <kbd>CMD+R</kbd>
56
+ --clr-kbd-bg: hsl(210, 25%, var(--L-kbd-bg));
57
+ --clr-kbd-border: hsl(212.7, 10.7%, var(--L-kbd-border));
58
+ --clr-kbd-border-bottom-and-shadow: hsl(210, 8.2%, var(--L-kbd-border-bottom-and-shadow));// akbd elemnts border bottom and its shadow color
59
+ --clr-kbd-text: hsl(210, 11.7%, var(--L-kbd-text));
60
+ // miscellaneous
61
+ --clr-bg: hsl(0, 0%, var(--L-bg));//the bg of the page
62
+ --clr-content-bg: hsl(0, 0%, var(--L-content-bg));//the bg of the content
63
+ --clr-splitter-blockquote-and-section: hsl(0, 0%, var(--L-splitter-blockquote-and-section));//a color for the lines that split tables, appear on the left pf blockquotes and mark new sections
64
+ --clr-small-in-a: hsl(0, 0%, var(--L-small-in-a));//the color for small elements in a's this color is used on the veiw on github button above the download buttons
65
+ --clr-table-header-and-dt: hsl(0, 0%, var(--L-table-header-and-dt)); //more info on dt's https://www.w3schools.com/tags/tryit.asp?filename=tryhtml_dd_test
66
+ }
67
+
68
+ @mixin light-colors {
69
+ // buttons
70
+ --L-a-text: 35%;
71
+ --L-buttons-main-bg: 96%;
72
+ --L-buttons-main-border: 88%;
73
+ --L-buttons-main-text: 40%;
74
+ --L-buttons-main-text-hover: 38%;
75
+ // headers + text
76
+ --L-h1-and-bold: 13%;
77
+ --L-h2: 22%;
78
+ --L-h-3-6: 29%;
79
+ --L-text-bold: 36%;
80
+ --L-text: 45%;
81
+ // code blocks
82
+ --L-code-text: 20%;
83
+ --L-code-bg: 97%;
84
+ --L-code-border: 90%;
85
+ --L-code-bold-text: 0%;
86
+ // kbds are keyboard shortcuts eg <kbd>CMD+R</kbd>
87
+ --L-kbd-bg: 98%;
88
+ --L-kbd-border: 80%;
89
+ --L-kbd-border-bottom-and-shadow: 62%;
90
+ --L-kbd-text: 30%;
91
+ // miscellaneous
92
+ --L-bg: 97%;
93
+ --L-content-bg: 100%;
94
+ --L-splitter-blockquote-and-section: 90%;//for elements like hr + blockquote
95
+ --L-small-in-a: 47%;
96
+ --L-table-header-and-dt: 27%; //more on dt's https://www.w3schools.com/tags/tryit.asp?filename=tryhtml_dd_test
97
+ }
98
+
99
+ @mixin dark-colors {
100
+ // buttons
101
+ --L-a-text: 60%;
102
+ --L-buttons-main-bg: 17%;
103
+ --L-buttons-main-border: 26%;
104
+ --L-buttons-main-text: 76%;
105
+ --L-buttons-main-text-hover: 80%;
106
+ // headers + text
107
+ --L-h1-and-bold: 90%;
108
+ --L-h2: 83%;
109
+ --L-h-3-6: 76%;
110
+ --L-text: 70%;
111
+ // code blocks
112
+ --L-code-text: 80%;
113
+ --L-code-bg: 3%;
114
+ --L-code-border: 5%;
115
+ --L-code-bold-text: 100%;
116
+ // kbds are keyboard shortcuts eg <kbd>CMD+R</kbd>
117
+ --L-kbd-bg: 30%;
118
+ --L-kbd-border: 45%;
119
+ --L-kbd-border-bottom-and-shadow: 55%;
120
+ --L-kbd-text: 100%;
121
+ // miscellaneous
122
+ --L-splitter-blockquote-and-section: 15%;// for elements like hr and blockquote
123
+ --L-bg: 5%;
124
+ --L-content-bg: 8%;
125
+ --L-table-header-and-dt: 90%; //more on dt's https://www.w3schools.com/tags/tryit.asp?filename=tryhtml_dd_test
126
+ }
data/_sass/fonts.scss ADDED
@@ -0,0 +1,55 @@
1
+ @font-face {
2
+ font-family: 'Noto Sans';
3
+ font-weight: 400;
4
+ font-style: normal;
5
+ src: url('../fonts/Noto-Sans-regular/Noto-Sans-regular.eot');
6
+ src: url('../fonts/Noto-Sans-regular/Noto-Sans-regular.eot?#iefix') format('embedded-opentype'),
7
+ local('Noto Sans'),
8
+ local('Noto-Sans-regular'),
9
+ url('../fonts/Noto-Sans-regular/Noto-Sans-regular.woff2') format('woff2'),
10
+ url('../fonts/Noto-Sans-regular/Noto-Sans-regular.woff') format('woff'),
11
+ url('../fonts/Noto-Sans-regular/Noto-Sans-regular.ttf') format('truetype'),
12
+ url('../fonts/Noto-Sans-regular/Noto-Sans-regular.svg#NotoSans') format('svg');
13
+ }
14
+
15
+ @font-face {
16
+ font-family: 'Noto Sans';
17
+ font-weight: 700;
18
+ font-style: normal;
19
+ src: url('../fonts/Noto-Sans-700/Noto-Sans-700.eot');
20
+ src: url('../fonts/Noto-Sans-700/Noto-Sans-700.eot?#iefix') format('embedded-opentype'),
21
+ local('Noto Sans Bold'),
22
+ local('Noto-Sans-700'),
23
+ url('../fonts/Noto-Sans-700/Noto-Sans-700.woff2') format('woff2'),
24
+ url('../fonts/Noto-Sans-700/Noto-Sans-700.woff') format('woff'),
25
+ url('../fonts/Noto-Sans-700/Noto-Sans-700.ttf') format('truetype'),
26
+ url('../fonts/Noto-Sans-700/Noto-Sans-700.svg#NotoSans') format('svg');
27
+ }
28
+
29
+ @font-face {
30
+ font-family: 'Noto Sans';
31
+ font-weight: 400;
32
+ font-style: italic;
33
+ src: url('../fonts/Noto-Sans-italic/Noto-Sans-italic.eot');
34
+ src: url('../fonts/Noto-Sans-italic/Noto-Sans-italic.eot?#iefix') format('embedded-opentype'),
35
+ local('Noto Sans Italic'),
36
+ local('Noto-Sans-italic'),
37
+ url('../fonts/Noto-Sans-italic/Noto-Sans-italic.woff2') format('woff2'),
38
+ url('../fonts/Noto-Sans-italic/Noto-Sans-italic.woff') format('woff'),
39
+ url('../fonts/Noto-Sans-italic/Noto-Sans-italic.ttf') format('truetype'),
40
+ url('../fonts/Noto-Sans-italic/Noto-Sans-italic.svg#NotoSans') format('svg');
41
+ }
42
+
43
+ @font-face {
44
+ font-family: 'Noto Sans';
45
+ font-weight: 700;
46
+ font-style: italic;
47
+ src: url('../fonts/Noto-Sans-700italic/Noto-Sans-700italic.eot');
48
+ src: url('../fonts/Noto-Sans-700italic/Noto-Sans-700italic.eot?#iefix') format('embedded-opentype'),
49
+ local('Noto Sans Bold Italic'),
50
+ local('Noto-Sans-700italic'),
51
+ url('../fonts/Noto-Sans-700italic/Noto-Sans-700italic.woff2') format('woff2'),
52
+ url('../fonts/Noto-Sans-700italic/Noto-Sans-700italic.woff') format('woff'),
53
+ url('../fonts/Noto-Sans-700italic/Noto-Sans-700italic.ttf') format('truetype'),
54
+ url('../fonts/Noto-Sans-700italic/Noto-Sans-700italic.svg#NotoSans') format('svg');
55
+ }