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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: b5483177d44d6ba1b3a5f033017ae681360166d6e1c2b4bdaf6a41d7373c46d9
4
- data.tar.gz: cb16ccb3d8ffff3f2a82ee73f204f1dd2f8d92a94d5be855968f805d118eaa19
3
+ metadata.gz: 8195f9b90919258a5ca6a46c93bb2d75cc6142e22f0040b021ae75067ccb1e98
4
+ data.tar.gz: d7bdfd732b027d74495b1924aa15e783c69ab497462981f309e2aa11c6f3803b
5
5
  SHA512:
6
- metadata.gz: b4e3ae5405e34810acb529b1defa6c4734d92e161aaad77a0acd2f7e62e0134302b99995104e8ba83653cfa46654ac8e4a7fefcc684570e25d123bc2cda94bb1
7
- data.tar.gz: d551b14fe407408d8b30844138169477b0b2e896409f4a611339d70be237b223473368ac5af35865b687980a73fef180aebd49a3a5d8894ed9a93e19e802c3cd
6
+ metadata.gz: 3c440da9a275a5967e1ef77f363408c60aaf3c79b50016f71d87eb0987b9a169c6cccadde923e4e4a92bc5fd3f6481c401bea1cc1eff8bc3970d112e65fb9411
7
+ data.tar.gz: a784b89273f04e43caed45ebc8a63eaa97879a3c66deb9a7778dc22a59836b5d3ad578c8c5b44250f8de041eade07c7b8ffb5052b0e2be93bdb42d913b3aa8f6
@@ -1,3 +1,3 @@
1
1
  module CssZero
2
- VERSION = "0.0.64"
2
+ VERSION = "0.0.66"
3
3
  end
@@ -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...]
@@ -3,6 +3,8 @@ accordion:
3
3
  - app/assets/images/chevron-down.svg
4
4
  alert:
5
5
  - app/assets/stylesheets/alert.css
6
+ autoanimate:
7
+ - app/javascript/controllers/autoanimate_controller.js
6
8
  autosave:
7
9
  - app/javascript/controllers/autosave_controller.js
8
10
  avatar:
@@ -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, var(--color-bg));
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
- --hover-color-from: var(--btn-background, var(--color-bg));
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: var(--color-text-reversed);
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: var(--color-text-reversed);
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: hsl(from var(--color-text) h s l / .65);
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: hsl(from var(--color-negative) h s l / .1);
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: hsl(from var(--color-positive) h s l / .1);
130
+ background-color: rgb(from var(--color-positive) r g b / .1);
131
131
  color: var(--color-positive);
132
132
  }
133
133
 
@@ -11,7 +11,7 @@
11
11
  }
12
12
 
13
13
  tr:hover {
14
- background-color: hsl(from var(--color-border-light) h s l / .5);
14
+ background-color: rgb(from var(--color-border-light) r g b / .5);
15
15
  }
16
16
 
17
17
  th {
@@ -0,0 +1,8 @@
1
+ import { Controller } from "@hotwired/stimulus"
2
+ import autoAnimate from "https://cdn.skypack.dev/@formkit/auto-animate@0.8.2"
3
+
4
+ export default class extends Controller {
5
+ connect() {
6
+ autoAnimate(this.element)
7
+ }
8
+ }
@@ -14,7 +14,7 @@ export default class extends Controller {
14
14
  }
15
15
 
16
16
  #submit({ item, newIndex, to }) {
17
- put(item.dataset.urlValue, { responseKind: "plain", query: { position: newIndex, parent_id: to.dataset.parentId } })
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-400);
45
- --color-positive: var(--green-400);
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(54%) sepia(16%) saturate(2119%) hue-rotate(313deg) brightness(111%) contrast(94%);
51
- --color-filter-positive: invert(81%) sepia(23%) saturate(1237%) hue-rotate(80deg) brightness(95%) contrast(83%);
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.64
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-17 00:00:00.000000000 Z
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