css-zero 0.0.64 → 0.0.65

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: 41b8902cee3601cc793967b7432e7ea57043e18d2da5e0ce94659b105556975b
4
+ data.tar.gz: acbf6878894b7a3769427df3e5a2676ce8a1cef5a675693f22af03a306b39dee
5
5
  SHA512:
6
- metadata.gz: b4e3ae5405e34810acb529b1defa6c4734d92e161aaad77a0acd2f7e62e0134302b99995104e8ba83653cfa46654ac8e4a7fefcc684570e25d123bc2cda94bb1
7
- data.tar.gz: d551b14fe407408d8b30844138169477b0b2e896409f4a611339d70be237b223473368ac5af35865b687980a73fef180aebd49a3a5d8894ed9a93e19e802c3cd
6
+ metadata.gz: 7c69c3257042bec1ddee550883b3c83e3237fa472ea5890b554eba281d98ac97754b33914135cf815c3b312fb451ec394076fff1582ed8d987e882a330353123
7
+ data.tar.gz: b4b699721b43d7d4a239a2fda982ee26251d9d7350a55bf7f98cefae448f6ec6fa39313f84e098b75c7e9e0c1b40b9c82724755908b3f481344d747dc31dc337
@@ -1,3 +1,3 @@
1
1
  module CssZero
2
- VERSION = "0.0.64"
2
+ VERSION = "0.0.65"
3
3
  end
@@ -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 {
@@ -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.65
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-22 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description:
14
14
  email: lazaronixon@hotmail.com