@jsb188/css 1.1.12 → 1.1.13
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/LICENSE +21 -0
- package/css/_global.css +98 -55
- package/css/_sizing.css +18 -9
- package/css/alert.css +38 -1
- package/css/loading.css +10 -2
- package/package.json +12 -3
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 jsb188
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/css/_global.css
CHANGED
|
@@ -96,7 +96,7 @@ a.em:before {
|
|
|
96
96
|
text-decoration: line-through;
|
|
97
97
|
}
|
|
98
98
|
|
|
99
|
-
.
|
|
99
|
+
.em_link {
|
|
100
100
|
position: relative;
|
|
101
101
|
white-space: normal;
|
|
102
102
|
overflow-wrap: anywhere;
|
|
@@ -527,6 +527,9 @@ label {
|
|
|
527
527
|
.f {
|
|
528
528
|
flex: 1;
|
|
529
529
|
}
|
|
530
|
+
.f_basis_auto {
|
|
531
|
+
flex-basis: auto;
|
|
532
|
+
}
|
|
530
533
|
.fs {
|
|
531
534
|
flex: 1;
|
|
532
535
|
align-self: stretch;
|
|
@@ -755,35 +758,35 @@ img.no_shrink {
|
|
|
755
758
|
visibility: hidden;
|
|
756
759
|
}
|
|
757
760
|
|
|
758
|
-
/* emphasiszed a.
|
|
761
|
+
/* emphasiszed a.text_link but inside .bg_primary */
|
|
759
762
|
|
|
760
|
-
.bg_primary a.
|
|
761
|
-
.bg_primary button.
|
|
763
|
+
.bg_primary a.text_link,
|
|
764
|
+
.bg_primary button.text_link {
|
|
762
765
|
color: inherit;
|
|
763
766
|
}
|
|
764
767
|
|
|
765
|
-
.bg_primary a.
|
|
766
|
-
.bg_primary button.
|
|
768
|
+
.bg_primary a.text_link:before,
|
|
769
|
+
.bg_primary button.text_link:before {
|
|
767
770
|
opacity: 0.2;
|
|
768
771
|
}
|
|
769
772
|
|
|
770
|
-
.bg_primary a.
|
|
771
|
-
.bg_primary button.
|
|
773
|
+
.bg_primary a.text_link:hover:before,
|
|
774
|
+
.bg_primary button.text_link:hover:before {
|
|
772
775
|
opacity: 0.58;
|
|
773
776
|
}
|
|
774
777
|
|
|
775
|
-
.bg_primary a.
|
|
776
|
-
.bg_primary button.
|
|
777
|
-
.bg_primary a.
|
|
778
|
-
.bg_primary button.
|
|
778
|
+
.bg_primary a.text_link:before,
|
|
779
|
+
.bg_primary button.text_link:before,
|
|
780
|
+
.bg_primary a.text_link:not(.disabled):not(:disabled):hover:before,
|
|
781
|
+
.bg_primary button.text_link:not(.disabled):not(:disabled):hover:before {
|
|
779
782
|
bottom: -0.2em;
|
|
780
783
|
border-bottom: 4px solid var(--color-solid);
|
|
781
784
|
}
|
|
782
785
|
|
|
783
|
-
.ft_xs a.
|
|
784
|
-
a.
|
|
785
|
-
.ft_xs button.
|
|
786
|
-
button.
|
|
786
|
+
.ft_xs a.text_link:before,
|
|
787
|
+
a.text_link.ft_xs:before,
|
|
788
|
+
.ft_xs button.text_link:before,
|
|
789
|
+
button.text_link.ft_xs:before {
|
|
787
790
|
bottom: -0.1em;
|
|
788
791
|
}
|
|
789
792
|
|
|
@@ -1026,10 +1029,6 @@ button.bg_warn:active,
|
|
|
1026
1029
|
background-color: rgb(var(--color-pass)) !important;
|
|
1027
1030
|
color: #fff;
|
|
1028
1031
|
}
|
|
1029
|
-
a.bg_pass:active,
|
|
1030
|
-
button.bg_pass:active {
|
|
1031
|
-
background-color: rgb(var(--color-pass-active)) !important;
|
|
1032
|
-
}
|
|
1033
1032
|
|
|
1034
1033
|
._bg_contrast,
|
|
1035
1034
|
.bg_contrast {
|
|
@@ -1911,17 +1910,21 @@ a.normal {
|
|
|
1911
1910
|
color: var(--color-text);
|
|
1912
1911
|
}
|
|
1913
1912
|
|
|
1914
|
-
a.
|
|
1915
|
-
button.
|
|
1913
|
+
a.text_link,
|
|
1914
|
+
button.text_link {
|
|
1916
1915
|
position: relative;
|
|
1917
1916
|
display: inline-block;
|
|
1918
1917
|
color: var(--color-text);
|
|
1919
1918
|
}
|
|
1920
1919
|
|
|
1921
|
-
a.
|
|
1922
|
-
|
|
1923
|
-
|
|
1924
|
-
|
|
1920
|
+
a.text_link.h_item {
|
|
1921
|
+
display: inline-flex;
|
|
1922
|
+
}
|
|
1923
|
+
|
|
1924
|
+
a.text_link:before,
|
|
1925
|
+
button.text_link:before,
|
|
1926
|
+
a.text_link:after,
|
|
1927
|
+
button.text_link:after {
|
|
1925
1928
|
content: " ";
|
|
1926
1929
|
position: absolute;
|
|
1927
1930
|
bottom: -0.25em;
|
|
@@ -1930,65 +1933,65 @@ button.text:after {
|
|
|
1930
1933
|
transition: opacity 0.1s ease-in-out;
|
|
1931
1934
|
}
|
|
1932
1935
|
|
|
1933
|
-
a.
|
|
1934
|
-
button.
|
|
1936
|
+
a.text_link:before,
|
|
1937
|
+
button.text_link:before {
|
|
1935
1938
|
z-index: 1;
|
|
1936
1939
|
border-bottom: 0.1875em dotted var(--color-text-light);
|
|
1937
1940
|
opacity: 1;
|
|
1938
1941
|
}
|
|
1939
1942
|
|
|
1940
|
-
a.
|
|
1941
|
-
button.
|
|
1943
|
+
a.text_link:after,
|
|
1944
|
+
button.text_link:after {
|
|
1942
1945
|
z-index: 2;
|
|
1943
1946
|
border-bottom: 0.3125em solid rgb(var(--color-main));
|
|
1944
1947
|
opacity: 0;
|
|
1945
1948
|
}
|
|
1946
1949
|
|
|
1947
|
-
a.
|
|
1948
|
-
button.
|
|
1950
|
+
a.text_link._text_df_bf:after,
|
|
1951
|
+
button.text_link._text_df_bf:after {
|
|
1949
1952
|
z-index: 2;
|
|
1950
1953
|
border-bottom: 0.1875em solid var(--color-text);
|
|
1951
1954
|
opacity: 0;
|
|
1952
1955
|
}
|
|
1953
1956
|
|
|
1954
|
-
a.
|
|
1955
|
-
button.
|
|
1957
|
+
a.text_link:not(.disabled):not(:disabled):hover:before,
|
|
1958
|
+
button.text_link:not(.disabled):not(:disabled):hover:before {
|
|
1956
1959
|
opacity: 0;
|
|
1957
1960
|
}
|
|
1958
1961
|
|
|
1959
|
-
a.
|
|
1960
|
-
button.
|
|
1962
|
+
a.text_link:not(.disabled):not(:disabled):hover:after,
|
|
1963
|
+
button.text_link:not(.disabled):not(:disabled):hover:after {
|
|
1961
1964
|
opacity: 1;
|
|
1962
1965
|
}
|
|
1963
1966
|
|
|
1964
|
-
a.
|
|
1965
|
-
button.
|
|
1967
|
+
a.text_link.cl_md,
|
|
1968
|
+
button.text_link.cl_md {
|
|
1966
1969
|
color: var(--color-text-medium);
|
|
1967
1970
|
}
|
|
1968
1971
|
|
|
1969
|
-
a.
|
|
1970
|
-
button.
|
|
1972
|
+
a.text_link.cl_bd,
|
|
1973
|
+
button.text_link.cl_bd {
|
|
1971
1974
|
color: var(--color-text-bold);
|
|
1972
1975
|
}
|
|
1973
1976
|
|
|
1974
|
-
a.
|
|
1975
|
-
button.
|
|
1976
|
-
a.
|
|
1977
|
-
button.
|
|
1977
|
+
a.text_link.cl_primary:before,
|
|
1978
|
+
button.text_link.cl_primary:before,
|
|
1979
|
+
a.text_link.cl_primary:hover:before,
|
|
1980
|
+
button.text_link.cl_primary:hover:before {
|
|
1978
1981
|
border-bottom-color: rgb(var(--color-primary));
|
|
1979
1982
|
}
|
|
1980
1983
|
|
|
1981
|
-
a.
|
|
1982
|
-
button.
|
|
1983
|
-
a.
|
|
1984
|
-
button.
|
|
1984
|
+
a.text_link.cl_secondary:before,
|
|
1985
|
+
button.text_link.cl_secondary:before,
|
|
1986
|
+
a.text_link.cl_secondary:hover:before,
|
|
1987
|
+
button.text_link.cl_secondary:hover:before {
|
|
1985
1988
|
border-bottom-color: rgb(var(--color-secondary));
|
|
1986
1989
|
}
|
|
1987
1990
|
|
|
1988
|
-
a.
|
|
1989
|
-
button.
|
|
1990
|
-
a.
|
|
1991
|
-
button.
|
|
1991
|
+
a.text_link.cl_main:before,
|
|
1992
|
+
button.text_link.cl_main:before,
|
|
1993
|
+
a.text_link.cl_main:hover:before,
|
|
1994
|
+
button.text_link.cl_main:hover:before {
|
|
1992
1995
|
border-bottom-color: rgb(var(--color-main));
|
|
1993
1996
|
}
|
|
1994
1997
|
|
|
@@ -2099,6 +2102,46 @@ button.text.cl_main:hover:before {
|
|
|
2099
2102
|
}
|
|
2100
2103
|
|
|
2101
2104
|
/* Outline helpers */
|
|
2105
|
+
:where(:focus-visible) {
|
|
2106
|
+
outline: none;
|
|
2107
|
+
}
|
|
2108
|
+
|
|
2109
|
+
.focus_visible,
|
|
2110
|
+
:where(
|
|
2111
|
+
a,
|
|
2112
|
+
button,
|
|
2113
|
+
summary,
|
|
2114
|
+
select,
|
|
2115
|
+
[type="button"],
|
|
2116
|
+
input:is(
|
|
2117
|
+
[type="submit"],
|
|
2118
|
+
[type="reset"],
|
|
2119
|
+
[type="image"],
|
|
2120
|
+
[type="checkbox"],
|
|
2121
|
+
[type="radio"],
|
|
2122
|
+
[type="file"],
|
|
2123
|
+
[type="color"],
|
|
2124
|
+
[type="range"]
|
|
2125
|
+
),
|
|
2126
|
+
[role="button"],
|
|
2127
|
+
[role="link"],
|
|
2128
|
+
[role="menuitem"],
|
|
2129
|
+
[role="menuitemcheckbox"],
|
|
2130
|
+
[role="menuitemradio"],
|
|
2131
|
+
[role="tab"],
|
|
2132
|
+
[role="treeitem"],
|
|
2133
|
+
[role="option"],
|
|
2134
|
+
[role="checkbox"],
|
|
2135
|
+
[role="radio"],
|
|
2136
|
+
[role="switch"],
|
|
2137
|
+
.link,
|
|
2138
|
+
.pointer,
|
|
2139
|
+
[onclick]
|
|
2140
|
+
):focus-visible {
|
|
2141
|
+
outline: 3px solid rgb(var(--color-assist));
|
|
2142
|
+
outline-offset: -1px;
|
|
2143
|
+
}
|
|
2144
|
+
|
|
2102
2145
|
.ol_none,
|
|
2103
2146
|
.ol_none:hover,
|
|
2104
2147
|
.ol_none:focus {
|
|
@@ -2165,8 +2208,7 @@ a:not(.disabled) {
|
|
|
2165
2208
|
color 0.125s ease-in-out,
|
|
2166
2209
|
background-color 0.125s ease-in-out,
|
|
2167
2210
|
border-color 0.125s ease-in-out,
|
|
2168
|
-
opacity 0.125s ease-in-out
|
|
2169
|
-
outline-color 0.125s ease-in-out;
|
|
2211
|
+
opacity 0.125s ease-in-out;
|
|
2170
2212
|
}
|
|
2171
2213
|
.trans_transform_opacity {
|
|
2172
2214
|
transition:
|
|
@@ -2262,7 +2304,7 @@ a:not(.disabled) {
|
|
|
2262
2304
|
/* Scroll related utilities */
|
|
2263
2305
|
|
|
2264
2306
|
.scr_chain_x {
|
|
2265
|
-
overscroll-behavior-x:
|
|
2307
|
+
overscroll-behavior-x: auto;
|
|
2266
2308
|
}
|
|
2267
2309
|
.scr_chain_y {
|
|
2268
2310
|
overscroll-behavior-y: chain;
|
|
@@ -2359,6 +2401,7 @@ a:not(.disabled) {
|
|
|
2359
2401
|
|
|
2360
2402
|
.y_scr_hidden {
|
|
2361
2403
|
overflow: hidden auto;
|
|
2404
|
+
scrollbar-width: none;
|
|
2362
2405
|
}
|
|
2363
2406
|
|
|
2364
2407
|
.x_scr_hidden {
|
package/css/_sizing.css
CHANGED
|
@@ -573,6 +573,12 @@ body copy stays readable on phones.
|
|
|
573
573
|
transform: translateX(4px);
|
|
574
574
|
}
|
|
575
575
|
|
|
576
|
+
.tf_scale_95 {
|
|
577
|
+
scale: 0.95;
|
|
578
|
+
}
|
|
579
|
+
.tf_origin_bottom {
|
|
580
|
+
transform-origin: bottom center;
|
|
581
|
+
}
|
|
576
582
|
.tf_rotate_0 {
|
|
577
583
|
transform: rotate(0deg);
|
|
578
584
|
}
|
|
@@ -645,6 +651,9 @@ body copy stays readable on phones.
|
|
|
645
651
|
.tf_rotate_345 {
|
|
646
652
|
transform: rotate(345deg);
|
|
647
653
|
}
|
|
654
|
+
.tf_rotate_354 {
|
|
655
|
+
transform: rotate(-6deg);
|
|
656
|
+
}
|
|
648
657
|
.tf_rotate_360 {
|
|
649
658
|
transform: rotate(360deg);
|
|
650
659
|
}
|
|
@@ -1339,31 +1348,31 @@ body copy stays readable on phones.
|
|
|
1339
1348
|
|
|
1340
1349
|
/* Font size overrides; keep this at bottom for priority */
|
|
1341
1350
|
|
|
1342
|
-
.ft_xxxs {
|
|
1351
|
+
.ft_xxxs, ._ft_xxxs {
|
|
1343
1352
|
font-size: 12px;
|
|
1344
1353
|
}
|
|
1345
|
-
.ft_xxs {
|
|
1354
|
+
.ft_xxs, ._ft_xxs {
|
|
1346
1355
|
font-size: var(--text-xxsmall);
|
|
1347
1356
|
}
|
|
1348
|
-
.ft_xs {
|
|
1357
|
+
.ft_xs, ._ft_xs {
|
|
1349
1358
|
font-size: var(--text-xsmall);
|
|
1350
1359
|
}
|
|
1351
|
-
.ft_sm {
|
|
1360
|
+
.ft_sm, ._ft_sm {
|
|
1352
1361
|
font-size: var(--text-small);
|
|
1353
1362
|
}
|
|
1354
|
-
.ft_df {
|
|
1363
|
+
.ft_df, ._ft_df {
|
|
1355
1364
|
font-size: var(--text-default);
|
|
1356
1365
|
}
|
|
1357
|
-
.ft_md {
|
|
1366
|
+
.ft_md, ._ft_md {
|
|
1358
1367
|
font-size: var(--text-medium);
|
|
1359
1368
|
}
|
|
1360
|
-
.ft_lg {
|
|
1369
|
+
.ft_lg, ._ft_lg {
|
|
1361
1370
|
font-size: var(--text-large);
|
|
1362
1371
|
}
|
|
1363
|
-
.ft_xl {
|
|
1372
|
+
.ft_xl, ._ft_xl {
|
|
1364
1373
|
font-size: var(--text-xlarge);
|
|
1365
1374
|
}
|
|
1366
|
-
.ft_xxl {
|
|
1375
|
+
.ft_xxl, ._ft_xxl {
|
|
1367
1376
|
font-size: var(--text-xxlarge);
|
|
1368
1377
|
}
|
|
1369
1378
|
|
package/css/alert.css
CHANGED
|
@@ -23,7 +23,44 @@
|
|
|
23
23
|
}
|
|
24
24
|
|
|
25
25
|
.gr_modal_content {
|
|
26
|
-
|
|
26
|
+
--drawer-gradient: linear-gradient(to bottom, #ccf0ff 0px, transparent 250px);
|
|
27
|
+
background-image: var(--drawer-gradient);
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
@keyframes drawer-background-scroll {
|
|
31
|
+
to {
|
|
32
|
+
transform: translateY(-110px);
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
@media (prefers-reduced-motion: no-preference) {
|
|
37
|
+
@supports (timeline-scope: --drawer-scroll) and (animation-timeline: --drawer-scroll) and (animation-range: 0px 200px) {
|
|
38
|
+
.gr_modal_content {
|
|
39
|
+
timeline-scope: --drawer-scroll;
|
|
40
|
+
background-image: none;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
.gr_modal_content > .scr_area {
|
|
44
|
+
scroll-timeline-name: --drawer-scroll;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
.gr_modal_content::after {
|
|
48
|
+
content: "";
|
|
49
|
+
position: absolute;
|
|
50
|
+
inset: 0 0 auto;
|
|
51
|
+
height: 250px;
|
|
52
|
+
z-index: -1;
|
|
53
|
+
pointer-events: none;
|
|
54
|
+
background-image: var(--drawer-gradient);
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
.gr_modal_content::before,
|
|
58
|
+
.gr_modal_content::after {
|
|
59
|
+
animation: drawer-background-scroll auto linear both;
|
|
60
|
+
animation-timeline: --drawer-scroll;
|
|
61
|
+
animation-range: 0px 200px;
|
|
62
|
+
}
|
|
63
|
+
}
|
|
27
64
|
}
|
|
28
65
|
|
|
29
66
|
.gr_cta_popup {
|
package/css/loading.css
CHANGED
|
@@ -15,10 +15,18 @@
|
|
|
15
15
|
.dot {
|
|
16
16
|
width: 0.3rem;
|
|
17
17
|
height: 0.3rem;
|
|
18
|
-
margin: 0 0.35rem;
|
|
19
18
|
}
|
|
20
19
|
|
|
21
|
-
.dot.
|
|
20
|
+
.dot.xxs {
|
|
21
|
+
/* 4px */
|
|
22
|
+
width: 0.25rem;
|
|
23
|
+
height: 0.25rem;
|
|
24
|
+
/* 3px */
|
|
25
|
+
/*width: 0.21875rem;*/
|
|
26
|
+
/*height: 0.21875rem;*/
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
.dot.xs {
|
|
22
30
|
width: 0.3rem;
|
|
23
31
|
height: 0.3rem;
|
|
24
32
|
margin: 0 0.09rem;
|
package/package.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jsb188/css",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.13",
|
|
4
4
|
"description": "Re-usable, base CSS styles for any app (NOTE: Bring your own variables).",
|
|
5
|
-
"license": "
|
|
5
|
+
"license": "MIT",
|
|
6
6
|
"author": "jsb188",
|
|
7
7
|
"type": "module",
|
|
8
8
|
"exports": {
|
|
@@ -21,5 +21,14 @@
|
|
|
21
21
|
"gen:responsive-css": "node ./scripts/generateResponsiveCss.js",
|
|
22
22
|
"test": "echo \"Error: no test specified\" && exit 1"
|
|
23
23
|
},
|
|
24
|
-
"peerDependencies": {}
|
|
24
|
+
"peerDependencies": {},
|
|
25
|
+
"files": [
|
|
26
|
+
"css/**/*.{ts,tsx,css,svg}",
|
|
27
|
+
"scripts/generateResponsiveCss.js",
|
|
28
|
+
"!**/*.test.*",
|
|
29
|
+
"!**/*.spec.*",
|
|
30
|
+
"!**/tests/**",
|
|
31
|
+
"!**/*.md",
|
|
32
|
+
"!**/.DS_Store"
|
|
33
|
+
]
|
|
25
34
|
}
|