css-zero 0.0.33 → 0.0.35
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/assets/stylesheets/zutilities.css +2 -2
- data/lib/css_zero/version.rb +1 -1
- data/lib/generators/css_zero/add/resources.yml +1 -0
- data/lib/generators/css_zero/add/templates/app/assets/images/menu.svg +1 -0
- data/lib/generators/css_zero/add/templates/app/assets/stylesheets/button.css +4 -1
- data/lib/generators/css_zero/add/templates/app/assets/stylesheets/dialog.css +4 -1
- data/lib/generators/css_zero/add/templates/app/assets/stylesheets/input.css +11 -7
- data/lib/generators/css_zero/add/templates/app/assets/stylesheets/layouts.css +4 -0
- data/lib/generators/css_zero/add/templates/app/assets/stylesheets/sheet.css +5 -1
- data/lib/generators/css_zero/install/templates/app/assets/stylesheets/base.css +10 -10
- metadata +3 -4
- data/app/helpers/dialog_helper.rb +0 -5
- data/app/helpers/tabs_helper.rb +0 -9
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1860fb6136673d380985cf9fe42371a58d99bbda6c64f3c506a1412e6447e163
|
4
|
+
data.tar.gz: 27595e7ed7052f1cd5f05fe4e5c807738224530328062d41b09f1d5327478289
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 39143697d27bd095e2c9c238ad36f69dec5d6733113a58096e14c454ea2dddc5f295a7a1b2035875447e7173da89fbebfc06488c8f4f4a9ef23739270e339c6c
|
7
|
+
data.tar.gz: df3d03f4cc537150251d0971108a2ae0a2c26f7e07f6a40b1474bdab48c64aa629b483a0092b7d4ee1a493b2eaaeea82bb02a779cad3c926096b889736480322
|
@@ -25,8 +25,8 @@
|
|
25
25
|
.self-end { align-self: end; }
|
26
26
|
.self-center { align-self: center; }
|
27
27
|
|
28
|
-
.gap { column-gap: var(--column-gap,
|
29
|
-
.gap-
|
28
|
+
.gap { column-gap: var(--column-gap, 0.5rem); row-gap: var(--row-gap, 1rem); }
|
29
|
+
.gap-half { column-gap: 0.25rem; row-gap: 0.5rem; }
|
30
30
|
|
31
31
|
/****************************************************************
|
32
32
|
* Text
|
data/lib/css_zero/version.rb
CHANGED
@@ -0,0 +1 @@
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="#000" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><line x1="4" x2="20" y1="12" y2="12"/><line x1="4" x2="20" y1="6" y2="6"/><line x1="4" x2="20" y1="18" y2="18"/></svg>
|
@@ -65,13 +65,16 @@
|
|
65
65
|
visibility: hidden;
|
66
66
|
}
|
67
67
|
|
68
|
+
&::after {
|
69
|
+
filter: var(--btn-icon-color, var(--color-filter-text-reversed));
|
70
|
+
}
|
71
|
+
|
68
72
|
&::after {
|
69
73
|
animation: spin 1s linear infinite;
|
70
74
|
background-image: url("loader-circle.svg");
|
71
75
|
background-size: cover;
|
72
76
|
block-size: var(--size-4);
|
73
77
|
content: "";
|
74
|
-
filter: var(--btn-icon-color, var(--color-filter-text-reversed));
|
75
78
|
inline-size: var(--size-4);
|
76
79
|
position: absolute;
|
77
80
|
}
|
@@ -7,7 +7,6 @@
|
|
7
7
|
inline-size: var(--size-full);
|
8
8
|
margin: auto;
|
9
9
|
max-inline-size: var(--dialog-width, var(--width-lg));
|
10
|
-
padding: var(--size-6);
|
11
10
|
|
12
11
|
&::backdrop {
|
13
12
|
background-color: rgba(0, 0, 0, .8);
|
@@ -55,6 +54,10 @@
|
|
55
54
|
}
|
56
55
|
}
|
57
56
|
|
57
|
+
.dialog__content {
|
58
|
+
padding: var(--size-6);
|
59
|
+
}
|
60
|
+
|
58
61
|
.dialog__close {
|
59
62
|
inset-block-start: var(--size-4);
|
60
63
|
inset-inline-end: var(--size-4);
|
@@ -11,11 +11,10 @@
|
|
11
11
|
padding-block: revert;
|
12
12
|
}
|
13
13
|
|
14
|
-
&:is(textarea
|
14
|
+
&:is(textarea[rows=auto]) {
|
15
15
|
field-sizing: content;
|
16
16
|
max-block-size: calc(10lh + var(--size-6));
|
17
17
|
min-block-size: calc(3lh + var(--size-6));
|
18
|
-
resize: none;
|
19
18
|
}
|
20
19
|
|
21
20
|
&:is(select):not([multiple], [size]) {
|
@@ -44,18 +43,23 @@
|
|
44
43
|
}
|
45
44
|
}
|
46
45
|
|
46
|
+
/* Hide invalid feedback by default */
|
47
|
+
.invalid-feedback {
|
48
|
+
display: none;
|
49
|
+
}
|
50
|
+
|
47
51
|
/* Containers that act like (and contain) inputs */
|
48
52
|
.input--actor {
|
49
|
-
&:focus-within {
|
50
|
-
outline: var(--border-2) solid var(--color-selected-dark);
|
51
|
-
outline-offset: var(--border-2);
|
52
|
-
}
|
53
|
-
|
54
53
|
&:has(:-webkit-autofill) {
|
55
54
|
-webkit-text-fill-color: var(--color-text);
|
56
55
|
-webkit-box-shadow: 0 0 0px 1000px var(--color-selected) inset;
|
57
56
|
}
|
58
57
|
|
58
|
+
&:focus-within {
|
59
|
+
outline: var(--border-2) solid var(--color-selected-dark);
|
60
|
+
outline-offset: var(--border-2);
|
61
|
+
}
|
62
|
+
|
59
63
|
.input__character {
|
60
64
|
border: 0; inline-size: 100%; outline: 0;
|
61
65
|
}
|
@@ -8,7 +8,6 @@
|
|
8
8
|
margin-inline: var(--sheet-margin);
|
9
9
|
max-block-size: none;
|
10
10
|
max-inline-size: var(--width-sm);
|
11
|
-
padding: var(--size-6);
|
12
11
|
|
13
12
|
&::backdrop {
|
14
13
|
background-color: rgba(0, 0, 0, .8);
|
@@ -62,6 +61,11 @@
|
|
62
61
|
--sheet-transform: translateX(100%);
|
63
62
|
}
|
64
63
|
|
64
|
+
.sheet__content {
|
65
|
+
block-size: var(--size-full);
|
66
|
+
padding: var(--size-6);
|
67
|
+
}
|
68
|
+
|
65
69
|
.sheet__close {
|
66
70
|
inset-block-start: var(--size-4);
|
67
71
|
inset-inline-end: var(--size-4);
|
@@ -1,7 +1,7 @@
|
|
1
1
|
:root {
|
2
2
|
/* Abstractions */
|
3
3
|
--color-bg: white;
|
4
|
-
--color-text:
|
4
|
+
--color-text: var(--zinc-950);
|
5
5
|
--color-text-reversed: white;
|
6
6
|
--color-text-subtle: var(--zinc-500);
|
7
7
|
--color-link: var(--blue-700);
|
@@ -18,17 +18,17 @@
|
|
18
18
|
--color-positive: var(--green-600);
|
19
19
|
|
20
20
|
/* SVG color values */
|
21
|
-
--color-filter-text: invert(
|
21
|
+
--color-filter-text: invert(2%) sepia(3%) saturate(3904%) hue-rotate(201deg) brightness(98%) contrast(97%);
|
22
22
|
--color-filter-text-reversed: invert(100%);
|
23
|
-
--color-filter-text-subtle: invert(
|
24
|
-
--color-filter-negative: invert(
|
25
|
-
--color-filter-positive: invert(
|
23
|
+
--color-filter-text-subtle: invert(46%) sepia(8%) saturate(371%) hue-rotate(202deg) brightness(93%) contrast(85%);
|
24
|
+
--color-filter-negative: invert(22%) sepia(85%) saturate(1790%) hue-rotate(339deg) brightness(105%) contrast(108%);
|
25
|
+
--color-filter-positive: invert(44%) sepia(89%) saturate(409%) hue-rotate(89deg) brightness(94%) contrast(97%);
|
26
26
|
|
27
27
|
@media (prefers-color-scheme: dark) {
|
28
28
|
/* Abstractions */
|
29
29
|
--color-bg: var(--zinc-950);
|
30
30
|
--color-text: white;
|
31
|
-
--color-text-reversed:
|
31
|
+
--color-text-reversed: var(--zinc-950);
|
32
32
|
--color-text-subtle: var(--zinc-400);
|
33
33
|
--color-link: var(--sky-400);
|
34
34
|
--color-border-light: var(--zinc-800);
|
@@ -45,10 +45,10 @@
|
|
45
45
|
|
46
46
|
/* SVG color values */
|
47
47
|
--color-filter-text: invert(100%);
|
48
|
-
--color-filter-text-reversed: invert(
|
49
|
-
--color-filter-text-subtle: invert(
|
50
|
-
--color-filter-negative: invert(
|
51
|
-
--color-filter-positive: invert(
|
48
|
+
--color-filter-text-reversed: invert(2%) sepia(3%) saturate(3904%) hue-rotate(201deg) brightness(98%) contrast(97%);
|
49
|
+
--color-filter-text-subtle: invert(76%) sepia(8%) saturate(230%) hue-rotate(201deg) brightness(84%) contrast(87%);
|
50
|
+
--color-filter-negative: invert(16%) sepia(62%) saturate(2100%) hue-rotate(337deg) brightness(92%) contrast(100%);
|
51
|
+
--color-filter-positive: invert(21%) sepia(62%) saturate(549%) hue-rotate(91deg) brightness(101%) contrast(91%);
|
52
52
|
}
|
53
53
|
}
|
54
54
|
|
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.35
|
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-
|
11
|
+
date: 2024-09-10 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description:
|
14
14
|
email: lazaronixon@hotmail.com
|
@@ -29,8 +29,6 @@ files:
|
|
29
29
|
- app/assets/stylesheets/transition.css
|
30
30
|
- app/assets/stylesheets/typography.css
|
31
31
|
- app/assets/stylesheets/zutilities.css
|
32
|
-
- app/helpers/dialog_helper.rb
|
33
|
-
- app/helpers/tabs_helper.rb
|
34
32
|
- lib/css-zero.rb
|
35
33
|
- lib/css_zero/engine.rb
|
36
34
|
- lib/css_zero/version.rb
|
@@ -45,6 +43,7 @@ files:
|
|
45
43
|
- lib/generators/css_zero/add/templates/app/assets/images/circle-alert.svg
|
46
44
|
- lib/generators/css_zero/add/templates/app/assets/images/ellipsis.svg
|
47
45
|
- lib/generators/css_zero/add/templates/app/assets/images/loader-circle.svg
|
46
|
+
- lib/generators/css_zero/add/templates/app/assets/images/menu.svg
|
48
47
|
- lib/generators/css_zero/add/templates/app/assets/images/select-arrow.svg
|
49
48
|
- lib/generators/css_zero/add/templates/app/assets/images/x.svg
|
50
49
|
- lib/generators/css_zero/add/templates/app/assets/stylesheets/accordion.css
|
data/app/helpers/tabs_helper.rb
DELETED
@@ -1,9 +0,0 @@
|
|
1
|
-
module TabsHelper
|
2
|
-
def tab_button(content = nil, id:, value:, **, &)
|
3
|
-
tag.button(content, id:, class: "btn", role: "tab", aria: { controls: value }, data: { tabs_target: "button", action: "tabs#select", value: }, **, &)
|
4
|
-
end
|
5
|
-
|
6
|
-
def tab_panel(id, labelled_by:, **, &)
|
7
|
-
tag.div(id:, role: "tabpanel", aria: { labelledby: labelled_by }, data: { tabs_target: "tab" }, **, &)
|
8
|
-
end
|
9
|
-
end
|