@seresweb/website-component 2.0.0

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.
Files changed (125) hide show
  1. package/README.md +144 -0
  2. package/dist/_vars-BV4QQF-p.js +4 -0
  3. package/dist/_vars-CyrPevgT.cjs +1 -0
  4. package/dist/cjs/Input.cjs +1 -0
  5. package/dist/cjs/accordion-info-panel.cjs +1 -0
  6. package/dist/cjs/animated-number.cjs +1 -0
  7. package/dist/cjs/drawer.cjs +1 -0
  8. package/dist/cjs/dropdown.cjs +1 -0
  9. package/dist/cjs/gradual-highlight.cjs +1 -0
  10. package/dist/cjs/horizontal-viewer.cjs +1 -0
  11. package/dist/cjs/image-indicator.cjs +1 -0
  12. package/dist/cjs/index.cjs +1 -0
  13. package/dist/cjs/layz-image.cjs +1 -0
  14. package/dist/cjs/parameter-box.cjs +1 -0
  15. package/dist/cjs/radio.cjs +1 -0
  16. package/dist/cjs/swiper-normal.cjs +1 -0
  17. package/dist/cjs/swiper-vehicle.cjs +1 -0
  18. package/dist/cjs/tab-indicator.cjs +1 -0
  19. package/dist/cjs/video.cjs +1 -0
  20. package/dist/css/accordion-info-panel.css +1 -0
  21. package/dist/css/drawer.css +1 -0
  22. package/dist/css/dropdown.css +1 -0
  23. package/dist/css/gradual-highlight.css +1 -0
  24. package/dist/css/horizontal-viewer.css +1 -0
  25. package/dist/css/image-indicator.css +1 -0
  26. package/dist/css/input.css +1 -0
  27. package/dist/css/layz-image.css +1 -0
  28. package/dist/css/parameter-box.css +1 -0
  29. package/dist/css/radio.css +1 -0
  30. package/dist/css/swiper-normal.css +1 -0
  31. package/dist/css/swiper-vehicle.css +1 -0
  32. package/dist/css/tab-indicator.css +1 -0
  33. package/dist/css/video.css +1 -0
  34. package/dist/es/Input.mjs +70 -0
  35. package/dist/es/accordion-info-panel.mjs +145 -0
  36. package/dist/es/animated-number.mjs +72 -0
  37. package/dist/es/drawer.mjs +174 -0
  38. package/dist/es/dropdown.mjs +62 -0
  39. package/dist/es/gradual-highlight.mjs +90 -0
  40. package/dist/es/horizontal-viewer.mjs +4 -0
  41. package/dist/es/image-indicator.mjs +4 -0
  42. package/dist/es/index.mjs +60 -0
  43. package/dist/es/layz-image.mjs +51 -0
  44. package/dist/es/parameter-box.mjs +115 -0
  45. package/dist/es/radio.mjs +56 -0
  46. package/dist/es/swiper-normal.mjs +4 -0
  47. package/dist/es/swiper-vehicle.mjs +4 -0
  48. package/dist/es/tab-indicator.mjs +184 -0
  49. package/dist/es/video.mjs +246 -0
  50. package/dist/global.d.ts +22 -0
  51. package/dist/index-BgNMAlW8.js +536 -0
  52. package/dist/index-BrggpRcU.js +5287 -0
  53. package/dist/index-DrnEpWXW.cjs +5 -0
  54. package/dist/index-LswhGmG3.cjs +1 -0
  55. package/dist/index.css +1 -0
  56. package/dist/scss/_animate.scss +132 -0
  57. package/dist/scss/_vars.scss +1 -0
  58. package/dist/scss/accordion-info-panel.scss +104 -0
  59. package/dist/scss/drawer.scss +64 -0
  60. package/dist/scss/dropdown.scss +21 -0
  61. package/dist/scss/gradual-highlight.scss +26 -0
  62. package/dist/scss/horizontal-viewer.scss +161 -0
  63. package/dist/scss/image-indicator.scss +79 -0
  64. package/dist/scss/index.scss +17 -0
  65. package/dist/scss/input.scss +46 -0
  66. package/dist/scss/layz-image.scss +11 -0
  67. package/dist/scss/parameter-box.scss +94 -0
  68. package/dist/scss/radio.scss +70 -0
  69. package/dist/scss/swiper-normal.scss +117 -0
  70. package/dist/scss/swiper-vehicle.scss +123 -0
  71. package/dist/scss/tab-indicator.scss +148 -0
  72. package/dist/scss/video.scss +169 -0
  73. package/dist/types/components/Input/Input.vue.d.ts +26 -0
  74. package/dist/types/components/Input/index.d.ts +6 -0
  75. package/dist/types/components/Input/type.d.ts +9 -0
  76. package/dist/types/components/_utils.d.ts +1 -0
  77. package/dist/types/components/_vars.d.ts +1 -0
  78. package/dist/types/components/accordion-info-panel/accordion-info-panel.vue.d.ts +5 -0
  79. package/dist/types/components/accordion-info-panel/index.d.ts +6 -0
  80. package/dist/types/components/accordion-info-panel/type.d.ts +26 -0
  81. package/dist/types/components/animated-number/animated-number.vue.d.ts +12 -0
  82. package/dist/types/components/animated-number/index.d.ts +6 -0
  83. package/dist/types/components/animated-number/type.d.ts +50 -0
  84. package/dist/types/components/drawer/drawer.vue.d.ts +37 -0
  85. package/dist/types/components/drawer/index.d.ts +6 -0
  86. package/dist/types/components/drawer/type.d.ts +43 -0
  87. package/dist/types/components/drawer/u.d.ts +1 -0
  88. package/dist/types/components/dropdown/dropdown.vue.d.ts +18 -0
  89. package/dist/types/components/dropdown/index.d.ts +5 -0
  90. package/dist/types/components/gradual-highlight/gradual-highlight.vue.d.ts +10 -0
  91. package/dist/types/components/gradual-highlight/index.d.ts +6 -0
  92. package/dist/types/components/gradual-highlight/type.d.ts +17 -0
  93. package/dist/types/components/horizontal-viewer/horizontal-viewer.vue.d.ts +5 -0
  94. package/dist/types/components/horizontal-viewer/index.d.ts +6 -0
  95. package/dist/types/components/horizontal-viewer/mb-viewer.vue.d.ts +5 -0
  96. package/dist/types/components/horizontal-viewer/pc-viewer.vue.d.ts +15 -0
  97. package/dist/types/components/horizontal-viewer/type.d.ts +15 -0
  98. package/dist/types/components/image-indicator/image-indicator.vue.d.ts +11 -0
  99. package/dist/types/components/image-indicator/index.d.ts +6 -0
  100. package/dist/types/components/image-indicator/type.d.ts +18 -0
  101. package/dist/types/components/index.d.ts +21 -0
  102. package/dist/types/components/layz-image/index.d.ts +6 -0
  103. package/dist/types/components/layz-image/layz-image.vue.d.ts +3 -0
  104. package/dist/types/components/layz-image/type.d.ts +35 -0
  105. package/dist/types/components/parameter-box/index.d.ts +6 -0
  106. package/dist/types/components/parameter-box/parameter-box.vue.d.ts +6 -0
  107. package/dist/types/components/parameter-box/type.d.ts +46 -0
  108. package/dist/types/components/radio/index.d.ts +6 -0
  109. package/dist/types/components/radio/radio.vue.d.ts +9 -0
  110. package/dist/types/components/radio/type.d.ts +8 -0
  111. package/dist/types/components/resolver.d.ts +18 -0
  112. package/dist/types/components/swiper-normal/index.d.ts +6 -0
  113. package/dist/types/components/swiper-normal/swiper-normal.vue.d.ts +19 -0
  114. package/dist/types/components/swiper-normal/type.d.ts +79 -0
  115. package/dist/types/components/swiper-vehicle/index.d.ts +6 -0
  116. package/dist/types/components/swiper-vehicle/swiper-vehicle.vue.d.ts +15 -0
  117. package/dist/types/components/swiper-vehicle/type.d.ts +54 -0
  118. package/dist/types/components/tab-indicator/index.d.ts +6 -0
  119. package/dist/types/components/tab-indicator/tab-indicator.vue.d.ts +15 -0
  120. package/dist/types/components/tab-indicator/type.d.ts +28 -0
  121. package/dist/types/components/video/index.d.ts +6 -0
  122. package/dist/types/components/video/type.d.ts +38 -0
  123. package/dist/types/components/video/video-wrapper.vue.d.ts +33 -0
  124. package/dist/types/components/video/video.vue.d.ts +183 -0
  125. package/package.json +48 -0
