css-zero 0.0.88 → 0.0.90

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: 6f20c3843535ad4d32cab0c21e7811348fb80b10912bbcbe473529087025c992
4
- data.tar.gz: 313245a13b9bcbb3be95d251aa9e9abed429193dba4e34973a49d58b45fd8c20
3
+ metadata.gz: b44ee5e7f531ea6761accf968ed464f3766ae14359863a9709668751d7edb340
4
+ data.tar.gz: f7fe90b26adc996d5021630c42fdc51125c73295f00c4e1ea013e96576396d51
5
5
  SHA512:
6
- metadata.gz: b2feb534627b74ef9179992852b27f92c051d27215dd715d0c4bccd5292a1b1c3a13374e365fc834d9ad8b038fa8545a5a2532aa8aae9a3ebfef7322ea014576
7
- data.tar.gz: 621c3f0c6988b6336afe125eab72198d97a1d7911b2174e190b51cdcf5de763a400074857f877447f7e28d15f8ab7a6906c9e799ffa684ab5033ba6b2b762101
6
+ metadata.gz: 2a6b206ffbfef92cb16383dde1e66954dcb9f7764dc9c8915d11c60f7e4a122d82212cd2efde6f7b2abf56cbcc526fc9ba1bd4cfffef2bb826017d8b76101335
7
+ data.tar.gz: 589955584927999aab31a94e6796908dace0bc9326936f9d31c86e871cb07bf60b3d4e359898b86a27555b0cb0ce6e4daecbe679a83d1207563931da5ead8372
@@ -355,6 +355,14 @@ input:where([type='button'], [type='reset'], [type='submit']),
355
355
  block-size: auto;
356
356
  }
357
357
 
358
+ /*
359
+ Correct the arrow style of datalist in Chrome.
360
+ */
361
+
362
+ ::-webkit-calendar-picker-indicator {
363
+ line-height: 1em;
364
+ }
365
+
358
366
  /*
359
367
  Enables size interpolation to allow animation.
360
368
  */
@@ -26,7 +26,7 @@
26
26
  .self-center { align-self: center; }
27
27
 
28
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; }
29
+ .gap-half { column-gap: 0.5rem; row-gap: 0.5rem; }
30
30
 
