vanilla-jui 1.5.35 → 1.5.36
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.
- package/dist/index.js +1 -1
- package/dist/index.umd.js +1 -1
- package/dist/style.css +1 -1
- package/package.json +7 -4
- package/src/css/accordion.css +3 -73
- package/src/css/animation.css +143 -0
- package/src/css/avatar.css +4 -13
- package/src/css/badge.css +4 -11
- package/src/css/breadcrumb.css +4 -11
- package/src/css/button.css +6 -64
- package/src/css/card.css +25 -23
- package/src/css/components.css +4 -3
- package/src/css/drop.css +0 -10
- package/src/css/editor.css +84 -67
- package/src/css/flow.css +2 -3
- package/src/css/form.css +45 -178
- package/src/css/index.css +2 -2
- package/src/css/layout.css +32 -0
- package/src/css/loading.css +230 -1
- package/src/css/menu.css +16 -5
- package/src/css/modal.css +0 -29
- package/src/css/offcanvas.css +0 -35
- package/src/css/pagination.css +0 -10
- package/src/css/popup.css +0 -3
- package/src/css/skeleton.css +14 -8
- package/src/css/status.css +6 -1
- package/src/css/swiper.css +7 -74
- package/src/css/table.css +4 -33
- package/src/css/tabs.css +0 -7
- package/src/css/theme-palette.css +6 -40
- package/src/css/themes/default/accordion.css +84 -7
- package/src/css/themes/default/avatar.css +15 -0
- package/src/css/themes/default/badge.css +24 -3
- package/src/css/themes/default/breadcrumb.css +18 -0
- package/src/css/themes/default/button.css +124 -26
- package/src/css/themes/default/drop.css +10 -8
- package/src/css/themes/default/editor.css +24 -8
- package/src/css/themes/default/form.css +170 -0
- package/src/css/themes/default/index.css +5 -2
- package/src/css/themes/default/loading.css +0 -1
- package/src/css/themes/default/menu.css +0 -3
- package/src/css/themes/default/modal.css +39 -17
- package/src/css/themes/default/offcanvas.css +40 -3
- package/src/css/themes/default/pagination.css +11 -4
- package/src/css/themes/default/popup.css +4 -3
- package/src/css/themes/default/swiper.css +83 -19
- package/src/css/themes/default/table.css +22 -14
- package/src/css/themes/default/tabs.css +16 -6
- package/src/css/themes/default/theme-palette.css +33 -8
- package/src/css/themes/default/tip.css +27 -17
- package/src/css/themes/default/toast.css +30 -18
- package/src/css/themes/default/toc.css +25 -0
- package/src/css/themes/default/toolbar.css +54 -9
- package/src/css/themes/default/tooltip.css +14 -7
- package/src/css/themes/default/tree.css +75 -0
- package/src/css/tip.css +2 -27
- package/src/css/toast.css +5 -21
- package/src/css/toc.css +0 -24
- package/src/css/tokens.css +52 -17
- package/src/css/toolbar.css +2 -48
- package/src/css/tooltip.css +2 -10
- package/src/css/tree.css +49 -0
package/src/css/table.css
CHANGED
|
@@ -1,41 +1,12 @@
|
|
|
1
1
|
@layer components {
|
|
2
|
-
.j-table-container {
|
|
3
|
-
max-width: 100%;
|
|
4
|
-
overflow-y: hidden;
|
|
5
|
-
overflow-x: auto;
|
|
6
|
-
scrollbar-width: thin;
|
|
7
|
-
scrollbar-color: var(--ui-border) transparent;
|
|
8
|
-
}
|
|
9
|
-
|
|
10
2
|
table {
|
|
11
|
-
/* width: var(--table-width); */
|
|
12
3
|
text-indent: 0;
|
|
13
4
|
border-color: inherit;
|
|
14
5
|
border-collapse: collapse;
|
|
15
|
-
/* border-spacing: 0; */
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
table td,
|
|
19
|
-
table th {
|
|
20
|
-
border-width: var(--table-border-width);
|
|
21
|
-
border-style: var(--table-border-style);
|
|
22
|
-
border-color: var(--table-border-color);
|
|
23
|
-
padding: var(--table-cell-padding);
|
|
24
|
-
text-align: var(--table-cell-text-align);
|
|
25
|
-
vertical-align: var(--table-cell-vertical-align);
|
|
26
|
-
}
|
|
27
6
|
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
table tbody td {
|
|
35
|
-
min-width: var(--table-cell-min-width);
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
table tbody tr:hover {
|
|
39
|
-
background: var(--table-hover-bg);
|
|
7
|
+
overflow-x: auto;
|
|
8
|
+
scrollbar-width: thin;
|
|
9
|
+
scrollbar-color: var(--ui-border) transparent;
|
|
10
|
+
display: block;
|
|
40
11
|
}
|
|
41
12
|
}
|
package/src/css/tabs.css
CHANGED
|
@@ -38,23 +38,16 @@
|
|
|
38
38
|
}
|
|
39
39
|
|
|
40
40
|
.j-tabs .tab-list .tab-item {
|
|
41
|
-
padding: var(--tab-list-item-padding);
|
|
42
|
-
margin: var(--tab-list-item-margin);
|
|
43
|
-
color: var(--tab-fg);
|
|
44
|
-
font-weight: var(--tab-list-font-weight);
|
|
45
41
|
flex-shrink: 0;
|
|
46
42
|
cursor: pointer;
|
|
47
43
|
}
|
|
48
44
|
|
|
49
45
|
.j-tabs .panel-list {
|
|
50
|
-
padding: var(--panel-list-padding);
|
|
51
|
-
margin: var(--panel-list-margin);
|
|
52
46
|
flex: 1;
|
|
53
47
|
}
|
|
54
48
|
|
|
55
49
|
.j-tabs .panel-list .panel-item {
|
|
56
50
|
display: none;
|
|
57
|
-
margin: var(--panel-list-item-margin);
|
|
58
51
|
position: relative;
|
|
59
52
|
min-height: 22px;
|
|
60
53
|
}
|
|
@@ -1,65 +1,31 @@
|
|
|
1
1
|
@layer components {
|
|
2
|
-
.j-theme-palette {
|
|
3
|
-
padding: var(--palette-padding);
|
|
4
|
-
}
|
|
5
|
-
|
|
6
2
|
.j-theme-palette .palette-container {
|
|
7
3
|
display: flex;
|
|
8
4
|
flex-direction: column;
|
|
9
|
-
gap: var(--palette-container-gap);
|
|
10
5
|
}
|
|
11
6
|
|
|
12
|
-
.j-theme-palette .palette-
|
|
7
|
+
.j-theme-palette .palette-item {
|
|
13
8
|
display: flex;
|
|
14
9
|
flex-direction: column;
|
|
15
|
-
gap: var(--palette-item-gap);
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
.j-theme-palette .palette-container .palette-item .item-title {
|
|
19
|
-
font-size: var(--palette-item-title-font-size);
|
|
20
|
-
font-weight: var(--palette-item-title-font-weight);
|
|
21
10
|
}
|
|
22
11
|
|
|
23
|
-
.j-theme-palette .
|
|
12
|
+
.j-theme-palette .items {
|
|
24
13
|
display: grid;
|
|
25
|
-
grid-template-columns:
|
|
26
|
-
gap: var(--palette-items-gap);
|
|
14
|
+
grid-template-columns: repeat(3, 1fr);
|
|
27
15
|
}
|
|
28
16
|
|
|
29
|
-
.j-theme-palette .
|
|
30
|
-
padding-inline: var(--s2);
|
|
17
|
+
.j-theme-palette .j-button {
|
|
31
18
|
min-width: 0;
|
|
32
19
|
overflow: hidden;
|
|
33
20
|
}
|
|
34
21
|
|
|
35
|
-
.j-theme-palette
|
|
36
|
-
.palette-container
|
|
37
|
-
.palette-item[data-palette='theme']
|
|
38
|
-
.items
|
|
39
|
-
> button {
|
|
40
|
-
justify-content: flex-start;
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
.j-theme-palette
|
|
44
|
-
.palette-container
|
|
45
|
-
.palette-item
|
|
46
|
-
.items
|
|
47
|
-
> button
|
|
48
|
-
span.item-hex {
|
|
22
|
+
.j-theme-palette .j-button .item-hex {
|
|
49
23
|
display: inline-block;
|
|
50
|
-
width: var(--palette-items-icon-size);
|
|
51
|
-
height: var(--palette-items-icon-size);
|
|
52
24
|
border-radius: 50%;
|
|
53
25
|
flex-shrink: 0;
|
|
54
|
-
margin-right: var(--space);
|
|
55
26
|
}
|
|
56
27
|
|
|
57
|
-
.j-theme-palette
|
|
58
|
-
.palette-container
|
|
59
|
-
.palette-item
|
|
60
|
-
.items
|
|
61
|
-
> button
|
|
62
|
-
span.button-text {
|
|
28
|
+
.j-theme-palette .j-button .button-text {
|
|
63
29
|
overflow: hidden;
|
|
64
30
|
text-overflow: ellipsis;
|
|
65
31
|
}
|
|
@@ -1,14 +1,91 @@
|
|
|
1
1
|
@layer themes {
|
|
2
2
|
.j-accordion {
|
|
3
|
-
--accordion-font-size: var(--font-size-md);
|
|
4
3
|
--accordion-font-weight: var(--font-medium);
|
|
5
|
-
--accordion-header-font-size: var(--font-size-md);
|
|
6
|
-
--accordion-header-padding: var(--s2) var(--s3);
|
|
7
|
-
--accordion-header-margin: 0;
|
|
8
4
|
--accordion-border: 1px solid var(--ui-border-subtle);
|
|
9
5
|
--accordion-icon-transform: rotate(0deg);
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
.j-accordion .accordion-header {
|
|
9
|
+
padding: var(--s2) var(--s3);
|
|
10
|
+
margin: 0;
|
|
11
|
+
font-weight: var(--accordion-font-weight);
|
|
12
|
+
font-size: var(--font-size-md);
|
|
13
|
+
|
|
14
|
+
border-bottom: var(--accordion-border);
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
.j-accordion[data-direction='horizontal'] .accordion-header {
|
|
18
|
+
gap: var(--space);
|
|
19
|
+
border-bottom: 0;
|
|
20
|
+
border-right: var(--accordion-border);
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
.j-accordion[data-direction='horizontal']
|
|
24
|
+
.accordion-header[aria-expanded='true'] {
|
|
25
|
+
border-right: 0;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
.j-accordion .accordion-header[aria-expanded='false']:hover {
|
|
29
|
+
background: var(--ui-bg-subtle);
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
.j-accordion[data-direction='horizontal']
|
|
33
|
+
.accordion-header[aria-expanded='false']:nth-last-child(2) {
|
|
34
|
+
border-right: 0;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
.j-accordion .accordion-header[aria-expanded='true'] .header-title {
|
|
38
|
+
--accordion-font-weight: var(--font-bold);
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
.j-accordion .accordion-header .header-arrow {
|
|
42
|
+
transform: var(--accordion-icon-transform);
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
.j-accordion[data-direction='horizontal'] .accordion-header .header-arrow {
|
|
46
|
+
--accordion-icon-transform: rotate(-90deg);
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
.j-accordion .accordion-header[aria-expanded='true'] .header-arrow {
|
|
50
|
+
--accordion-icon-transform: rotate(180deg);
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
.j-accordion[data-direction='horizontal']
|
|
54
|
+
.accordion-header[aria-expanded='true']
|
|
55
|
+
.header-arrow {
|
|
56
|
+
--accordion-icon-transform: rotate(90deg);
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
.j-accordion .accordion-panel {
|
|
60
|
+
margin: 0;
|
|
61
|
+
font-size: var(--font-size-md);
|
|
62
|
+
border-bottom: var(--accordion-border);
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
.j-accordion .accordion-panel[aria-hidden='false'] {
|
|
66
|
+
min-height: 2rem;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
.j-accordion[data-direction='horizontal']
|
|
70
|
+
.accordion-panel[aria-hidden='false'] {
|
|
71
|
+
border-right: var(--accordion-border);
|
|
72
|
+
border-bottom: 0;
|
|
73
|
+
flex: 1;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
.j-accordion .accordion-header[aria-expanded='true'],
|
|
77
|
+
.j-accordion .accordion-header[aria-expanded='false']:nth-last-child(2),
|
|
78
|
+
.j-accordion .accordion-panel[aria-hidden='true'],
|
|
79
|
+
.j-accordion .accordion-panel:last-child {
|
|
80
|
+
border-bottom: 0;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
.j-accordion[data-direction='horizontal'] .accordion-panel:last-child {
|
|
84
|
+
border-right: 0;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
.j-accordion .accordion-panel .panel-content {
|
|
88
|
+
margin: 0;
|
|
89
|
+
padding: 0 var(--s3) var(--s2);
|
|
13
90
|
}
|
|
14
91
|
}
|
|
@@ -3,6 +3,20 @@
|
|
|
3
3
|
--avatar-size: var(--el-height-md);
|
|
4
4
|
--avatar-border-radius: var(--radius-sm);
|
|
5
5
|
--avatar-box-shadow: var(--shadow-sm);
|
|
6
|
+
|
|
7
|
+
width: var(--avatar-size);
|
|
8
|
+
height: var(--avatar-size);
|
|
9
|
+
box-shadow: var(--avatar-box-shadow);
|
|
10
|
+
border: var(--avatar-border);
|
|
11
|
+
border-radius: var(--avatar-border-radius);
|
|
12
|
+
background: var(--avatar-bg);
|
|
13
|
+
color: var(--avatar-fg);
|
|
14
|
+
font-size: var(--avatar-font-size);
|
|
15
|
+
font-weight: var(--avatar-font-weight);
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
.j-avatar img {
|
|
19
|
+
border-radius: var(--avatar-border-radius);
|
|
6
20
|
}
|
|
7
21
|
|
|
8
22
|
.j-avatar.is-2xs {
|
|
@@ -44,6 +58,7 @@
|
|
|
44
58
|
}
|
|
45
59
|
|
|
46
60
|
.j-avatar-group .j-avatar:not(:first-child) {
|
|
61
|
+
-webkit-margin-start: calc(var(--space) * -3);
|
|
47
62
|
margin-inline-start: calc(var(--space) * -3);
|
|
48
63
|
}
|
|
49
64
|
|
|
@@ -5,19 +5,40 @@
|
|
|
5
5
|
--badge-height: 1.25rem;
|
|
6
6
|
--badge-font-size: var(--font-size-sm);
|
|
7
7
|
--badge-font-weight: var(--font-medium);
|
|
8
|
-
--badge-line-height: var(--line-height-self);
|
|
9
8
|
--badge-radius: 500px;
|
|
10
9
|
--badge-border-color: var(--ui-border);
|
|
11
10
|
--badge-fg: var(--ui-fg);
|
|
12
11
|
--badge-bg: var(--ui-bg);
|
|
13
12
|
--badge-box-shadow: none;
|
|
13
|
+
--badge-gap: 4px;
|
|
14
|
+
|
|
15
|
+
gap: var(--badge-gap);
|
|
16
|
+
padding: var(--badge-padding);
|
|
17
|
+
min-width: var(--badge-min-width);
|
|
18
|
+
height: var(--badge-height);
|
|
19
|
+
font-size: var(--badge-font-size);
|
|
20
|
+
font-weight: var(--badge-font-weight);
|
|
21
|
+
border-radius: var(--badge-radius);
|
|
22
|
+
border: 1px solid var(--badge-border-color);
|
|
23
|
+
color: var(--badge-fg);
|
|
24
|
+
background-color: var(--badge-bg);
|
|
25
|
+
box-shadow: var(--badge-box-shadow);
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
.j-badge svg {
|
|
29
|
+
width: var(--font-size-sm);
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
.j-badge.is-sm svg {
|
|
33
|
+
width: var(--font-size-xs);
|
|
14
34
|
}
|
|
15
35
|
|
|
16
36
|
.j-badge.is-sm {
|
|
17
|
-
--badge-padding: 0
|
|
37
|
+
--badge-padding: 0 var(--space);
|
|
18
38
|
--badge-min-width: 1rem;
|
|
19
39
|
--badge-height: 1rem;
|
|
20
|
-
--badge-font-size:
|
|
40
|
+
--badge-font-size: var(--font-size-xs);
|
|
41
|
+
--badge-gap: 2px;
|
|
21
42
|
}
|
|
22
43
|
|
|
23
44
|
.j-badge.is-reverse {
|
|
@@ -6,6 +6,14 @@
|
|
|
6
6
|
--breadcrumb-divider-fg: var(--ui-fg-soft);
|
|
7
7
|
--breadcrumb-link-fg: var(--tone-text);
|
|
8
8
|
--breadcrumb-item-padding: 0 var(--s2);
|
|
9
|
+
|
|
10
|
+
font-size: var(--breadcrumb-font-size);
|
|
11
|
+
color: var(--breadcrumb-fg);
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
.j-breadcrumb svg {
|
|
15
|
+
width: var(--breadcrumb-icon-size);
|
|
16
|
+
height: var(--breadcrumb-icon-size);
|
|
9
17
|
}
|
|
10
18
|
|
|
11
19
|
.j-breadcrumb.is-sm {
|
|
@@ -18,10 +26,20 @@
|
|
|
18
26
|
--breadcrumb-icon-size: var(--font-size-lg);
|
|
19
27
|
}
|
|
20
28
|
|
|
29
|
+
.j-breadcrumb a {
|
|
30
|
+
gap: var(--space);
|
|
31
|
+
color: var(--breadcrumb-link-fg);
|
|
32
|
+
padding: var(--breadcrumb-item-padding);
|
|
33
|
+
}
|
|
34
|
+
|
|
21
35
|
.j-breadcrumb a:hover {
|
|
22
36
|
--breadcrumb-link-fg: var(--tone-solid);
|
|
23
37
|
}
|
|
24
38
|
|
|
39
|
+
.j-breadcrumb li + li::before {
|
|
40
|
+
color: var(--breadcrumb-divider-fg);
|
|
41
|
+
}
|
|
42
|
+
|
|
25
43
|
.j-breadcrumb li.is-active a {
|
|
26
44
|
--breadcrumb-link-fg: var(--ui-fg-muted);
|
|
27
45
|
}
|
|
@@ -1,26 +1,33 @@
|
|
|
1
1
|
@layer themes {
|
|
2
|
-
.j-button-group {
|
|
3
|
-
--btn-group-box-shadow: var(--shadow-sm);
|
|
4
|
-
}
|
|
5
|
-
|
|
6
2
|
.j-button {
|
|
7
|
-
--btn-gap: var(--space) calc(var(--space) * 1.5);
|
|
8
|
-
/* --btn-font-weight: var(--font-medium); */
|
|
9
3
|
--btn-font-size: var(--font-size-md);
|
|
10
4
|
--btn-height: var(--el-height-md);
|
|
11
|
-
--btn-line-height: var(--line-height-self);
|
|
12
5
|
--btn-fg: inherit;
|
|
13
6
|
--btn-bg: transparent;
|
|
14
7
|
--btn-padding: 0 var(--s3);
|
|
15
|
-
--btn-border-width: 1px;
|
|
16
|
-
--btn-border-style: solid;
|
|
17
8
|
--btn-border-color: transparent;
|
|
18
|
-
--btn-
|
|
9
|
+
--btn-radius: var(--radius-md);
|
|
19
10
|
--btn-box-shadow: var(--shadow-sm);
|
|
11
|
+
|
|
12
|
+
gap: var(--space);
|
|
13
|
+
font-size: var(--btn-font-size);
|
|
14
|
+
height: var(--btn-height);
|
|
15
|
+
line-height: 1;
|
|
16
|
+
color: var(--btn-fg);
|
|
17
|
+
background-color: var(--btn-bg);
|
|
18
|
+
padding: var(--btn-padding);
|
|
19
|
+
border-width: 1px;
|
|
20
|
+
border-style: solid;
|
|
21
|
+
border-color: var(--btn-border-color);
|
|
22
|
+
border-radius: var(--btn-radius);
|
|
23
|
+
box-shadow: var(--btn-box-shadow);
|
|
24
|
+
outline: none;
|
|
20
25
|
}
|
|
21
26
|
|
|
22
|
-
.j-button
|
|
23
|
-
--btn-
|
|
27
|
+
.j-button.is-xs {
|
|
28
|
+
--btn-font-size: var(--font-size-sm);
|
|
29
|
+
--btn-height: var(--el-height-xs);
|
|
30
|
+
--btn-padding: var(--space) var(--s2);
|
|
24
31
|
}
|
|
25
32
|
|
|
26
33
|
.j-button.is-sm {
|
|
@@ -35,6 +42,12 @@
|
|
|
35
42
|
--btn-padding: 0 var(--s3);
|
|
36
43
|
}
|
|
37
44
|
|
|
45
|
+
.j-button.is-xl {
|
|
46
|
+
--btn-font-size: var(--font-size-xl);
|
|
47
|
+
--btn-height: var(--el-height-xl);
|
|
48
|
+
--btn-padding: 0 var(--s4);
|
|
49
|
+
}
|
|
50
|
+
|
|
38
51
|
.j-button.is-default {
|
|
39
52
|
--btn-fg: var(--ui-fg);
|
|
40
53
|
--btn-bg: var(--ui-bg);
|
|
@@ -70,13 +83,11 @@
|
|
|
70
83
|
|
|
71
84
|
.j-button.is-text {
|
|
72
85
|
--btn-border-color: transparent;
|
|
73
|
-
--btn-text-height: auto;
|
|
74
|
-
--btn-text-padding: 0;
|
|
75
86
|
--btn-box-shadow: none;
|
|
76
87
|
}
|
|
77
88
|
|
|
78
89
|
.j-button.is-icon {
|
|
79
|
-
aspect-ratio:
|
|
90
|
+
aspect-ratio: 1/1;
|
|
80
91
|
--btn-padding: var(--icon-padding, 0);
|
|
81
92
|
}
|
|
82
93
|
|
|
@@ -119,14 +130,18 @@
|
|
|
119
130
|
|
|
120
131
|
.j-button-group {
|
|
121
132
|
--btn-padding: 0 var(--s2);
|
|
133
|
+
--btn-radius: var(--radius-md);
|
|
134
|
+
|
|
135
|
+
margin: 0;
|
|
136
|
+
box-shadow: var(--shadow-sm);
|
|
137
|
+
border-radius: var(--btn-radius);
|
|
122
138
|
}
|
|
123
139
|
|
|
124
|
-
/*
|
|
140
|
+
/* status */
|
|
125
141
|
.j-button:disabled {
|
|
126
142
|
opacity: var(--opacity-disabled);
|
|
127
143
|
}
|
|
128
144
|
|
|
129
|
-
/* status */
|
|
130
145
|
.j-button:not(:disabled) {
|
|
131
146
|
cursor: pointer;
|
|
132
147
|
}
|
|
@@ -139,13 +154,48 @@
|
|
|
139
154
|
opacity: var(--opacity-active);
|
|
140
155
|
}
|
|
141
156
|
|
|
142
|
-
.j-button:not(:disabled).is-active
|
|
143
|
-
|
|
157
|
+
.j-button:not(:disabled).is-active,
|
|
158
|
+
.j-button:not(:disabled):focus,
|
|
159
|
+
.j-button:not(:disabled):focus-within,
|
|
160
|
+
.j-button:not(:disabled):focus-visible {
|
|
144
161
|
--btn-border-color: var(--tone-solid);
|
|
162
|
+
--btn-box-shadow: 0 0 0 4px var(--tone-ring);
|
|
145
163
|
}
|
|
146
164
|
|
|
147
|
-
.j-button:not(:disabled)
|
|
148
|
-
|
|
165
|
+
.j-button.is-reverse:not(:disabled).is-active,
|
|
166
|
+
.j-button.is-reverse:not(:disabled):focus,
|
|
167
|
+
.j-button.is-reverse:not(:disabled):focus-within,
|
|
168
|
+
.j-button.is-reverse:not(:disabled):focus-visible {
|
|
169
|
+
--btn-border-color: transparent;
|
|
170
|
+
--btn-box-shadow: 0 0 0 4px var(--tone-card-active);
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
.j-button.is-success:not(:disabled).is-active,
|
|
174
|
+
.j-button.is-success:not(:disabled):focus,
|
|
175
|
+
.j-button.is-success:not(:disabled):focus-within,
|
|
176
|
+
.j-button.is-success:not(:disabled):focus-visible {
|
|
177
|
+
--btn-border-color: transparent;
|
|
178
|
+
--btn-box-shadow: 0 0 0 4px var(--state-success-ring);
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
.j-button.is-warning:not(:disabled).is-active,
|
|
182
|
+
.j-button.is-warning:not(:disabled):focus,
|
|
183
|
+
.j-button.is-warning:not(:disabled):focus-within,
|
|
184
|
+
.j-button.is-warning:not(:disabled):focus-visible {
|
|
185
|
+
--btn-border-color: transparent;
|
|
186
|
+
--btn-box-shadow: 0 0 0 4px var(--state-warning-ring);
|
|
187
|
+
}
|
|
188
|
+
|
|
189
|
+
.j-button.is-danger:not(:disabled).is-active,
|
|
190
|
+
.j-button.is-danger:not(:disabled):focus,
|
|
191
|
+
.j-button.is-danger:not(:disabled):focus-within,
|
|
192
|
+
.j-button.is-danger:not(:disabled):focus-visible,
|
|
193
|
+
.j-button.is-error:not(:disabled).is-active,
|
|
194
|
+
.j-button.is-error:not(:disabled):focus,
|
|
195
|
+
.j-button.is-error:not(:disabled):focus-within,
|
|
196
|
+
.j-button.is-error:not(:disabled):focus-visible {
|
|
197
|
+
--btn-border-color: transparent;
|
|
198
|
+
--btn-box-shadow: 0 0 0 4px var(--state-danger-muted);
|
|
149
199
|
}
|
|
150
200
|
|
|
151
201
|
.j-button.is-default:hover:not(:disabled) {
|
|
@@ -157,10 +207,11 @@
|
|
|
157
207
|
--btn-bg: var(--tone-subtle);
|
|
158
208
|
}
|
|
159
209
|
|
|
210
|
+
.j-button.is-text:not(:disabled).is-active,
|
|
160
211
|
.j-button.is-text:not(:disabled):active,
|
|
161
|
-
.j-button.is-text:not(:disabled):focus
|
|
162
|
-
.j-button.is-text:not(:disabled)
|
|
163
|
-
|
|
212
|
+
.j-button.is-text:not(:disabled):focus,
|
|
213
|
+
.j-button.is-text:not(:disabled):focus-within,
|
|
214
|
+
.j-button.is-text:not(:disabled):focus-visible {
|
|
164
215
|
--btn-fg: var(--tone-solid);
|
|
165
216
|
text-decoration: underline;
|
|
166
217
|
text-underline-offset: var(--space);
|
|
@@ -191,13 +242,60 @@
|
|
|
191
242
|
}
|
|
192
243
|
|
|
193
244
|
.j-button-group .j-button:active,
|
|
245
|
+
.j-button-group .j-button:focus,
|
|
194
246
|
.j-button-group .j-button:focus-visible,
|
|
195
247
|
.j-button-group .j-button:focus-within {
|
|
196
|
-
|
|
197
|
-
opacity: var(--opacity-active);
|
|
248
|
+
/* opacity: var(--opacity-active); */
|
|
198
249
|
z-index: 1;
|
|
199
250
|
}
|
|
200
251
|
|
|
252
|
+
.j-button-group .j-button:not(:first-child) {
|
|
253
|
+
border-top-left-radius: 0;
|
|
254
|
+
border-bottom-left-radius: 0;
|
|
255
|
+
}
|
|
256
|
+
|
|
257
|
+
.j-button-group .j-button:not(:last-child) {
|
|
258
|
+
border-top-right-radius: 0;
|
|
259
|
+
border-bottom-right-radius: 0;
|
|
260
|
+
}
|
|
261
|
+
|
|
262
|
+
.j-button-group .j-button:not(:first-child):not(:last-child) {
|
|
263
|
+
border-top-width: 1px;
|
|
264
|
+
border-bottom-width: 1px;
|
|
265
|
+
border-left-width: 0;
|
|
266
|
+
border-right-width: 0;
|
|
267
|
+
}
|
|
268
|
+
|
|
269
|
+
.j-button-group.is-vertical {
|
|
270
|
+
flex-direction: column;
|
|
271
|
+
}
|
|
272
|
+
|
|
273
|
+
.j-button-group.is-vertical .j-button:not(:last-child) {
|
|
274
|
+
border-bottom-left-radius: 0;
|
|
275
|
+
border-bottom-right-radius: 0;
|
|
276
|
+
}
|
|
277
|
+
|
|
278
|
+
.j-button-group.is-vertical .j-button:not(:first-child) {
|
|
279
|
+
margin-left: 0;
|
|
280
|
+
border-top-left-radius: 0;
|
|
281
|
+
border-top-right-radius: 0;
|
|
282
|
+
}
|
|
283
|
+
|
|
284
|
+
.j-button-group.is-vertical .j-button:not(:last-child):not(:first-child) {
|
|
285
|
+
border-left-width: 1px;
|
|
286
|
+
border-right-width: 1px;
|
|
287
|
+
border-top-width: 0;
|
|
288
|
+
border-bottom-width: 0;
|
|
289
|
+
}
|
|
290
|
+
|
|
291
|
+
.j-button-group.is-vertical .j-button:first-child {
|
|
292
|
+
border-top-right-radius: var(--btn-radius);
|
|
293
|
+
}
|
|
294
|
+
|
|
295
|
+
.j-button-group.is-vertical .j-button:last-child {
|
|
296
|
+
border-bottom-left-radius: var(--btn-radius);
|
|
297
|
+
}
|
|
298
|
+
|
|
201
299
|
.j-button-group.is-vertical .j-button:focus-within {
|
|
202
300
|
z-index: auto;
|
|
203
301
|
}
|
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
@layer themes {
|
|
2
|
-
.
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
2
|
+
.drop-container {
|
|
3
|
+
border-width: 1px;
|
|
4
|
+
border-style: solid;
|
|
5
|
+
border-color: var(--ui-border);
|
|
6
|
+
border-radius: var(--radius-sm);
|
|
7
|
+
background: var(--ui-bg);
|
|
8
|
+
color: var(--ui-fg);
|
|
9
|
+
box-shadow: var(--shadow-sm);
|
|
10
|
+
min-width: 64px;
|
|
11
|
+
min-height: 32px;
|
|
10
12
|
}
|
|
11
13
|
}
|
|
@@ -10,14 +10,12 @@
|
|
|
10
10
|
|
|
11
11
|
.j-editor {
|
|
12
12
|
--editor-font-size: var(--font-size-lg);
|
|
13
|
-
--editor-line-height: 1.
|
|
13
|
+
--editor-p-line-height: 1.75;
|
|
14
14
|
--editor-word-space: 0.02em;
|
|
15
15
|
--editor-letter-space: 0.01em;
|
|
16
|
-
--editor-
|
|
17
|
-
--editor-
|
|
18
|
-
--editor-list-space: 1.25rem;
|
|
16
|
+
--editor-block-space: 1.25rem;
|
|
17
|
+
--editor-list-space: 1rem;
|
|
19
18
|
--editor-space: 0.25rem;
|
|
20
|
-
--editor-dot-space: 0.125rem;
|
|
21
19
|
|
|
22
20
|
--editor-heading-fg: var(--tone-heading);
|
|
23
21
|
--editor-caption-fg: var(--tone-caption);
|
|
@@ -38,17 +36,19 @@
|
|
|
38
36
|
|
|
39
37
|
.j-editor.is-sm {
|
|
40
38
|
--editor-font-size: var(--font-size-md);
|
|
41
|
-
--editor-line-height: 1.
|
|
39
|
+
--editor-p-line-height: 1.75;
|
|
42
40
|
}
|
|
43
41
|
|
|
44
42
|
.j-editor.is-lg {
|
|
45
43
|
--editor-font-size: var(--font-size-xl);
|
|
46
|
-
--editor-line-height: 1.8;
|
|
44
|
+
--editor-p-line-height: 1.8;
|
|
45
|
+
--editor-block-space: 1.5rem;
|
|
47
46
|
}
|
|
48
47
|
|
|
49
48
|
.j-editor.is-xl {
|
|
50
49
|
--editor-font-size: var(--font-size-2xl);
|
|
51
|
-
--editor-line-height: 1.
|
|
50
|
+
--editor-p-line-height: 1.8;
|
|
51
|
+
--editor-block-space: 1.5rem;
|
|
52
52
|
}
|
|
53
53
|
|
|
54
54
|
.j-radius-round .j-editor {
|
|
@@ -56,4 +56,20 @@
|
|
|
56
56
|
--radius-md: 1rem;
|
|
57
57
|
--radius-lg: 1.5rem;
|
|
58
58
|
}
|
|
59
|
+
|
|
60
|
+
.mobile .j-editor h1 {
|
|
61
|
+
margin-bottom: 2rem;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
.mobile .j-editor h2,
|
|
65
|
+
.mobile .j-editor h3,
|
|
66
|
+
.mobile .j-editor h4,
|
|
67
|
+
.mobile .j-editor h5,
|
|
68
|
+
.mobile .j-editor p {
|
|
69
|
+
--editor-block-space: 1.75rem;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
.mobile .j-editor li p {
|
|
73
|
+
margin-block: 0;
|
|
74
|
+
}
|
|
59
75
|
}
|