@anydigital/blades 0.27.0-beta.5 → 0.27.0-beta.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.
package/README.md CHANGED
@@ -86,6 +86,7 @@ for 11ty/Build Awesome, Jekyll, etc.
86
86
 
87
87
  - [Base HTML](https://blades.ninja/html/#base) {data-marker=🥷}
88
88
  - [Links](https://blades.ninja/html/#links)
89
+ - [Sitemap](https://blades.ninja/html/#sitemap)
89
90
  - [Google Tag Manager](https://blades.ninja/html/#gtm)
90
91
 
91
92
  {.columns}
package/assets/blades.css CHANGED
@@ -193,9 +193,19 @@ h6 {
193
193
  color: silver;
194
194
  text-decoration: none;
195
195
  }
196
- &:hover {
196
+ /* If hover is supported, show anchor on hover */
197
+ @media (hover: hover) {
198
+ &:hover {
199
+ [data-is-anchor] {
200
+ visibility: visible;
201
+ }
202
+ }
203
+ }
204
+ /* Otherwise always show anchors, but subtle */
205
+ @media (hover: none) {
197
206
  [data-is-anchor] {
198
207
  visibility: visible;
208
+ opacity: 37.5%;
199
209
  }
200
210
  }
201
211
  }
package/blades.gemspec CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  Gem::Specification.new do |spec|
4
4
  spec.name = "blades"
5
- spec.version = "0.27.0-beta.5"
5
+ spec.version = "0.27.0-beta.6"
6
6
  spec.authors = ["Anton Staroverov"]
7
7
 
8
8
  spec.summary = "Framework-agnostic CSS utilities and single-file Liquid 'blades' for modern web development."
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@anydigital/blades",
3
- "version": "0.27.0-beta.5",
3
+ "version": "0.27.0-beta.6",
4
4
  "description": "Framework-agnostic CSS utilities and single-file Liquid 'blades' for modern web development.",
5
5
  "style": "./assets/blades.css",
6
6
  "exports": {
@@ -35,9 +35,19 @@ h6 {
35
35
  color: silver;
36
36
  text-decoration: none;
37
37
  }
38
- &:hover {
38
+ /* If hover is supported, show anchor on hover */
39
+ @media (hover: hover) {
40
+ &:hover {
41
+ [data-is-anchor] {
42
+ visibility: visible;
43
+ }
44
+ }
45
+ }
46
+ /* Otherwise always show anchors, but subtle */
47
+ @media (hover: none) {
39
48
  [data-is-anchor] {
40
49
  visibility: visible;
50
+ opacity: 37.5%;
41
51
  }
42
52
  }
43
53
  }