nano-theme 0.2.3 → 0.3.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 +4 -4
- data/README.md +17 -21
- data/_includes/site-footer.html +1 -0
- data/_includes/site-header.html +27 -25
- data/_layouts/default.html +58 -19
- data/_layouts/newsroom.html +11 -9
- data/_layouts/page.html +28 -1
- data/_layouts/post.html +3 -1
- data/_posts/{2020-05-02-test.md → 2020-06-04-test.md} +8 -4
- data/_sass/_config.scss +40 -31
- data/_sass/_theme.scss +240 -119
- data/assets/main.scss +3 -4
- metadata +3 -4
- data/_layouts/page-notitle.html +0 -11
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d80004cfdd5994e0e90ac47df878db53431ba2d4be5a7cc5e0d1093aacdcd54f
|
4
|
+
data.tar.gz: 2176090fea9155682b3f3a67b677502080f5f102061b4e4d33d81231180946d5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e12db29ce9e084dde8a709f661ce344813de5ef336c22e727e25894c3b8695990084029e517c5e4292b4f959bb23d53e4cdd8424ed14e5dc99cdce9069624d65
|
7
|
+
data.tar.gz: 1d903f0a6ac5afb05b28d9dde25bfe5e79b018ddb384cf30e58e6132d960957c30d898f2e128972e8ba4e894a48fa0f0d6f6db560e3bbbfcd1a579594e1a8647
|
data/README.md
CHANGED
@@ -1,21 +1,17 @@
|
|
1
|
-
# Nano
|
2
|
-
|
3
|
-
[](https://badge.fury.io/rb/nano-theme)
|
4
|
-
|
5
|
-
**This is in active developement. [You can see the roadmap here.](https://trello.com/b/6uBEAJwj)**
|
6
|
-
|
7
|
-
Nano is a super lightweight Jekyll theme built to work great on all platforms, respect user privacy, and load at lightning-fast speeds.
|
8
|
-
|
9
|
-
### Installation
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
### Credits
|
20
|
-
|
21
|
-
Many thanks to the Jekyll and RubyGems community for great documentation, allowing me to make this simply and swiftly.
|
1
|
+
# Nano
|
2
|
+
|
3
|
+
[](https://badge.fury.io/rb/nano-theme) [](https://rubygems.org/gems/nano-theme)
|
4
|
+
|
5
|
+
**This is in active developement. [You can see the roadmap here.](https://trello.com/b/6uBEAJwj)**
|
6
|
+
|
7
|
+
Nano is a super lightweight Jekyll theme built to work great on all platforms, respect user privacy, and load at lightning-fast speeds.
|
8
|
+
|
9
|
+
### Installation
|
10
|
+
Installing Nano is simple. Start by downloading the latest version of Nano via [the releases page](https://github.com/doamatto/nano/releases/latest). Afterwards, using Gem, install bundler (`gem install bundler`). Then, run `bundle install` to install everything you need for Nano to work properly. You're now ready to configure your installation and deploy wherever.
|
11
|
+
|
12
|
+
### Credits
|
13
|
+
Many thanks to the Jekyll and RubyGems community for great documentation, allowing me to make this simply and swiftly.
|
14
|
+
|
15
|
+
Big thanks to the StackOverflow community; they helped me find some nice CSS workarounds for some things (like missing images). I quoted the posts I used when I used them.
|
16
|
+
|
17
|
+
Special thanks to [Rishi](https://github.com/rveerepalli) for staying up late on the day before the launch of v0.3.
|
data/_includes/site-footer.html
CHANGED
data/_includes/site-header.html
CHANGED
@@ -1,26 +1,28 @@
|
|
1
|
-
<header
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
<li> <a class="navLink" href="{{url}}">{{item.title}}</a> </li>
|
17
|
-
{% endfor %}
|
18
|
-
</ul>
|
19
|
-
</nav>
|
20
|
-
{% if site.tagline %}
|
21
|
-
<div class="center">
|
22
|
-
<h1>{{site.tagline}}</h1>
|
23
|
-
</div>
|
1
|
+
<header>
|
2
|
+
{% if site.logo %}
|
3
|
+
<h1 class="logo">
|
4
|
+
<a href="{{ '/' | relative_url }}">
|
5
|
+
<img src="{{site.logo}}" width="64px" alt="Home">
|
6
|
+
</a>
|
7
|
+
</h1>
|
8
|
+
{% endif %}
|
9
|
+
<nav>
|
10
|
+
<ul>
|
11
|
+
{% for item in site.navigation %}
|
12
|
+
{% if item.url contains '://' %}
|
13
|
+
{% assign url = item.url %}
|
14
|
+
{% else %}
|
15
|
+
{% assign url = item.url | relative_url %}
|
24
16
|
{% endif %}
|
25
|
-
|
26
|
-
</
|
17
|
+
<li>
|
18
|
+
<a href="{{url}}">{{item.title}}</a>
|
19
|
+
</li>
|
20
|
+
{% endfor %}
|
21
|
+
</ul>
|
22
|
+
</nav>
|
23
|
+
</header>
|
24
|
+
<div class="header">
|
25
|
+
{% if site.tagline %}
|
26
|
+
<p class="tagline">{{site.tagline}}</p>
|
27
|
+
{% endif %}
|
28
|
+
</div>
|
data/_layouts/default.html
CHANGED
@@ -1,19 +1,58 @@
|
|
1
|
-
<!
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
1
|
+
<!doctype html>
|
2
|
+
{% if site.lang %}
|
3
|
+
<html lang="{{site.lang}}">
|
4
|
+
{% else %}
|
5
|
+
<html>
|
6
|
+
{% endif %}
|
7
|
+
<head>
|
8
|
+
<meta charset="UTF-8">
|
9
|
+
<meta http-equiv="x-ua-compatible" content="ie=edge">
|
10
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
11
|
+
<meta http-equiv="Content-Security-Policy" content="script-src 'self' 'unsafe-inline'">
|
12
|
+
<meta name="referrer" content="no-referrer, same-origin">
|
13
|
+
<title>{{ page.title }} - {{ site.title }}</title>
|
14
|
+
<meta property="og:title" content="{{page.title}} - {{site.title}}">
|
15
|
+
{% if site.lang %}
|
16
|
+
<meta property="og:locale" content="{{site.lang}}">
|
17
|
+
{% endif %}
|
18
|
+
{% if page.description %}
|
19
|
+
<meta name="description" content="{{page.description}}">
|
20
|
+
<meta property="og:description" content="{{page.description}}">
|
21
|
+
<meta name="twitter:description" content="{{page.description}}">
|
22
|
+
{% elsif site.description %}
|
23
|
+
<meta name="description" content="{{site.description}}">
|
24
|
+
<meta property="og:description" content="{{site.description}}">
|
25
|
+
<meta name="twitter:description" content="{{site.description}}">
|
26
|
+
{% endif %}
|
27
|
+
{% for item in site.font-import %}
|
28
|
+
<link rel="stylesheet" href="{{item}}">
|
29
|
+
{% endfor %}
|
30
|
+
<link rel="stylesheet" href="{{ '/assets/main.css' | relative_url }}">
|
31
|
+
{% if site.favicon %}
|
32
|
+
<link rel="shortcut icon" href="{{ site.favicon }}">
|
33
|
+
{% elsif site.plingverify %}
|
34
|
+
<meta name="ocs-site-verification" content="{{ site.plingverify }}">
|
35
|
+
{% elsif site.googleverify %}
|
36
|
+
<meta name="google-site-verification" content="{{ site.googleverify }}">
|
37
|
+
{% elsif site.bingverify %}
|
38
|
+
<meta name="msvalidate.01" content="{{ site.bingverify }}">
|
39
|
+
{% elsif site.pinverify %}
|
40
|
+
<meta name="p:domain_verify" content="{{ site.pinverify }}">
|
41
|
+
{% elsif site.dailyverify %}
|
42
|
+
<meta name="dailymotion-domain-verification" content="{{ site.dailyverify }}">
|
43
|
+
{% elsif site.yandexverify %}
|
44
|
+
<meta name="yandex-verification" content="{{ site.yandexverify }}">
|
45
|
+
{% elsif site.nortonverify %}
|
46
|
+
<meta name="norton-safeweb-site-verification" content="{{ site.nortonverify }}">
|
47
|
+
{% elsif site.alexaverify %}
|
48
|
+
<meta name="alexaVerifyID" content="{{ site.alexaverify }}">
|
49
|
+
{% elsif site.wotverify %}
|
50
|
+
<meta name="wot-verification" content="{{ site.wotverify }}">
|
51
|
+
{% elsif site.specificverify %}
|
52
|
+
<meta name="specificfeeds-verification-code" content="{{ site.specificverify }}">
|
53
|
+
{% endif %}
|
54
|
+
</head>
|
55
|
+
<body>
|
56
|
+
{{ content }}
|
57
|
+
</body>
|
58
|
+
</html>
|
data/_layouts/newsroom.html
CHANGED
@@ -5,15 +5,17 @@ layout: default
|
|
5
5
|
{% include site-header.html %}
|
6
6
|
|
7
7
|
<div class="container">
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
8
|
+
{{ content }}
|
9
|
+
<ul>
|
10
|
+
{% for post in site.posts %}
|
11
|
+
<li>
|
12
|
+
<p>
|
13
|
+
<a class="news-text" href="{{ post.url }}"><b>{{ post.title }} ({{ post.dateS }}).</b></a>
|
14
|
+
{{ post.excerpt }}
|
15
|
+
</p>
|
16
|
+
</li>
|
17
|
+
{% endfor %}
|
18
|
+
</ul>
|
17
19
|
</div>
|
18
20
|
|
19
21
|
{% include site-footer.html %}
|
data/_layouts/page.html
CHANGED
@@ -5,8 +5,35 @@ layout: default
|
|
5
5
|
{% include site-header.html %}
|
6
6
|
|
7
7
|
<div class="container">
|
8
|
-
<h2>{{ page.title }}</h2>
|
9
8
|
{{ content }}
|
10
9
|
</div>
|
11
10
|
|
11
|
+
{% if site.simpleanalytics == true %}
|
12
|
+
<script async defer src="https://scripts.simpleanalyticscdn.com/latest.js"></script>
|
13
|
+
<noscript><img src="https://queue.simpleanalyticscdn.com/noscript.gif" alt=""></noscript>
|
14
|
+
{% elsif site.matomoanalytics == true %}
|
15
|
+
<!-- Matomo -->
|
16
|
+
<script type="text/javascript">
|
17
|
+
var _paq = window._paq || [];
|
18
|
+
/* tracker methods like "setCustomDimension" should be called before "trackPageView" */
|
19
|
+
_paq.push(["setDoNotTrack", true]);
|
20
|
+
_paq.push(["disableCookies"]);
|
21
|
+
_paq.push(['trackPageView']);
|
22
|
+
_paq.push(['enableLinkTracking']);
|
23
|
+
(function() {
|
24
|
+
var u="https://{{site.matomourl}}/";
|
25
|
+
_paq.push(['setTrackerUrl', u+'matomo.php']);
|
26
|
+
_paq.push(['setSiteId', '{{site.matomositeid}}']);
|
27
|
+
var d=document, g=d.createElement('script'), s=d.getElementsByTagName('script')[0];
|
28
|
+
g.type='text/javascript'; g.async=true; g.defer=true; g.src='//cdn.matomo.cloud/{{site.matomourl}}/matomo.js'; s.parentNode.insertBefore(g,s);
|
29
|
+
})();
|
30
|
+
</script>
|
31
|
+
<noscript><p><img src="https://{{site.matomourl}}/matomo.php?idsite=1&rec=1" style="border:0;" alt="" /></p></noscript>
|
32
|
+
<!-- End Matomo Code -->
|
33
|
+
{% endif %}
|
34
|
+
|
35
|
+
{% if site.fathomanalytics == true %}
|
36
|
+
<script src="https://cdn.usefathom.com/script.js" site="{{site.fathomsite}}" honor-dnt="true" async defer></script>
|
37
|
+
{% endif %}
|
38
|
+
|
12
39
|
{% include site-footer.html %}
|
data/_layouts/post.html
CHANGED
@@ -5,9 +5,11 @@ layout: default
|
|
5
5
|
{% include site-header.html %}
|
6
6
|
|
7
7
|
<div class="container">
|
8
|
+
<div class="post">
|
8
9
|
<h2>{{ page.title }}</h2>
|
9
|
-
<h3>{{
|
10
|
+
<h3>{{ page.dateS }} - Written by {{ page.author }}</h3>
|
10
11
|
{{ content }}
|
12
|
+
</div>
|
11
13
|
</div>
|
12
14
|
|
13
15
|
{% include site-footer.html %}
|
@@ -1,16 +1,16 @@
|
|
1
1
|
---
|
2
2
|
layout: post
|
3
3
|
title: "Blogging Support is Here"
|
4
|
-
author:
|
4
|
+
author: doamatto
|
5
5
|
excerpt_separator: ---
|
6
|
-
|
6
|
+
dateS: "2020/06/04"
|
7
7
|
---
|
8
8
|
|
9
9
|
Nano v0.3.0 is here and now, among many other things, has support for blogging!
|
10
10
|
|
11
11
|
---
|
12
12
|
|
13
|
-
Since day one, Nano was a project to make a clean, fast, and mobile-friendly Jekyll theme that people could easily use and deploy themselves. When I first released the gem on RubyGems, I was amazed to see the downloads skyrocket to 100 in the first day. Now, as of writing, Nano is at a little over
|
13
|
+
Since day one, Nano was a project to make a clean, fast, and mobile-friendly Jekyll theme that people could easily use and deploy themselves. When I first released the gem on RubyGems, I was amazed to see the downloads skyrocket to 100 in the first day. Now, as of writing, Nano is at a little over 1500 downloads on RG, and I realised I still need to deliver on two crucial things:
|
14
14
|
|
15
15
|
- Amazing Mobile Support, and:
|
16
16
|
- Official Blogging Support.
|
@@ -19,4 +19,8 @@ Well, with the release of Nano v0.3.0, I'm happy to announce blogging being here
|
|
19
19
|
|
20
20
|
Fortunately, I made the theme I used (which is this theme), and decided I'd finally get to work on adding blogging support. I did my utmost best to document it to the best of my ability and make it as painless as possible to deploy into sites using this theme.
|
21
21
|
|
22
|
-
You can read the full changelog via GitHub's releases page [here](https://github.com/doamatto/nano/releases/tag/v0.3.0).
|
22
|
+
You can read the full changelog via GitHub's releases page [here](https://github.com/doamatto/nano/releases/tag/v0.3.0).
|
23
|
+
|
24
|
+
```
|
25
|
+
Code block lmao
|
26
|
+
```
|
data/_sass/_config.scss
CHANGED
@@ -1,31 +1,40 @@
|
|
1
|
-
//
|
2
|
-
$
|
3
|
-
$
|
4
|
-
$
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
$
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
$
|
17
|
-
$
|
18
|
-
$
|
19
|
-
$
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
$
|
26
|
-
$
|
27
|
-
$
|
28
|
-
$
|
29
|
-
|
30
|
-
|
31
|
-
|
1
|
+
// Code Block Colours
|
2
|
+
$LIGHTcodeColour: #fff;
|
3
|
+
$DARKcodeColour: #fff;
|
4
|
+
$LIGHTcodebgColour: #353230;
|
5
|
+
$DARKcodebgColour: #353230;
|
6
|
+
|
7
|
+
// Main Colours
|
8
|
+
$LIGHTbgColour: #fff;
|
9
|
+
$DARKbgColour: #000;
|
10
|
+
$accentColour: #f62c43;
|
11
|
+
|
12
|
+
// Header Colours (also uses $accentColour)
|
13
|
+
$headerTextColour: #000;
|
14
|
+
|
15
|
+
// Image Borders
|
16
|
+
$LIGHTborderColour: #000;
|
17
|
+
$DARKborderColour: #fff;
|
18
|
+
$borderType: solid;
|
19
|
+
$borderSize: 2.5px;
|
20
|
+
|
21
|
+
// Navigation Colours
|
22
|
+
$navColour: #000;
|
23
|
+
|
24
|
+
// Text Colours
|
25
|
+
$LIGHTtextColour: #000;
|
26
|
+
$DARKtextColour: #fff;
|
27
|
+
$LIGHTlinkColour: #000;
|
28
|
+
$LIGHTlinkHoverColour: #f62c43;
|
29
|
+
$DARKlinkColour: #fff;
|
30
|
+
$DARKlinkHoverColour: #f62c43;
|
31
|
+
|
32
|
+
// Typography & Misc.
|
33
|
+
$codeFont: 'IBM Plex Mono', monospace;
|
34
|
+
$codeFont-var: 'IBM Plex Mono', monospace; // Might break if nothing is here
|
35
|
+
$font: 'Inter', sans-serif;
|
36
|
+
$font-var: 'Inter', sans-serif; // Might break if nothing is here
|
37
|
+
$font-regular: 400;
|
38
|
+
$font-bold: 700;
|
39
|
+
|
40
|
+
// Font imports were moved to ../_config.yml
|
data/_sass/_theme.scss
CHANGED
@@ -1,158 +1,279 @@
|
|
1
1
|
// Import configuration
|
2
|
-
@charset "utf-8";
|
3
2
|
@import "config";
|
4
3
|
|
5
|
-
//
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
color: $LIGHTtextColour;
|
16
|
-
}
|
17
|
-
.lbl-toggle:hover { color: $LIGHTlinkHoverColour; }
|
4
|
+
// Typography and Misc.
|
5
|
+
|
6
|
+
.centre {
|
7
|
+
display: flex;
|
8
|
+
flex-direction: row;
|
9
|
+
flex-wrap: nowrap;
|
10
|
+
justify-content: center;
|
11
|
+
width: 100%;
|
12
|
+
|
13
|
+
text-align: center;
|
18
14
|
}
|
19
15
|
|
20
|
-
|
21
|
-
a { color: $DARKlinkColour; }
|
22
|
-
a:hover { color: $DARKlinkHoverColour; }
|
23
|
-
html {
|
24
|
-
background: $DARKbgColour;
|
25
|
-
color: $DARKtextColour;
|
26
|
-
}
|
27
|
-
.lbl-toggle {
|
28
|
-
background: $DARKbgColour;
|
29
|
-
color: $DARKtextColour;
|
30
|
-
}
|
31
|
-
.lbl-toggle:hover { color: $DARKlinkHoverColour; }
|
32
|
-
}
|
33
|
-
/*
|
34
|
-
// Mobile Nav and Other Optimizations
|
35
|
-
@media only screen and (max-width: 600px) {
|
36
|
-
.lbl-toggle {
|
37
|
-
display: block !important;
|
38
|
-
border-radius: 1vh;
|
39
|
-
padding: .25em 1em .25em 1em;
|
40
|
-
text-decoration: none;
|
41
|
-
transition: color 500ms;
|
42
|
-
}
|
43
|
-
nav input[type='checkbox']:checked ~ .links {
|
44
|
-
background: rgba(255,255,255,.2);
|
45
|
-
padding: 1em 1em;
|
46
|
-
}
|
47
|
-
.links {
|
48
|
-
transition: max-height 250ms ease-in-out;
|
49
|
-
}
|
50
|
-
.toggle:checked + .lbl-toggle + .links {
|
51
|
-
max-height: 100vh;
|
52
|
-
}
|
53
|
-
.navLink {
|
54
|
-
display: none;
|
55
|
-
width: 100%;
|
56
|
-
}
|
57
|
-
.navLink:hover {
|
16
|
+
// ---
|
58
17
|
|
59
|
-
|
18
|
+
// Document Prep
|
19
|
+
* {
|
20
|
+
margin: 0;
|
21
|
+
padding: 0;
|
60
22
|
}
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
23
|
+
|
24
|
+
body {
|
25
|
+
@supports (font-variation-settings: normal) {
|
26
|
+
font-family: $font-var;
|
27
|
+
}
|
28
|
+
|
29
|
+
background: $LIGHTbgColour;
|
30
|
+
color: $LIGHTtextColour;
|
31
|
+
|
32
|
+
font-family: $font;
|
33
|
+
font-weight: $font-regular;
|
34
|
+
margin: 0 auto;
|
35
|
+
width: 100%;
|
36
|
+
height: 100%;
|
37
|
+
max-width: 100%;
|
38
|
+
scroll-behavior: smooth;
|
69
39
|
}
|
70
40
|
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
font-size:
|
41
|
+
// Typography
|
42
|
+
@media only screen and (max-device-width: 480px) {
|
43
|
+
h1 {
|
44
|
+
font-size: 32px !important;
|
45
|
+
}
|
46
|
+
|
47
|
+
h2 {
|
48
|
+
font-size: 21px !important;
|
49
|
+
}
|
50
|
+
|
51
|
+
h3 {
|
52
|
+
font-size: 19px !important;
|
53
|
+
}
|
54
|
+
|
55
|
+
.post {
|
56
|
+
h3 {
|
57
|
+
font-size: 14px !important;
|
58
|
+
}
|
59
|
+
}
|
60
|
+
|
61
|
+
h4, h5, h6 { font-size: 16px !important; }
|
62
|
+
.tagline { font-size: 40px !important; }
|
75
63
|
}
|
76
64
|
|
77
|
-
//
|
78
|
-
|
79
|
-
|
65
|
+
.bold { font-weight: $font-bold; } // Jekyll will process bold text to have the "bold" class
|
66
|
+
|
67
|
+
p { margin: 1em 0; }
|
68
|
+
|
69
|
+
h1 {
|
70
|
+
font-size: 48px;
|
71
|
+
letter-spacing: -.05em;
|
72
|
+
font-weight: $font-bold;
|
73
|
+
line-height: 1.1;
|
80
74
|
}
|
81
75
|
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
flex-wrap: nowrap;
|
86
|
-
justify-content: space-between;
|
76
|
+
h2 {
|
77
|
+
font-size: 24px;
|
78
|
+
line-height: 1.35;
|
87
79
|
}
|
88
80
|
|
89
|
-
|
90
|
-
|
91
|
-
flex-direction: row;
|
92
|
-
flex-wrap: nowrap;
|
93
|
-
list-style: none;
|
81
|
+
h3 {
|
82
|
+
font-size: 16px;
|
94
83
|
}
|
95
84
|
|
96
|
-
|
97
|
-
|
98
|
-
text-decoration: none;
|
99
|
-
color: $navColour;
|
85
|
+
ol, ul {
|
86
|
+
margin: 2em 1em;
|
100
87
|
}
|
101
88
|
|
102
|
-
|
103
|
-
|
89
|
+
a {
|
90
|
+
color: $LIGHTlinkColour;
|
91
|
+
text-decoration: none;
|
92
|
+
:hover {
|
93
|
+
color: $LIGHTlinkHoverColour;
|
94
|
+
transition: color 250ms ease-in-out;
|
95
|
+
}
|
96
|
+
}
|
104
97
|
|
105
|
-
|
98
|
+
// Code blocks
|
99
|
+
.highlight {
|
100
|
+
@supports (font-variation-settings: normal) {
|
101
|
+
font-family: $codeFont-var;
|
102
|
+
}
|
103
|
+
font-family: $codeFont;
|
104
|
+
|
105
|
+
background: $LIGHTcodebgColour;
|
106
|
+
color: $LIGHTcodeColour;
|
106
107
|
|
107
|
-
|
108
|
+
padding: .5vh 1vh .5vh 1vh;
|
109
|
+
}
|
108
110
|
|
109
|
-
|
110
|
-
|
111
|
-
|
111
|
+
// Navigation
|
112
|
+
header {
|
113
|
+
text-align: center;
|
114
|
+
display: flex;
|
115
|
+
justify-content: space-between;
|
116
|
+
height: 100px;
|
117
|
+
cursor: default;
|
118
|
+
background: $accentColour;
|
119
|
+
padding-left: 16px;
|
120
|
+
* {
|
121
|
+
cursor: default;
|
122
|
+
font-size: 14px;
|
123
|
+
}
|
124
|
+
h1 {
|
125
|
+
flex: 0 0 auto;
|
126
|
+
margin: 0;
|
127
|
+
display: flex;
|
128
|
+
flex-direction: column;
|
129
|
+
justify-content: center;
|
130
|
+
a {
|
131
|
+
display: block;
|
132
|
+
:hover { cursor: pointer; }
|
133
|
+
}
|
134
|
+
img {
|
135
|
+
display: block;
|
136
|
+
border: none !important;
|
137
|
+
vertical-align: bottom;
|
138
|
+
}
|
139
|
+
}
|
140
|
+
a {
|
141
|
+
color: $navColour;
|
142
|
+
background: none;
|
143
|
+
:hover {
|
144
|
+
color: inherit;
|
145
|
+
background: none;
|
146
|
+
}
|
147
|
+
}
|
112
148
|
}
|
113
149
|
|
114
|
-
|
150
|
+
nav {
|
151
|
+
ul {
|
152
|
+
flex: 0 0 auto;
|
153
|
+
text-align: left;
|
154
|
+
display: flex;
|
155
|
+
margin-top: 2.5em;
|
156
|
+
li {
|
157
|
+
list-style: none;
|
158
|
+
margin: 0;
|
159
|
+
padding: 0;
|
160
|
+
display: flex;
|
161
|
+
flex-direction: column;
|
162
|
+
justify-content: center;
|
163
|
+
:first-child { margin-left: 0; }
|
164
|
+
a {
|
165
|
+
cursor: pointer;
|
166
|
+
padding: 0 0.8em;
|
167
|
+
font-size: 1.1em;
|
168
|
+
text-decoration: none;
|
169
|
+
color: $navColour;
|
170
|
+
:hover {
|
171
|
+
text-decoration: underline;
|
172
|
+
transition: text-decoration 150ms ease-in-out;
|
173
|
+
}
|
174
|
+
}
|
175
|
+
:last-child { a { padding-right: 0; } }
|
176
|
+
}
|
177
|
+
}
|
178
|
+
}
|
115
179
|
|
116
|
-
|
117
|
-
.
|
180
|
+
// Header
|
181
|
+
.header {
|
182
|
+
display: flex;
|
183
|
+
flex-direction: row;
|
184
|
+
flex-wrap: nowrap;
|
185
|
+
justify-content: center;
|
186
|
+
background: $accentColour;
|
187
|
+
color: $headerTextColour;
|
188
|
+
padding-bottom: 2em;
|
189
|
+
padding-left: 32px;
|
190
|
+
max-height: 32.5vh;
|
118
191
|
|
119
|
-
|
192
|
+
p {
|
193
|
+
flex: 0 0 auto;
|
194
|
+
margin: 0;
|
120
195
|
display: flex;
|
121
|
-
flex-direction:
|
122
|
-
flex-wrap: nowrap;
|
196
|
+
flex-direction: column;
|
123
197
|
justify-content: center;
|
124
|
-
|
198
|
+
|
199
|
+
font-size: 80px;
|
200
|
+
letter-spacing: -.05em;
|
201
|
+
font-weight: $font-regular;
|
202
|
+
line-height: 1.1;
|
203
|
+
}
|
125
204
|
}
|
126
205
|
|
127
|
-
//
|
206
|
+
// Footer
|
207
|
+
footer {
|
208
|
+
display: flex;
|
209
|
+
flex-direction: row;
|
210
|
+
flex-wrap: nowrap;
|
211
|
+
justify-content: center;
|
212
|
+
text-align: center;
|
213
|
+
}
|
128
214
|
|
129
|
-
|
130
|
-
|
131
|
-
|
132
|
-
|
133
|
-
|
215
|
+
.copyright {
|
216
|
+
font-size: .75em;
|
217
|
+
a { text-decoration: underline; }
|
218
|
+
}
|
219
|
+
|
220
|
+
.end {
|
221
|
+
border: 0;
|
222
|
+
height: 1px;
|
223
|
+
background-image: linear-gradient(to right, rgba(0, 0, 0, 0), rgba(255, 255, 255, 0.75), rgba(0, 0, 0, 0));
|
134
224
|
}
|
135
225
|
|
226
|
+
// Main Content
|
136
227
|
.container {
|
137
|
-
|
138
|
-
|
228
|
+
max-width: 40em;
|
229
|
+
margin: 1em 1em 1em 1em;
|
230
|
+
ul, ol {
|
231
|
+
margin-left: 2em !important;
|
232
|
+
margin-right: 24px !important;
|
233
|
+
}
|
234
|
+
.highlight, p, hr, h1, h2, h3 {
|
235
|
+
margin-left: 1em !important;
|
236
|
+
margin-right: 24px !important;
|
237
|
+
}
|
238
|
+
@media only screen and (max-device-width: 480px) {
|
239
|
+
max-width: 100% !important;
|
240
|
+
margin: 1em .5em 1em 1em;
|
241
|
+
}
|
139
242
|
}
|
140
243
|
|
141
|
-
|
142
|
-
|
143
|
-
|
144
|
-
|
145
|
-
|
146
|
-
|
147
|
-
|
244
|
+
// Images
|
245
|
+
img {
|
246
|
+
border: $borderSize $borderType $LIGHTborderColour;
|
247
|
+
:before {
|
248
|
+
display: none;
|
249
|
+
content: '';
|
250
|
+
} // Hack from https://stackoverflow.com/a/980948
|
148
251
|
}
|
149
252
|
|
150
|
-
|
151
|
-
|
152
|
-
|
153
|
-
|
253
|
+
// Blog Posts
|
254
|
+
.post {
|
255
|
+
h3 {
|
256
|
+
font-size: 14px !important;
|
257
|
+
}
|
258
|
+
}
|
154
259
|
|
155
|
-
|
156
|
-
|
157
|
-
|
158
|
-
|
260
|
+
// Auto Dark Theme as Declared by Browser/OS
|
261
|
+
@media (prefers-color-scheme: dark) {
|
262
|
+
a {
|
263
|
+
color: $DARKlinkColour;
|
264
|
+
:hover { color: $DARKlinkHoverColour; }
|
265
|
+
}
|
266
|
+
.highlight {
|
267
|
+
background: $DARKcodebgColour;
|
268
|
+
color: $DARKcodeColour;
|
269
|
+
}
|
270
|
+
body {
|
271
|
+
background: $DARKbgColour;
|
272
|
+
color: $DARKtextColour;
|
273
|
+
}
|
274
|
+
img { border: $borderSize $borderType $DARKborderColour; }
|
275
|
+
.highlight {
|
276
|
+
background: $DARKcodebgColour;
|
277
|
+
color: $DARKcodeColour;
|
278
|
+
}
|
279
|
+
}
|
data/assets/main.scss
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: nano-theme
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.3.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- doamatto
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-
|
11
|
+
date: 2020-06-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: jekyll
|
@@ -51,10 +51,9 @@ files:
|
|
51
51
|
- _includes/site-header.html
|
52
52
|
- _layouts/default.html
|
53
53
|
- _layouts/newsroom.html
|
54
|
-
- _layouts/page-notitle.html
|
55
54
|
- _layouts/page.html
|
56
55
|
- _layouts/post.html
|
57
|
-
- _posts/2020-
|
56
|
+
- _posts/2020-06-04-test.md
|
58
57
|
- _sass/_config.scss
|
59
58
|
- _sass/_theme.scss
|
60
59
|
- assets/logo.svg
|