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 +4 -4
- data/lib/css_zero/version.rb +1 -1
- data/lib/generators/css_zero/add/templates/app/assets/stylesheets/autoanimate.css +4 -4
- data/lib/generators/css_zero/add/templates/app/assets/stylesheets/input.css +11 -18
- data/lib/generators/css_zero/add/templates/app/assets/stylesheets/tabs.css +1 -0
- data/lib/generators/css_zero/add/templates/app/javascript/controllers/dialog_controller.js +4 -0
- data/lib/generators/css_zero/add/templates/app/javascript/controllers/popover_controller.js +9 -1
- data/lib/generators/css_zero/install/templates/app/assets/stylesheets/base.css +3 -0
- 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: d9b81bb86bdc87a173041a76efe7b8e307b1d9d5f5d443a890480a7d3b0609cf
|
4
|
+
data.tar.gz: db815c1c6d4b88c1d931b5c2f742659da498447d8673aeedc15c1e384864c009
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0a55c81d60e21c2fa6e8bf4ed0d0ad0235a18693c26c6e8e767593c2a5c8bb7805ed1a1fbf567ea749c2ae6e4ba4c648f00b270df6f7ac57e830f7ed34e32eef
|
7
|
+
data.tar.gz: 3244fa7e0f3c9e068510a513ebbde18971dc2c852f2c80210c083a2dec97864bac32b6d6a74e6784e7c3320443412cae289290b18b8bb6e2ccc17699cc928360
|
data/lib/css_zero/version.rb
CHANGED
@@ -3,13 +3,13 @@
|
|
3
3
|
}
|
4
4
|
|
5
5
|
::view-transition-old(.auto-animation):only-child {
|
6
|
-
animation: var(--animate-fade-out)
|
7
|
-
animation-duration:
|
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)
|
13
|
-
animation-duration:
|
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-
|
19
|
-
min-block-size: calc(3lh + var(--size-
|
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
|
-
|
69
|
-
|
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
|
+
}
|
@@ -24,13 +24,21 @@ export default class extends Controller {
|
|
24
24
|
}
|
25
25
|
|
26
26
|
hide() {
|
27
|
-
|
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.
|
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-
|
11
|
+
date: 2025-01-22 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description:
|
14
14
|
email: lazaronixon@hotmail.com
|