cafe-theme 0.1.9 → 0.1.12

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: 6b1bf9d3057163ff214de11a52cc937b5c8d5ef4250d0ffb3a456d9cec1f1da8
4
- data.tar.gz: f8b8c8fc09042288002fcb51dedc0079f3552945255a0dbbfaca0757fe15c572
3
+ metadata.gz: 626fceb82d97f4295f7f5fd3bbe54320e171ecdd3347d719dbb64fc56aa5c8c6
4
+ data.tar.gz: 47bfec79991d2726b8c15b30541e2e214ff2ba5d5f05940443002ad307ebc749
5
5
  SHA512:
6
- metadata.gz: 5a0ca50c57019cd86212c25a0eabfec75c088722ddd0c8de1fc7e80cbab655cc47398eef6735b640e9ef6654665c9357a27feae8ba39091173cbde2724d0178f
7
- data.tar.gz: e8985ca75881135311728d891398c2c25af0e654dab6b043f3403b58a641456c63156efa8c44c4de8a05b944c7dd088dcbee6a35ab9a36a428212f64b056d588
6
+ metadata.gz: cff0bec24fcd430ef0e8973b5d18bfb2bbd3eb7c9199f570ca4b5489845e1d1008df98bb5492fc244e0762bf6c09b95eb092d444342e54029086ad217d63993a
7
+ data.tar.gz: 00cab115504e703560141118969c456f7fd2a5108b95aa0e08a50e55ff6ed0b51b942b552282daaf9e65f1ccfc3ed7fc6265602f8e39cccf470b442f31cbb974
@@ -1,9 +1,11 @@
1
1
  {% if page.banner %}
2
2
  {% assign banner_path = "/assets/images/banners/" | append: page.banner | append: "/" | append: page.banner %}
3
3
  <video id="banner" autoplay loop muted playsinline poster="{{ banner_path | append: '.webp' | relative_url }}" style="background-image: url({{ banner_path | append: '.webp' | relative_url }});">
4
- <source src="{{ banner_path | append: '.webm' | relative_url }}" type="video/webm">
5
- <source src="{{ banner_path | append: '.mp4' | relative_url }}" type="video/mp4">
6
- Your browser does not support the video tag.
4
+ {% if page.banner_video %}
5
+ <source src="{{ banner_path | append: '.webm' | relative_url }}" type="video/webm">
6
+ <source src="{{ banner_path | append: '.mp4' | relative_url }}" type="video/mp4">
7
+ Your browser does not support the video tag.
8
+ {% endif %}
7
9
  </video>
8
10
 
9
11
  <!-- Updates scrolling attribute to change nav bar opacity -->
data/_includes/nav.html CHANGED
@@ -1,4 +1,4 @@
1
- <nav {% if page.banner %}{% else %}id="scrolled"{% endif %}>
1
+ <nav {% unless page.banner %}id="scrolled"{% endunless %}>
2
2
  <a id="title" href="{{ '/' | relative_url }}">
3
3
  <img src="{{ '/assets/images/logo.webp' | relative_url }}" alt="{{ site.data.brand.name }} logo">
4
4
  <span>{{ site.data.brand.name }}{% if site.data.production.demo %} - Unofficial{% endif %}</span>
data/_layouts/menu.html CHANGED
@@ -14,7 +14,7 @@ layout: default
14
14
  {% endunless %}
15
15
  <h1>{{ section.title | upcase }}</h1>
16
16
  <p>{{ section.time }}</p>
17
- <div id="{{ menu.title }}">
17
+ <div id="{{ section.title }}">
18
18
  {% for heading in section.headings %}
19
19
  {% if heading.name %}
20
20
  <h2>{{ heading.name }}</h2>
@@ -1,3 +1,7 @@
1
1
  #menu > div {
2
2
  grid-template-columns: auto;
3
+
4
+ > h2 {
5
+ grid-column: 1 / 2;
6
+ }
3
7
  }
data/_sass/nav.scss CHANGED
@@ -28,7 +28,17 @@ nav {
28
28
  }
29
29
  }
30
30
 
31
- &#scrolled, &:hover {
31
+ @if $permanent_nav_background == false {
32
+ &#scrolled, &:hover {
33
+ background-color: transparentize($background-color, $opacity);
34
+
35
+ a {
36
+ color: $foreground-color;
37
+ text-shadow: 0 0 5px transparent;
38
+ }
39
+ }
40
+ }
41
+ @else {
32
42
  background-color: transparentize($background-color, $opacity);
33
43
 
34
44
  a {
@@ -25,6 +25,7 @@
25
25
  $accent-color: {{ site.data.brand.accent_color }};
26
26
  $opacity: 0.3;
27
27
  $border-radius: 10px;
28
+ $permanent_nav_background: {{ site.data.brand.permanent_nav_background }};
28
29
 
29
30
  @import "main";
30
31
  @import "nav";
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cafe-theme
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.9
4
+ version: 0.1.12
5
5
  platform: ruby
6
6
  authors:
7
7
  - Gavin Douch
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-08-14 00:00:00.000000000 Z
11
+ date: 2022-08-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jekyll