css-zero 0.0.42 → 0.0.44

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 9147bdaa40d0da67f7bfa6c4ee6ec20485051188a857184f858c051148a544b6
4
- data.tar.gz: efc47b5ed912f4a6739482d492e65523ffa95dea8d5c237e44ff1a94ce2b9f88
3
+ metadata.gz: ec1e04072b39a7556be9b33bc9c9736689f9463cdd1acc56076727394035a6b6
4
+ data.tar.gz: 54997d4c8310db5f9366cac4f51bb3db65fac4616e5336779180e8ce2ae5b5d2
5
5
  SHA512:
6
- metadata.gz: cec2e300f215ab9f92d50cd61b6336ccbdb6189e071eb266841198fbda4b7ac6f20385832065674a4732f3e35677cb4e4382e483c0f6334423e082f4b73538fd
7
- data.tar.gz: 16f064b7bc328519e52e58c635a1fc6941176d7e7098852072fb1dd7a209ccc7107e20108372a3bfba5037fe4101824d1fe77ae62a24a8f0e0d285c4e44385fb
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://css-zero-showcase.onrender.com/lookbook)
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
 
@@ -1,3 +1,3 @@
1
1
  module CssZero
2
- VERSION = "0.0.42"
2
+ VERSION = "0.0.44"
3
3
  end
@@ -21,7 +21,7 @@ carousel:
21
21
  - app/assets/images/arrow-left.svg
22
22
  - app/assets/images/arrow-right.svg
23
23
  check_all:
24
- - app/assets/stylesheets/check_all_controller.js
24
+ - app/javascript/controllers/check_all_controller.js
25
25
  command:
26
26
  - app/assets/stylesheets/command.css
27
27
  - app/javascript/controllers/filter_controller.js
@@ -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
+ }
@@ -63,7 +63,7 @@
63
63
  /* Checkbox, radio, and range */
64
64
  .checkbox, .radio {
65
65
  accent-color: var(--color-primary);
66
- transform: scale(1.15);
66
+ block-size: 18px; inline-size: 18px;
67
67
  }
68
68
 
69
69
  .range {
@@ -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(event) {
12
+ filter({ target }) {
13
13
  this.#reset()
14
14
 
15
- if (event.target.value != "") {
16
- this.#selectMatches(event.target.value)
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
- #activate() {
24
- this.listTarget.classList.add(this.activeClass)
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
- #reset() {
38
- this.listTarget.querySelectorAll(`.${this.selectedClass}`).forEach((element) => {
39
- element.classList.remove(this.selectedClass)
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
  }
@@ -8,8 +8,8 @@ export default class extends Controller {
8
8
  this.#showSelectedTab()
9
9
  }
10
10
 
11
- select({ target }) {
12
- this.indexValue = target.dataset.index
11
+ select({ params }) {
12
+ this.indexValue = params.index
13
13
  }
14
14
 
15
15
  prev() {
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.42
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-04 00:00:00.000000000 Z
11
+ date: 2024-10-09 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description:
14
14
  email: lazaronixon@hotmail.com