jekyll-theme-miniplex 0.12.0 → 0.12.1

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: b445d75ca4335ea4609745587abb18d8be0499067c0f3ccdf86f2828f507239b
4
- data.tar.gz: 41c53aada8811b213c6720140f44d0232f87fa2390713e8580ba8e9bdfe45c76
3
+ metadata.gz: 5f1ab9dc8b592c92d3965aa0fe9344c3e375c14f01f973f80b9cdf33a079e767
4
+ data.tar.gz: 1723b9f2f7c59944209952462163581d941ed29b4b88e80814230fc8031b13ce
5
5
  SHA512:
6
- metadata.gz: 1ccd95ac50abe0b6c7f2bf6c9465b7b4dcf452f36cb6c1f01dbd7904876bd0a363e3585373050eee1d177880a2681c0a4084404e9981818707828ff1125d3099
7
- data.tar.gz: 3ddf6ca45f392ea7b56e9ff36375f3dd42a0342cf9e05f655e6516e4f56e8ef66154076632c5cf2ca3f4344921f4b20b3265602eb43fdfdadc6f971807f8c6a3
6
+ metadata.gz: fd276a2608f125119bac29acbb6164875fe2562eeb8459d41bc574711c0f7b9de4fe3111011ded081c7e2f9472b5b7e617c69f5cb12cb1ae7483e99c0c26d130
7
+ data.tar.gz: a7269b37cf85927bbd95ca61e3c361156d238498ebb6e1f08d48f341efcac27144dee08f58699ed1dd0a4d85f4ec30ff6d2ebb9b897c948c4c1668faa1c2ef2e
data/README.md CHANGED
@@ -90,8 +90,9 @@ Optionally, put any of the following files into the `_includes` folder to overri
90
90
 
91
91
  ## ToDos & Missing Features
92
92
 
93
- - [ ] In-page navigation
93
+ - [ ] Font legibility & weights optimizations
94
94
  - [ ] Maximizable tables
95
+ - [ ] In-page navigation
95
96
  - [ ] Breadcrumbs, if possible
96
97
  - [ ] Side notes, if possible
97
98
 
@@ -100,6 +101,9 @@ Optionally, put any of the following files into the `_includes` folder to overri
100
101
 
101
102
  Most recent at the top.
102
103
 
104
+ - [X] Tests & fixes for mobile navigation. Issues:
105
+ - [X] Chrome on Android: Navigation bar position (floating or hidden)
106
+ - [X] Missing shadow on mobile nav
103
107
  - [X] Footer
104
108
  - [X] Dark mode
105
109
  - [X] Print CSS
@@ -2,6 +2,7 @@
2
2
  @use "sass:map"
3
3
  @use "sass:math"
4
4
  @use "sass:list"
5
+ @use "sass:color"
5
6
 
6
7
  @import "reset"
7
8
 
@@ -247,6 +248,8 @@ $large_breakpoint: $medium_breakpoint + $large_minimum_left_navigation_width + 2
247
248
  // Colors for light mode
248
249
  --primary_foreground_color: #444444
249
250
  --heading_foreground_color: #333333
251
+ // Needs to be written as RGB, not hex, so that CSS rgba() works
252
+ --shadow_color: 51, 51, 51, 0.4
250
253
  --interactive_color: #777777
251
254
  --interactive_background_color: #eeeeee
252
255
  --accent_color_1: #777777
@@ -259,6 +262,8 @@ $large_breakpoint: $medium_breakpoint + $large_minimum_left_navigation_width + 2
259
262
  @media (prefers-color-scheme: dark)
260
263
  --primary_foreground_color: #ffffff
261
264
  --heading_foreground_color: #eeeeee
265
+ // Needs to be written as RGB, not hex, so that CSS rgba() works
266
+ --shadow_color: 255, 255, 255, 1.0
262
267
  --interactive_color: #eeeeee
263
268
  --interactive_background_color: #777777
