nano-theme 0.2.3 → 0.3.0

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: 282061fe94d40af756ffc6a050c791ff26f5d4d9bd5d65cdc023e5f062047178
4
- data.tar.gz: e3fc25145d6bd51290bf43d56e20bf0e268c955684314844cd3a58cce9333495
3
+ metadata.gz: d80004cfdd5994e0e90ac47df878db53431ba2d4be5a7cc5e0d1093aacdcd54f
4
+ data.tar.gz: 2176090fea9155682b3f3a67b677502080f5f102061b4e4d33d81231180946d5
5
5
  SHA512:
6
- metadata.gz: 376ee8b2a6ce68b69e55fe1b229ab37285f8546d073c14fc3eb41c56d3c610ac6e887bcc457e974e4fa979522d65e08d437206d9b99fcba24865a8a194adbff2
7
- data.tar.gz: 3210b4ee8a227644f5a852daa0880fad67f4b8e6d2f66b1dff2a1198c728722699841d377bfe3a1d131e8bc8145ce5760acc0b28670d6dd2631fb797aec3fd1c
6
+ metadata.gz: e12db29ce9e084dde8a709f661ce344813de5ef336c22e727e25894c3b8695990084029e517c5e4292b4f959bb23d53e4cdd8424ed14e5dc99cdce9069624d65
7
+ data.tar.gz: 1d903f0a6ac5afb05b28d9dde25bfe5e79b018ddb384cf30e58e6132d960957c30d898f2e128972e8ba4e894a48fa0f0d6f6db560e3bbbfcd1a579594e1a8647
data/README.md CHANGED
@@ -1,21 +1,17 @@
1
- # Nano
2
-
3
- [![Gem Version](https://badge.fury.io/rb/nano-theme.svg)](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
- You can install Nano is two ways:
12
-
13
- **a) Cloning the demo branch**
14
- You can clone the demo branch (labelled `docs`) and [configure based on what's recommended in the wiki of this repo](https://github.com/doamatto/nano/wiki/Configuration).
15
-
16
- **b) Installing the Gem**
17
- You can also use [`gem install nano-theme`](https://rubygems.org/gems/nano-theme) and [configure based on what's recommended in the wiki of this repo](https://github.com/doamatto/nano/wiki/Configuration).
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
+ [![Gem Version](https://badge.fury.io/rb/nano-theme.svg)](https://badge.fury.io/rb/nano-theme) [![Gem downloads](https://img.shields.io/gem/dt/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.
@@ -1,3 +1,4 @@
1
+ <hr class="end">
1
2
  <footer>
2
3
  <p class="copyright">
3
4
  &copy; {% if copyrightYear %}{{copyrightYear}}{% else %}{{ site.time | date: '%Y' }}{% endif %} {{ site.copyrightName }}.
@@ -1,26 +1,28 @@
1
- <header class="header">
2
- <div class="container">
3
- <nav class="nav">
4
- {% if site.logo %}
5
- <a href="{{ '/' | relative_url }}"><img class="nav_logo" src="{{site.logo}}" /></a>
6
- {% endif %}
7
- <ul class="links">
8
- <input type="checkbox" id="collap-nav" class="toggle">
9
- <label for="menu" class="lbl-toggle">Menu</label>
10
- {% for item in site.navigation %}
11
- {% if item.url contains '://' %}
12
- {% assign url = item.url %}
13
- {% else %}
14
- {% assign url = item.url | relative_url %}
15
- {% endif %}
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
- </div>
26
- </header>
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>
@@ -1,19 +1,58 @@
1
- <!DOCTYPE HTML>
2
- <html lang="{{site.lang}}">
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.0" />
7
- <title>{{ page.title }} - {{ site.title }}</title>
8
- <meta property="og:title" content="{{page.title}} - {{site.title}}" />
9
- <meta name="description" content="{{page.description}}" />
10
- <meta property="og:description" content="{{page.description}}" />
11
- <link rel="stylesheet" href="{{ '/assets/main.css' | relative_url }}" />
12
- {% if site.favicon %}
13
- <link rel="shortcut icon" href="{{ site.favicon }}" />
14
- {% endif %}
15
- </head>
16
- <body>
17
- {{ content }}
18
- </body>
19
- </html>
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>
@@ -5,15 +5,17 @@ layout: default
5
5
  {% include site-header.html %}
6
6
 
7
7
  <div class="container">
8
- <h2>Newsroom</h2>
9
- <ul>
10
- {% for post in site.posts %}
11
- <li>
12
- <p><a class="newsText" href="{{ post.url }}"><b>{{ post.title }} ({{ post.date }}).</b></a> {{ post.excerpt }}</p>
13
- </li>
14
- {% endfor %}
15
- </ul>
16
- {{ content }}
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 %}
@@ -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&amp;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 %}
@@ -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>{{ post.author }} - {{page.date}}</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: {{site.author}}
4
+ author: doamatto
5
5
  excerpt_separator: ---
6
- date: "2020-05-02"
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 1000 downloads on RG, and I realised I still need to deliver on two crucial things:
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
+ ```
@@ -1,31 +1,40 @@
1
- // Main Colour
2
- $LIGHTbgColour: #fff;
3
- $DARKbgColour: #000;
4
- $accentColour: #f62c43;
5
-
6
- // Header Colours (also uses $accentColour)
7
- $headerTextColour: #000;
8
-
9
- // Navigation Colours
10
- $navColour: #000;
11
- $navHoverColour: #fff;
12
-
13
- // Text Colour
14
- $LIGHTtextColour: #000;
15
- $LIGHTlinkColour: #000;
16
- $LIGHTlinkHoverColour: #f62c43;
17
- $DARKtextColour: #fff;
18
- $DARKlinkColour: #fff;
19
- $DARKlinkHoverColour: #f62c43;
20
- $LIGHTnewsLinkColour: #f62c43;
21
- $DARKnewsLinkColour: #f62c43;
22
-
23
- // Typography & Misc.
24
- $font: 'Inter', sans-serif;
25
- $font-regular: 400;
26
- $font-bold: 700;
27
- $font-italic: italic;
28
- $breakColour: #fff;
29
-
30
- // Switch this to whatever font you need, local or remote
31
- @import url('https://rsms.me/inter/inter.css');
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
@@ -1,158 +1,279 @@
1
1
  // Import configuration
2
- @charset "utf-8";
3
2
  @import "config";
4
3
 
5
- // Auto Light and Dark Theme as Declared by Browser/OS
6
- @media (prefers-color-scheme: light) {
7
- a { color: $LIGHTlinkColour; }
8
- a:hover { color: $LIGHTlinkHoverColour; }
9
- html {
10
- background: $LIGHTbgColour;
11
- color: $LIGHTtextColour;
12
- }
13
- .lbl-toggle {
14
- background: $LIGHTbgColour;
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
- @media (prefers-color-scheme: dark) {
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
- // Site Header (_includes/site-header.html)
63
- .header {
64
- background: $accentColour;
65
- color: $headerTextColour;
66
- width: 100%;
67
- padding-bottom: 2em;
68
- // max-height: 32.5vh;
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
- .header h1 {
72
- font-weight: $font-regular;
73
- // font-size: calc(4vw + 4vh + 2vmin);
74
- font-size: 4.5em;
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
- // Site Navigation
78
- .nav_logo {
79
- width: 4em;
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
- .nav {
83
- display: flex;
84
- flex-direction: row;
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
- .links {
90
- display: flex;
91
- flex-direction: row;
92
- flex-wrap: nowrap;
93
- list-style: none;
81
+ h3 {
82
+ font-size: 16px;
94
83
  }
95
84
 
96
- .navLink {
97
- padding: .25em 1em .25em 1em;
98
- text-decoration: none;
99
- color: $navColour;
85
+ ol, ul {
86
+ margin: 2em 1em;
100
87
  }
101
88
 
102
- nav input[type='checkbox'] { display: none; }
103
- .lbl-toggle { display: none; }
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
- .navLink:hover { color: $navHoverColour; }
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
- // Site Content (_layouts/page[-notitle].html)
108
+ padding: .5vh 1vh .5vh 1vh;
109
+ }
108
110
 
109
- .container {
110
- padding-left: 1em;
111
- padding-right: 1em;
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
- // Site Footer (_includes/site-footer.html)
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
- .copyright { font-size: .75em; }
117
- .copyright a { text-decoration: underline; }
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
- footer {
192
+ p {
193
+ flex: 0 0 auto;
194
+ margin: 0;
120
195
  display: flex;
121
- flex-direction: row;
122
- flex-wrap: nowrap;
196
+ flex-direction: column;
123
197
  justify-content: center;
124
- text-align: center;
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
- // Typography and Misc.
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
- body {
130
- font-family: $font;
131
- font-weight: $font-regular;
132
- font-size: 1.125em;
133
- margin: -20px 0px 8px 0px;
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
- margin: 1em auto;
138
- max-width: 40em;
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
- .center {
142
- display: flex;
143
- flex-direction: row;
144
- flex-wrap: nowrap;
145
- justify-content: center;
146
- text-align: center;
147
- width: 100%;
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
- a { transition: color 500ms; }
151
- hr { color: $breakColour; }
152
- .bold { font-weight: $font-bold; }
153
- html, body { height: 100%; width: 100%; }
253
+ // Blog Posts
254
+ .post {
255
+ h3 {
256
+ font-size: 14px !important;
257
+ }
258
+ }
154
259
 
155
- /*
156
- // Unsorted
157
- .newsText { text-decoration: none; }
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
+ }
@@ -1,5 +1,4 @@
1
- ---
2
- ---
3
-
4
- @charset 'utf-8';
1
+ ---
2
+ ---
3
+
5
4
  @import 'config', 'theme';
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.2.3
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-05-03 00:00:00.000000000 Z
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-05-02-test.md
56
+ - _posts/2020-06-04-test.md
58
57
  - _sass/_config.scss
59
58
  - _sass/_theme.scss
60
59
  - assets/logo.svg
@@ -1,11 +0,0 @@
1
- ---
2
- layout: default
3
- ---
4
-
5
- {% include site-header.html %}
6
-
7
- <div class="container">
8
- {{ content }}
9
- </div>
10
-
11
- {% include site-footer.html %}