@trionesdev/antd-mobile-base-react 0.0.2-beta.18 → 0.0.2-beta.19
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 -21
- package/README.md +23 -23
- package/dist/Alert/style.scss +69 -69
- package/dist/Avatar/style.scss +17 -17
- package/dist/Badge/style.scss +100 -100
- package/dist/Card/style.scss +35 -35
- package/dist/CascaderView/style.scss +22 -22
- package/dist/Cell/styles.scss +81 -81
- package/dist/Checkbox/index.scss +165 -165
- package/dist/DemoBlock/index.scss +20 -20
- package/dist/DemoDescription/index.scss +3 -3
- package/dist/Descriptions/style.scss +65 -65
- package/dist/Divider/style.scss +62 -62
- package/dist/Ellipsis/style.scss +13 -13
- package/dist/Empty/style.scss +29 -29
- package/dist/ErrorBlock/demo/base.js +2 -2
- package/dist/ErrorBlock/style.scss +62 -62
- package/dist/Footer/style.scss +55 -55
- package/dist/Form/styles.scss +11 -11
- package/dist/FormCell/styles.scss +103 -103
- package/dist/Grid/style.scss +17 -17
- package/dist/Icon/demo/base.js +2 -2
- package/dist/InputNumber/style.scss +100 -100
- package/dist/Loading/DotLoading.d.ts +0 -1
- package/dist/Loading/DotLoading.js +0 -1
- package/dist/Loading/SpinLoading.d.ts +0 -1
- package/dist/Loading/SpinLoading.js +0 -1
- package/dist/Loading/index.d.ts +1 -0
- package/dist/Loading/index.js +1 -0
- package/dist/Loading/{dot-loading.scss → style.scss} +113 -72
- package/dist/NavBar/style.scss +65 -64
- package/dist/NoticeBar/style.scss +130 -130
- package/dist/PageIndicator/style.scss +59 -59
- package/dist/Progress/style.scss +33 -33
- package/dist/Radio/style.scss +154 -154
- package/dist/Rate/style.scss +37 -37
- package/dist/Result/demo/base.js +2 -2
- package/dist/Result/style.scss +73 -73
- package/dist/SafeArea/style.scss +20 -20
- package/dist/Scaffold/style.scss +17 -17
- package/dist/Segmented/style.scss +75 -75
- package/dist/Skeleton/style.scss +215 -215
- package/dist/Space/style.scss +101 -101
- package/dist/Stepper/style.scss +100 -100
- package/dist/Steps/style.scss +153 -153
- package/dist/Switch/style.scss +127 -127
- package/dist/TabBar/demo/base.js +2 -2
- package/dist/TabBar/index.scss +37 -37
- package/dist/Tabs/style.scss +108 -108
- package/dist/Tag/style.scss +110 -110
- package/dist/WaterMark/style.scss +17 -17
- package/dist/style/css-variable.scss +6 -6
- package/dist/style/style.scss +52 -52
- package/dist/style/theme-dark.scss +24 -24
- package/dist/style/theme-default.scss +54 -54
- package/dist/style/variable.scss +180 -180
- package/dist/utils/type.js +36 -36
- package/dist/utils/with-default-props.js +4 -4
- package/package.json +3 -3
- package/dist/Loading/spin-loading.scss +0 -39
package/dist/Grid/style.scss
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
$class-prefix-grid: 'triones-antm-grid';
|
|
2
|
-
/* prettier-ignore */
|
|
3
|
-
.#{$class-prefix-grid} {
|
|
4
|
-
--gap: 0;
|
|
5
|
-
--gap-horizontal: var(--gap);
|
|
6
|
-
--gap-vertical: var(--gap);
|
|
7
|
-
|
|
8
|
-
display: grid;
|
|
9
|
-
grid-gap: 10PX;
|
|
10
|
-
column-gap: var(--gap-horizontal);
|
|
11
|
-
row-gap: var(--gap-vertical);
|
|
12
|
-
grid-template-columns: repeat(var(--columns), minmax(0, 1fr));
|
|
13
|
-
align-items: stretch;
|
|
14
|
-
&-item {
|
|
15
|
-
grid-column-end: span var(--item-span);
|
|
16
|
-
}
|
|
17
|
-
}
|
|
1
|
+
$class-prefix-grid: 'triones-antm-grid';
|
|
2
|
+
/* prettier-ignore */
|
|
3
|
+
.#{$class-prefix-grid} {
|
|
4
|
+
--gap: 0;
|
|
5
|
+
--gap-horizontal: var(--gap);
|
|
6
|
+
--gap-vertical: var(--gap);
|
|
7
|
+
|
|
8
|
+
display: grid;
|
|
9
|
+
grid-gap: 10PX;
|
|
10
|
+
column-gap: var(--gap-horizontal);
|
|
11
|
+
row-gap: var(--gap-vertical);
|
|
12
|
+
grid-template-columns: repeat(var(--columns), minmax(0, 1fr));
|
|
13
|
+
align-items: stretch;
|
|
14
|
+
&-item {
|
|
15
|
+
grid-column-end: span var(--item-span);
|
|
16
|
+
}
|
|
17
|
+
}
|
package/dist/Icon/demo/base.js
CHANGED
|
@@ -1,100 +1,100 @@
|
|
|
1
|
-
@use "../style/variable" as variable;
|
|
2
|
-
|
|
3
|
-
$trionesInputNumberCls: 'triones-antm-input-number';
|
|
4
|
-
|
|
5
|
-
$inputNumberBg: #F5F5F5;
|
|
6
|
-
$inputSm: 24Px;
|
|
7
|
-
$inputLg: 40Px;
|
|
8
|
-
$inputNumberControlHeight: 28Px;
|
|
9
|
-
|
|
10
|
-
.#{$trionesInputNumberCls} {
|
|
11
|
-
display: inline-flex;
|
|
12
|
-
align-items: stretch;
|
|
13
|
-
gap: 2Px;
|
|
14
|
-
border-radius: variable.$trionesBorderRadiusXs;
|
|
15
|
-
overflow: hidden;
|
|
16
|
-
|
|
17
|
-
&--block {
|
|
18
|
-
display: flex;
|
|
19
|
-
width: 100%;
|
|
20
|
-
|
|
21
|
-
.#{$trionesInputNumberCls}-input {
|
|
22
|
-
flex: 1 1 auto;
|
|
23
|
-
min-width: 0;
|
|
24
|
-
}
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
&-input {
|
|
28
|
-
display: flex;
|
|
29
|
-
align-items: stretch;
|
|
30
|
-
flex: 0 1 auto;
|
|
31
|
-
min-width: 36Px;
|
|
32
|
-
min-height: $inputNumberControlHeight;
|
|
33
|
-
|
|
34
|
-
input {
|
|
35
|
-
width: 100%;
|
|
36
|
-
min-width: 0;
|
|
37
|
-
height: 100%;
|
|
38
|
-
min-height: $inputNumberControlHeight;
|
|
39
|
-
box-sizing: border-box;
|
|
40
|
-
margin: 0;
|
|
41
|
-
padding: 0 8Px;
|
|
42
|
-
border: 0;
|
|
43
|
-
border-radius: variable.$trionesBorderRadiusXs;
|
|
44
|
-
background-color: $inputNumberBg;
|
|
45
|
-
color: variable.$trionesColorText;
|
|
46
|
-
font-size: 14Px;
|
|
47
|
-
line-height: $inputNumberControlHeight;
|
|
48
|
-
text-align: center;
|
|
49
|
-
-moz-appearance: textfield;
|
|
50
|
-
appearance: textfield;
|
|
51
|
-
|
|
52
|
-
&::-webkit-outer-spin-button,
|
|
53
|
-
&::-webkit-inner-spin-button {
|
|
54
|
-
-webkit-appearance: none;
|
|
55
|
-
margin: 0;
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
&:focus {
|
|
59
|
-
outline: none;
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
&:disabled {
|
|
63
|
-
color: variable.$trionesColorTextDisabled;
|
|
64
|
-
cursor: not-allowed;
|
|
65
|
-
}
|
|
66
|
-
}
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
&-button {
|
|
70
|
-
cursor: pointer;
|
|
71
|
-
display: flex;
|
|
72
|
-
flex-shrink: 0;
|
|
73
|
-
font-size: 10Px;
|
|
74
|
-
height: $inputNumberControlHeight;
|
|
75
|
-
width: $inputNumberControlHeight;
|
|
76
|
-
justify-content: center;
|
|
77
|
-
align-items: center;
|
|
78
|
-
background-color: $inputNumberBg;
|
|
79
|
-
border-radius: variable.$trionesBorderRadiusXs;
|
|
80
|
-
|
|
81
|
-
&-sm {
|
|
82
|
-
width: $inputSm;
|
|
83
|
-
height: $inputSm;
|
|
84
|
-
}
|
|
85
|
-
|
|
86
|
-
&-lg {
|
|
87
|
-
width: $inputLg;
|
|
88
|
-
height: $inputLg;
|
|
89
|
-
}
|
|
90
|
-
|
|
91
|
-
&-disabled {
|
|
92
|
-
cursor: not-allowed;
|
|
93
|
-
color: variable.$trionesColorTextDisabled;
|
|
94
|
-
}
|
|
95
|
-
|
|
96
|
-
.triones-antm-icon {
|
|
97
|
-
font-size: 10Px !important;
|
|
98
|
-
}
|
|
99
|
-
}
|
|
100
|
-
}
|
|
1
|
+
@use "../style/variable" as variable;
|
|
2
|
+
|
|
3
|
+
$trionesInputNumberCls: 'triones-antm-input-number';
|
|
4
|
+
|
|
5
|
+
$inputNumberBg: #F5F5F5;
|
|
6
|
+
$inputSm: 24Px;
|
|
7
|
+
$inputLg: 40Px;
|
|
8
|
+
$inputNumberControlHeight: 28Px;
|
|
9
|
+
|
|
10
|
+
.#{$trionesInputNumberCls} {
|
|
11
|
+
display: inline-flex;
|
|
12
|
+
align-items: stretch;
|
|
13
|
+
gap: 2Px;
|
|
14
|
+
border-radius: variable.$trionesBorderRadiusXs;
|
|
15
|
+
overflow: hidden;
|
|
16
|
+
|
|
17
|
+
&--block {
|
|
18
|
+
display: flex;
|
|
19
|
+
width: 100%;
|
|
20
|
+
|
|
21
|
+
.#{$trionesInputNumberCls}-input {
|
|
22
|
+
flex: 1 1 auto;
|
|
23
|
+
min-width: 0;
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
&-input {
|
|
28
|
+
display: flex;
|
|
29
|
+
align-items: stretch;
|
|
30
|
+
flex: 0 1 auto;
|
|
31
|
+
min-width: 36Px;
|
|
32
|
+
min-height: $inputNumberControlHeight;
|
|
33
|
+
|
|
34
|
+
input {
|
|
35
|
+
width: 100%;
|
|
36
|
+
min-width: 0;
|
|
37
|
+
height: 100%;
|
|
38
|
+
min-height: $inputNumberControlHeight;
|
|
39
|
+
box-sizing: border-box;
|
|
40
|
+
margin: 0;
|
|
41
|
+
padding: 0 8Px;
|
|
42
|
+
border: 0;
|
|
43
|
+
border-radius: variable.$trionesBorderRadiusXs;
|
|
44
|
+
background-color: $inputNumberBg;
|
|
45
|
+
color: variable.$trionesColorText;
|
|
46
|
+
font-size: 14Px;
|
|
47
|
+
line-height: $inputNumberControlHeight;
|
|
48
|
+
text-align: center;
|
|
49
|
+
-moz-appearance: textfield;
|
|
50
|
+
appearance: textfield;
|
|
51
|
+
|
|
52
|
+
&::-webkit-outer-spin-button,
|
|
53
|
+
&::-webkit-inner-spin-button {
|
|
54
|
+
-webkit-appearance: none;
|
|
55
|
+
margin: 0;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
&:focus {
|
|
59
|
+
outline: none;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
&:disabled {
|
|
63
|
+
color: variable.$trionesColorTextDisabled;
|
|
64
|
+
cursor: not-allowed;
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
&-button {
|
|
70
|
+
cursor: pointer;
|
|
71
|
+
display: flex;
|
|
72
|
+
flex-shrink: 0;
|
|
73
|
+
font-size: 10Px;
|
|
74
|
+
height: $inputNumberControlHeight;
|
|
75
|
+
width: $inputNumberControlHeight;
|
|
76
|
+
justify-content: center;
|
|
77
|
+
align-items: center;
|
|
78
|
+
background-color: $inputNumberBg;
|
|
79
|
+
border-radius: variable.$trionesBorderRadiusXs;
|
|
80
|
+
|
|
81
|
+
&-sm {
|
|
82
|
+
width: $inputSm;
|
|
83
|
+
height: $inputSm;
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
&-lg {
|
|
87
|
+
width: $inputLg;
|
|
88
|
+
height: $inputLg;
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
&-disabled {
|
|
92
|
+
cursor: not-allowed;
|
|
93
|
+
color: variable.$trionesColorTextDisabled;
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
.triones-antm-icon {
|
|
97
|
+
font-size: 10Px !important;
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
}
|
|
@@ -6,7 +6,6 @@ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol"
|
|
|
6
6
|
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
7
7
|
import classNames from 'classnames';
|
|
8
8
|
import React, { memo, useMemo } from 'react';
|
|
9
|
-
import "./dot-loading.scss";
|
|
10
9
|
var dotLoadingCls = 'triones-antm-dot-loading';
|
|
11
10
|
export var DotLoading = /*#__PURE__*/memo(function (_ref) {
|
|
12
11
|
var className = _ref.className,
|
|
@@ -6,7 +6,6 @@ import classNames from 'classnames';
|
|
|
6
6
|
import Base64 from 'crypto-js/enc-base64';
|
|
7
7
|
import Utf8 from 'crypto-js/enc-utf8';
|
|
8
8
|
import React from 'react';
|
|
9
|
-
import "./spin-loading.scss";
|
|
10
9
|
var spinLoadingCls = 'triones-antm-spin-loading';
|
|
11
10
|
export function createSvgStr(props) {
|
|
12
11
|
return "<svg xmlns=\"http://www.w3.org/2000/svg\" style=\"width:100%;height:100%\" viewBox=\"0 0 32 32\">\n <circle r=\"15\" cx=\"16\" cy=\"16\"\n stroke-width=\"2\"\n stroke=\"".concat(props.stroke, "\"\n fill=\"transparent\"\n stroke-linecap=\"round\"\n stroke-dasharray=\"").concat(15 * 3.14159265358979 * 2, "\"\n stroke-dashoffset=\"").concat(15 * 3.14159265358979 * 0.5, "\"></circle>\n </svg>");
|
package/dist/Loading/index.d.ts
CHANGED
package/dist/Loading/index.js
CHANGED
|
@@ -1,72 +1,113 @@
|
|
|
1
|
-
@use "../style/variable"
|
|
2
|
-
|
|
3
|
-
$dotLoadingCls: triones-antm-dot-loading;
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
gap
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
mask-
|
|
35
|
-
|
|
36
|
-
mask-
|
|
37
|
-
|
|
38
|
-
mask-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
animation-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
}
|
|
1
|
+
@use "../style/variable";
|
|
2
|
+
|
|
3
|
+
$dotLoadingCls: triones-antm-dot-loading;
|
|
4
|
+
$spinLoadingCls: triones-antm-spin-loading;
|
|
5
|
+
|
|
6
|
+
.#{$dotLoadingCls} {
|
|
7
|
+
display: inline-flex;
|
|
8
|
+
align-items: center;
|
|
9
|
+
height: 1em;
|
|
10
|
+
vertical-align: -0.125em;
|
|
11
|
+
/* 18 / 40 * 1em — horizontal gap between dots in antd-mobile viewBox */
|
|
12
|
+
gap: 0.45em;
|
|
13
|
+
|
|
14
|
+
&-default {
|
|
15
|
+
color: #9D9D9D;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
&-primary {
|
|
19
|
+
color: variable.$trionesColorPrimary;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
&-white {
|
|
23
|
+
color: white;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
&-dot {
|
|
27
|
+
display: block;
|
|
28
|
+
flex-shrink: 0;
|
|
29
|
+
/* 8×8 in a 40-unit-tall viewBox, height = 1em */
|
|
30
|
+
width: 0.2em;
|
|
31
|
+
height: 0.2em;
|
|
32
|
+
background: currentColor;
|
|
33
|
+
//mask-image: var(--dotLoadingMask);
|
|
34
|
+
//-webkit-mask-image: var(--dotLoadingMask);
|
|
35
|
+
mask-repeat: no-repeat;
|
|
36
|
+
-webkit-mask-repeat: no-repeat;
|
|
37
|
+
mask-size: 100% 100%;
|
|
38
|
+
-webkit-mask-size: 100% 100%;
|
|
39
|
+
mask-position: center;
|
|
40
|
+
-webkit-mask-position: center;
|
|
41
|
+
animation: triones-antm-dot-loading-bounce 2s infinite linear;
|
|
42
|
+
animation-fill-mode: backwards;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
&-dot-0 {
|
|
46
|
+
animation-delay: 0s;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
&-dot-1 {
|
|
50
|
+
animation-delay: 0.2s;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
&-dot-2 {
|
|
54
|
+
animation-delay: 0.4s;
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
/* Mirrors antd-mobile SMIL: values 16;6;26;16;16, keyTimes 0;0.1;0.3;0.4;1, viewBox height 40 */
|
|
59
|
+
@keyframes triones-antm-dot-loading-bounce {
|
|
60
|
+
0%,
|
|
61
|
+
40%,
|
|
62
|
+
100% {
|
|
63
|
+
transform: translateY(0);
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
10% {
|
|
67
|
+
transform: translateY(-0.25em);
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
30% {
|
|
71
|
+
transform: translateY(0.25em);
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
|
|
76
|
+
|
|
77
|
+
|
|
78
|
+
.#{$spinLoadingCls} {
|
|
79
|
+
--size: 32Px;
|
|
80
|
+
width: var(--size);
|
|
81
|
+
height: var(--size);
|
|
82
|
+
|
|
83
|
+
&-default{
|
|
84
|
+
color: #9D9D9D;
|
|
85
|
+
}
|
|
86
|
+
&-primary{
|
|
87
|
+
color: variable.$trionesColorPrimary;
|
|
88
|
+
}
|
|
89
|
+
&-white{
|
|
90
|
+
color: #ffffff;
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
&-spin {
|
|
94
|
+
//color: var(--color);
|
|
95
|
+
display: inline-block;
|
|
96
|
+
height: 100%;
|
|
97
|
+
width: 100%;
|
|
98
|
+
background: currentColor;
|
|
99
|
+
mask-image: var(--maskImage);
|
|
100
|
+
-webkit-mask-image: var(--maskImage);
|
|
101
|
+
animation: adm-spin-loading-rotate 2s infinite linear;
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
@keyframes adm-spin-loading-rotate {
|
|
107
|
+
from {
|
|
108
|
+
transform: rotate(0deg);
|
|
109
|
+
}
|
|
110
|
+
to {
|
|
111
|
+
transform: rotate(360deg);
|
|
112
|
+
}
|
|
113
|
+
}
|
package/dist/NavBar/style.scss
CHANGED
|
@@ -1,64 +1,65 @@
|
|
|
1
|
-
@use "../style/variable" as variable;
|
|
2
|
-
|
|
3
|
-
$trionesNavBarColorBg: variable.$trionesColorBorderBg !default;
|
|
4
|
-
$trionesNavBarColorText: variable.$trionesColorTextBase !default;
|
|
5
|
-
|
|
6
|
-
$class-prefix-nav-bar: 'triones-antm-nav-bar';
|
|
7
|
-
/* prettier-ignore */
|
|
8
|
-
.#{$class-prefix-nav-bar} {
|
|
9
|
-
--height: 45PX;
|
|
10
|
-
--border-bottom: none;
|
|
11
|
-
display: flex;
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
&-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
}
|
|
1
|
+
@use "../style/variable" as variable;
|
|
2
|
+
|
|
3
|
+
$trionesNavBarColorBg: variable.$trionesColorBorderBg !default;
|
|
4
|
+
$trionesNavBarColorText: variable.$trionesColorTextBase !default;
|
|
5
|
+
|
|
6
|
+
$class-prefix-nav-bar: 'triones-antm-nav-bar';
|
|
7
|
+
/* prettier-ignore */
|
|
8
|
+
.#{$class-prefix-nav-bar} {
|
|
9
|
+
--height: 45PX;
|
|
10
|
+
--border-bottom: none;
|
|
11
|
+
display: flex;
|
|
12
|
+
flex: none;
|
|
13
|
+
align-items: center;
|
|
14
|
+
height: var(--height);
|
|
15
|
+
border-bottom: var(--border-bottom);
|
|
16
|
+
padding: 0 12PX;
|
|
17
|
+
white-space: nowrap;
|
|
18
|
+
color: $trionesNavBarColorText;
|
|
19
|
+
background-color: $trionesNavBarColorBg;
|
|
20
|
+
|
|
21
|
+
&-left,
|
|
22
|
+
&-right {
|
|
23
|
+
flex: 1;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
&-title {
|
|
27
|
+
flex: auto;
|
|
28
|
+
text-align: center;
|
|
29
|
+
overflow: hidden;
|
|
30
|
+
text-overflow: ellipsis;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
&-back {
|
|
34
|
+
display: flex;
|
|
35
|
+
align-items: center;
|
|
36
|
+
margin-right: 16PX;
|
|
37
|
+
padding: 6PX 0;
|
|
38
|
+
cursor: pointer;
|
|
39
|
+
|
|
40
|
+
&-arrow {
|
|
41
|
+
font-size: 20PX;
|
|
42
|
+
margin-right: 5PX;
|
|
43
|
+
display: flex;
|
|
44
|
+
align-items: center;
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
&-left {
|
|
49
|
+
font-size: var(--triones-antm-font-size-7);
|
|
50
|
+
display: flex;
|
|
51
|
+
justify-content: flex-start;
|
|
52
|
+
align-items: center;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
&-title {
|
|
56
|
+
justify-content: center;
|
|
57
|
+
white-space: nowrap;
|
|
58
|
+
font-size: var(--triones-antm-font-size-10);
|
|
59
|
+
padding: 0 12PX;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
&-right {
|
|
63
|
+
text-align: right;
|
|
64
|
+
}
|
|
65
|
+
}
|