nano-theme 0.3.1 → 0.3.2

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 64f19c474361de57b062e7edfa532f9c2daebf4beae941b493a971001ec5986d
4
- data.tar.gz: a247e7282e4c27436ba538aa4bf7cb6cbcc710c42b9f804a61c3f13cd007ebf9
3
+ metadata.gz: 0bba4319e2cdd35b005dbbeda970efa6a6ec2d3bf4c404b4838685087a8024bd
4
+ data.tar.gz: ccc92146459993d6d7cc075fc80068cf0eefe08c8c257a65eda60f6f7f22982c
5
5
  SHA512:
6
- metadata.gz: 9cda44daf7afcfba82dc57b4a6a04439c7ad320b2a74fe93360ee855fdba4afd2cdcaea1e86d40f09542f621c1be97d382890d2f9dc5ecab63d85986ef9b8c6e
7
- data.tar.gz: b84e5cf321e12bd35284252c3c7e57d672a11c664bade00f09578b896097ecc9ca1fe19cbd0f4f68d5e26e13be02647549346cd67894f4d5d76ed41d4992f153
6
+ metadata.gz: b704c1e148027b17af5719b7b530925b549480750724ddf9b57b97448be5aaaf602f635d4a00ed98d2754b85e65cdf1a13f8621312fa5c1cfbb41c3b2f313db8
7
+ data.tar.gz: e3d4f2dd79fed82dd2d146b3d2b78798c6f4fa55f47b60016592ec1f85374d167ea59d057609340d48b2190246ce09b34983f1a9def6e60407e0efa1e1d5c4aa
@@ -2,17 +2,12 @@
2
2
  <footer>
3
3
  <p class="copyright">
4
4
  &copy; {% if copyrightYear %}{{copyrightYear}}{% else %}{{ site.time | date: '%Y' }}{% endif %} {{ site.copyrightName }}.
5
- <br />
6
- {% if site.webSource %}
7
- <a href="{{site.webSource}}">Contribute to this site.</a><br />
8
- {% endif %}
9
- {% for item in site.footerLinks %}
10
- {% if item.url contains '://' %}
11
- {% assign url = item.url %}
12
- {% else %}
13
- {% assign url = item.url | relative_url %}
14
- {% endif %}
15
- <a href="{{url}}">{{item.title}}</a>
16
- {% endfor %}
5
+ <br>{% if site.webSource %}
6
+ <a href="{{site.webSource}}">Contribute to this site.</a><br>{% endif %}{% for item in site.footerLinks %}
7
+ {% if item.url contains '://' %}
8
+ {% assign url = item.url %}
9
+ {% else %}
10
+ {% assign url = item.url | relative_url %}
11
+ {% endif %}<a href="{{url}}">{{item.title}}</a>{% endfor %}
17
12
  </p>
18
13
  </footer>
@@ -1,23 +1,18 @@
1
- <header>
2
- {% if site.logo %}
3
- <h1 class="logo">
1
+ <header>{% if site.logo %}
2
+ <h1 class="logo">
4
3
  <a href="{{ '/' | relative_url }}">
5
4
  <img src="{{site.logo}}" width="64px" alt="Home">
6
5
  </a>
7
- </h1>
8
- {% endif %}
6
+ </h1>{% endif %}
9
7
  <nav>
10
- <ul>
11
- {% for item in site.navigation %}
8
+ <ul>{% for item in site.navigation %}
12
9
  {% if item.url contains '://' %}
13
10
  {% assign url = item.url %}
14
11
  {% else %}
15
12
  {% assign url = item.url | relative_url %}
16
- {% endif %}
17
- <li>
13
+ {% endif %}<li>
18
14
  <a href="{{url}}">{{item.title}}</a>
19
- </li>
20
- {% endfor %}
15
+ </li>{% endfor %}
21
16
  </ul>
22
17
  </nav>
23
18
  </header>
