css-zero 0.0.79 → 0.0.80
Sign up to get free protection for your applications and to get access to all the features.
- 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/templates/app/assets/stylesheets/flash.css +1 -1
- data/lib/generators/css_zero/add/templates/app/assets/stylesheets/popover.css +4 -0
- 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 +8 -4
- metadata +2 -2
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
@@ -4,11 +4,11 @@ import { computePosition, flip, shift, offset, autoUpdate } from "https://cdn.sk
|
|
4
4
|
export default class extends Controller {
|
5
5
|
static targets = [ "button", "menu" ]
|
6
6
|
static values = { placement: { type: String, default: "bottom" } }
|
7
|
-
|
7
|
+
|
8
8
|
initialize() {
|
9
9
|
this.orient = this.orient.bind(this)
|
10
10
|
}
|
11
|
-
|
11
|
+
|
12
12
|
connect() {
|
13
13
|
this.cleanup = autoUpdate(this.buttonTarget, this.menuTarget, this.orient)
|
14
14
|
}
|
@@ -16,11 +16,15 @@ export default class extends Controller {
|
|
16
16
|
disconnect() {
|
17
17
|
this.cleanup()
|
18
18
|
}
|
19
|
-
|
19
|
+
|
20
20
|
show() {
|
21
21
|
this.menuTarget.showPopover()
|
22
22
|
}
|
23
23
|
|
24
|
+
showLater() {
|
25
|
+
setTimeout(() => this.show(), 700)
|
26
|
+
}
|
27
|
+
|
24
28
|
hide() {
|
25
29
|
this.menuTarget.hidePopover()
|
26
30
|
}
|
@@ -30,7 +34,7 @@ export default class extends Controller {
|
|
30
34
|
Object.assign(this.menuTarget.style, { insetInlineStart: `${x}px`, insetBlockStart: `${y}px` })
|
31
35
|
})
|
32
36
|
}
|
33
|
-
|
37
|
+
|
34
38
|
get #options() {
|
35
39
|
return { placement: this.placementValue, middleware: [offset(4), flip(), shift({padding: 4})] }
|
36
40
|
}
|
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
|