31
31
  /****************************************************************
32
32
  * Text
@@ -1,3 +1,3 @@
1
1
  module CssZero
2
- VERSION = "0.0.88"
2
+ VERSION = "0.0.90"
3
3
  end
@@ -1,12 +1,13 @@
1
1
  :where(.accordion) {
2
2
  details {
3
3
  border-block-end-width: var(--border);
4
+ font-size: var(--text-sm);
4
5
  overflow: hidden;
5
6
 
6
7
  &::details-content {
7
8
  block-size: 0;
8
9
  transition-behavior: allow-discrete;
9
- transition-duration: var(--time-150);
10
+ transition-duration: var(--time-200);
10
11
  transition-property: content-visibility block-size;
11
12
  }
12
13
 
@@ -3,8 +3,9 @@
3
3
  border-radius: var(--rounded-lg);
4
4
  border-width: var(--border);
5
5
  color: var(--alert-color, var(--color-text));
6
- padding: var(--size-4);
6
+ font-size: var(--text-sm);
7
7
  inline-size: var(--size-full);
8
+ padding: var(--size-4);
8
9
 
9
10
  img {
10
11
  filter: var(--alert-icon-color, var(--color-filter-text));
@@ -1,7 +1,8 @@
1
1
  .badge {
2
2
  background-color: var(--badge-background, var(--color-bg));
3
- border-radius: var(--rounded-full);
3
+ border-radius: var(--rounded-md);
4
4
  border: 1px solid var(--badge-border-color, var(--color-border));
5
+ box-shadow: var(--badge-box-shadow, none);
5
6
  color: var(--badge-color, var(--color-text));
6
7
  display: inline-flex;
7
8
  font-size: var(--text-xs);
@@ -12,23 +13,27 @@
12
13
  .badge--primary {
13
14
  --badge-background: var(--color-primary);
14
15
  --badge-border-color: transparent;
16
+ --badge-box-shadow: var(--shadow);
15
17
  --badge-color: var(--color-text-reversed);
16
18
  }
17
19
 
18
20
  .badge--secondary {
19
21
  --badge-background: var(--color-secondary);
20
22
  --badge-border-color: transparent;
23
+ --badge-box-shadow: none;
21
24
  --badge-color: var(--color-text);
22
25
  }
23
26
 
24
27
  .badge--positive {
25
28
  --badge-background: var(--color-positive);
26
29
  --badge-border-color: transparent;
30
+ --badge-box-shadow: var(--shadow);
27
31
  --badge-color: white;
28
32
  }
29
33
 
30
34
  .badge--negative {
31
35
  --badge-background: var(--color-negative);
32
36
  --badge-border-color: transparent;
37
+ --badge-box-shadow: var(--shadow);
33
38
  --badge-color: white;
34
39
  }
@@ -5,6 +5,7 @@
5
5
  background-color: var(--btn-background);
6
6
  border-radius: var(--btn-radius, var(--rounded-md));
7
7
  border: 1px solid var(--btn-border-color, var(--color-border));
8
+ box-shadow: var(--btn-box-shadow, var(--shadow-sm));
8
9
  color: var(--btn-color, var(--color-text));
9
10
  cursor: pointer;
10
11
  display: inline-flex;
@@ -13,7 +14,7 @@
13
14
  gap: var(--size-2);
14
15
  inline-size: var(--btn-inline-size, auto);
15
16
  justify-content: var(--btn-justify-content, center);
16
- padding: var(--btn-padding, 0.5rem 1rem);
17
+ padding: var(--btn-padding, 0.375rem 1rem);
17
18
  text-align: center;
18
19
  white-space: nowrap;
19
20
 
@@ -50,6 +51,7 @@
50
51
 
51
52
  .btn--borderless {
52
53
  --btn-border-color: transparent;
54
+ --btn-box-shadow: none;
53
55
  }
54
56
 
55
57
  .btn--positive {
@@ -71,6 +73,7 @@
71
73
  --btn-border-color: transparent;
72
74
  --btn-hover-color: transparent;
73
75
  --btn-padding: 0;
76
+ --btn-box-shadow: none;
74
77
  }
75
78
 
76
79
  .btn--icon {
@@ -91,9 +94,9 @@
91
94
  animation: spin 1s linear infinite;
92
95
  background-image: url("loader-circle.svg");
93
96
  background-size: cover;
94
- block-size: var(--size-4);
97
+ block-size: var(--size-5);
95
98
  content: "";
96
- inline-size: var(--size-4);
99
+ inline-size: var(--size-5);
97
100
  position: absolute;
98
101
  }
99
102
  }
@@ -1,7 +1,7 @@
1
1
  .card {
2
2
  background-color: var(--color-bg);
3
- border-radius: var(--rounded-lg);
3
+ border-radius: var(--rounded-xl);
4
4
  border-width: var(--border);
5
5
  padding: var(--size-6);
6
- box-shadow: var(--shadow-sm);
6
+ box-shadow: var(--shadow);
7
7
  }
@@ -10,7 +10,7 @@
10
10
  --input-background: transparent;
11
11
  --input-border-color: transparent;
12
12
  --input-outline-size: 0;
13
- --input-padding: 0.75rem 1rem;
13
+ --input-padding: var(--size-2_5);
14
14
  }
15
15
 
16
16
  .command__list {
@@ -44,11 +44,12 @@
44
44
 
45
45
  .command__item {
46
46
  --btn-border-color: transparent;
47
+ --btn-box-shadow: none;
47
48
  --btn-font-weight: var(--font-normal);
48
49
  --btn-hover-color: var(--color-secondary);
49
50
  --btn-justify-content: start;
50
51
  --btn-outline-size: 0;
51
- --btn-padding: var(--size-1_5) var(--size-2);
52
+ --btn-padding: 0.375rem 0.5rem;
52
53
 
53
54
  &[aria-selected=true] {
54
55
  --btn-background: var(--color-secondary);
@@ -16,13 +16,13 @@
16
16
  opacity: 0;
17
17
  transform: var(--scale-95);
18
18
  transition-behavior: allow-discrete;
19
- transition-duration: var(--time-150);
19
+ transition-duration: var(--time-200);
20
20
  transition-property: display, overlay, opacity, transform;
21
21
 
22
22
  &::backdrop {
23
23
  opacity: 0;
24
24
  transition-behavior: allow-discrete;
25
- transition-duration: var(--time-150);
25
+ transition-duration: var(--time-200);
26
26
  transition-property: display, overlay, opacity;
27
27
  }
28
28
 
@@ -3,10 +3,11 @@
3
3
  background-color: var(--input-background, var(--color-bg));
4
4
  border: 1px solid var(--input-border-color, var(--color-border));
5
5
  border-radius: var(--input-radius, var(--rounded-md));
6
+ box-shadow: var(--input-box-shadow, var(--shadow-sm));
6
7
  font-size: var(--input-font-size, var(--text-sm));
7
8
  inline-size: var(--input-inline-size, var(--size-full));
8
- min-block-size: var(--input-block-size, var(--size-10));
9
- padding: var(--input-padding, 0.5rem 0.75rem);
9
+ min-block-size: var(--input-block-size, var(--size-9));
10
+ padding: var(--input-padding, 0.375rem 0.75rem);
10
11
 
11
12
  option {
12
13
  padding-block: 2px;
@@ -22,11 +22,12 @@
22
22
 
23
23
  .menu__item {
24
24
  --btn-border-color: transparent;
25
+ --btn-box-shadow: none;
25
26
  --btn-font-weight: var(--font-normal);
26
27
  --btn-hover-color: var(--color-secondary);
27
28
  --btn-justify-content: start;
28
29
  --btn-outline-size: 0;
29
- --btn-padding: var(--size-1_5) var(--size-2);
30
+ --btn-padding: 0.375rem 0.5rem;
30
31
 
31
32
  &:focus-visible {
32
33
  --btn-background: var(--color-secondary);
@@ -20,7 +20,7 @@
20
20
  }
21
21
 
22
22
  th, td {
23
- padding: var(--size-4);
23
+ padding: var(--size-2);
24
24
  }
25
25
 
26
26
  tfoot {
@@ -1,6 +1,6 @@
1
1
  .tabs__list {
2
2
  background-color: var(--color-border-light);
3
- block-size: var(--size-10);
3
+ block-size: var(--size-9);
4
4
  border-radius: var(--rounded-md);
5
5
  color: var(--color-text-subtle);
6
6
  display: inline-flex;
@@ -11,6 +11,7 @@
11
11
  .btn--tab {
12
12
  --btn-background: transparent;
13
13
  --btn-border-color: transparent;
14
+ --btn-box-shadow: none;
14
15
  --btn-hover-color: transparent;
15
16
  --btn-inline-size: var(--size-full);
16
17
 
@@ -25,6 +25,26 @@
25
25
  font-size: var(--text-sm);
26
26
  line-height: inherit;
27
27
 
28
+ /* Setup animation */
29
+ opacity: 0;
30
+ transform: var(--scale-95);
31
+ transition-behavior: allow-discrete;
32
+ transition-duration: var(--time-150);
33
+ transition-property: display, opacity, transform;
34
+
35
+ /* In animation */
36
+ .dropdown-active & {
37
+ opacity: 1;
38
+ transform: var(--scale-100);
39
+ }
40
+
41
+ /* Out animation */
42
+ @starting-style {
43
+ .dropdown-active & {
44
+ opacity: 0; transform: var(--scale-95);
45
+ }
46
+ }
47
+
28
48
  .ts-dropdown-content:not(:has(.optgroup)) {
29
49
  padding: var(--size-1);
30
50
  }