@@ -1,58 +1,46 @@
1
- <!doctype html>
2
- {% if site.lang %}
3
- <html lang="{{site.lang}}">
1
+ <!doctype html>{% if site.lang %}
2
+ <html lang="{{site.lang}}">
4
3
  {% else %}
5
- <html>
6
- {% endif %}
7
- <head>
4
+ <html>
5
+ {% endif %}<head>
8
6
  <meta charset="UTF-8">
9
7
  <meta http-equiv="x-ua-compatible" content="ie=edge">
10
8
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
11
- <meta http-equiv="Content-Security-Policy" content="script-src 'self' 'unsafe-inline'">
9
+ <meta http-equiv="Content-Security-Policy" content="script-src 'self' https://cdn.usefathom.com">
12
10
  <meta name="referrer" content="no-referrer, same-origin">
13
11
  <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 %}
12
+ <meta property="og:title" content="{{page.title}} - {{site.title}}">{% if site.lang %}
13
+ <meta property="og:locale" content="{{site.lang}}">
14
+ {% endif %}{% if page.description %}
15
+ <meta name="description" content="{{page.description}}">
16
+ <meta property="og:description" content="{{page.description}}">
17
+ <meta name="twitter:description" content="{{page.description}}">{% elsif site.description %}<meta name="description" content="{{site.description}}">
18
+ <meta property="og:description" content="{{site.description}}">
19
+ <meta name="twitter:description" content="{{site.description}}">{% endif %}{% for item in site.font-import %}
20
+ <link rel="stylesheet" href="{{item}}">{% endfor %}
30
21
  <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 %}
22
+ {% if site.favicon %}<link rel="shortcut icon" href="{{ site.favicon }}">{% endif %}{% if site.plingverify != "" %}
23
+ <meta name="ocs-site-verification" content="{{ site.plingverify }}">
24
+ {% endif %}{% if site.googleverify != "" %}
25
+ <meta name="google-site-verification" content="{{ site.googleverify }}">
26
+ {% endif %}{% if site.bingverify != "" %}
27
+ <meta name="msvalidate.01" content="{{ site.bingverify }}">
28
+ {% endif %}{% if site.pinverify != "" %}
29
+ <meta name="p:domain_verify" content="{{ site.pinverify }}">
30
+ {% endif %}{% if site.dailyverify != "" %}
31
+ <meta name="dailymotion-domain-verification" content="{{ site.dailyverify }}">
32
+ {% endif %}{% if site.yandexverify != "" %}
33
+ <meta name="yandex-verification" content="{{ site.yandexverify }}">
34
+ {% endif %}{% if site.nortonverify != "" %}
35
+ <meta name="norton-safeweb-site-verification" content="{{ site.nortonverify }}">
36
+ {% endif %}{% if site.alexaverify != "" %}
37
+ <meta name="alexaVerifyID" content="{{ site.alexaverify }}">
38
+ {% endif %}{% if site.wotverify != "" %}
39
+ <meta name="wot-verification" content="{{ site.wotverify }}">
40
+ {% endif %}{% if site.specificverify != "" %}
41
+ <meta name="specificfeeds-verification-code" content="{{ site.specificverify }}">{% endif %}
54
42
  </head>
55
43
  <body>
56
44
  {{ content }}
57
45
  </body>
58
- </html>
46
+ </html>
@@ -5,34 +5,17 @@ layout: default
5
5
  {% include site-header.html %}
6
6
 
7
7
  <div class="container">
8
- {{ content }}
8
+ {{ content }}
9
9
  </div>
10
-
11
10
  {% 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>
11
+ <p>
12
+ <img src="https://queue.simpleanalyticscdn.com/noscript.gif" alt="" class="pxl">
13
+ </p>
14
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 %}
15
+ <p>
16
+ <img src="https://{{site.matomourl}}/matomo.php?idsite=1&amp;rec=1" style="border:0;" alt="" class="pxl">
17
+ </p>
18
+ {% elsif site.fathomanalytics == true %}
36
19
  <script src="https://cdn.usefathom.com/script.js" site="{{site.fathomsite}}" honor-dnt="true" async defer></script>