@@ -0,0 +1,94 @@
1
+ @use './_vars' as vars;
2
+
3
+ .#{vars.$prefix}-parameter-box {
4
+ width: 1400px;
5
+ display: flex;
6
+ justify-content: space-between;
7
+
8
+ .parameter-item {
9
+ border-right-color: #ffffff66;
10
+ border-right-width: 1px;
11
+ border-right-style: solid;
12
+ flex: 1;
13
+ display: flex;
14
+ justify-content: center;
15
+
16
+ &:last-child {
17
+ border-right: none;
18
+ }
19
+
20
+ .parameter-wrap {
21
+ width: fit-content;
22
+ text-align: left;
23
+ }
24
+
25
+ .item-value {
26
+ color: #fff;
27
+ font-family: HarmonyOS_Sans_Light;
28
+ font-size: 44px;
29
+ line-height: 52px;
30
+ font-weight: 300;
31
+ }
32
+ .item-name {
33
+ color: #ffffff99;
34
+ font-family: HarmonyOS_Sans_Light;
35
+ font-size: 18px;
36
+ font-weight: 400;
37
+ line-height: 21px;
38
+ }
39
+
40
+ .item-name + .item-value,
41
+ .item-value + .item-name {
42
+ margin-top: 8px;
43
+ }
44
+ }
45
+
46
+ &--dark {
47
+ .parameter-item {
48
+ border-right-color: #00000066;
49
+ .item-value {
50
+ color: #000;
51
+ }
52
+ .item-name {
53
+ color: #00000099;
54
+ }
55
+ }
56
+ }
57
+ }
58
+ @media (max-width: 768px) {
59
+ .#{vars.$prefix}-parameter-box {
60
+ width: 100%;
61
+ display: grid;
62
+ grid-template-columns: repeat(2, 1fr);
63
+ gap: 24px;
64
+ .parameter-item {
65
+ justify-content: flex-start;
66
+
67
+ &:nth-child(2n) {
68
+ border-right-width: 0;
69
+ }
70
+
71
+ .item-value {
72
+ font-size: 28px;
73
+ line-height: 33px;
74
+ }
75
+
76
+ .item-name {
77
+ font-size: 12px;
78
+ line-height: 14px;
79
+ }
80
+ }
81
+
82
+ &--inline {
83
+ display: flex;
84
+ grid-template-columns: unset;
85
+ flex-direction: row;
86
+
87
+ .parameter-item {
88
+ &:nth-child(2n) {
89
+ border-right-width: 1px;
90
+ }
91
+ }
92
+ }
93
+ }
94
+ }
@@ -0,0 +1,70 @@
1
+ @use './_vars' as vars;
2
+
3
+ .#{vars.$prefix}-radio {
4
+ display: inline-flex;
5
+ align-items: flex-start;
6
+ font-size: 16px;
7
+ color: #000;
8
+ cursor: pointer;
9
+
10
+ &.disabled {
11
+ opacity: 0.5;
12
+ pointer-events: none;
13
+ }
14
+
15
+ .radio-input {
16
+ position: absolute;
17
+ opacity: 0;
18
+ width: 0;
19
+ height: 0;
20
+ }
21
+
22
+ .radio-box {
23
+ display: inline-block;
24
+ width: 18px;
25
+ height: 18px;
26
+ border: 1px solid rgba(0, 0, 0, 0.2);
27
+ border-radius: 50%;
28
+ transition: all 0.2s ease;
29
+ position: relative;
30
+ flex-shrink: 0;
31
+ margin-top: 3px;
32
+
33
+ /* 检查框勾选样式 */
34
+ &:after {
35
+ content: '';
36
+ position: absolute;
37
+ display: none;
38
+ width: 4px;
39
+ height: 8px;
40
+ border: solid #fff;
41
+ border-width: 0 2px 2px 0;
42
+ top: 50%;
43
+ left: 50%;
44
+ transform: translate(-50%, -50%) rotate(45deg) translate(-0.5px, -0.5px);
45
+ }
46
+ }
47
+
48
+ .radio-label {
49
+ margin-left: 8px;
50
+ font-family: HarmonyOS_Sans_Regular;
51
+ font-weight: 400;
52
+ font-size: 16px;
53
+ color: #000000;
54
+ }
55
+
56
+ /* 当 radio 被选中时显示勾 */
57
+ .radio-input:checked ~ .radio-box {
58
+ background-color: #000;
59
+ // border-color: #2563eb;
60
+
61
+ &:after {
62
+ display: block;
63
+ }
64
+ }
65
+
66
+ /* 鼠标悬停效果 */
67
+ &:not(.disabled):hover .radio-box {
68
+ border-color: #000;
69
+ }
70
+ }
@@ -0,0 +1,117 @@
1
+ @use './_vars' as vars;
2
+
3
+ .#{vars.$prefix}-swiper {
4
+ --swiper-navigation-sides-offset: 48px;
5
+
6
+ position: relative;
7
+ display: flex;
8
+ flex-direction: column;
9
+ align-items: center;
10
+
11
+ &-main {
12
+ overflow: hidden;
13
+ position: relative;
14
+
15
+ &__middle {
16
+ width: 1400px;
17
+ }
18
+
19
+ &__full {
20
+ width: 100%;
21
+ }
22
+
23
+ .swiper-slide {
24
+ height: auto;
25
+ }
26
+
27
+ .swiper-button-next,
28
+ .swiper-button-prev {
29
+ width: fit-content;
30
+ height: fit-content;
31
+ padding: 12px;
32
+ border-radius: 50%;
33
+ background-color: rgba(51, 51, 51, 0.6);
34
+ transform: translateY(-50%);
35
+ transition: all 0.3s;
36
+
37
+ &:hover {
38
+ background-color: rgba(51, 51, 51, 0.8);
39
+ }
40
+
41
+ svg {
42
+ width: 24px;
43
+ height: 24px;
44
+ }
45
+
46
+ &::after {
47
+ display: none;
48
+ }
49
+ }
50
+ }
51
+
52
+ &-mask {
53
+ position: absolute;
54
+ top: 0;
55
+ left: 0;
56
+ width: 100%;
57
+ height: 100%;
58
+ z-index: 1000;
59
+ background: linear-gradient(180deg, rgba(0, 0, 0, 0) 60.02%, rgba(0, 0, 0, 0.65) 100%);
60
+ }
61
+
62
+ .#{vars.$prefix}-tab-indicator,
63
+ .#{vars.$prefix}-image-indicator {
64
+ margin-top: 40px;
65
+ max-width: 100%;
66
+ width: fit-content;
67
+ }
68
+
69
+ &-indicator-absolute {
70
+ z-index: 100;
71
+ position: absolute;
72
+ bottom: 80px;
73
+ left: 50%;
74
+ transform: translateX(-50%);
75
+ }
76
+ }
77
+
78
+ @media (max-width: 768px) {
79
+ .#{vars.$prefix}-swiper {
80
+ &-main {
81
+ &__middle {
82
+ width: 100%;
83
+ }
84
+
85
+ .swiper-button-next,
86
+ .swiper-button-prev {
87
+ display: none;
88
+ }
89
+ }
90
+
91
+ .#{vars.$prefix}-tab-indicator,
92
+ .#{vars.$prefix}-image-indicator {
93
+ width: 100%;
94
+ margin-top: 20px;
95
+
96
+ &__wrap,
97
+ &__main {
98
+ width: fit-content;
99
+ }
100
+
101
+ &__item {
102
+ // width: fit-content;
103
+ width: 155px;
104
+ word-break: normal; /* 尽量不拆词 */
105
+ overflow-wrap: break-word; /* 如果必须换行就换整个单词 */
106
+ white-space: normal; /* 允许换行 */
107
+ }
108
+ }
109
+
110
+ &-indicator-absolute {
111
+ position: relative;
112
+ bottom: unset;
113
+ left: unset;
114
+ transform: unset;
115
+ }
116
+ }
117
+ }
@@ -0,0 +1,123 @@
1
+ @use './_vars' as vars;
2
+
3
+ .#{vars.$prefix}-swiper-vehicle {
4
+ position: relative;
5
+ display: flex;
6
+ flex-direction: column;
7
+ align-items: center;
8
+ width: 100%;
9
+ height: 100%;
10
+
11
+ &__bg {
12
+ width: 100%;
13
+ height: 100%;
14
+ position: absolute;
15
+ left: 0;
16
+ top: 0;
17
+ }
18
+
19
+ &__main {
20
+ overflow: hidden;
21
+ width: 100%;
22
+ height: 100%;
23
+
24
+ .swiper-slide {
25
+ .#{vars.$prefix}-picture {
26
+ width: 100%;
27
+ position: absolute;
28
+ left: 50%;
29
+ top: 50%;
30
+ transform: translate(-50%, -50%);
31
+ }
32
+ }
33
+ }
34
+
35
+ &__text-bg {
36
+ font-family: HarmonyOS_Sans_Light;
37
+ font-weight: 400;
38
+ font-size: 160px;
39
+ font-style: normal;
40
+ text-transform: none;
41
+ white-space: nowrap;
42
+ color: transparent;
43
+ background-clip: text;
44
+ background-image: linear-gradient(to right, #ffffff40, #ffffff0d);
45
+
46
+ position: absolute;
47
+ left: 50%;
48
+ top: 25%;
49
+ transform: translate(-50%, -50%);
50
+ }
51
+
52
+ &__indicator {
53
+ margin-top: 22px;
54
+ display: flex;
55
+ flex-direction: column;
56
+ z-index: 2;
57
+
58
+ &-control {
59
+ display: flex;
60
+ padding: 14px 16px;
61
+ align-items: center;
62
+ gap: 16px;
63
+ border-radius: 100px;
64
+ background-color: rgba(255, 255, 255, 0.2);
65
+ margin-bottom: 16px;
66
+
67
+ .color-stroke {
68
+ border-radius: 50%;
69
+ width: 24px;
70
+ height: 24px;
71
+ border: 1px solid transparent;
72
+ position: relative;
73
+ transition: transform 0.5s cubic-bezier(0, 0.5, 0, 0.23);
74
+ cursor: pointer;
75
+
76
+ &.active {
77
+ transform: scale(1.33);
78
+ border-color: #fff !important;
79
+ }
80
+ }
81
+ }
82
+
83
+ &-text {
84
+ font-family: HarmonyOS_Sans_Light;
85
+ position: relative;
86
+ left: 50%;
87
+ transform: translateX(-50%);
88
+ font-weight: 400;
89
+ white-space: nowrap;
90
+ font-size: 16px;
91
+ line-height: 22px;
92
+ text-align: center;
93
+ color: #fff;
94
+ }
95
+ }
96
+ }
97
+
98
+ @media (max-width: 768px) {
99
+ .#{vars.$prefix}-swiper-vehicle {
100
+ &__main {
101
+ .swiper-slide {
102
+ // .#{vars.$prefix}-picture {
103
+ // width: 100%;
104
+ // position: absolute;
105
+ // left: 50%;
106
+ // top: 0;
107
+ // transform: translate(-50%, 0);
108
+ // }
109
+
110
+ .#{vars.$prefix}-picture.#{vars.$prefix}-swiper-vehicle__full-height {
111
+ height: 100%;
112
+ }
113
+ }
114
+ }
115
+
116
+ // &__text-bg {
117
+ // font-size: 37px;
118
+ // left: 50%;
119
+ // top: 5%;
120
+ // transform: translate(-50%, 0);
121
+ // }
122
+ }
123
+ }
@@ -0,0 +1,148 @@
1
+ @use './_vars' as vars;
2
+
3
+ .#{vars.$prefix}-tab-indicator {
4
+ color: #fff;
5
+
6
+ &__scroll {
7
+ overflow-x: auto;
8
+
9
+ &::-webkit-scrollbar {
10
+ display: none;
11
+ }
12
+ }
13
+
14
+ &__main {
15
+ display: flex;
16
+ justify-content: space-between;
17
+ position: relative;
18
+ margin-bottom: 16px;
19
+ }
20
+
21
+ &__item {
22
+ font-family: HarmonyOS_Sans_Regular;
23
+ font-weight: 400;
24
+ font-size: 20px;
25
+ line-height: 24px;
26
+ text-align: center;
27
+ white-space: nowrap;
28
+ padding: 0 40px;
29
+ flex: 1;
30
+ opacity: 0.6;
31
+ display: flex;
32
+ align-items: center;
33
+ justify-content: center;
34
+ cursor: pointer;
35
+ }
36
+
37
+ &__item + &__item {
38
+ margin-left: 40px;
39
+ }
40
+
41
+ &__active {
42
+ opacity: 1 !important;
43
+ }
44
+
45
+ &__scrollbar {
46
+ position: relative;
47
+ width: 100%;
48
+ height: 2px;
49
+ border-radius: 1px;
50
+ // margin-top: 14px;
51
+ margin-bottom: 20px;
52
+ background-color: rgba(255, 255, 255, 0.4);
53
+
54
+ &-drag {
55
+ position: absolute;
56
+ height: 4px;
57
+ top: 50%;
58
+ margin-top: -3px;
59
+ left: 0;
60
+ border-radius: 1px;
61
+ background-color: #caab78;
62
+ width: 20px;
63
+ transition: transform 0.5s, width 0.5s;
64
+ }
65
+ }
66
+
67
+ &__intro {
68
+ position: relative;
69
+
70
+ &-item {
71
+ font-family: HarmonyOS_Sans_Light;
72
+ text-align: center; /* 水平居中 */
73
+ word-wrap: break-word; /* 允许长单词或URL换行 */
74
+ white-space: normal; /* 正常换行(默认) */
75
+ width: 100%;
76
+ font-weight: 400;
77
+ font-size: 16px;
78
+ line-height: 24px;
79
+ position: absolute;
80
+ left: 50%;
81
+ transform: translateX(-50%);
82
+ opacity: 0;
83
+ transition: opacity 0.25s;
84
+ }
85
+ }
86
+ }
87
+
88
+ .#{vars.$prefix}-tab-indicator__separate {
89
+ .#{vars.$prefix}-tab-indicator__active {
90
+ color: #caab78;
91
+ }
92
+ // .#{vars.$prefix}-tab-indicator__scrollbar-drag {
93
+ // background-color: #caab78;
94
+ // }
95
+ }
96
+
97
+ .#{vars.$prefix}-tab-indicator__adapt {
98
+ .#{vars.$prefix}-tab-indicator__item {
99
+ padding: 0;
100
+ }
101
+
102
+ .#{vars.$prefix}-tab-indicator__item + .#{vars.$prefix}-tab-indicator__item {
103
+ margin-left: 60px;
104
+ }
105
+ }
106
+
107
+ @media (max-width: 768px) {
108
+ .#{vars.$prefix}-tab-indicator {
109
+ &__item {
110
+ font-size: 16px;
111
+ padding: 0;
112
+ }
113
+
114
+ &__item + &__item {
115
+ margin-left: 10px;
116
+ }
117
+ }
118
+
119
+ .#{vars.$prefix}-tab-indicator__adapt {
120
+ // .#{vars.$prefix}-tab-indicator__item {
121
+ // padding: 0;
122
+ // }
123
+
124
+ .#{vars.$prefix}-tab-indicator__item + .#{vars.$prefix}-tab-indicator__item {
125
+ margin-left: 10px;
126
+ }
127
+ }
128
+ }
129
+
130
+ html[dir='rtl'] {
131
+ .#{vars.$prefix}-tab-indicator {
132
+ .#{vars.$prefix}-tab-indicator__item + .#{vars.$prefix}-tab-indicator__item {
133
+ margin-right: 40px;
134
+ margin-left: 0;
135
+ }
136
+
137
+ &__adapt {
138
+ .#{vars.$prefix}-tab-indicator__item {
139
+ padding: 0;
140
+ }
141
+
142
+ .#{vars.$prefix}-tab-indicator__item + .#{vars.$prefix}-tab-indicator__item {
143
+ margin-right: 60px;
144
+ margin-left: 0;
145
+ }
146
+ }
147
+ }
148
+ }
@@ -0,0 +1,169 @@
1
+ @use './_vars' as vars;
2
+
3
+ .#{vars.$prefix}-player-wrapper {
4
+ width: 100%;
5
+ height: 100%;
6
+ position: relative;
7
+ display: inline-block;
8
+
9
+ .#{vars.$prefix}-player-poster {
10
+ width: 100%;
11
+ height: 100%;
12
+ }
13
+
14
+ video {
15
+ width: 100%;
16
+ height: 100%;
17
+ object-fit: fill;
18
+ }
19
+
20
+ .#{vars.$prefix}-player-btn {
21
+ position: absolute;
22
+ bottom: 65px;
23
+ right: 47px;
24
+ z-index: 100;
25
+ color: #fff;
26
+ cursor: pointer;
27
+ outline: none;
28
+ border: 0;
29
+ background-color: transparent;
30
+
31
+ .#{vars.$prefix}-player-icon {
32
+ width: 50px;
33
+ height: 50px;
34
+ vertical-align: middle;
35
+ margin-right: 22px;
36
+ }
37
+
38
+ &-text {
39
+ font-family: HarmonyOS_Sans_Regular;
40
+ font-weight: 400;
41
+ font-size: 36px;
42
+ color: #ffffff;
43
+ line-height: 42px;
44
+ text-align: left;
45
+ font-style: normal;
46
+ text-transform: none;
47
+ display: inline-block;
48
+ vertical-align: middle;
49
+ }
50
+ }
51
+ }
52
+
53
+ body > .#{vars.$prefix}-player-wrapper {
54
+ display: none;
55
+ }
56
+
57
+ body > .#{vars.$prefix}-player-is-fullscreen {
58
+ display: flex;
59
+ }
60
+
61
+ .#{vars.$prefix}-player-is-fullscreen {
62
+ background-color: #000000f9;
63
+ z-index: 10000;
64
+ position: fixed;
65
+ top: 0;
66
+ left: 0;
67
+ width: 100vw;
68
+ height: 100vh;
69
+ padding: 100px;
70
+ box-sizing: border-box;
71
+ display: flex;
72
+ align-items: center;
73
+
74
+ video {
75
+ height: auto;
76
+ }
77
+
78
+ .#{vars.$prefix}-player-close-btn {
79
+ position: absolute;
80
+ right: 40px;
81
+ top: 40px;
82
+ border: none;
83
+ outline: none;
84
+ background-color: transparent;
85
+ color: #fff;
86
+ cursor: pointer;
87
+
88
+ .#{vars.$prefix}-player-icon {
89
+ width: 20px;
90
+ height: 20px;
91
+ }
92
+ }
93
+ }
94
+
95
+ @media (max-width: 768px) {
96
+ .#{vars.$prefix}-player-wrapper {
97
+ video {
98
+ object-fit: cover;
99
+ }
100
+
101
+ .#{vars.$prefix}-player-btn {
102
+ bottom: 20px;
103
+ right: 20px;
104
+
105
+ .#{vars.$prefix}-player-icon {
106
+ width: 24px;
107
+ height: 24px;
108
+ margin-right: 10px;
109
+ }
110
+
111
+ &-text {
112
+ font-size: 16px;
113
+ line-height: 19px;
114
+ text-align: left;
115
+ margin-left: 0;
116
+ }
117
+ }
118
+ }
119
+ }
120
+
121
+ .#{vars.$prefix}-player-is-fullscreen {
122
+ padding: 24px;
123
+
124
+ .#{vars.$prefix}-player-close-btn {
125
+ right: 40px;
126
+ top: 40px;
127
+
128
+ .#{vars.$prefix}-player-icon {
129
+ width: 20px;
130
+ height: 20px;
131
+ }
132
+ }
133
+ }
134
+
135
+ html[dir='rtl'] {
136
+ .#{vars.$prefix}-player-wrapper {
137
+ .#{vars.$prefix}-player-btn {
138
+ left: 47px;
139
+ right: unset;
140
+
141
+ .#{vars.$prefix}-player-icon {
142
+ margin-right: 0;
143
+ }
144
+
145
+ &-text {
146
+ margin-right: 10px;
147
+ }
148
+ }
149
+ }
150
+
151
+ .#{vars.$prefix}-player-is-fullscreen {
152
+ .#{vars.$prefix}-player-close-btn {
153
+ left: 40px;
154
+ right: unset;
155
+ }
156
+ }
157
+ }
158
+
159
+ @media (max-width: 768px) {
160
+ html[dir='rtl'] {
161
+ .#{vars.$prefix}-player-wrapper {
162
+ .#{vars.$prefix}-player-btn {
163
+ bottom: 20px;
164
+ left: 20px;
165
+ right: unset;
166
+ }
167
+ }
168
+ }
169
+ }