css-zero 0.0.63 → 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: 1dcad18cf8b767d6b04eeffa882dc11a58855ccfee8bc4bbfc5b0f53dee40ba5
4
- data.tar.gz: f508def8ee8def3ed3046af44ee40ed506b528d9d200c780a3d4f5581197e192
3
+ metadata.gz: 41b8902cee3601cc793967b7432e7ea57043e18d2da5e0ce94659b105556975b
4
+ data.tar.gz: acbf6878894b7a3769427df3e5a2676ce8a1cef5a675693f22af03a306b39dee
5
5
  SHA512:
6
- metadata.gz: 8aa4e8e29b184bcd7d9c131d0c8990abf0c95e72650e95638d97668682607162549dbad1232acf774470c5ee8908992f486004d1fd012ca19f344f813d834992
7
- data.tar.gz: 0f905749c2d50d27191ae171f6337859fa1217f4f1d8b2660cf7372b4c8228f4baa15b18a53d84a2a13455e078db2b047e8c35c4730faece0465d4aedf14820b
6
+ metadata.gz: 7c69c3257042bec1ddee550883b3c83e3237fa472ea5890b554eba281d98ac97754b33914135cf815c3b312fb451ec394076fff1582ed8d987e882a330353123
7
+ data.tar.gz: b4b699721b43d7d4a239a2fda982ee26251d9d7350a55bf7f98cefae448f6ec6fa39313f84e098b75c7e9e0c1b40b9c82724755908b3f481344d747dc31dc337
@@ -1,3 +1,3 @@
1
1
  module CssZero
2
- VERSION = "0.0.63"
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;
@@ -71,12 +71,13 @@
71
71
 
72
72
  code {
73
73
  padding: 0.1em 0.3em;
74
- white-space: pre-wrap;
75
74
  }
76
75
 
77
76
  pre {
78
77
  border-radius: 0.5em;
78
+ overflow-x: auto;
79
79
  padding: 0.5lh 2ch;
80
+ text-wrap: nowrap;
80
81
  }
81
82
 
82
83
  pre code {
@@ -121,12 +122,12 @@
121
122
  }
122
123
 
123
124
  del {
124
- background-color: hsl(from var(--color-negative) h s l / .1);
125
+ background-color: rgb(from var(--color-negative) r g b / .1);
125
126
  color: var(--color-negative);
126
127
  }
127
128
 
128
129
  ins {
129
- background-color: hsl(from var(--color-positive) h s l / .1);
130
+ background-color: rgb(from var(--color-positive) r g b / .1);
130
131
  color: var(--color-positive);
131
132
  }
132
133
 
@@ -135,4 +136,9 @@
135
136
  text-decoration: underline;
136
137
  text-decoration-skip-ink: auto;
137
138
  }
139
+
140
+ mark {
141
+ color: var(--color-text);
142
+ background-color: var(--color-highlight);
143
+ }
138
144
  }
@@ -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() {
@@ -10,6 +10,7 @@
10
10
  --color-border-dark: var(--zinc-400);
11
11
  --color-selected: var(--blue-100);
12
12
  --color-selected-dark: var(--blue-300);
13
+ --color-highlight: var(--yellow-200);
13
14
 
14
15
  /* Accent colors */
15
16
  --color-primary: var(--zinc-900);
@@ -35,18 +36,19 @@
35
36
  --color-border-dark: var(--zinc-600);
36
37
  --color-selected: var(--blue-950);
37
38
  --color-selected-dark: var(--blue-800);
39
+ --color-highlight: var(--yellow-800);
38
40
 
39
41
  /* Accent colors */
40
42
  --color-primary: var(--zinc-50);
41
43
  --color-secondary: var(--zinc-800);
42
- --color-negative: var(--red-400);
43
- --color-positive: var(--green-400);
44
+ --color-negative: var(--red-900);
45
+ --color-positive: var(--green-900);
44
46
 
45
47
  /* SVG color values */
46
48
  --color-filter-text: invert(1);
47
49
  --color-filter-text-reversed: invert(0);
48
- --color-filter-negative: invert(54%) sepia(16%) saturate(2119%) hue-rotate(313deg) brightness(111%) contrast(94%);
49
- --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%);
50
52
  }
51
53
  }
52
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.63
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-15 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
@@ -120,18 +120,18 @@ files:
120
120
  - lib/generators/css_zero/authentication/templates/app/views/passwords/edit.html.erb.tt
121
121
  - lib/generators/css_zero/authentication/templates/app/views/passwords/new.html.erb.tt
122
122
  - lib/generators/css_zero/authentication/templates/app/views/sessions/new.html.erb.tt
123
+ - lib/generators/css_zero/controller/controller_generator.rb
124
+ - lib/generators/css_zero/controller/templates/view.html.erb.tt
123
125
  - lib/generators/css_zero/install/USAGE
124
126
  - lib/generators/css_zero/install/install_generator.rb
125
127
  - lib/generators/css_zero/install/templates/app/assets/stylesheets/application.css
126
128
  - lib/generators/css_zero/install/templates/app/assets/stylesheets/base.css
127
129
  - lib/generators/css_zero/install/templates/app/views/layouts/application.html.erb
128
- - lib/generators/css_zero/scaffold/controller/controller_generator.rb
129
- - lib/generators/css_zero/scaffold/controller/templates/view.html.erb.tt
130
- - lib/generators/css_zero/scaffold/mailer/mailer_generator.rb
131
- - lib/generators/css_zero/scaffold/mailer/templates/layout.html.erb.tt
132
- - lib/generators/css_zero/scaffold/mailer/templates/layout.text.erb.tt
133
- - lib/generators/css_zero/scaffold/mailer/templates/view.html.erb.tt
134
- - lib/generators/css_zero/scaffold/mailer/templates/view.text.erb.tt
130
+ - lib/generators/css_zero/mailer/mailer_generator.rb
131
+ - lib/generators/css_zero/mailer/templates/layout.html.erb.tt
132
+ - lib/generators/css_zero/mailer/templates/layout.text.erb.tt
133
+ - lib/generators/css_zero/mailer/templates/view.html.erb.tt
134
+ - lib/generators/css_zero/mailer/templates/view.text.erb.tt
135
135
  - lib/generators/css_zero/scaffold/scaffold_generator.rb
136
136
  - lib/generators/css_zero/scaffold/templates/_form.html.erb.tt
137
137
  - lib/generators/css_zero/scaffold/templates/edit.html.erb.tt