css-zero 0.0.43 → 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: ced95bc29890a4882d0c31a40d2b109ac5c118f6fce4e7663e48d710b8d54a50
4
- data.tar.gz: 62f21e06f144267737c578db2942dddbfd46d36f30a4c3e78b85ceea550408f6
3
+ metadata.gz: ec1e04072b39a7556be9b33bc9c9736689f9463cdd1acc56076727394035a6b6
4
+ data.tar.gz: 54997d4c8310db5f9366cac4f51bb3db65fac4616e5336779180e8ce2ae5b5d2
5
5
  SHA512:
6
- metadata.gz: 1e2c45036d2d68f17ac5a064cb7c84acb9d6870e375c35afd7c03dbf9c6b8e4c0931db0ba9ce6d77e2ef699f199cc854a589f856033f419f183909da22c1b4ca
7
- data.tar.gz: f33fc4eb0c24ab0fca8c8ac37155f0378c93cb11e0ad34c748cde9ee94204cf3a7f218d245a783126d8da412b852306c1b5905d910be924fee33daa135c3b51f
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.43"
2
+ VERSION = "0.0.44"
3
3
  end
@@ -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.43
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