37
20
  {% endif %}
38
21
 
@@ -12,4 +12,16 @@ layout: default
12
12
  </div>
13
13
  </div>
14
14
 
15
+ {% if site.simpleanalytics == true %}
16
+ <p>
17
+ <img src="https://queue.simpleanalyticscdn.com/noscript.gif" alt="" class="pxl">
18
+ </p>
19
+ {% elsif site.matomoanalytics == true %}
20
+ <p>
21
+ <img src="https://{{site.matomourl}}/matomo.php?idsite=1&amp;rec=1" style="border:0;" alt="" class="pxl">
22
+ </p>
23
+ {% elsif site.fathomanalytics == true %}
24
+ <script src="https://cdn.usefathom.com/script.js" site="{{site.fathomsite}}" honor-dnt="true" async defer></script>
25
+ {% endif %}
26
+
15
27
  {% include site-footer.html %}
@@ -86,7 +86,7 @@ ol, ul {
86
86
  margin: 2em 1em;
87
87
  }
88
88
 
89
- a {
89
+ a, ul a, ol a, p a {
90
90
  color: $LIGHTlinkColour;
91
91
  text-decoration: none;
92
92
  :hover {
@@ -185,13 +185,12 @@ nav {
185
185
  justify-content: center;
186
186
  background: $accentColour;
187
187
  color: $headerTextColour;
188
- padding-bottom: 2em;
189
- padding-left: 32px;
190
- max-height: 32.5vh;
188
+ padding: 1.5em 32px;
189
+ max-height: 30vh;
191
190
 
192
191
  p {
193
192
  flex: 0 0 auto;
194
- margin: 0;
193
+ margin: 0 16px;
195
194
  display: flex;
196
195
  flex-direction: column;
197
196
  justify-content: center;
@@ -200,6 +199,7 @@ nav {
200
199
  letter-spacing: -.05em;
201
200
  font-weight: $font-regular;
202
201
  line-height: 1.1;
202
+ white-space: nowrap;
203
203
  }
204
204
  }
205
205
 
@@ -231,7 +231,7 @@ footer {
231
231
  margin-left: 2em !important;
232
232
  margin-right: 24px !important;
233
233
  }
234
- .highlight, p, hr, h1, h2, h3 {
234
+ .highlight, p, hr {
235
235
  margin-left: 1em !important;
236
236
  margin-right: 24px !important;
237
237
  }
@@ -239,6 +239,7 @@ footer {
239
239
  max-width: 100% !important;
240
240
  margin: 1em 1em 1em 1em;
241
241
  }
242
+ hr { margin-bottom: 1em; }
242
243
  }
243
244
 
244
245
  // Images
@@ -259,9 +260,12 @@ img {
259
260
 
260
261
  // Auto Dark Theme as Declared by Browser/OS
261
262
  @media (prefers-color-scheme: dark) {
262
- a {
263
- color: $DARKlinkColour;
264
- :hover { color: $DARKlinkHoverColour; }
263
+ a, ul a, ol a, p a {
264
+ color: $DARKlinkColour;
265
+ }
266
+ a:hover, ul a:hover, ol a:hover, p a:hover {
267
+ color: $DARKlinkHoverColour;
268
+ transition: color 250ms ease-in-out;
265
269
  }
266
270
  .highlight {
267
271
  background: $DARKcodebgColour;
@@ -276,4 +280,11 @@ img {
276
280
  background: $DARKcodebgColour;
277
281
  color: $DARKcodeColour;
278
282
  }
283
+ }
284
+
285
+ // Make pixel trackers invisible
286
+ .pxl {
287
+ width: 1px;
288
+ height: 1px;
289
+ border: none;
279
290
  }
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: nano-theme
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.1
4
+ version: 0.3.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - doamatto