@@ -1,6 +1,6 @@
1
1
  import { Controller } from "@hotwired/stimulus"
2
2
  import { get } from "https://esm.sh/@rails/request.js@0.0.11?standalone"
3
- import TomSelect from "https://esm.sh/tom-select@2.4.1?standalone"
3
+ import TomSelect from "https://esm.sh/tom-select@2.4.1/base?standalone"
4
4
 
5
5
  export default class extends Controller {
6
6
  static values = { url: String, optionCreate: { type: String, default: "Add" }, noResults: { type: String, default: "No results found" } }
@@ -1,50 +1,12 @@
1
1
  import { Controller } from "@hotwired/stimulus"
2
- import Inputmask from "https://esm.sh/inputmask@5.0.9?standalone"
2
+ import { MaskInput } from "https://esm.sh/maska@3.0.4?standalone"
3
3
 
4
4
  export default class extends Controller {
5
- static values = {
6
- mask: String,
7
- alias: String,
8
- groupSeparator: { type: String, default: "" },
9
- radixPoint: { type: String, default: "." },
10
- digits: { type: String, default: "*" },
11
- digitsOptional: { type: Boolean, default: true },
12
- inputFormat: { type: String, default: "mm/dd/yyyy HH:MM" },
13
- outputFormat: { type: String, default: "yyyy-mm-dd HH:MM" }
14
- }
15
-
16
5
  connect() {
17
- if (this.hasMaskValue) {
18
- Inputmask({ mask: this.maskValue }).mask(this.element)
19
- } else if (this.aliasValue == "numeric") {
20
- Inputmask(this.#numericOptions).mask(this.element)
21
- } else if (this.aliasValue == "datetime") {
22
- Inputmask(this.#datetimeOptions).mask(this.element)
23
- }
6
+ this.mask = new MaskInput(this.element)
24
7
  }
25
8
 
26
9
  disconnect() {
27
- Inputmask.remove(this.element)
28
- }
29
-
30
- get #numericOptions() {
31
- return {
32
- alias: "numeric",
33
- unmaskAsNumber: true,
34
- removeMaskOnSubmit: true,
35
- groupSeparator: this.groupSeparatorValue,
36
- radixPoint: this.radixPointValue,
37
- digits: this.digitsValue,
38
- digitsOptional: this.digitsOptionalValue
39
- }
40
- }
41
-
42
- get #datetimeOptions() {
43
- return {
44
- alias: "datetime",
45
- removeMaskOnSubmit: true,
46
- inputFormat: this.inputFormatValue,
47
- outputFormat: this.outputFormatValue
48
- }
10
+ this.mask.destroy()
49
11
  }
50
12
  }
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.88
4
+ version: 0.0.90
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: 2025-01-13 00:00:00.000000000 Z
11
+ date: 2025-01-16 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description:
14
14
  email: lazaronixon@hotmail.com