head 0.0.4 → 0.0.6
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/CHANGELOG.md +4 -0
- data/app/assets/stylesheets/head/components/wing.sass +11 -1
- data/lib/head/engine.rb +7 -5
- data/lib/head/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 280eda1efe687ba91febae4f95cc1cca7b076c4ca2e67de4cf1951c5f8e98d81
|
|
4
|
+
data.tar.gz: 9ec49c8102a73e4079f7fd8125778220091daa40c5250548cd001cbae97131ff
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: c84255c65581c5bdac71847536cb9ec50014e4f9d22c68b890e468230e8a3c88d753641ca29474dc768196a6e6b81d3ba1c98b006202227ea9e89abafba2d1c5
|
|
7
|
+
data.tar.gz: c88efd648e6ad721f8e91b15342a81f1c6feafd17a6a47f62c6ac95452cc4390bfc32ace7bd631967220284867ce2a1b2c2a8ba3dc5b0946ba8c36c21b733b38
|
data/CHANGELOG.md
CHANGED
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
|
|
17
17
|
&--right
|
|
18
18
|
right: 0
|
|
19
|
-
position: inherit
|
|
19
|
+
// position: inherit
|
|
20
20
|
|
|
21
21
|
// On very very large screens, permanently show notifications sidebar on the right.
|
|
22
22
|
// Using container queries for this, because the main menu on the left may affect the layout.
|
|
@@ -48,6 +48,16 @@
|
|
|
48
48
|
+responsive.xlarge-container
|
|
49
49
|
display: none
|
|
50
50
|
|
|
51
|
+
// The right wing has three states
|
|
52
|
+
// Small screens: appear on top of the content
|
|
53
|
+
// Medium screens: appear next to the content
|
|
54
|
+
// Large screens: always show next to the content
|
|
55
|
+
// This snippet here is for medium screens:
|
|
56
|
+
// When the (right) curtain disappears, make the right wing next to the content
|
|
57
|
+
.c-head-wing--right:has(> .c-head-wing__curtain)
|
|
58
|
+
+responsive.xlarge-container
|
|
59
|
+
position: inherit
|
|
60
|
+
|
|
51
61
|
// Keep this breakpoint analogous to knob.sass
|
|
52
62
|
+responsive.xlarge
|
|
53
63
|
.c-head-wing
|
data/lib/head/engine.rb
CHANGED
|
@@ -26,12 +26,14 @@ module Head
|
|
|
26
26
|
# AND the view_component gem has been fully initialized (configured).
|
|
27
27
|
#
|
|
28
28
|
# That's right here and now.
|
|
29
|
-
|
|
29
|
+
ActiveSupport.on_load(:action_view) do
|
|
30
|
+
require_relative '../../app/components/head/application_component'
|
|
30
31
|
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
32
|
+
# Components
|
|
33
|
+
require_relative '../../app/components/head/wing'
|
|
34
|
+
require_relative '../../app/components/head/knob'
|
|
35
|
+
require_relative '../../app/components/head/theater'
|
|
36
|
+
end
|
|
35
37
|
end
|
|
36
38
|
end
|
|
37
39
|
end
|
data/lib/head/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: head
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.0.
|
|
4
|
+
version: 0.0.6
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- halo
|
|
@@ -178,7 +178,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
178
178
|
- !ruby/object:Gem::Version
|
|
179
179
|
version: '0'
|
|
180
180
|
requirements: []
|
|
181
|
-
rubygems_version:
|
|
181
|
+
rubygems_version: 4.0.6
|
|
182
182
|
specification_version: 4
|
|
183
183
|
summary: A simple, opinionated navigation menu ViewComponent
|
|
184
184
|
test_files: []
|