css-zero 0.0.39 → 0.0.41
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/zutilities.css +6 -1
- data/lib/css_zero/version.rb +1 -1
- data/lib/generators/css_zero/add/resources.yml +1 -3
- data/lib/generators/css_zero/add/templates/app/assets/stylesheets/avatar.css +10 -6
- data/lib/generators/css_zero/add/templates/app/assets/stylesheets/breadcrumb.css +3 -3
- data/lib/generators/css_zero/add/templates/app/assets/stylesheets/button.css +1 -1
- data/lib/generators/css_zero/add/templates/app/assets/stylesheets/carousel.css +3 -2
- data/lib/generators/css_zero/add/templates/app/assets/stylesheets/command.css +14 -0
- data/lib/generators/css_zero/add/templates/app/assets/stylesheets/dialog.css +1 -0
- data/lib/generators/css_zero/add/templates/app/assets/stylesheets/flash.css +14 -2
- data/lib/generators/css_zero/add/templates/app/assets/stylesheets/layouts.css +38 -6
- data/lib/generators/css_zero/add/templates/app/assets/stylesheets/sheet.css +2 -3
- data/lib/generators/css_zero/add/templates/app/javascript/controllers/copyable_input_controller.js +1 -1
- data/lib/generators/css_zero/add/templates/app/javascript/controllers/tabs_controller.js +4 -4
- metadata +2 -4
- data/lib/generators/css_zero/add/templates/app/assets/images/maximize.svg +0 -1
- data/lib/generators/css_zero/add/templates/app/javascript/controllers/check_all_controller.js +0 -9
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1a6f169a735b32dc7a7d9c1e2f4796e4dbbfd7198f0aa3fcee5540e45d91f33e
|
4
|
+
data.tar.gz: b3b10a68322044a44c154275e2680356b2a633ed87de0e8860387c0333df30f7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: '08bd1158769b2a955b7a3c4508567e309ece4cb923b259b87a2963546c2f844603280e6cb16f772440b14a05de2d68ea1885e76833cac5391a401a852e341858'
|
7
|
+
data.tar.gz: ae28b4bab6aa03bccaa82693628e54094abe8dab787ed4a82814382a088e1fc505f922c182e0fbadc31dc5dee77be1b3c7b68e0f23d02b58e22134a966554612
|
@@ -319,7 +319,7 @@
|
|
319
319
|
.pie-10 { padding-inline-end: var(--size-10); }
|
320
320
|
|
321
321
|
/****************************************************************
|
322
|
-
* Hiding/Showing
|
322
|
+
* Hiding/Showing
|
323
323
|
*****************************************************************/
|
324
324
|
.show\@sm, .show\@md, .show\@lg { display: none; }
|
325
325
|
|
@@ -331,6 +331,11 @@
|
|
331
331
|
.hide\@md { @media (width >= 48rem) { display: none; } }
|
332
332
|
.hide\@lg { @media (width >= 64rem) { display: none; } }
|
333
333
|
|
334
|
+
.hide\@pwa { @media (display-mode: standalone) { display: none; } }
|
335
|
+
.hide\@browser { @media (display-mode: browser) { display: none; } }
|
336
|
+
|
337
|
+
.hide\@print { @media print { display: none; } }
|
338
|
+
|
334
339
|
/****************************************************************
|
335
340
|
* Accessibility
|
336
341
|
*****************************************************************/
|
data/lib/css_zero/version.rb
CHANGED
@@ -35,14 +35,13 @@ flash:
|
|
35
35
|
- app/javascript/controllers/element_removal_controller.js
|
36
36
|
fullscreen:
|
37
37
|
- app/javascript/controllers/fullscreen_controller.js
|
38
|
-
- app/assets/images/maximize.svg
|
39
38
|
hotkey:
|
40
39
|
- app/javascript/controllers/hotkey_controller.js
|
41
40
|
input:
|
42
41
|
- app/assets/stylesheets/input.css
|
43
42
|
- app/assets/images/select-arrow.svg
|
44
|
-
- app/javascript/controllers/check_all_controller.js
|
45
43
|
input_concerns:
|
44
|
+
- app/javascript/controllers/autoselect_controller.js
|
46
45
|
- app/javascript/controllers/copyable_input_controller.js
|
47
46
|
- app/assets/images/copy.svg
|
48
47
|
- app/assets/images/check.svg
|
@@ -51,7 +50,6 @@ input_concerns:
|
|
51
50
|
- app/javascript/controllers/revealable_input_controller.js
|
52
51
|
- app/assets/images/eye.svg
|
53
52
|
- app/assets/images/eye-off.svg
|
54
|
-
- app/javascript/controllers/autoselect_controller.js
|
55
53
|
layouts:
|
56
54
|
- app/assets/stylesheets/layouts.css
|
57
55
|
- app/assets/images/menu.svg
|
@@ -9,6 +9,16 @@
|
|
9
9
|
inline-size: var(--size);
|
10
10
|
overflow: hidden;
|
11
11
|
|
12
|
+
&:is(.btn) {
|
13
|
+
--btn-padding: 0;
|
14
|
+
--btn-icon-color: none;
|
15
|
+
--btn-radius: var(--radius);
|
16
|
+
}
|
17
|
+
|
18
|
+
&:is(.btn):hover {
|
19
|
+
filter: var(--brightness-90);
|
20
|
+
}
|
21
|
+
|
12
22
|
img {
|
13
23
|
aspect-ratio: var(--aspect-square);
|
14
24
|
block-size: var(--size-full);
|
@@ -28,9 +38,3 @@
|
|
28
38
|
user-select: none;
|
29
39
|
}
|
30
40
|
}
|
31
|
-
|
32
|
-
.btn--avatar {
|
33
|
-
--btn-padding: 0;
|
34
|
-
--btn-icon-color: none;
|
35
|
-
--btn-radius: var(--radius);
|
36
|
-
}
|
@@ -4,7 +4,7 @@
|
|
4
4
|
display: flex;
|
5
5
|
flex-wrap: wrap;
|
6
6
|
font-size: var(--text-sm);
|
7
|
-
gap: var(--size-
|
7
|
+
gap: var(--size-1);
|
8
8
|
overflow-wrap: break-word;
|
9
9
|
|
10
10
|
img {
|
@@ -15,7 +15,7 @@
|
|
15
15
|
color: var(--color-text);
|
16
16
|
}
|
17
17
|
|
18
|
-
@media (width
|
19
|
-
gap: var(--size-
|
18
|
+
@media (width >= 40rem) {
|
19
|
+
gap: var(--size-2);
|
20
20
|
}
|
21
21
|
}
|
@@ -10,9 +10,9 @@
|
|
10
10
|
font-weight: var(--btn-font-weight, var(--font-medium));
|
11
11
|
gap: var(--size-2);
|
12
12
|
justify-content: var(--btn-justify-content, center);
|
13
|
-
white-space: nowrap;
|
14
13
|
padding: var(--btn-padding, 0.5rem 1rem);
|
15
14
|
text-align: center;
|
15
|
+
white-space: nowrap;
|
16
16
|
|
17
17
|
img:not([class]) {
|
18
18
|
filter: var(--btn-icon-color, var(--color-filter-text));
|
@@ -1,13 +1,14 @@
|
|
1
1
|
.carousel__content {
|
2
2
|
display: flex;
|
3
3
|
gap: var(--size-6);
|
4
|
+
inline-size: var(--size-full);
|
4
5
|
overflow: hidden;
|
5
6
|
padding: var(--size-1);
|
6
7
|
scroll-snap-type: x mandatory;
|
7
8
|
|
8
9
|
> * {
|
9
|
-
flex: 0 0 100
|
10
|
+
flex: 0 0 var(--carousel-item-size, 100%);
|
10
11
|
scroll-snap-stop: always;
|
11
|
-
scroll-snap-align:
|
12
|
+
scroll-snap-align: start;
|
12
13
|
}
|
13
14
|
}
|
@@ -10,9 +10,11 @@
|
|
10
10
|
--input-background: transparent;
|
11
11
|
--input-border-color: transparent;
|
12
12
|
--input-outline-size: 0;
|
13
|
+
--input-padding: 0.75rem 1rem;
|
13
14
|
}
|
14
15
|
|
15
16
|
.command__list {
|
17
|
+
border-block-start-width: var(--border);
|
16
18
|
max-block-size: 300px;
|
17
19
|
overflow-y: auto;
|
18
20
|
}
|
@@ -30,6 +32,13 @@
|
|
30
32
|
padding: var(--size-1_5) var(--size-2);
|
31
33
|
}
|
32
34
|
|
35
|
+
.command__empty {
|
36
|
+
display: none;
|
37
|
+
font-size: var(--text-sm);
|
38
|
+
justify-content: center;
|
39
|
+
padding-block: var(--size-6);
|
40
|
+
}
|
41
|
+
|
33
42
|
.command__item {
|
34
43
|
--btn-border-color: transparent;
|
35
44
|
--btn-font-weight: var(--font-normal);
|
@@ -51,6 +60,11 @@
|
|
51
60
|
.command__list--filtering {
|
52
61
|
.command__group { display: none; }
|
53
62
|
.command__group:has(.selected) { display: flex; }
|
63
|
+
|
54
64
|
.command__item { display: none; }
|
55
65
|
.command__item:is(.selected) { display: flex; }
|
66
|
+
|
67
|
+
&:not(:has(.command__item.selected)) {
|
68
|
+
.command__empty { display: flex; }
|
69
|
+
}
|
56
70
|
}
|
@@ -1,13 +1,25 @@
|
|
1
1
|
.flash {
|
2
|
+
align-items: center;
|
2
3
|
animation: appear-then-fade 4s 300ms both;
|
3
4
|
background-color: var(--color-text);
|
4
5
|
border-radius: var(--rounded-full);
|
5
6
|
color: var(--color-text-reversed);
|
6
|
-
|
7
|
+
display: flex;
|
8
|
+
gap: var(--size-2);
|
9
|
+
line-height: var(--leading-none);
|
7
10
|
margin-inline: auto;
|
8
|
-
|
11
|
+
min-block-size: var(--size-11);
|
12
|
+
padding: var(--size-1) var(--size-4);
|
9
13
|
position: fixed;
|
10
14
|
text-align: center;
|
15
|
+
|
16
|
+
@media (width >= 40rem) {
|
17
|
+
font-size: var(--text-lg);
|
18
|
+
}
|
19
|
+
|
20
|
+
@media (width >= 64rem) {
|
21
|
+
font-size: var(--text-xl);
|
22
|
+
}
|
11
23
|
}
|
12
24
|
|
13
25
|
@keyframes appear-then-fade {
|
@@ -4,44 +4,76 @@
|
|
4
4
|
grid-template-columns: var(--sidebar-width, 0) 1fr;
|
5
5
|
grid-template-rows: auto 1fr;
|
6
6
|
min-block-size: 100dvh;
|
7
|
+
max-block-size: 100dvh;
|
7
8
|
|
8
9
|
@media (width >= 48rem) {
|
10
|
+
--sidebar-border-width: var(--border);
|
11
|
+
--sidebar-padding: var(--size-2);
|
9
12
|
--sidebar-width: 220px;
|
10
13
|
}
|
11
14
|
|
12
15
|
@media (width >= 64rem) {
|
16
|
+
--sidebar-border-width: var(--border);
|
17
|
+
--sidebar-padding: var(--size-4);
|
13
18
|
--sidebar-width: 280px;
|
14
19
|
}
|
15
20
|
}
|
16
21
|
|
17
|
-
.
|
22
|
+
.header-layout {
|
18
23
|
display: grid;
|
19
|
-
grid-template-
|
24
|
+
grid-template-areas: "header" "main";
|
25
|
+
grid-template-rows: auto 1fr;
|
20
26
|
min-block-size: 100dvh;
|
21
27
|
}
|
22
28
|
|
23
|
-
.
|
29
|
+
.centered-layout {
|
24
30
|
display: grid;
|
25
31
|
place-items: center;
|
26
32
|
min-block-size: 100dvh;
|
27
33
|
}
|
28
34
|
|
29
35
|
.container {
|
36
|
+
inline-size: 100%;
|
30
37
|
margin-inline: auto;
|
31
38
|
max-inline-size: var(--container-width, 64rem);
|
32
|
-
min-block-size: 100dvh;
|
33
39
|
}
|
34
40
|
|
35
|
-
/* Grid areas definition */
|
36
|
-
|
37
41
|
#header {
|
42
|
+
align-items: center;
|
43
|
+
background-color: var(--color-bg);
|
44
|
+
border-block-end-width: var(--border);
|
45
|
+
block-size: var(--size-16);
|
46
|
+
display: flex;
|
47
|
+
gap: var(--size-4);
|
38
48
|
grid-area: header;
|
49
|
+
inset-block-start: 0;
|
50
|
+
padding-inline: var(--size-4);
|
51
|
+
position: sticky;
|
52
|
+
|
53
|
+
@media (width >= 64rem) {
|
54
|
+
padding-inline: var(--size-6);
|
55
|
+
}
|
39
56
|
}
|
40
57
|
|
41
58
|
#sidebar {
|
59
|
+
border-inline-end-width: var(--sidebar-border-width, 0);
|
60
|
+
display: flex;
|
61
|
+
flex-direction: column;
|
42
62
|
grid-area: sidebar;
|
63
|
+
gap: var(--size-2);
|
64
|
+
overflow-x: hidden;
|
65
|
+
padding: var(--sidebar-padding, 0);
|
43
66
|
}
|
44
67
|
|
45
68
|
#main {
|
69
|
+
display: flex;
|
70
|
+
flex-direction: column;
|
71
|
+
gap: var(--size-4);
|
46
72
|
grid-area: main;
|
73
|
+
overflow-y: auto;
|
74
|
+
padding: var(--size-4);
|
75
|
+
|
76
|
+
@media (width >= 64rem) {
|
77
|
+
gap: var(--size-6); padding: var(--size-6);
|
78
|
+
}
|
47
79
|
}
|
@@ -7,7 +7,6 @@
|
|
7
7
|
inline-size: var(--size-3-4);
|
8
8
|
margin-inline: var(--sheet-margin);
|
9
9
|
max-block-size: unset;
|
10
|
-
max-inline-size: var(--max-i-sm);
|
11
10
|
|
12
11
|
&::backdrop {
|
13
12
|
background-color: rgba(0, 0, 0, .8);
|
@@ -46,8 +45,8 @@
|
|
46
45
|
}
|
47
46
|
}
|
48
47
|
|
49
|
-
@media (width
|
50
|
-
max-inline-size:
|
48
|
+
@media (width >= 40rem) {
|
49
|
+
max-inline-size: var(--max-i-sm);
|
51
50
|
}
|
52
51
|
}
|
53
52
|
|
@@ -20,10 +20,6 @@ export default class extends Controller {
|
|
20
20
|
if (this.indexValue < this.#lastIndex) this.indexValue++
|
21
21
|
}
|
22
22
|
|
23
|
-
get #lastIndex() {
|
24
|
-
return this.tabTargets.length -1
|
25
|
-
}
|
26
|
-
|
27
23
|
#showSelectedTab() {
|
28
24
|
this.buttonTargets.forEach((element, index) => {
|
29
25
|
element.ariaSelected = index === this.indexValue
|
@@ -33,4 +29,8 @@ export default class extends Controller {
|
|
33
29
|
element.hidden = index !== this.indexValue
|
34
30
|
})
|
35
31
|
}
|
32
|
+
|
33
|
+
get #lastIndex() {
|
34
|
+
return this.tabTargets.length -1
|
35
|
+
}
|
36
36
|
}
|
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.41
|
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
|
+
date: 2024-10-03 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description:
|
14
14
|
email: lazaronixon@hotmail.com
|
@@ -50,7 +50,6 @@ files:
|
|
50
50
|
- lib/generators/css_zero/add/templates/app/assets/images/eye-off.svg
|
51
51
|
- lib/generators/css_zero/add/templates/app/assets/images/eye.svg
|
52
52
|
- lib/generators/css_zero/add/templates/app/assets/images/loader-circle.svg
|
53
|
-
- lib/generators/css_zero/add/templates/app/assets/images/maximize.svg
|
54
53
|
- lib/generators/css_zero/add/templates/app/assets/images/menu.svg
|
55
54
|
- lib/generators/css_zero/add/templates/app/assets/images/minus.svg
|
56
55
|
- lib/generators/css_zero/add/templates/app/assets/images/search.svg
|
@@ -81,7 +80,6 @@ files:
|
|
81
80
|
- lib/generators/css_zero/add/templates/app/assets/stylesheets/toggle.css
|
82
81
|
- lib/generators/css_zero/add/templates/app/javascript/controllers/autoselect_controller.js
|
83
82
|
- lib/generators/css_zero/add/templates/app/javascript/controllers/carousel_controller.js
|
84
|
-
- lib/generators/css_zero/add/templates/app/javascript/controllers/check_all_controller.js
|
85
83
|
- lib/generators/css_zero/add/templates/app/javascript/controllers/clearable_input_controller.js
|
86
84
|
- lib/generators/css_zero/add/templates/app/javascript/controllers/collapsible_controller.js
|
87
85
|
- lib/generators/css_zero/add/templates/app/javascript/controllers/command_controller.js
|
@@ -1 +0,0 @@
|
|
1
|
-
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="#000" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize"><path d="M8 3H5a2 2 0 0 0-2 2v3"/><path d="M21 8V5a2 2 0 0 0-2-2h-3"/><path d="M3 16v3a2 2 0 0 0 2 2h3"/><path d="M16 21h3a2 2 0 0 0 2-2v-3"/></svg>
|