head 0.0.3 → 0.0.5

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: 64555f34c0083982a934eab9077ed59c080d25e5c30d649c45bb72f91d5a4d7d
4
- data.tar.gz: 7d56527224c27361e457345eabeea6fedacda3d820608f50bd0e2afd2463f59a
3
+ metadata.gz: 489b779629dcbaf7637d84137ea7037c757003b2d505fa9c1cce42faed3c7390
4
+ data.tar.gz: a247d28583fe1e75ad4687447151e40b91fb59c4df552f03954e6db72ff4e28d
5
5
  SHA512:
6
- metadata.gz: d755be54df9724b2c9dea550f04bb10d3c211ea6d06028eb6dedee133f603ab80a614515f2e038a651ff6cd5c83c18598bbb14098b7f0032f7e5d52c61606629
7
- data.tar.gz: 23c1c19da4691d95d45411ae3c13c15ddc847d0dfa9767d415569c2e994119015dcbe9e3daf47979d4340c1f9feaf33fdd57a377df5b5ad7238cc9a72f3402e3
6
+ metadata.gz: 2552d2e124fccb0c0364005dfe32727410480f3321529d7cdd5e73b72e1fd46db791f6f26d9fb6e84f261a0c6abd32b5bb2094a7d3a70c26a3bf2d82a8aa66ef
7
+ data.tar.gz: 1129ce634283b60f54f9c9bcc9ffc2fc1b4cdf016b1531c3756f8482d1d462d43976c50db6846a47adb4bca49effa01a4b99f1c13fc9702c6c1368aab9212496
@@ -1,6 +1,6 @@
1
1
  document.addEventListener('DOMContentLoaded', function() {
2
2
  document.querySelectorAll('.js-head-sidebar__category').forEach(function (category) {
3
- console.debug("Binding to Sidebar Category")
3
+ console.debug("[Head] Binding to Sidebar Category")
4
4
  const href = category.getAttribute('href')
5
5
 
6
6
  // If this category doesn't open a secondary sidebar, it is a standalone link.
@@ -1,7 +1,7 @@
1
1
  document.addEventListener('DOMContentLoaded', function() {
2
2
 
3
3
  document.querySelectorAll('.js-head-wing__curtain').forEach(function (item) {
4
- console.debug("Binding to Head Wing Curtain")
4
+ console.debug("[Head] Binding to Wing Curtain")
5
5
 
6
6
  item.addEventListener('click', function(event) {
7
7
  event.preventDefault()
@@ -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
@@ -12,7 +12,7 @@ module Head
12
12
  initializer 'head.importmap', before: 'importmap' do |app|
13
13
  app.config.importmap.paths << Engine.root.join('config/importmap.rb')
14
14
  # Watch JS changes in development
15
- app.config.importmap.cache_sweepers << Engine.root.join('app/assets/javascripts')
15
+ app.config.importmap.cache_sweepers << Engine.root.join('app/assets/javascript')
16
16
  end
17
17
 
18
18
  config.to_prepare do
data/lib/head/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Head
4
- VERSION = '0.0.3'
4
+ VERSION = '0.0.5'
5
5
  end
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.3
4
+ version: 0.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - halo