css-zero 0.0.78 → 0.0.80
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/app/assets/stylesheets/typography.css +11 -11
- data/app/assets/stylesheets/zutilities.css +8 -9
- 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 +0 -3
- data/lib/generators/css_zero/add/templates/app/assets/stylesheets/flash.css +1 -1
- data/lib/generators/css_zero/add/templates/app/assets/stylesheets/popover.css +4 -15
- data/lib/generators/css_zero/add/templates/app/assets/stylesheets/prose.css +1 -1
- data/lib/generators/css_zero/add/templates/app/javascript/controllers/popover_controller.js +20 -22
- metadata +2 -4
- data/lib/generators/css_zero/add/templates/app/assets/stylesheets/tooltip.css +0 -22
- data/lib/generators/css_zero/add/templates/app/javascript/controllers/tooltip_controller.js +0 -14
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 939623fb9dfcef5e62afc3e4c8ea35d314f0bf937f97944f4e984da2b0257663
|
4
|
+
data.tar.gz: 66f42ef150d2776137a2b619b58f40a6a329f11a05d7f359e17e86c2a81143c8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 02ea531d3efd3da9f0f0ea5cdcae7ecc1f254cad139ca403564a274103dd8e24bf677b3a4d1204a8e568d2bc016daeac7ad6138ccc84301e0b95bbafd2ba028a
|
7
|
+
data.tar.gz: ff7554c720d0438cedcd3af153b3cd2d10a3fda47b30b08a4f73334efbd863a60d8f21bd15225e4bc6ef8b10dd383583e8df668ddcf9225769c8092f4b81d77d
|
@@ -18,17 +18,17 @@
|
|
18
18
|
--text-8xl: 6rem; /* 96px */
|
19
19
|
--text-9xl: 8rem; /* 128px */
|
20
20
|
|
21
|
-
--text-xs
|
22
|
-
--text-sm
|
23
|
-
--text-base
|
24
|
-
--text-lg
|
25
|
-
--text-xl
|
26
|
-
--text-2xl
|
27
|
-
--text-3xl
|
28
|
-
--text-4xl
|
29
|
-
--text-5xl
|
30
|
-
--text-6xl
|
31
|
-
--text-7xl
|
21
|
+
--text-fluid-xs: clamp(0.75rem, 0.64rem + 0.57vw, 1rem); /* 12px..16px */
|
22
|
+
--text-fluid-sm: clamp(0.875rem, 0.761rem + 0.568vw, 1.125rem); /* 14px..18px */
|
23
|
+
--text-fluid-base: clamp(1rem, 0.89rem + 0.57vw, 1.25rem); /* 16px..20px */
|
24
|
+
--text-fluid-lg: clamp(1.125rem, 0.955rem + 0.852vw, 1.5rem); /* 18px..24px */
|
25
|
+
--text-fluid-xl: clamp(1.25rem, 0.966rem + 1.42vw, 1.875rem); /* 20px..30px */
|
26
|
+
--text-fluid-2xl: clamp(1.5rem, 1.16rem + 1.7vw, 2.25rem); /* 24px..36px */
|
27
|
+
--text-fluid-3xl: clamp(1.875rem, 1.364rem + 2.557vw, 3rem); /* 30px..48px */
|
28
|
+
--text-fluid-4xl: clamp(2.25rem, 1.57rem + 3.41vw, 3.75rem); /* 36px..60px */
|
29
|
+
--text-fluid-5xl: clamp(3rem, 2.32rem + 3.41vw, 4.5rem); /* 48px..72px */
|
30
|
+
--text-fluid-6xl: clamp(3.75rem, 2.73rem + 5.11vw, 6rem); /* 60px..96px */
|
31
|
+
--text-fluid-7xl: clamp(4.5rem, 2.91rem + 7.95vw, 8rem); /* 72px..128px */
|
32
32
|
|
33
33
|
/****************************************************************
|
34
34
|
* Font Weight
|
@@ -77,15 +77,14 @@
|
|
77
77
|
.text-3xl { font-size: var(--text-3xl); }
|
78
78
|
.text-4xl { font-size: var(--text-4xl); }
|
79
79
|
.text-5xl { font-size: var(--text-5xl); }
|
80
|
-
|
81
|
-
.text-
|
82
|
-
.text-
|
83
|
-
.text-
|
84
|
-
|
85
|
-
.text-
|
86
|
-
.text-
|
87
|
-
.text-
|
88
|
-
.text-xl--responsive { font-size: var(--text-xl-responsive); }
|
80
|
+
|
81
|
+
.text-fluid-xs { font-size: var(--text-fluid-xs); }
|
82
|
+
.text-fluid-sm { font-size: var(--text-fluid-sm); }
|
83
|
+
.text-fluid-base { font-size: var(--text-fluid-base); }
|
84
|
+
.text-fluid-lg { font-size: var(--text-fluid-lg); }
|
85
|
+
.text-fluid-xl { font-size: var(--text-fluid-xl); }
|
86
|
+
.text-fluid-2xl { font-size: var(--text-fluid-2xl); }
|
87
|
+
.text-fluid-3xl { font-size: var(--text-fluid-3xl); }
|
89
88
|
|
90
89
|
/****************************************************************
|
91
90
|
* Background
|
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 autoanimate autosave avatar badge breadcrumb button card carousel chart check_all combobox command collapsible datepicker dialog dropdown flash form fullscreen group hotkey input input_concerns inputmask layouts lightbox local_time navigation pagination progress prose sheet skeleton sortable switch table tabs
|
5
|
+
accordion alert autoanimate autosave avatar badge breadcrumb button card carousel chart check_all combobox command collapsible datepicker dialog dropdown flash form fullscreen group hotkey input input_concerns inputmask layouts lightbox local_time navigation pagination progress prose sheet skeleton sortable switch table tabs trix upload_preview toggle web_share
|
6
6
|
|
7
7
|
Example:
|
8
8
|
bin/rails generate css_zero:add [components...]
|
@@ -120,9 +120,6 @@ table:
|
|
120
120
|
tabs:
|
121
121
|
- app/assets/stylesheets/tabs.css
|
122
122
|
- app/javascript/controllers/tabs_controller.js
|
123
|
-
tooltip:
|
124
|
-
- app/assets/stylesheets/tooltip.css
|
125
|
-
- app/javascript/controllers/tooltip_controller.js
|
126
123
|
trix:
|
127
124
|
- app/assets/stylesheets/ztrix.css
|
128
125
|
upload_preview:
|
@@ -4,10 +4,7 @@
|
|
4
4
|
border-width: var(--border);
|
5
5
|
box-shadow: var(--shadow-md);
|
6
6
|
color: var(--color-text);
|
7
|
-
margin-block: var(--size-1);
|
8
7
|
inline-size: var(--popover-size, max-content);
|
9
|
-
inset-inline-start: var(--popover-position, 0);
|
10
|
-
z-index: 1;
|
11
8
|
|
12
9
|
/* Setup animation */
|
13
10
|
opacity: 0;
|
@@ -17,26 +14,18 @@
|
|
17
14
|
transition-property: display, overlay, opacity, transform;
|
18
15
|
|
19
16
|
/* In animation */
|
20
|
-
|
17
|
+
&:popover-open {
|
21
18
|
opacity: 1; transform: var(--scale-100);
|
22
19
|
}
|
23
20
|
|
24
21
|
/* Out animation */
|
25
22
|
@starting-style {
|
26
|
-
|
23
|
+
&:popover-open {
|
27
24
|
opacity: 0; transform: var(--scale-95);
|
28
25
|
}
|
29
26
|
}
|
30
27
|
}
|
31
28
|
|
32
|
-
.popover--
|
33
|
-
|
34
|
-
}
|
35
|
-
|
36
|
-
.popover--start {
|
37
|
-
--popover-position: 0;
|
38
|
-
}
|
39
|
-
|
40
|
-
.popover--end {
|
41
|
-
--popover-position: auto;
|
29
|
+
.popover--tooltip {
|
30
|
+
font-size: var(--text-sm); padding: var(--size-1_5) var(--size-3);
|
42
31
|
}
|
@@ -1,43 +1,41 @@
|
|
1
1
|
import { Controller } from "@hotwired/stimulus"
|
2
|
-
|
3
|
-
const BOTTOM_THRESHOLD = 0
|
2
|
+
import { computePosition, flip, shift, offset, autoUpdate } from "https://cdn.skypack.dev/@floating-ui/dom@1.6.12?min"
|
4
3
|
|
5
4
|
export default class extends Controller {
|
6
5
|
static targets = [ "button", "menu" ]
|
7
|
-
static
|
6
|
+
static values = { placement: { type: String, default: "bottom" } }
|
8
7
|
|
9
|
-
|
10
|
-
this.
|
11
|
-
this.#updateExpanded()
|
12
|
-
this.#orient()
|
8
|
+
initialize() {
|
9
|
+
this.orient = this.orient.bind(this)
|
13
10
|
}
|
14
11
|
|
15
|
-
|
16
|
-
this.menuTarget.
|
17
|
-
this.#updateExpanded()
|
12
|
+
connect() {
|
13
|
+
this.cleanup = autoUpdate(this.buttonTarget, this.menuTarget, this.orient)
|
18
14
|
}
|
19
15
|
|
20
|
-
|
21
|
-
this.
|
16
|
+
disconnect() {
|
17
|
+
this.cleanup()
|
22
18
|
}
|
23
19
|
|
24
|
-
|
25
|
-
|
20
|
+
show() {
|
21
|
+
this.menuTarget.showPopover()
|
26
22
|
}
|
27
23
|
|
28
|
-
|
29
|
-
this.
|
24
|
+
showLater() {
|
25
|
+
setTimeout(() => this.show(), 700)
|
30
26
|
}
|
31
27
|
|
32
|
-
|
33
|
-
this.
|
28
|
+
hide() {
|
29
|
+
this.menuTarget.hidePopover()
|
34
30
|
}
|
35
31
|
|
36
|
-
|
37
|
-
|
32
|
+
orient() {
|
33
|
+
computePosition(this.buttonTarget, this.menuTarget, this.#options).then(({x, y}) => {
|
34
|
+
Object.assign(this.menuTarget.style, { insetInlineStart: `${x}px`, insetBlockStart: `${y}px` })
|
35
|
+
})
|
38
36
|
}
|
39
37
|
|
40
|
-
get #
|
41
|
-
return this.
|
38
|
+
get #options() {
|
39
|
+
return { placement: this.placementValue, middleware: [offset(4), flip(), shift({padding: 4})] }
|
42
40
|
}
|
43
41
|
}
|
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.80
|
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-
|
11
|
+
date: 2025-01-06 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description:
|
14
14
|
email: lazaronixon@hotmail.com
|
@@ -84,7 +84,6 @@ files:
|
|
84
84
|
- lib/generators/css_zero/add/templates/app/assets/stylesheets/tabs.css
|
85
85
|
- lib/generators/css_zero/add/templates/app/assets/stylesheets/toggle.css
|
86
86
|
- lib/generators/css_zero/add/templates/app/assets/stylesheets/tom-select.css
|
87
|
-
- lib/generators/css_zero/add/templates/app/assets/stylesheets/tooltip.css
|
88
87
|
- lib/generators/css_zero/add/templates/app/assets/stylesheets/zcombobox.css
|
89
88
|
- lib/generators/css_zero/add/templates/app/assets/stylesheets/zdatepicker.css
|
90
89
|
- lib/generators/css_zero/add/templates/app/assets/stylesheets/ztrix.css
|
@@ -115,7 +114,6 @@ files:
|
|
115
114
|
- lib/generators/css_zero/add/templates/app/javascript/controllers/revealable_input_controller.js
|
116
115
|
- lib/generators/css_zero/add/templates/app/javascript/controllers/sortable_controller.js
|
117
116
|
- lib/generators/css_zero/add/templates/app/javascript/controllers/tabs_controller.js
|
118
|
-
- lib/generators/css_zero/add/templates/app/javascript/controllers/tooltip_controller.js
|
119
117
|
- lib/generators/css_zero/add/templates/app/javascript/controllers/upload_preview_controller.js
|
120
118
|
- lib/generators/css_zero/add/templates/app/javascript/controllers/web_share_controller.js
|
121
119
|
- lib/generators/css_zero/authentication/authentication_generator.rb
|
@@ -1,22 +0,0 @@
|
|
1
|
-
.tippy-box {
|
2
|
-
background-color: var(--color-bg);
|
3
|
-
border: 1px solid var(--color-border);
|
4
|
-
border-radius: var(--rounded-md);
|
5
|
-
box-shadow: var(--shadow-md);
|
6
|
-
color: var(--color-text);
|
7
|
-
font-size: var(--text-sm);
|
8
|
-
line-height: var(--leading-normal);
|
9
|
-
transition-property: transform, visibility, opacity;
|
10
|
-
|
11
|
-
&[data-state=hidden] {
|
12
|
-
opacity: 0;
|
13
|
-
}
|
14
|
-
|
15
|
-
&[data-state=visible] {
|
16
|
-
transition-timing-function: var(--ease-in);
|
17
|
-
}
|
18
|
-
|
19
|
-
.tippy-content {
|
20
|
-
padding: var(--size-1_5) var(--size-3);
|
21
|
-
}
|
22
|
-
}
|
@@ -1,14 +0,0 @@
|
|
1
|
-
import { Controller } from "@hotwired/stimulus"
|
2
|
-
import tippy from "https://cdn.skypack.dev/tippy.js@6.3.7?min"
|
3
|
-
|
4
|
-
export default class extends Controller {
|
5
|
-
static values = { content: String }
|
6
|
-
|
7
|
-
connect() {
|
8
|
-
this.tooltip = tippy(this.element, { content: this.contentValue, arrow: false, interactive: true, delay: [700, 0], offset: [0, 3] })
|
9
|
-
}
|
10
|
-
|
11
|
-
disconnect() {
|
12
|
-
this.tooltip.destroy()
|
13
|
-
}
|
14
|
-
}
|