vanilla-jui 1.3.9 → 1.3.11
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 +3 -2
- package/src/components/accordion.js +373 -0
- package/src/components/components.js +0 -0
- package/src/components/drop.js +437 -0
- package/src/components/flow.js +1133 -0
- package/src/components/form.js +585 -0
- package/src/components/icons.js +83 -0
- package/src/components/menu.js +422 -0
- package/src/components/modal.js +1174 -0
- package/src/components/offcanvas.js +332 -0
- package/src/components/pagination.js +536 -0
- package/src/components/parabola.js +295 -0
- package/src/components/sticky.js +271 -0
- package/src/components/swiper.js +1123 -0
- package/src/components/tabs.js +746 -0
- package/src/components/theme.js +353 -0
- package/src/components/toast.js +329 -0
- package/src/components/toc.js +226 -0
- package/src/components/tooltip.js +86 -0
- package/src/components/validator.js +586 -0
- package/src/core/Component.js +248 -0
- package/src/css/accordion.css +72 -0
- package/src/css/animation.css +177 -0
- package/src/css/avatar.css +62 -0
- package/src/css/badge.css +66 -0
- package/src/css/breadcrumb.css +106 -0
- package/src/css/button.css +296 -0
- package/src/css/card.css +151 -0
- package/src/css/color.css +1163 -0
- package/src/css/color_p3.css +1172 -0
- package/src/css/components.css +26 -0
- package/src/css/content.css +716 -0
- package/src/css/divider.css +9 -0
- package/src/css/drop.css +28 -0
- package/src/css/flow.css +86 -0
- package/src/css/font.css +23 -0
- package/src/css/form.css +919 -0
- package/src/css/gradient.css +224 -0
- package/src/css/icon.css +63 -0
- package/src/css/index.css +12 -0
- package/src/css/layout.css +782 -0
- package/src/css/loading.css +38 -0
- package/src/css/menu.css +564 -0
- package/src/css/modal.css +94 -0
- package/src/css/offcanvas.css +104 -0
- package/src/css/pagination.css +25 -0
- package/src/css/popup.css +69 -0
- package/src/css/skeleton.css +76 -0
- package/src/css/status.css +56 -0
- package/src/css/swiper.css +160 -0
- package/src/css/table.css +52 -0
- package/src/css/tabs.css +95 -0
- package/src/css/tag.css +97 -0
- package/src/css/theme-palette.css +59 -0
- package/src/css/tip.css +84 -0
- package/src/css/toast.css +154 -0
- package/src/css/toc.css +38 -0
- package/src/css/tokens.css +1295 -0
- package/src/css/toolbar.css +115 -0
- package/src/css/tooltip.css +19 -0
- package/src/icons/index.js +30 -0
- package/src/index.js +45 -0
- package/src/locales/index.js +45 -0
- package/src/locales/index.min.js +1 -0
- package/src/utilities/browser.js +111 -0
- package/src/utilities/cache.js +159 -0
- package/src/utilities/core.js +502 -0
- package/src/utilities/debug.js +103 -0
- package/src/utilities/dom.js +313 -0
- package/src/utilities/events.js +69 -0
- package/src/utilities/http.js +30 -0
- package/src/utilities/legacy-dom.js +179 -0
- package/src/utilities/storage.js +46 -0
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
@layer components {
|
|
2
|
+
.j-offcanvas-overlay {
|
|
3
|
+
position: fixed;
|
|
4
|
+
top: 0;
|
|
5
|
+
left: 0;
|
|
6
|
+
width: 100%;
|
|
7
|
+
height: 100%;
|
|
8
|
+
background-color: var(--offcanvas-overlay-background,
|
|
9
|
+
var(--ui-overlay-muted));
|
|
10
|
+
z-index: var(--z-overlay);
|
|
11
|
+
opacity: 0;
|
|
12
|
+
transition: opacity 0.3s ease;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
.j-offcanvas-overlay.is-active {
|
|
16
|
+
opacity: 1;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
.j-offcanvas {
|
|
20
|
+
position: fixed;
|
|
21
|
+
z-index: var(--z-offcanvas);
|
|
22
|
+
background: var(--offcanvas-background, var(--ui-bg));
|
|
23
|
+
box-shadow: var(--offcanvas-box-shadow, var(--shadow-md));
|
|
24
|
+
--offcanvas-border: 1px solid var(--ui-border-subtle);
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
.j-offcanvas.is-slide,
|
|
28
|
+
.j-offcanvas.is-push {
|
|
29
|
+
transition: transform 0.3s ease;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
.j-offcanvas:not(.is-slide):not(.is-push) {
|
|
33
|
+
transition: none;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
.j-offcanvas.is-left {
|
|
37
|
+
top: 0;
|
|
38
|
+
left: 0;
|
|
39
|
+
width: 300px;
|
|
40
|
+
height: 100%;
|
|
41
|
+
transform: translateX(-100%);
|
|
42
|
+
border-right: var(--offcanvas-border);
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
.j-offcanvas.is-right {
|
|
46
|
+
top: 0;
|
|
47
|
+
right: 0;
|
|
48
|
+
width: 300px;
|
|
49
|
+
height: 100%;
|
|
50
|
+
transform: translateX(100%);
|
|
51
|
+
border-left: var(--offcanvas-border);
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
.j-offcanvas.is-top {
|
|
55
|
+
top: 0;
|
|
56
|
+
left: 0;
|
|
57
|
+
width: 100%;
|
|
58
|
+
height: 200px;
|
|
59
|
+
transform: translateY(-100%);
|
|
60
|
+
border-bottom: var(--offcanvas-border);
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
.j-offcanvas.is-bottom {
|
|
64
|
+
bottom: 0;
|
|
65
|
+
left: 0;
|
|
66
|
+
width: 100%;
|
|
67
|
+
height: 200px;
|
|
68
|
+
transform: translateY(100%);
|
|
69
|
+
border-top: var(--offcanvas-border);
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
.j-offcanvas.is-slide.is-active,
|
|
73
|
+
.j-offcanvas.is-active:not(.is-push) {
|
|
74
|
+
transform: translate(0, 0);
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
.offcanvas-push-body {
|
|
78
|
+
transition: transform 0.3s ease;
|
|
79
|
+
overflow: hidden;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
.offcanvas-push-left {
|
|
83
|
+
transform: translateX(300px);
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
.offcanvas-push-right {
|
|
87
|
+
transform: translateX(-300px);
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
.offcanvas-push-top {
|
|
91
|
+
transform: translateY(200px);
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
.offcanvas-push-bottom {
|
|
95
|
+
transform: translateY(-200px);
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
.j-offcanvas .offcanvas-content {
|
|
99
|
+
height: 100%;
|
|
100
|
+
overflow-y: auto;
|
|
101
|
+
box-sizing: border-box;
|
|
102
|
+
position: relative;
|
|
103
|
+
}
|
|
104
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
@layer components {
|
|
2
|
+
.j-pagination {
|
|
3
|
+
font-size: var(--pagination-font-size, var(--font-size-md));
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
.j-pagination a {
|
|
7
|
+
text-decoration: none;
|
|
8
|
+
color: var(--pagination-link-color, var(--ui-fg));
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
.j-pagination .pagination {
|
|
12
|
+
list-style: none;
|
|
13
|
+
display: flex;
|
|
14
|
+
justify-content: center;
|
|
15
|
+
align-items: center;
|
|
16
|
+
gap: var(--pagination-gap, var(--space));
|
|
17
|
+
margin: 0;
|
|
18
|
+
padding: 0;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
.j-pagination .more span,
|
|
22
|
+
.j-pagination .is-active {
|
|
23
|
+
cursor: default;
|
|
24
|
+
}
|
|
25
|
+
}
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
@layer components {
|
|
2
|
+
.j-popup-layout {
|
|
3
|
+
position: fixed;
|
|
4
|
+
top: 0;
|
|
5
|
+
left: 0;
|
|
6
|
+
width: 100%;
|
|
7
|
+
height: 100%;
|
|
8
|
+
background-color: var(--popup-background, var(--ui-popup-background));
|
|
9
|
+
backdrop-filter: var(--popup-backdrop-filter, blur(4px));
|
|
10
|
+
display: flex;
|
|
11
|
+
padding: var(--popup-layout-padding, var(--s4));
|
|
12
|
+
z-index: var(--z-popup);
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
.j-popup-layout,
|
|
16
|
+
.j-popup-layout.is-center,
|
|
17
|
+
.j-popup-layout.is-center-center {
|
|
18
|
+
justify-content: center;
|
|
19
|
+
align-items: center;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
.j-popup-layout.is-top,
|
|
23
|
+
.j-popup-layout.is-top-center {
|
|
24
|
+
justify-content: center;
|
|
25
|
+
align-items: flex-start;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
.j-popup-layout.is-bottom,
|
|
29
|
+
.j-popup-layout.is-bottom-center {
|
|
30
|
+
justify-content: center;
|
|
31
|
+
align-items: flex-end;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
.j-popup-layout.is-left,
|
|
35
|
+
.j-popup-layout.is-left-center {
|
|
36
|
+
justify-content: flex-start;
|
|
37
|
+
align-items: center;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
.j-popup-layout.is-right,
|
|
41
|
+
.j-popup-layout.is-right-center {
|
|
42
|
+
justify-content: flex-end;
|
|
43
|
+
align-items: center;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
.j-popup-layout.is-top-left,
|
|
47
|
+
.j-popup-layout.is-left-top {
|
|
48
|
+
justify-content: flex-start;
|
|
49
|
+
align-items: flex-start;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
.j-popup-layout.is-top-right,
|
|
53
|
+
.j-popup-layout.is-right-top {
|
|
54
|
+
justify-content: flex-end;
|
|
55
|
+
align-items: flex-start;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
.j-popup-layout.is-bottom-left,
|
|
59
|
+
.j-popup-layout.is-left-bottom {
|
|
60
|
+
justify-content: flex-start;
|
|
61
|
+
align-items: flex-end;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
.j-popup-layout.is-bottom-right,
|
|
65
|
+
.j-popup-layout.is-right-bottom {
|
|
66
|
+
justify-content: flex-end;
|
|
67
|
+
align-items: flex-end;
|
|
68
|
+
}
|
|
69
|
+
}
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
@layer components {
|
|
2
|
+
.j-skeleton {
|
|
3
|
+
--skeleton-background: var(--ui-surface-muted);
|
|
4
|
+
--skeleton-radius: var(--radius-sm, 4px);
|
|
5
|
+
--skeleton-duration: 1.5s;
|
|
6
|
+
|
|
7
|
+
display: block;
|
|
8
|
+
width: 100%;
|
|
9
|
+
min-height: var(--el-height-2xs);
|
|
10
|
+
border-radius: var(--skeleton-radius);
|
|
11
|
+
background: var(--skeleton-background);
|
|
12
|
+
color: transparent;
|
|
13
|
+
pointer-events: none;
|
|
14
|
+
user-select: none;
|
|
15
|
+
animation: animate-pulse var(--skeleton-duration) cubic-bezier(0.4, 0, 0.6, 1) infinite;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
.j-skeleton::selection {
|
|
19
|
+
color: transparent;
|
|
20
|
+
background: transparent;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
.j-skeleton.skeleton-inline {
|
|
24
|
+
display: inline-block;
|
|
25
|
+
width: 8rem;
|
|
26
|
+
vertical-align: middle;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
.j-skeleton.skeleton-text {
|
|
30
|
+
height: var(--el-height-sm);
|
|
31
|
+
min-height: var(--el-height-sm);
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
.j-skeleton.skeleton-title {
|
|
35
|
+
width: 60%;
|
|
36
|
+
height: var(--el-height-md);
|
|
37
|
+
min-height: var(--el-height-md);
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
.j-skeleton.skeleton-block {
|
|
41
|
+
height: calc(var(--el-height-md) * 4);
|
|
42
|
+
min-height: calc(var(--el-height-md) * 4);
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
.j-skeleton.skeleton-avatar,
|
|
46
|
+
.j-skeleton.skeleton-circle {
|
|
47
|
+
aspect-ratio: 1;
|
|
48
|
+
border-radius: 999px;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
.j-skeleton.skeleton-avatar {
|
|
52
|
+
width: var(--el-height-md);
|
|
53
|
+
min-height: var(--el-height-md);
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
.j-skeleton.skeleton-button {
|
|
57
|
+
width: 5rem;
|
|
58
|
+
min-height: var(--el-height-md);
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
.j-skeleton.skeleton-image {
|
|
62
|
+
aspect-ratio: 16 / 9;
|
|
63
|
+
min-height: 0;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
.j-skeleton.skeleton-static,
|
|
67
|
+
.j-skeleton[aria-busy='false'] {
|
|
68
|
+
animation: none;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
@media (prefers-reduced-motion: reduce) {
|
|
72
|
+
.j-skeleton {
|
|
73
|
+
animation: none;
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
}
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* status.css
|
|
3
|
+
* - sad mode
|
|
4
|
+
* - disabled
|
|
5
|
+
* - readonly
|
|
6
|
+
* - data-action
|
|
7
|
+
* - shape status
|
|
8
|
+
* - drag status
|
|
9
|
+
*/
|
|
10
|
+
@layer status {
|
|
11
|
+
|
|
12
|
+
/* sad mode */
|
|
13
|
+
.is-sad {
|
|
14
|
+
filter: grayscale(100%);
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
/* readonly */
|
|
20
|
+
[readonly] {
|
|
21
|
+
opacity: var(--opacity-readonly);
|
|
22
|
+
cursor: default;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
/* data-action */
|
|
26
|
+
[data-action] {
|
|
27
|
+
cursor: pointer;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
/* shape status */
|
|
31
|
+
.is-circle {
|
|
32
|
+
border-radius: 50%;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
.is-round {
|
|
36
|
+
border-radius: 0.5rem;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
/* drag status */
|
|
40
|
+
.dragging {
|
|
41
|
+
cursor: move;
|
|
42
|
+
cursor: grab;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
.dragging:active {
|
|
46
|
+
cursor: grabbing;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
/* disabled */
|
|
50
|
+
[disabled],
|
|
51
|
+
:disabled,
|
|
52
|
+
.is-disabled {
|
|
53
|
+
cursor: not-allowed;
|
|
54
|
+
user-select: none;
|
|
55
|
+
}
|
|
56
|
+
}
|
|
@@ -0,0 +1,160 @@
|
|
|
1
|
+
@layer components {
|
|
2
|
+
.j-swiper {
|
|
3
|
+
position: relative;
|
|
4
|
+
display: block;
|
|
5
|
+
width: 100%;
|
|
6
|
+
overflow: hidden;
|
|
7
|
+
touch-action: pan-y;
|
|
8
|
+
user-select: none;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
.j-swiper .swiper-wrapper {
|
|
12
|
+
display: flex;
|
|
13
|
+
width: 100%;
|
|
14
|
+
height: 100%;
|
|
15
|
+
will-change: transform;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
.j-swiper .swiper-slide {
|
|
19
|
+
position: relative;
|
|
20
|
+
display: block;
|
|
21
|
+
width: var(--swiper-slide-width, 100%);
|
|
22
|
+
min-width: 100%;
|
|
23
|
+
overflow: hidden;
|
|
24
|
+
color: inherit;
|
|
25
|
+
text-decoration: none;
|
|
26
|
+
user-select: none;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
.j-swiper .swiper-image {
|
|
30
|
+
display: block;
|
|
31
|
+
width: 100%;
|
|
32
|
+
height: 100%;
|
|
33
|
+
min-height: var(--swiper-min-height, 180px);
|
|
34
|
+
object-fit: cover;
|
|
35
|
+
pointer-events: none;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
.j-swiper .swiper-slide-title {
|
|
39
|
+
position: absolute;
|
|
40
|
+
right: var(--swiper-title-inset, var(--s3));
|
|
41
|
+
bottom: var(--swiper-title-inset, var(--s3));
|
|
42
|
+
left: var(--swiper-title-inset, var(--s3));
|
|
43
|
+
z-index: 1;
|
|
44
|
+
display: block;
|
|
45
|
+
padding: calc(var(--space) * 1.5) var(--s2);
|
|
46
|
+
overflow: hidden;
|
|
47
|
+
color: var(--swiper-title-color, #fff);
|
|
48
|
+
font-size: var(--swiper-title-font-size, var(--font-size-lg));
|
|
49
|
+
font-weight: var(--font-weight-bold, 700);
|
|
50
|
+
line-height: 1.35;
|
|
51
|
+
text-overflow: ellipsis;
|
|
52
|
+
white-space: nowrap;
|
|
53
|
+
background: var(--swiper-title-background, rgb(0 0 0 / 35%));
|
|
54
|
+
border-radius: var(--radius-sm);
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
.j-swiper .swiper-pagination {
|
|
58
|
+
position: absolute;
|
|
59
|
+
z-index: 2;
|
|
60
|
+
display: flex;
|
|
61
|
+
gap: var(--swiper-pagination-gap, 7px);
|
|
62
|
+
align-items: center;
|
|
63
|
+
justify-content: center;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
.j-swiper .swiper-pagination.is-horizontal {
|
|
67
|
+
right: var(--s3);
|
|
68
|
+
bottom: var(--s2);
|
|
69
|
+
left: var(--s3);
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
.j-swiper .swiper-pagination-indicator {
|
|
73
|
+
display: inline-block;
|
|
74
|
+
width: var(--swiper-indicator-size, 8px);
|
|
75
|
+
height: var(--swiper-indicator-size, 8px);
|
|
76
|
+
padding: 0;
|
|
77
|
+
cursor: pointer;
|
|
78
|
+
background: var(--swiper-indicator-background, rgb(255 255 255 / 62%));
|
|
79
|
+
border: 0;
|
|
80
|
+
border-radius: 999px;
|
|
81
|
+
outline: none;
|
|
82
|
+
transition:
|
|
83
|
+
width var(--duration-fast, 160ms) ease,
|
|
84
|
+
background-color var(--duration-fast, 160ms) ease,
|
|
85
|
+
opacity var(--duration-fast, 160ms) ease;
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
.j-swiper .swiper-pagination-indicator:hover,
|
|
89
|
+
.j-swiper .swiper-pagination-indicator:focus-visible {
|
|
90
|
+
background: var(--swiper-indicator-hover-background,
|
|
91
|
+
rgb(255 255 255 / 86%));
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
.j-swiper .swiper-pagination-indicator.is-active,
|
|
95
|
+
.j-swiper .swiper-pagination-indicator.active {
|
|
96
|
+
width: var(--swiper-indicator-active-width, 22px);
|
|
97
|
+
background: var(--swiper-indicator-active-background, #fff);
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
.j-swiper .swiper-navigation {
|
|
101
|
+
position: absolute;
|
|
102
|
+
top: 50%;
|
|
103
|
+
z-index: 2;
|
|
104
|
+
display: inline-flex;
|
|
105
|
+
align-items: center;
|
|
106
|
+
justify-content: center;
|
|
107
|
+
width: var(--swiper-navigation-size, 36px);
|
|
108
|
+
height: var(--swiper-navigation-size, 36px);
|
|
109
|
+
padding: 0;
|
|
110
|
+
color: var(--swiper-navigation-color, #fff);
|
|
111
|
+
cursor: pointer;
|
|
112
|
+
background: var(--swiper-navigation-background, rgb(0 0 0 / 35%));
|
|
113
|
+
border: 0;
|
|
114
|
+
border-radius: 999px;
|
|
115
|
+
transform: translateY(-50%);
|
|
116
|
+
transition:
|
|
117
|
+
background-color var(--duration-fast, 160ms) ease,
|
|
118
|
+
opacity var(--duration-fast, 160ms) ease;
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
.j-swiper .swiper-navigation:hover,
|
|
122
|
+
.j-swiper .swiper-navigation:focus-visible {
|
|
123
|
+
background: var(--swiper-navigation-hover-background, rgb(0 0 0 / 65%));
|
|
124
|
+
outline: none;
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
.j-swiper .swiper-navigation.is-prev {
|
|
128
|
+
left: var(--s2);
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
.j-swiper .swiper-navigation.is-next {
|
|
132
|
+
right: var(--s2);
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
.j-swiper .swiper-navigation svg {
|
|
136
|
+
width: var(--swiper-navigation-icon-size, 18px);
|
|
137
|
+
height: var(--swiper-navigation-icon-size, 18px);
|
|
138
|
+
pointer-events: none;
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
.j-swiper .swiper-navigation.is-disabled,
|
|
142
|
+
.j-swiper .swiper-navigation:disabled {
|
|
143
|
+
cursor: default;
|
|
144
|
+
opacity: 0.36;
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
@media (max-width: 640px) {
|
|
148
|
+
.j-swiper .swiper-slide-title {
|
|
149
|
+
right: var(--s2);
|
|
150
|
+
bottom: var(--s2);
|
|
151
|
+
left: var(--s2);
|
|
152
|
+
font-size: var(--font-size-md);
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
.j-swiper .swiper-navigation {
|
|
156
|
+
width: 32px;
|
|
157
|
+
height: 32px;
|
|
158
|
+
}
|
|
159
|
+
}
|
|
160
|
+
}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
@layer components {
|
|
2
|
+
.j-table-container {
|
|
3
|
+
max-width: 100%;
|
|
4
|
+
overflow: auto;
|
|
5
|
+
overflow-y: hidden;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
table.j-table {
|
|
9
|
+
text-indent: 0;
|
|
10
|
+
border-color: inherit;
|
|
11
|
+
border-collapse: collapse;
|
|
12
|
+
border-spacing: 0;
|
|
13
|
+
}
|
|
14
|
+
table.j-table tr.is-selected {
|
|
15
|
+
background-color: var(--table-selected-background, var(--tone-soft));
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
table.j-table td,
|
|
19
|
+
table.j-table th {
|
|
20
|
+
border-width: var(--table-border-width, 0 0 1px);
|
|
21
|
+
border-style: var(--table-border-style, solid);
|
|
22
|
+
border-color: var(--table-border-color, var(--ui-border));
|
|
23
|
+
padding: var(--table-padding, 0.5em 0.75em);
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
table.j-table th:not([align]) {
|
|
27
|
+
text-align: var(--table-cell-text-align, left);
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
table.j-table td:not([align]),
|
|
31
|
+
table.j-table th:not([align]) {
|
|
32
|
+
text-align: inherit;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
table.j-table a {
|
|
36
|
+
text-decoration: var(--table-link-decoration, inherit);
|
|
37
|
+
color: var(--table-link-color, var(--tone-solid));
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
table.j-table.is-striped thead tr,
|
|
41
|
+
table.j-table.is-striped tbody tr:not(.is-selected):nth-child(2n) {
|
|
42
|
+
background-color: var(--table-striped-background, var(--tone-soft));
|
|
43
|
+
}
|
|
44
|
+
table.j-table.is-hoverable tbody tr:hover {
|
|
45
|
+
background-color: var(--table-hover-background, var(--tone-soft));
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
table.j-table.is-bordered td,
|
|
49
|
+
table.j-table.is-bordered th {
|
|
50
|
+
border-width: var(--table-border-width, var(--border-width, 1px));
|
|
51
|
+
}
|
|
52
|
+
}
|
package/src/css/tabs.css
ADDED
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
@layer components {
|
|
2
|
+
.j-tabs {
|
|
3
|
+
display: flex;
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
.j-tabs,
|
|
7
|
+
.j-tabs.is-top {
|
|
8
|
+
flex-direction: column;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
.j-tabs.is-bottom {
|
|
12
|
+
flex-direction: column-reverse;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
.j-tabs.is-left {
|
|
16
|
+
flex-direction: row;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
.j-tabs.is-right {
|
|
20
|
+
flex-direction: row-reverse;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
.j-tabs .tab-wrap {
|
|
24
|
+
overflow: hidden;
|
|
25
|
+
position: relative;
|
|
26
|
+
margin: 0;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
.j-tabs .tab-list {
|
|
30
|
+
display: flex;
|
|
31
|
+
user-select: none;
|
|
32
|
+
-webkit-overflow-scrolling: touch;
|
|
33
|
+
scroll-behavior: smooth;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
.j-tabs.is-left .tab-list,
|
|
37
|
+
.j-tabs.is-right .tab-list {
|
|
38
|
+
flex-direction: column;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
.j-tabs .tab-list .tab-item {
|
|
42
|
+
flex-shrink: 0;
|
|
43
|
+
padding: var(--tab-list-item-padding, var(--s2) var(--s3));
|
|
44
|
+
margin: var(--tab-list-item-margin, 0);
|
|
45
|
+
cursor: pointer;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
.j-tabs.is-top .tab-wrap {
|
|
49
|
+
border-bottom: var(--tab-wrap-bottom-border, 1px solid var(--ui-border-subtle));
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
.j-tabs.is-bottom .tab-wrap {
|
|
53
|
+
border-top: var(--tab-wrap-top-border, 1px solid var(--ui-border-subtle));
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
.j-tabs.is-left .tab-wrap {
|
|
57
|
+
border-right: var(--tab-wrap-right-border, 1px solid var(--ui-border-subtle));
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
.j-tabs.is-right .tab-wrap {
|
|
61
|
+
border-left: var(--tab-wrap-left-border, 1px solid var(--ui-border-subtle));
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
.j-tabs .tab-list .tab-item.is-active {
|
|
65
|
+
color: var(--tone-solid);
|
|
66
|
+
font-weight: var(--font-medium);
|
|
67
|
+
/* text-decoration: underline;
|
|
68
|
+
text-decoration-color: var(--tone-solid);
|
|
69
|
+
text-underline-offset: var(--space); */
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
.j-tabs .tab-list .tab-item.is-disabled {
|
|
73
|
+
color: var(--ui-border-strong);
|
|
74
|
+
cursor: not-allowed;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
.j-tabs .tab-panel {
|
|
78
|
+
padding: var(--tab-panel-padding, var(--s2) var(--s3));
|
|
79
|
+
margin: var(--tab-panel-margin, 0);
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
.j-tabs .tab-panel .panel-item {
|
|
83
|
+
display: none;
|
|
84
|
+
margin: var(--tab-panel-item-margin, 0);
|
|
85
|
+
position: relative;
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
.j-tabs .tab-panel .panel-item.is-active {
|
|
89
|
+
display: block;
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
.j-tabs .tab-panel .panel-item>* {
|
|
93
|
+
margin: 0;
|
|
94
|
+
}
|
|
95
|
+
}
|