monospace-web-jekyll-theme 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +7 -0
- data/LICENSE.txt +21 -0
- data/README.md +59 -0
- data/_config.yml +4 -0
- data/_data/navigation.yml +9 -0
- data/_data/theme.yml +5 -0
- data/_includes/debug-grid.html +1 -0
- data/_includes/debug-toggle.html +4 -0
- data/_includes/footer.html +3 -0
- data/_includes/head.html +8 -0
- data/_includes/header.html +11 -0
- data/_includes/theme-infobox.html +24 -0
- data/_layouts/default.html +23 -0
- data/_layouts/page.html +5 -0
- data/_layouts/post.html +5 -0
- data/assets/css/monospace.min.css +3 -0
- data/assets/css/overrides.css +38 -0
- data/assets/js/monospace.min.js +1 -0
- metadata +74 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: f0c501f88253b862b6501b1564bf92c2cd5001ac0fa72ad305b317ebe1a65e10
|
4
|
+
data.tar.gz: e850c060c6eb14e82717d9398428e0824eddff8ed9e89fb18f98f97363fd886d
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: dd88049f2ef49aecfd65a4c07d91b0f43b6ade3dfc2fbd2a0bff5afa00695dd46c26e2cefd096ee64841cc44a21425709a0355b33a2c49658f6ad9c1b9800389
|
7
|
+
data.tar.gz: b4568c380bda6fe38eac2de6ac1a8b3d8b58e15d9ae3318c62eb71bcb5eb384963a7ad63249b03d93bf81c9ae43027b8f2ac69dc08079fa2c10bdbfa76009caa
|
data/LICENSE.txt
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
The MIT License (MIT)
|
2
|
+
|
3
|
+
Copyright (c) 2025 Cameron K Brooks
|
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
|
13
|
+
all 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
|
21
|
+
THE SOFTWARE.
|
data/README.md
ADDED
@@ -0,0 +1,59 @@
|
|
1
|
+
# monospace-web-jekyll-theme
|
2
|
+
|
3
|
+
A minimal Jekyll theme that automatically vendors CSS/JS from [monospace-web-theme](https://npmjs.com/package/monospace-web-theme).
|
4
|
+
|
5
|
+
## Installation
|
6
|
+
|
7
|
+
Add this line to your Jekyll site's `Gemfile`:
|
8
|
+
|
9
|
+
```ruby
|
10
|
+
gem "monospace-web-jekyll-theme"
|
11
|
+
```
|
12
|
+
|
13
|
+
And add this line to your Jekyll site's `_config.yml`:
|
14
|
+
|
15
|
+
```yaml
|
16
|
+
theme: monospace-web-jekyll-theme
|
17
|
+
```
|
18
|
+
|
19
|
+
And then execute:
|
20
|
+
|
21
|
+
$ bundle
|
22
|
+
|
23
|
+
Or install it yourself as:
|
24
|
+
|
25
|
+
$ gem install monospace-web-jekyll-theme
|
26
|
+
|
27
|
+
## Usage
|
28
|
+
|
29
|
+
TODO: Write usage instructions here. Describe your available layouts, includes and/or assets.
|
30
|
+
|
31
|
+
## Config Keys
|
32
|
+
|
33
|
+
```yml
|
34
|
+
# In the *site* that consumes your theme
|
35
|
+
theme: monospace-web-jekyll-theme
|
36
|
+
|
37
|
+
theme_options:
|
38
|
+
show_theme_box: false # turn off the info box
|
39
|
+
show_debug_grid_toggle: true # enable the debug‐grid toggle
|
40
|
+
```
|
41
|
+
|
42
|
+
## Contributing
|
43
|
+
|
44
|
+
Bug reports and pull requests are welcome on GitHub at https://github.com/CameronBrooks11/monospace-web-jekyll-theme. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](https://www.contributor-covenant.org/) code of conduct.
|
45
|
+
|
46
|
+
## Development
|
47
|
+
|
48
|
+
To set up your environment to develop this theme, run `bundle install`.
|
49
|
+
|
50
|
+
To fetch the monospace-web-theme from npm, run `npm install`. Next run: `npm ci` to install exactly the versions from package-lock.json for a clean, reproducible build; then run: `npm run vendor` to copy the .min.css and .min.js files from node_modules/monospace-web-theme into your assets/css and assets/js directories.
|
51
|
+
|
52
|
+
Your theme is setup just like a normal Jekyll site! To test your theme, run `bundle exec jekyll serve` and open your browser at `http://localhost:4000`. This starts a Jekyll server using your theme. Add pages, documents, data, etc. like normal to test your theme's contents. As you make modifications to your theme and to your content, your site will regenerate and you should see the changes in the browser after a refresh, just like normal.
|
53
|
+
|
54
|
+
When your theme is released, only the files in `_layouts`, `_includes` and `assets` tracked with Git will be bundled.
|
55
|
+
To add a custom directory to your theme-gem, please edit the regexp in `monospace-web-jekyll-theme.gemspec` accordingly.
|
56
|
+
|
57
|
+
## License
|
58
|
+
|
59
|
+
The theme is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
|
data/_config.yml
ADDED
data/_data/theme.yml
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
<div class="debug-grid"></div>
|
data/_includes/head.html
ADDED
@@ -0,0 +1,8 @@
|
|
1
|
+
<meta charset="utf-8">
|
2
|
+
<meta name="viewport" content="width=device-width, initial-scale=1">
|
3
|
+
|
4
|
+
<!-- Vendor styles -->
|
5
|
+
<link rel="stylesheet" href="{{ '/assets/css/monospace.min.css' | relative_url }}">
|
6
|
+
|
7
|
+
<!-- Your overrides -->
|
8
|
+
<link rel="stylesheet" href="{{ '/assets/css/overrides.css' | relative_url }}">
|
@@ -0,0 +1,11 @@
|
|
1
|
+
<header class="site-header">
|
2
|
+
<h1 class="site-title">{{ site.data.theme.title }}</h1>
|
3
|
+
<p class="site-subtitle">{{ site.data.theme.subtitle }}</p>
|
4
|
+
<nav>
|
5
|
+
<ul>
|
6
|
+
{% for item in site.data.navigation.main %}
|
7
|
+
<li><a href="{{ item.url | relative_url }}">{{ item.title }}</a></li>
|
8
|
+
{% endfor %}
|
9
|
+
</ul>
|
10
|
+
</nav>
|
11
|
+
</header>
|
@@ -0,0 +1,24 @@
|
|
1
|
+
<table class="theme-metadata">
|
2
|
+
<tr>
|
3
|
+
<th>Theme</th>
|
4
|
+
<td colspan="3">{{ site.data.theme.themename }}</td>
|
5
|
+
<td rowspan="3" class="theme-metadata__toggle-cell">
|
6
|
+
<br />
|
7
|
+
<br />
|
8
|
+
{% include debug-toggle.html %}
|
9
|
+
<br />
|
10
|
+
</td>
|
11
|
+
</tr>
|
12
|
+
<tr>
|
13
|
+
<th>Version</th>
|
14
|
+
<td>v{{ site.data.theme.version }}</td>
|
15
|
+
<th>Updated</th>
|
16
|
+
<td>{{ site.data.theme.updated }}</td>
|
17
|
+
</tr>
|
18
|
+
<tr>
|
19
|
+
<th>Author</th>
|
20
|
+
<td><cite>{{ site.data.theme.author }}</cite></td>
|
21
|
+
<th>License</th>
|
22
|
+
<td>{{ site.data.theme.license }}</td>
|
23
|
+
</tr>
|
24
|
+
</table>
|
@@ -0,0 +1,23 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<html lang="en">
|
3
|
+
|
4
|
+
<head>
|
5
|
+
{% include head.html %}
|
6
|
+
</head>
|
7
|
+
|
8
|
+
<body>
|
9
|
+
{% include header.html %}
|
10
|
+
<main>
|
11
|
+
{{ content }}
|
12
|
+
</main>
|
13
|
+
<br />
|
14
|
+
{% include footer.html %}
|
15
|
+
<br />
|
16
|
+
{% if site.theme_options.show_theme_box %}
|
17
|
+
{% include theme-infobox.html %}
|
18
|
+
{% include debug-toggle.html %}
|
19
|
+
{% endif %}
|
20
|
+
<script defer src="{{ '/assets/js/monospace.min.js' | relative_url }}"></script>
|
21
|
+
</body>
|
22
|
+
|
23
|
+
</html>
|
data/_layouts/page.html
ADDED
data/_layouts/post.html
ADDED
@@ -0,0 +1,3 @@
|
|
1
|
+
@import url("https://fonts.cdnfonts.com/css/jetbrains-mono-2");a,abbr,acronym,address,applet,article,aside,audio,b,big,blockquote,body,canvas,caption,center,cite,code,dd,del,details,dfn,div,dl,dt,em,embed,fieldset,figcaption,figure,footer,form,h1,h2,h3,h4,h5,h6,header,hgroup,html,i,iframe,img,ins,kbd,label,legend,li,mark,menu,nav,object,ol,output,p,pre,q,ruby,s,samp,section,small,span,strike,strong,sub,summary,sup,table,tbody,td,tfoot,th,thead,time,tr,tt,u,ul,var,video{border:0;font-size:100%;font:inherit;margin:0;padding:0;vertical-align:baseline}article,aside,details,figcaption,figure,footer,header,hgroup,menu,nav,section{display:block}body{line-height:1}ol,ul{list-style:none;margin:0}blockquote,q{quotes:none}blockquote:after,blockquote:before,q:after,q:before{content:""}table{border-spacing:0}:root{--font-family:"JetBrains Mono",monospace;--line-height:1.2rem;--border-thickness:2px;--text-color:#000;--text-color-alt:#666;--background-color:#fff;--background-color-alt:#eee;--font-weight-normal:500;--font-weight-medium:600;--font-weight-bold:800;font-family:var(--font-family);font-optical-sizing:auto;font-size:16px;font-style:normal;font-variant-numeric:tabular-nums lining-nums;font-weight:var(--font-weight-normal)}@media (prefers-color-scheme:dark){:root{--text-color:#fff;--text-color-alt:#aaa;--background-color:#000;--background-color-alt:#111}}*{box-sizing:border-box}*+*{margin-top:var(--line-height)}html{align-items:center;background:var(--background-color);color:var(--text-color);display:flex;flex-direction:column;padding:0}body,html{margin:0;width:100%}body{line-height:var(--line-height);max-width:calc(min(80ch, round(down, 100%, 1ch)));overflow-x:hidden;padding:var(--line-height) 2ch;position:relative}@media screen and (max-width:480px){:root{font-size:14px}body{padding:var(--line-height) 1ch}}h1,h2,h3,h4,h5,h6{font-weight:var(--font-weight-bold);line-height:var(--line-height);margin:calc(var(--line-height) * 2) 0 var(--line-height)}h1{font-size:2rem;line-height:calc(2 * var(--line-height));margin-bottom:calc(var(--line-height) * 2)}h1,h2{text-transform:uppercase}h2{font-size:1rem}hr{border:none;color:var(--text-color);height:var(--line-height);margin:calc(var(--line-height) * 1.5) 0;position:relative}hr,hr:after{display:block}hr:after{border-top:calc(var(--border-thickness) * 3) double var(--text-color);content:"";height:0;left:0;position:absolute;top:calc(var(--line-height) / 2 - var(--border-thickness));width:100%}a{text-decoration-thickness:var(--border-thickness)}a:link,a:visited{color:var(--text-color)}p{margin-bottom:var(--line-height)}strong{font-weight:var(--font-weight-bold)}em{font-style:italic}sub{display:inline-block;font-size:.75rem;line-height:0;margin:0;vertical-align:sub;width:calc(1ch / .75)}sub,table{position:relative}table{border-collapse:collapse;margin:0 0 calc(var(--line-height) * 2);top:calc(var(--line-height) / 2);width:calc(round(down, 100%, 1ch))}td,th{border:var(--border-thickness) solid var(--text-color);line-height:var(--line-height);padding:calc((var(--line-height) / 2)) calc(1ch - var(--border-thickness) / 2) calc((var(--line-height) / 2) - (var(--border-thickness)));text-align:left;vertical-align:top}table tbody tr:first-child>*{padding-top:calc((var(--line-height) / 2) - var(--border-thickness))}th{font-weight:700}.width-min{width:0}.width-auto{width:100%}.header{margin-bottom:calc(var(--line-height) * 2)}.header h1{margin:0}.header tr td:last-child{text-align:right}p{word-wrap:break-word;hyphens:auto;word-break:break-word}img,video{display:block;height:100%;object-fit:cover;width:100%}img{color:var(--text-color-alt);font-style:italic}details{border:var(--border-thickness) solid var(--text-color);margin-bottom:var(--line-height);padding:calc(var(--line-height) - var(--border-thickness)) 1ch}summary{cursor:pointer;font-weight:var(--font-weight-medium)}details[open] summary{margin-bottom:var(--line-height)}details ::marker{content:"▶";display:inline-block;margin:0}details[open] ::marker{content:"▼"}details :last-child{margin-bottom:0}pre{margin:var(--line-height) 0;overflow-x:auto;overflow-y:hidden;white-space:pre}figure pre{margin:0}code,pre{font-family:var(--font-family)}code{font-weight:var(--font-weight-medium)}figure{margin:calc(var(--line-height) * 2) 3ch;overflow-x:auto;overflow-y:hidden}figcaption{display:block;font-style:italic;margin-top:var(--line-height)}ol,ul{margin:0 0 var(--line-height);padding:0}ul{list-style-type:square;padding:0 0 0 2ch}ol{counter-reset:item;list-style-type:none;padding:0}ol ol,ol ul,ul ol,ul ul{margin:0;padding:0 0 0 3ch}ol li:before{content:counters(item,".") ". ";counter-increment:item;font-weight:var(--font-weight-medium)}li{margin:0;padding:0}li::marker{line-height:0}::-webkit-scrollbar{height:var(--line-height)}button,input,textarea{-webkit-font-smoothing:inherit;-moz-osx-font-smoothing:inherit;-webkit-appearance:none;background:var(--background-color);border:var(--border-thickness) solid var(--text-color);color:var(--text-color);font:inherit;font-weight:inherit;height:calc(var(--line-height) * 2);line-height:normal;margin:0;overflow:visible;padding:calc(var(--line-height) / 2 - var(--border-thickness)) calc(1ch - var(--border-thickness));width:auto}input[type=checkbox],input[type=radio]{cursor:pointer;display:inline-grid;height:var(--line-height);place-content:center;vertical-align:top;width:2ch}input[type=checkbox]:checked:before,input[type=radio]:checked:before{background:var(--text-color);content:"";height:calc(var(--line-height) / 2);width:1ch}input[type=radio],input[type=radio]:before{border-radius:100%}button:focus,input:focus{--border-thickness:3px;outline:none}input{width:calc(round(down, 100%, 1ch))}::placeholder{color:var(--text-color-alt);opacity:1}::-ms-input-placeholder{color:var(--text-color-alt)}button::-moz-focus-inner{border:0;padding:0}button{cursor:pointer;font-weight:var(--font-weight-medium);text-transform:uppercase}button:hover{background:var(--background-color-alt)}button:active{transform:translate(2px,2px)}label{display:block;font-weight:var(--font-weight-medium);height:auto;line-height:var(--line-height);margin:0;width:calc(round(down, 100%, 1ch))}label input{width:100%}.tree,.tree ul{line-height:var(--line-height);list-style-type:none;padding-left:0;position:relative}.tree ul{margin:0}.tree ul li{border-left:var(--border-thickness) solid var(--text-color);margin-left:1.5ch;padding-left:1.5ch;position:relative}.tree ul li:before{border-bottom:var(--border-thickness) solid var(--text-color);content:"";display:block;left:0;position:absolute;top:calc(var(--line-height) / 2);width:1ch}.tree ul li:last-child{border-left:none}.tree ul li:last-child:after{border-left:var(--border-thickness) solid var(--text-color);content:"";display:block;height:calc(var(--line-height) / 2);left:0;position:absolute;top:0}.grid{--grid-cells:0;display:flex;gap:1ch;margin-bottom:var(--line-height);width:calc(round(down, 100%, (1ch * var(--grid-cells)) - (1ch * var(--grid-cells) - 1)))}.grid>*,.grid>input{flex:0 0 calc(round(down,
|
2
|
+
(100% - (1ch * (var(--grid-cells) - 1))) / var(--grid-cells),
|
3
|
+
1ch))}.grid:has(>:last-child:first-child){--grid-cells:1}.grid:has(>:last-child:nth-child(2)){--grid-cells:2}.grid:has(>:last-child:nth-child(3)){--grid-cells:3}.grid:has(>:last-child:nth-child(4)){--grid-cells:4}.grid:has(>:last-child:nth-child(5)){--grid-cells:5}.grid:has(>:last-child:nth-child(6)){--grid-cells:6}.grid:has(>:last-child:nth-child(7)){--grid-cells:7}.grid:has(>:last-child:nth-child(8)){--grid-cells:8}.grid:has(>:last-child:nth-child(9)){--grid-cells:9}.debug .debug-grid{--color:color-mix(in srgb,var(--text-color) 10%,var(--background-color) 90%);background-image:repeating-linear-gradient(var(--color) 0 1px,transparent 1px 100%),repeating-linear-gradient(90deg,var(--color) 0 1px,transparent 1px 100%);background-size:1ch var(--line-height);bottom:0;left:0;margin:0;position:absolute;right:0;top:0;z-index:-1}.debug .off-grid{background:rgba(255,0,0,.1)}.debug-toggle-label{text-align:right}
|
@@ -0,0 +1,38 @@
|
|
1
|
+
/* assets/css/overrides.css */
|
2
|
+
|
3
|
+
/* Make header span full width and center its contents */
|
4
|
+
.site-header {
|
5
|
+
display: flex;
|
6
|
+
justify-content: space-between;
|
7
|
+
align-items: center;
|
8
|
+
width: 100%;
|
9
|
+
padding: calc(var(--line-height) * 1.5) var(--line-height);
|
10
|
+
}
|
11
|
+
|
12
|
+
/* Enlarge your site title */
|
13
|
+
.site-header .site-title {
|
14
|
+
font-size: calc(var(--line-height) * 2);
|
15
|
+
margin: 0;
|
16
|
+
}
|
17
|
+
|
18
|
+
/* Turn the list into a horizontal nav bar */
|
19
|
+
.site-header nav ul {
|
20
|
+
list-style: none;
|
21
|
+
margin: 0;
|
22
|
+
padding: 0;
|
23
|
+
display: flex;
|
24
|
+
gap: calc(var(--line-height) * 1);
|
25
|
+
}
|
26
|
+
|
27
|
+
/* Enlarge the links for better legibility */
|
28
|
+
.site-header nav a {
|
29
|
+
font-size: 1.25rem;
|
30
|
+
text-decoration: none;
|
31
|
+
padding: 0.25em 0.5em;
|
32
|
+
}
|
33
|
+
|
34
|
+
/* (Optional) On hover, add a subtle background */
|
35
|
+
.site-header nav a:hover {
|
36
|
+
background: rgba(255,255,255,0.1);
|
37
|
+
border-radius: 4px;
|
38
|
+
}
|
@@ -0,0 +1 @@
|
|
1
|
+
"use strict";function _createForOfIteratorHelper(r,e){var t="undefined"!=typeof Symbol&&r[Symbol.iterator]||r["@@iterator"];if(!t){if(Array.isArray(r)||(t=_unsupportedIterableToArray(r))||e&&r&&"number"==typeof r.length){t&&(r=t);var _n=0,F=function F(){};return{s:F,n:function n(){return _n>=r.length?{done:!0}:{done:!1,value:r[_n++]}},e:function e(r){throw r},f:F}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,u=!1;return{s:function s(){t=t.call(r)},n:function n(){var r=t.next();return a=r.done,r},e:function e(r){u=!0,o=r},f:function f(){try{a||null==t["return"]||t["return"]()}finally{if(u)throw o}}}}function _unsupportedIterableToArray(r,a){if(r){if("string"==typeof r)return _arrayLikeToArray(r,a);var t={}.toString.call(r).slice(8,-1);return"Object"===t&&r.constructor&&(t=r.constructor.name),"Map"===t||"Set"===t?Array.from(r):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?_arrayLikeToArray(r,a):void 0}}function _arrayLikeToArray(r,a){(null==a||a>r.length)&&(a=r.length);for(var e=0,n=Array(a);e<a;e++)n[e]=r[e];return n}function gridCellDimensions(){var element=document.createElement("div");element.style.position="fixed";element.style.height="var(--line-height)";element.style.width="1ch";document.body.appendChild(element);var rect=element.getBoundingClientRect();document.body.removeChild(element);return{width:rect.width,height:rect.height}}function adjustMediaPadding(){var cell=gridCellDimensions();function setHeightFromRatio(media,ratio){var rect=media.getBoundingClientRect();var realHeight=rect.width/ratio;var diff=cell.height-realHeight%cell.height;media.style.setProperty("padding-bottom","".concat(diff,"px"))}function setFallbackHeight(media){var rect=media.getBoundingClientRect();var height=Math.round(rect.width/2/cell.height)*cell.height;media.style.setProperty("height","".concat(height,"px"))}function onMediaLoaded(media){var width,height;switch(media.tagName){case"IMG":width=media.naturalWidth;height=media.naturalHeight;break;case"VIDEO":width=media.videoWidth;height=media.videoHeight;break}if(width>0&&height>0){setHeightFromRatio(media,width/height)}else{setFallbackHeight(media)}}var medias=document.querySelectorAll("img, video");var _iterator=_createForOfIteratorHelper(medias),_step;try{for(_iterator.s();!(_step=_iterator.n()).done;){media=_step.value;switch(media.tagName){case"IMG":if(media.complete){onMediaLoaded(media)}else{media.addEventListener("load",(function(){return onMediaLoaded(media)}));media.addEventListener("error",(function(){setFallbackHeight(media)}))}break;case"VIDEO":switch(media.readyState){case HTMLMediaElement.HAVE_CURRENT_DATA:case HTMLMediaElement.HAVE_FUTURE_DATA:case HTMLMediaElement.HAVE_ENOUGH_DATA:onMediaLoaded(media);break;default:media.addEventListener("loadeddata",(function(){return onMediaLoaded(media)}));media.addEventListener("error",(function(){setFallbackHeight(media)}));break}break}}}catch(err){_iterator.e(err)}finally{_iterator.f()}}adjustMediaPadding();window.addEventListener("load",adjustMediaPadding);window.addEventListener("resize",adjustMediaPadding);function checkOffsets(){var ignoredTagNames=new Set(["THEAD","TBODY","TFOOT","TR","TD","TH"]);var cell=gridCellDimensions();var elements=document.querySelectorAll("body :not(.debug-grid, .debug-toggle)");var _iterator2=_createForOfIteratorHelper(elements),_step2;try{for(_iterator2.s();!(_step2=_iterator2.n()).done;){var element=_step2.value;if(ignoredTagNames.has(element.tagName)){continue}var rect=element.getBoundingClientRect();if(rect.width===0&&rect.height===0){continue}var top=rect.top+window.scrollY;var left=rect.left+window.scrollX;var offset=top%(cell.height/2);if(offset>0){element.classList.add("off-grid");console.error("Incorrect vertical offset for",element,"with remainder",top%cell.height,"when expecting divisible by",cell.height/2)}else{element.classList.remove("off-grid")}}}catch(err){_iterator2.e(err)}finally{_iterator2.f()}}var debugToggle=document.querySelector(".debug-toggle");function onDebugToggle(){document.body.classList.toggle("debug",debugToggle.checked)}debugToggle.addEventListener("change",onDebugToggle);onDebugToggle();
|
metadata
ADDED
@@ -0,0 +1,74 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: monospace-web-jekyll-theme
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.1.0
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Cameron K Brooks
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2025-06-09 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: jekyll
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - "~>"
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '4.4'
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - "~>"
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '4.4'
|
27
|
+
description:
|
28
|
+
email:
|
29
|
+
- cambrooks3393@gmail.com
|
30
|
+
executables: []
|
31
|
+
extensions: []
|
32
|
+
extra_rdoc_files: []
|
33
|
+
files:
|
34
|
+
- LICENSE.txt
|
35
|
+
- README.md
|
36
|
+
- _config.yml
|
37
|
+
- _data/navigation.yml
|
38
|
+
- _data/theme.yml
|
39
|
+
- _includes/debug-grid.html
|
40
|
+
- _includes/debug-toggle.html
|
41
|
+
- _includes/footer.html
|
42
|
+
- _includes/head.html
|
43
|
+
- _includes/header.html
|
44
|
+
- _includes/theme-infobox.html
|
45
|
+
- _layouts/default.html
|
46
|
+
- _layouts/page.html
|
47
|
+
- _layouts/post.html
|
48
|
+
- assets/css/monospace.min.css
|
49
|
+
- assets/css/overrides.css
|
50
|
+
- assets/js/monospace.min.js
|
51
|
+
homepage: https://github.com/CameronBrooks11/monospace-web-jekyll-theme
|
52
|
+
licenses:
|
53
|
+
- MIT
|
54
|
+
metadata: {}
|
55
|
+
post_install_message:
|
56
|
+
rdoc_options: []
|
57
|
+
require_paths:
|
58
|
+
- lib
|
59
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
60
|
+
requirements:
|
61
|
+
- - ">="
|
62
|
+
- !ruby/object:Gem::Version
|
63
|
+
version: '3.2'
|
64
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - ">="
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: '0'
|
69
|
+
requirements: []
|
70
|
+
rubygems_version: 3.5.22
|
71
|
+
signing_key:
|
72
|
+
specification_version: 4
|
73
|
+
summary: A minimal Jekyll theme powered by monospace-web-theme
|
74
|
+
test_files: []
|