css-zero 0.0.43 → 0.0.44
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 +1 -1
- data/lib/css_zero/version.rb +1 -1
- data/lib/generators/css_zero/add/templates/app/assets/stylesheets/flash.css +10 -2
- data/lib/generators/css_zero/add/templates/app/assets/stylesheets/input.css +1 -1
- data/lib/generators/css_zero/add/templates/app/javascript/controllers/filter_controller.js +13 -13
- data/lib/generators/css_zero/add/templates/app/javascript/controllers/tabs_controller.js +2 -2
- 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: ec1e04072b39a7556be9b33bc9c9736689f9463cdd1acc56076727394035a6b6
|
4
|
+
data.tar.gz: 54997d4c8310db5f9366cac4f51bb3db65fac4616e5336779180e8ce2ae5b5d2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 480ea51dad6b42f1fd414823868aee05cb709a44038d243d931a079d037f60b477612cd289b7ee5da55ae0f635db3cbf747f0506a73cd7b8c34f89afce2f2955
|
7
|
+
data.tar.gz: c48c5b925f47966e8b67f3a25582e6980b70cc02f7cc3c5d89f30ac1c1262611795a2f20d18b5faead4b3a3d25980f02759bfda555287fd42ca16c179788e654
|
data/README.md
CHANGED
@@ -89,7 +89,7 @@ Check the [CSS files](app/assets/stylesheets) in the repository to see the avail
|
|
89
89
|
|
90
90
|
## Components
|
91
91
|
|
92
|
-
[<img src="https://github.com/user-attachments/assets/989b0ddd-064a-4ac6-8aee-f9eaaf07ff38">](https://
|
92
|
+
[<img src="https://github.com/user-attachments/assets/989b0ddd-064a-4ac6-8aee-f9eaaf07ff38">](https://csszero.lazaronixon.com)
|
93
93
|
|
94
94
|
More components soon...
|
95
95
|
|
data/lib/css_zero/version.rb
CHANGED
@@ -6,14 +6,12 @@
|
|
6
6
|
color: var(--color-text-reversed);
|
7
7
|
display: flex;
|
8
8
|
gap: var(--size-2);
|
9
|
-
inset: 0;
|
10
9
|
justify-content: center;
|
11
10
|
line-height: var(--leading-none);
|
12
11
|
margin-block-start: var(--flash-position, 0);
|
13
12
|
margin-inline: auto;
|
14
13
|
min-block-size: var(--size-11);
|
15
14
|
padding: var(--size-1) var(--size-4);
|
16
|
-
position: fixed;
|
17
15
|
text-align: center;
|
18
16
|
|
19
17
|
@media (width >= 40rem) {
|
@@ -25,7 +23,17 @@
|
|
25
23
|
}
|
26
24
|
}
|
27
25
|
|
26
|
+
.flash--extended {
|
27
|
+
animation-name: appear-then-fade-extended;
|
28
|
+
animation-duration: 12s;
|
29
|
+
}
|
30
|
+
|
28
31
|
@keyframes appear-then-fade {
|
29
32
|
0%, 100% { opacity: 0; }
|
30
33
|
5%, 60% { opacity: 1; }
|
31
34
|
}
|
35
|
+
|
36
|
+
@keyframes appear-then-fade-extended {
|
37
|
+
0%, 100% { opacity: 0; }
|
38
|
+
2%, 90% { opacity: 1; }
|
39
|
+
}
|
@@ -9,23 +9,21 @@ export default class extends Controller {
|
|
9
9
|
this.filter = debounce(this.filter.bind(this), 300)
|
10
10
|
}
|
11
11
|
|
12
|
-
filter(
|
12
|
+
filter({ target }) {
|
13
13
|
this.#reset()
|
14
14
|
|
15
|
-
if (
|
16
|
-
this.#selectMatches(
|
15
|
+
if (target.value != "") {
|
16
|
+
this.#selectMatches(target.value)
|
17
17
|
this.#activate()
|
18
18
|
} else {
|
19
19
|
this.#deactivate()
|
20
20
|
}
|
21
21
|
}
|
22
22
|
|
23
|
-
#
|
24
|
-
this.listTarget.
|
25
|
-
|
26
|
-
|
27
|
-
#deactivate() {
|
28
|
-
this.listTarget.classList.remove(this.activeClass)
|
23
|
+
#reset() {
|
24
|
+
this.listTarget.querySelectorAll(`.${this.selectedClass}`).forEach((element) => {
|
25
|
+
element.classList.remove(this.selectedClass)
|
26
|
+
})
|
29
27
|
}
|
30
28
|
|
31
29
|
#selectMatches(value) {
|
@@ -34,9 +32,11 @@ export default class extends Controller {
|
|
34
32
|
})
|
35
33
|
}
|
36
34
|
|
37
|
-
#
|
38
|
-
this.listTarget.
|
39
|
-
|
40
|
-
|
35
|
+
#activate() {
|
36
|
+
this.listTarget.classList.add(this.activeClass)
|
37
|
+
}
|
38
|
+
|
39
|
+
#deactivate() {
|
40
|
+
this.listTarget.classList.remove(this.activeClass)
|
41
41
|
}
|
42
42
|
}
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: css-zero
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.44
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Lázaro Nixon
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-10-
|
11
|
+
date: 2024-10-09 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description:
|
14
14
|
email: lazaronixon@hotmail.com
|