jekyll-theme-miniplex 0.9.1 → 0.10.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 +5 -3
- data/_includes/footer.html +1 -0
- data/_layouts/default.html +3 -0
- data/_sass/jekyll-theme-miniplex.sass +48 -9
- data/assets/images/close-outline-darkmode.svg +4 -0
- data/assets/images/close-outline.svg +4 -0
- data/assets/images/menu-outline-darkmode.svg +5 -0
- data/assets/images/menu-outline.svg +5 -0
- data/assets/js/main.coffee +3 -1
- metadata +12 -9
- data/assets/images/close-circle-outline@2x.png +0 -0
- data/assets/images/menu-outline@2x.png +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c45ca6694d6c5bf57671b8deb295eba737cd51086a97c36da45ed1696f69db3b
|
4
|
+
data.tar.gz: 39442e86cf8f846eb8a5e9525dde40e25367aad79f4fc4186c6b211cade9b455
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d52cc355fcc661118970171b8c8b46dfe7b623c5e43bc3ab7b3ea1248f9fba99af71d7208ffcad7ccd368878f1093041eaaa0378ec52c0c754127117fa2a871c
|
7
|
+
data.tar.gz: 37fd7dc6de44f0ff8e82af53e4bbafb4984ed3c7d734a5479e50daac547b863312bef5a1cbe2ec691abd023054ddf9abd28dda71bf87adb11126d243ef94d0c3
|
data/README.md
CHANGED
@@ -41,16 +41,18 @@ titles_from_headings:
|
|
41
41
|
collections: true
|
42
42
|
```
|
43
43
|
|
44
|
-
|
44
|
+
Execute...
|
45
45
|
|
46
46
|
$ bundle
|
47
47
|
|
48
|
+
... to install everything.
|
49
|
+
|
48
50
|
|
49
51
|
## Usage
|
50
52
|
|
51
53
|
### Layouts
|
52
54
|
|
53
|
-
|
55
|
+
There are two layouts: `page` and `post`. They are almost identical, except for the `post` layout that shows the post's date and author below the title.
|
54
56
|
|
55
57
|
### Configuration options
|
56
58
|
|
@@ -63,8 +65,8 @@ miniplex:
|
|
63
65
|
|
64
66
|
## ToDos & Missing Features
|
65
67
|
|
66
|
-
- [ ] In-page navigation
|
67
68
|
- [ ] Footer
|
69
|
+
- [ ] In-page navigation
|
68
70
|
- [ ] Maximizable tables
|
69
71
|
- [ ] Breadcrumbs, if possible
|
70
72
|
- [ ] Side notes, if possible
|
@@ -0,0 +1 @@
|
|
1
|
+
Made with <a href="https://jekyllrb.com/" target="_new">Jekyll</a> and <a href="https://gitlab.com/twuersch/jekyll-theme-miniplex" target="_new">jekyll-theme-miniplex</a>.
|
data/_layouts/default.html
CHANGED
@@ -77,6 +77,10 @@ $large_breakpoint: $medium_breakpoint + $large_minimum_left_navigation_width + 2
|
|
77
77
|
@media print
|
78
78
|
@content
|
79
79
|
|
80
|
+
@mixin dark_mode
|
81
|
+
@media (prefers-color-scheme: dark)
|
82
|
+
@content
|
83
|
+
|
80
84
|
// Creates a CSS property with separate values depending on the mode/breakpoint.
|
81
85
|
// Modes "xs", "s", "m" and "l" are available as keyword arguments. Examples:
|
82
86
|
//
|
@@ -247,7 +251,6 @@ $large_breakpoint: $medium_breakpoint + $large_minimum_left_navigation_width + 2
|
|
247
251
|
--group_color_level_1: #eeeeee
|
248
252
|
--group_color_level_2: #dddddd
|
249
253
|
|
250
|
-
|
251
254
|
:root
|
252
255
|
@media (prefers-color-scheme: dark)
|
253
256
|
--primary_foreground_color: #ffffff
|
@@ -272,7 +275,7 @@ body
|
|
272
275
|
display: grid
|
273
276
|
height: 100vh
|
274
277
|
grid-template-columns: [left-navigation] auto [content] 1fr
|
275
|
-
grid-template-rows:
|
278
|
+
grid-template-rows: [navigation-and-content] min-content [footer] min-content
|
276
279
|
|
277
280
|
@include below_large_mode
|
278
281
|
display: flex
|
@@ -304,9 +307,12 @@ body
|
|
304
307
|
grid-column: content / span 1
|
305
308
|
grid-row: 1 / span 1
|
306
309
|
width: $medium_content_width
|
307
|
-
padding: $medium_padding
|
310
|
+
padding-top: $medium_padding
|
311
|
+
@include linear_responsive_property("padding-right", $large_breakpoint, $unit, $large_breakpoint + 8 * $unit, 8 * $unit)
|
312
|
+
padding-bottom: $medium_padding
|
313
|
+
padding-left: $medium_padding
|
308
314
|
margin-left: auto
|
309
|
-
margin-right:
|
315
|
+
margin-right: 0
|
310
316
|
margin-top: $medium_maximum_horizontal_margin
|
311
317
|
margin-bottom: $medium_maximum_horizontal_margin
|
312
318
|
|
@@ -689,7 +695,7 @@ body
|
|
689
695
|
|
690
696
|
li#site-title
|
691
697
|
@include title_font
|
692
|
-
@include responsive_property(font-size, $xs: 1
|
698
|
+
@include responsive_property(font-size, $xs: 1 * $unit, $s: 1.25 * $unit, $m: 1.5 * $unit, $otherwise: 1.5 * $unit)
|
693
699
|
@include responsive_property(padding-left, $m: $unit, $otherwise: math.div($unit, 2))
|
694
700
|
@include responsive_property(padding-top, $m: math.div($unit, 2), $otherwise: math.div($unit, 4))
|
695
701
|
@include responsive_property(padding-bottom, $m: math.div($unit, 2), $otherwise: math.div($unit, 4))
|
@@ -703,9 +709,8 @@ body
|
|
703
709
|
li
|
704
710
|
@include responsive_property(padding-right, $m: $unit, $otherwise: math.div($unit, 2))
|
705
711
|
|
706
|
-
|
707
712
|
button#mobile-navigation-toggle
|
708
|
-
@include responsive_property(font-size, $xs: 1
|
713
|
+
@include responsive_property(font-size, $xs: 1 * $unit, $s: 1.25 * $unit, $m: 1.5 * $unit, $otherwise: 1.5 * $unit)
|
709
714
|
font-weight: bold
|
710
715
|
color: var(--heading_foreground_color)
|
711
716
|
cursor: pointer
|
@@ -724,6 +729,8 @@ body
|
|
724
729
|
background-repeat: no-repeat
|
725
730
|
background-size: 24px
|
726
731
|
background-image: var(--icon-url)
|
732
|
+
svg path
|
733
|
+
fill: #ff0000
|
727
734
|
|
728
735
|
// Mobile Navigation, start state
|
729
736
|
nav#navigation-mobile
|
@@ -744,7 +751,9 @@ body
|
|
744
751
|
box-shadow: 0 math.div($unit, 2) math.div($unit, 1) rgba(var(--heading_foreground_color), 0.4)
|
745
752
|
|
746
753
|
button#mobile-navigation-toggle
|
747
|
-
--icon-url: url("/assets/images/menu-outline
|
754
|
+
--icon-url: url("/assets/images/menu-outline.svg")
|
755
|
+
@include dark_mode
|
756
|
+
--icon-url: url("/assets/images/menu-outline-darkmode.svg")
|
748
757
|
|
749
758
|
// Mobile Navigation, open state
|
750
759
|
nav#navigation-mobile[data-state="open"]
|
@@ -757,4 +766,34 @@ body
|
|
757
766
|
|
758
767
|
#navigation-controls
|
759
768
|
button#mobile-navigation-toggle
|
760
|
-
--icon-url: url("/assets/images/close-
|
769
|
+
--icon-url: url("/assets/images/close-outline.svg")
|
770
|
+
@include dark_mode
|
771
|
+
--icon-url: url("/assets/images/close-outline-darkmode.svg")
|
772
|
+
|
773
|
+
footer
|
774
|
+
text-align: end
|
775
|
+
color: var(--accent_color_1)
|
776
|
+
background-color: var(--group_color_level_1)
|
777
|
+
|
778
|
+
a
|
779
|
+
color: var(--accent_color_1)
|
780
|
+
|
781
|
+
@include extrasmall_mode
|
782
|
+
padding: math.div($unit, 2)
|
783
|
+
padding-bottom: 4 * $unit
|
784
|
+
|
785
|
+
@include small_mode
|
786
|
+
padding: math.div($unit, 2)
|
787
|
+
padding-bottom: 4 * $unit
|
788
|
+
|
789
|
+
@include medium_mode
|
790
|
+
padding: $unit
|
791
|
+
padding-bottom: 4 * $unit
|
792
|
+
|
793
|
+
@include large_mode
|
794
|
+
grid-column: left-navigation / span 2
|
795
|
+
grid-row: footer / span 1
|
796
|
+
padding-top: $medium_padding
|
797
|
+
padding-bottom: $medium_padding
|
798
|
+
@include linear_responsive_property("padding-left", $large_breakpoint, $unit, $large_breakpoint + 8 * $unit, 8 * $unit)
|
799
|
+
@include linear_responsive_property("padding-right", $large_breakpoint, $unit, $large_breakpoint + 8 * $unit, 8 * $unit)
|
@@ -0,0 +1,4 @@
|
|
1
|
+
<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
2
|
+
<path d="M17.25 17.25L6.75 6.75" stroke="white" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
|
3
|
+
<path d="M17.25 6.75L6.75 17.25" stroke="white" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
|
4
|
+
</svg>
|
@@ -0,0 +1,4 @@
|
|
1
|
+
<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
2
|
+
<path d="M17.25 17.25L6.75 6.75" stroke="#333333" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
|
3
|
+
<path d="M17.25 6.75L6.75 17.25" stroke="#333333" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
|
4
|
+
</svg>
|
@@ -0,0 +1,5 @@
|
|
1
|
+
<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
2
|
+
<path d="M3.75 7.5H20.25" stroke="white" stroke-width="1.5" stroke-miterlimit="10" stroke-linecap="round"/>
|
3
|
+
<path d="M3.75 12H20.25" stroke="white" stroke-width="1.5" stroke-miterlimit="10" stroke-linecap="round"/>
|
4
|
+
<path d="M3.75 16.5H20.25" stroke="white" stroke-width="1.5" stroke-miterlimit="10" stroke-linecap="round"/>
|
5
|
+
</svg>
|
@@ -0,0 +1,5 @@
|
|
1
|
+
<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
2
|
+
<path d="M3.75 7.5H20.25" stroke="#333333" stroke-width="1.5" stroke-miterlimit="10" stroke-linecap="round"/>
|
3
|
+
<path d="M3.75 12H20.25" stroke="#333333" stroke-width="1.5" stroke-miterlimit="10" stroke-linecap="round"/>
|
4
|
+
<path d="M3.75 16.5H20.25" stroke="#333333" stroke-width="1.5" stroke-miterlimit="10" stroke-linecap="round"/>
|
5
|
+
</svg>
|
data/assets/js/main.coffee
CHANGED
@@ -14,7 +14,7 @@ document.addEventListener "DOMContentLoaded", (DOMLoadedEvent) ->
|
|
14
14
|
|
15
15
|
# Mobile navigation
|
16
16
|
mobileNavigation = document.querySelector "nav#navigation-mobile"
|
17
|
-
mobileNavigationItems = document.querySelector "nav#navigation-
|
17
|
+
mobileNavigationItems = document.querySelector "nav#navigation-mobile ul#navigation-items"
|
18
18
|
mobileNavigationControls = document.querySelector "nav#navigation-mobile #navigation-controls"
|
19
19
|
navigationToggleButton = document.querySelector "button#mobile-navigation-toggle"
|
20
20
|
transparentNavCloseArea = document.querySelector "div#transparent-nav-close-area"
|
@@ -50,5 +50,7 @@ document.addEventListener "DOMContentLoaded", (DOMLoadedEvent) ->
|
|
50
50
|
|
51
51
|
mobileNavigationItems.setAttribute "aria-hidden", "true"
|
52
52
|
|
53
|
+
mobileNavigation.scrollIntoView {block: "end"}
|
54
|
+
|
53
55
|
navigationToggleButton.addEventListener "click", toggleNavigation
|
54
56
|
transparentNavCloseArea.addEventListener "click", toggleNavigation
|
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.
|
4
|
+
version: 0.10.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Timo Würsch
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-
|
11
|
+
date: 2023-03-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: jekyll
|
@@ -38,7 +38,7 @@ dependencies:
|
|
38
38
|
- - "~>"
|
39
39
|
- !ruby/object:Gem::Version
|
40
40
|
version: 2.0.0
|
41
|
-
description:
|
41
|
+
description:
|
42
42
|
email:
|
43
43
|
- twuersch@fastmail.com
|
44
44
|
executables: []
|
@@ -49,6 +49,7 @@ files:
|
|
49
49
|
- README.md
|
50
50
|
- _config.yml
|
51
51
|
- _includes/additional_head_tags.html
|
52
|
+
- _includes/footer.html
|
52
53
|
- _includes/navigation_desktop.html
|
53
54
|
- _includes/navigation_mobile.html
|
54
55
|
- _layouts/default.html
|
@@ -68,14 +69,16 @@ files:
|
|
68
69
|
- assets/fonts/IBMPlexSans-Regular.woff2
|
69
70
|
- assets/fonts/IBMPlexSerif-BoldItalic.woff2
|
70
71
|
- assets/fonts/IBMPlexSerif-Italic.woff2
|
71
|
-
- assets/images/close-
|
72
|
-
- assets/images/
|
72
|
+
- assets/images/close-outline-darkmode.svg
|
73
|
+
- assets/images/close-outline.svg
|
74
|
+
- assets/images/menu-outline-darkmode.svg
|
75
|
+
- assets/images/menu-outline.svg
|
73
76
|
- assets/js/main.coffee
|
74
77
|
homepage: https://gitlab.com/twuersch/jekyll-theme-miniplex
|
75
78
|
licenses:
|
76
79
|
- MIT
|
77
80
|
metadata: {}
|
78
|
-
post_install_message:
|
81
|
+
post_install_message:
|
79
82
|
rdoc_options: []
|
80
83
|
require_paths:
|
81
84
|
- lib
|
@@ -90,8 +93,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
90
93
|
- !ruby/object:Gem::Version
|
91
94
|
version: '0'
|
92
95
|
requirements: []
|
93
|
-
rubygems_version: 3.3.
|
94
|
-
signing_key:
|
96
|
+
rubygems_version: 3.3.26
|
97
|
+
signing_key:
|
95
98
|
specification_version: 4
|
96
99
|
summary: A Jekyll theme.
|
97
100
|
test_files: []
|
Binary file
|
Binary file
|