css-zero 0.0.94 → 0.0.96

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: 421e49460a3f5afe3b7ba8f87faa35d1e8a44050f5b0fd8696cd1b175a415d2d
4
- data.tar.gz: a6240eac2e50923e843a354fe607d1e02f135a797fae05c5030cdb9f3c961db5
3
+ metadata.gz: d9b81bb86bdc87a173041a76efe7b8e307b1d9d5f5d443a890480a7d3b0609cf
4
+ data.tar.gz: db815c1c6d4b88c1d931b5c2f742659da498447d8673aeedc15c1e384864c009
5
5
  SHA512:
6
- metadata.gz: a86bd1229145b84313451d9997b887ae0b9c5d60bc143e73b891113d22f3521c26945a410b3a713cf9dc6ac0c109bb13bd50c12183ca28c9417ae44027b25ff8
7
- data.tar.gz: fa092a46a4ab911f999c0a115323150752a783e1914a00fe6cdbed53710f5849b4396d632fa2a8dc1a996cb91522a053f3e7a0177e560f72934f6b5550ab0945
6
+ metadata.gz: 0a55c81d60e21c2fa6e8bf4ed0d0ad0235a18693c26c6e8e767593c2a5c8bb7805ed1a1fbf567ea749c2ae6e4ba4c648f00b270df6f7ac57e830f7ed34e32eef
7
+ data.tar.gz: 3244fa7e0f3c9e068510a513ebbde18971dc2c852f2c80210c083a2dec97864bac32b6d6a74e6784e7c3320443412cae289290b18b8bb6e2ccc17699cc928360
@@ -1,3 +1,3 @@
1
1
  module CssZero
2
- VERSION = "0.0.94"
2
+ VERSION = "0.0.96"
3
3
  end
@@ -3,13 +3,13 @@
3
3
  }
4
4
 
5
5
  ::view-transition-old(.auto-animation):only-child {
6
- animation: var(--animate-fade-out) forwards;
7
- animation-duration: var(--time-200);
6
+ animation: var(--animate-fade-out);
7
+ animation-duration: 250ms;
8
8
  opacity: 1;
9
9
  }
10
10
 
11
11
  ::view-transition-new(.auto-animation):only-child {
12
- animation: var(--animate-fade-in) forwards;
13
- animation-duration: var(--time-200);
12
+ animation: var(--animate-fade-in);
13
+ animation-duration: 250ms;
14
14
  opacity: 0;
15
15
  }
@@ -15,8 +15,8 @@
15
15
 
16
16
  &:is(textarea[rows=auto]) {
17
17
  field-sizing: content;
18
- max-block-size: calc(10lh + var(--size-6));
19
- min-block-size: calc(3lh + var(--size-6));
18
+ max-block-size: calc(10lh + var(--size-4));
19
+ min-block-size: calc(3lh + var(--size-4));
20
20
  }
21
21
 
22
22
  &:is(select):not([multiple], [size]) {
@@ -44,12 +44,6 @@
44
44
  }
45
45
  }
46
46
 
47
- /* Hide invalid feedback by default */
48
- .invalid-feedback {
49
- display: none;
50
- }
51
-
52
- /* Containers that act like (and contain) inputs */
53
47
  .input--actor {
54
48
  input {
55
49
  border: 0; inline-size: 100%; outline: 0;
@@ -58,25 +52,19 @@
58
52
  img:not([class]) {
59
53
  filter: var(--input-icon-color, var(--color-filter-text));
60
54
  }
61
-
62
- &:focus-within {
63
- outline: var(--input-outline-size, 2px) solid var(--color-selected-dark);
64
- outline-offset: var(--border-2);
65
- }
66
55
  }
67
56
 
68
- /* Checkbox, radio, and range */
69
- .checkbox, .radio {
70
- accent-color: var(--color-primary); transform: scale(1.15);
57
+ :is(.checkbox, .radio) {
58
+ transform: scale(1.2);
71
59
  }
72
60
 
73
- .range {
61
+ :is(.checkbox, .radio, .range) {
74
62
  accent-color: var(--color-primary);
75
63
  }
76
64
 
77
65
  /* Styles that are shared between components */
78
66
  :is(.input, .checkbox, .radio, .range) {
79
- &:focus-visible {
67
+ :is(&:focus-visible, &.input--actor:focus-within) {
80
68
  outline: var(--input-outline-size, 2px) solid var(--color-selected-dark);
81
69
  outline-offset: var(--border-2);
82
70
  }
@@ -85,3 +73,8 @@
85
73
  border-color: var(--color-negative);
86
74
  }
87
75
  }
76
+
77
+ /* Hide invalid-feedback by default */
78
+ .invalid-feedback {
79
+ display: none;
80
+ }
@@ -18,6 +18,7 @@
18
18
 
19
19
  &[aria-selected=true] {
20
20
  --btn-background: var(--color-bg);
21
+ --btn-box-shadow: var(--shadow);
21
22
  --btn-hover-color: var(--color-bg);
22
23
  }
23
24
  }
@@ -3,6 +3,10 @@ import { Controller } from "@hotwired/stimulus"
3
3
  export default class extends Controller {
4
4
  static targets = [ "menu" ]
5
5
 
6
+ show() {
7
+ this.menuTarget.show()
8
+ }
9
+
6
10
  showModal() {
7
11
  this.menuTarget.showModal()
8
12
  }
@@ -24,13 +24,21 @@ export default class extends Controller {
24
24
  }
25
25
 
26
26
  hide() {
27
- clearTimeout(this.#showTimer); this.menuTarget.hidePopover()
27
+ this.menuTarget.hidePopover()
28
+ }
29
+
30
+ toggle() {
31
+ this.menuTarget.togglePopover()
28
32
  }
29
33
 
30
34
  showLater() {
31
35
  this.#showTimer = setTimeout(() => this.show(), 700)
32
36
  }
33
37
 
38
+ hideClear() {
39
+ clearTimeout(this.#showTimer); this.hide();
40
+ }
41
+
34
42
  orient() {
35
43
  computePosition(this.buttonTarget, this.menuTarget, this.#options).then(({x, y}) => {
36
44
  this.menuTarget.style.insetInlineStart = `${x}px`
@@ -54,6 +54,8 @@
54
54
 
55
55
  * {
56
56
  border-color: var(--color-border);
57
+ scrollbar-color: #C1C1C1 transparent;
58
+ scrollbar-width: thin;
57
59
  }
58
60
 
59
61
  html {
@@ -64,6 +66,7 @@ body {
64
66
  background-color: var(--color-bg);
65
67
  color: var(--color-text);
66
68
  font-synthesis-weight: none;
69
+ overscroll-behavior: none;
67
70
  text-rendering: optimizeLegibility;
68
71
  }
69
72
 
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.94
4
+ version: 0.0.96
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: 2025-01-20 00:00:00.000000000 Z
11
+ date: 2025-01-22 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description:
14
14
  email: lazaronixon@hotmail.com