css-zero 0.0.64 → 0.0.66
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/USAGE +1 -1
- data/lib/generators/css_zero/add/resources.yml +2 -0
- data/lib/generators/css_zero/add/templates/app/assets/stylesheets/button.css +8 -6
- data/lib/generators/css_zero/add/templates/app/assets/stylesheets/flash.css +1 -1
- data/lib/generators/css_zero/add/templates/app/assets/stylesheets/prose.css +2 -2
- data/lib/generators/css_zero/add/templates/app/assets/stylesheets/table.css +1 -1
- data/lib/generators/css_zero/add/templates/app/javascript/controllers/autoanimate_controller.js +8 -0
- data/lib/generators/css_zero/add/templates/app/javascript/controllers/sortable_controller.js +1 -1
- data/lib/generators/css_zero/install/templates/app/assets/stylesheets/base.css +4 -4
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8195f9b90919258a5ca6a46c93bb2d75cc6142e22f0040b021ae75067ccb1e98
|
4
|
+
data.tar.gz: d7bdfd732b027d74495b1924aa15e783c69ab497462981f309e2aa11c6f3803b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3c440da9a275a5967e1ef77f363408c60aaf3c79b50016f71d87eb0987b9a169c6cccadde923e4e4a92bc5fd3f6481c401bea1cc1eff8bc3970d112e65fb9411
|
7
|
+
data.tar.gz: a784b89273f04e43caed45ebc8a63eaa97879a3c66deb9a7778dc22a59836b5d3ad578c8c5b44250f8de041eade07c7b8ffb5052b0e2be93bdb42d913b3aa8f6
|
data/lib/css_zero/version.rb
CHANGED
@@ -2,7 +2,7 @@ Description:
|
|
2
2
|
This will add components into your project.
|
3
3
|
|
4
4
|
Components:
|
5
|
-
accordion alert autosave avatar badge breadcrumb button card carousel chart check_all combobox command collapsible datepicker dialog dropdown flash form fullscreen hotkey input input_concerns inputmask layouts lightbox local_time navigation pagination progress prose sheet skeleton sortable switch table tabs tooltip trix upload_preview toggle web_share
|
5
|
+
accordion alert autoanimate autosave avatar badge breadcrumb button card carousel chart check_all combobox command collapsible datepicker dialog dropdown flash form fullscreen hotkey input input_concerns inputmask layouts lightbox local_time navigation pagination progress prose sheet skeleton sortable switch table tabs tooltip trix upload_preview toggle web_share
|
6
6
|
|
7
7
|
Example:
|
8
8
|
bin/rails generate css_zero:add [components...]
|
@@ -1,6 +1,10 @@
|
|
1
|
+
:root {
|
2
|
+
--btn-background: var(--color-bg);
|
3
|
+
}
|
4
|
+
|
1
5
|
.btn {
|
2
6
|
align-items: center;
|
3
|
-
background-color: var(--btn-background
|
7
|
+
background-color: var(--btn-background);
|
4
8
|
border-radius: var(--btn-radius, var(--rounded-md));
|
5
9
|
border: 1px solid var(--btn-border-color, var(--color-border));
|
6
10
|
color: var(--btn-color, var(--color-text));
|
@@ -20,9 +24,7 @@
|
|
20
24
|
}
|
21
25
|
|
22
26
|
&:hover {
|
23
|
-
|
24
|
-
--hover-color: oklch(from var(--hover-color-from) calc(l * .96) c h);
|
25
|
-
background-color: var(--btn-hover-color, var(--hover-color));
|
27
|
+
background-color: var(--btn-hover-color, oklch(from var(--btn-background) calc(l * .95) c h));
|
26
28
|
}
|
27
29
|
|
28
30
|
&:focus-visible {
|
@@ -55,14 +57,14 @@
|
|
55
57
|
.btn--positive {
|
56
58
|
--btn-background: var(--color-positive);
|
57
59
|
--btn-border-color: transparent;
|
58
|
-
--btn-color:
|
60
|
+
--btn-color: white;
|
59
61
|
--btn-icon-color: var(--color-filter-text-reversed);
|
60
62
|
}
|
61
63
|
|
62
64
|
.btn--negative {
|
63
65
|
--btn-background: var(--color-negative);
|
64
66
|
--btn-border-color: transparent;
|
65
|
-
--btn-color:
|
67
|
+
--btn-color: white;
|
66
68
|
--btn-icon-color: var(--color-filter-text-reversed);
|
67
69
|
}
|
68
70
|
|
@@ -2,7 +2,7 @@
|
|
2
2
|
align-items: center;
|
3
3
|
animation: appear-then-fade 4s 300ms both;
|
4
4
|
backdrop-filter: var(--blur) var(--contrast-75);
|
5
|
-
background-color:
|
5
|
+
background-color: rgb(from var(--color-text) r g b / .65);
|
6
6
|
border-radius: var(--rounded-full);
|
7
7
|
color: var(--color-text-reversed);
|
8
8
|
display: flex;
|
@@ -122,12 +122,12 @@
|
|
122
122
|
}
|
123
123
|
|
124
124
|
del {
|
125
|
-
background-color:
|
125
|
+
background-color: rgb(from var(--color-negative) r g b / .1);
|
126
126
|
color: var(--color-negative);
|
127
127
|
}
|
128
128
|
|
129
129
|
ins {
|
130
|
-
background-color:
|
130
|
+
background-color: rgb(from var(--color-positive) r g b / .1);
|
131
131
|
color: var(--color-positive);
|
132
132
|
}
|
133
133
|
|
data/lib/generators/css_zero/add/templates/app/javascript/controllers/sortable_controller.js
CHANGED
@@ -14,7 +14,7 @@ export default class extends Controller {
|
|
14
14
|
}
|
15
15
|
|
16
16
|
#submit({ item, newIndex, to }) {
|
17
|
-
put(item.dataset.urlValue, {
|
17
|
+
put(item.dataset.urlValue, { query: { position: newIndex, parent_id: to.dataset.parentId } })
|
18
18
|
}
|
19
19
|
|
20
20
|
get #options() {
|
@@ -41,14 +41,14 @@
|
|
41
41
|
/* Accent colors */
|
42
42
|
--color-primary: var(--zinc-50);
|
43
43
|
--color-secondary: var(--zinc-800);
|
44
|
-
--color-negative: var(--red-
|
45
|
-
--color-positive: var(--green-
|
44
|
+
--color-negative: var(--red-900);
|
45
|
+
--color-positive: var(--green-900);
|
46
46
|
|
47
47
|
/* SVG color values */
|
48
48
|
--color-filter-text: invert(1);
|
49
49
|
--color-filter-text-reversed: invert(0);
|
50
|
-
--color-filter-negative: invert(
|
51
|
-
--color-filter-positive: invert(
|
50
|
+
--color-filter-negative: invert(15%) sepia(65%) saturate(2067%) hue-rotate(339deg) brightness(102%) contrast(97%);
|
51
|
+
--color-filter-positive: invert(23%) sepia(62%) saturate(554%) hue-rotate(91deg) brightness(93%) 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.66
|
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-
|
11
|
+
date: 2024-11-23 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description:
|
14
14
|
email: lazaronixon@hotmail.com
|
@@ -86,6 +86,7 @@ files:
|
|
86
86
|
- lib/generators/css_zero/add/templates/app/assets/stylesheets/zcombobox.css
|
87
87
|
- lib/generators/css_zero/add/templates/app/assets/stylesheets/zdatepicker.css
|
88
88
|
- lib/generators/css_zero/add/templates/app/assets/stylesheets/ztrix.css
|
89
|
+
- lib/generators/css_zero/add/templates/app/javascript/controllers/autoanimate_controller.js
|
89
90
|
- lib/generators/css_zero/add/templates/app/javascript/controllers/autosave_controller.js
|
90
91
|
- lib/generators/css_zero/add/templates/app/javascript/controllers/autoselect_controller.js
|
91
92
|
- lib/generators/css_zero/add/templates/app/javascript/controllers/carousel_controller.js
|