264
269
  --accent_color_1: #dddddd
@@ -283,10 +288,20 @@ body
283
288
 
284
289
  @include below_large_mode
285
290
  display: flex
291
+ position: fixed
292
+ height: 100vh
293
+ width: 100vw
294
+ max-height: 100%
295
+ top: 0
296
+ left: 0
297
+ bottom: 0
298
+ right: 0
299
+ overflow-y: scroll
300
+
286
301
  flex-flow: column nowrap
287
302
  align-items: stretch
288
303
  justify-content: space-between
289
- height: 100vh
304
+
290
305
 
291
306
  main#content
292
307
  background: var(--content_background_color)
@@ -755,7 +770,9 @@ body
755
770
 
756
771
  // Mobile Navigation, start state
757
772
  nav#navigation-mobile
773
+ position: -webkit-sticky
758
774
  position: sticky
775
+ align-self: stretch
759
776
 
760
777
  @include print_mode
761
778
  display: none
@@ -769,7 +786,7 @@ body
769
786
  display: none
770
787
 
771
788
  #navigation-controls
772
- box-shadow: 0 math.div($unit, 2) math.div($unit, 1) rgba(var(--heading_foreground_color), 0.4)
789
+ box-shadow: 0 math.div($unit, 2) math.div($unit, 1) rgba(var(--shadow_color))
773
790
 
774
791
  button#mobile-navigation-toggle
775
792
  --icon-url: url("/assets/images/menu-outline.svg")
@@ -783,7 +800,7 @@ body
783
800
 
784
801
  #navigation-items
785
802
  display: block
786
- box-shadow: 0 math.div($unit, 2) math.div($unit, 1) rgba(var(--heading_foreground_color), 0.4)
803
+ box-shadow: 0 math.div($unit, 2) math.div($unit, 1) rgba(var(--shadow_color))
787
804
 
788
805
  #navigation-controls
789
806
  button#mobile-navigation-toggle
@@ -26,13 +26,13 @@ document.addEventListener "DOMContentLoaded", (DOMLoadedEvent) ->
26
26
  # Open navigation
27
27
  mobileNavigation.dataset.state = "open"
28
28
 
29
- body.style.overflow = "hidden"
30
-
31
29
  mobileNavigation.style.position = "fixed"
32
30
  mobileNavigation.style.width = "100vw"
33
31
  mobileNavigation.style.height = "100vh"
34
32
  mobileNavigation.style.removeProperty("grid-template-rows")
35
33
 
34
+ body.style.overflow = "hidden"
35
+
36
36
  navigationToggleButton.setAttribute "aria-expanded", "true"
37
37
  mobileNavigationItems.setAttribute "aria-hidden", "false"
38
38
 
@@ -41,13 +41,14 @@ document.addEventListener "DOMContentLoaded", (DOMLoadedEvent) ->
41
41
  navigationToggleButton.setAttribute "aria-expanded", "false"
42
42
  mobileNavigation.dataset.state = "closed"
43
43
 
44
- body.style.overflow = "initial"
45
-
46
44
  mobileNavigation.style.position = "sticky"
47
45
  mobileNavigation.style.removeProperty("width")
48
46
  mobileNavigation.style.removeProperty("height")
49
47
  mobileNavigation.style.gridTemplateRows = "[transparent-nav-close-area] 0 [navigation-items] 0 [navigation-controls] min-content"
50
48
 
49
+ body.style.overflow = "initial"
50
+
51
+ navigationToggleButton.setAttribute "aria-expanded", "false"
51
52
  mobileNavigationItems.setAttribute "aria-hidden", "true"
52
53
 
53
54
  mobileNavigation.scrollIntoView {block: "end"}
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jekyll-theme-miniplex
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.12.0
4
+ version: 0.12.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Timo Würsch
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-03-06 00:00:00.000000000 Z
11
+ date: 2023-03-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jekyll