前端 uni-app 重写: 9页面 H5

This commit is contained in:
zhiqui
2026-11-15 15:09:37 +08:00
parent 513b53672e
commit ea7c2529e9
24104 changed files with 3667749 additions and 0 deletions
+202
View File
@@ -0,0 +1,202 @@
Apache License
Version 2.0, January 2004
http://www.apache.org/licenses/
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
1. Definitions.
"License" shall mean the terms and conditions for use, reproduction,
and distribution as defined by Sections 1 through 9 of this document.
"Licensor" shall mean the copyright owner or entity authorized by
the copyright owner that is granting the License.
"Legal Entity" shall mean the union of the acting entity and all
other entities that control, are controlled by, or are under common
control with that entity. For the purposes of this definition,
"control" means (i) the power, direct or indirect, to cause the
direction or management of such entity, whether by contract or
otherwise, or (ii) ownership of fifty percent (50%) or more of the
outstanding shares, or (iii) beneficial ownership of such entity.
"You" (or "Your") shall mean an individual or Legal Entity
exercising permissions granted by this License.
"Source" form shall mean the preferred form for making modifications,
including but not limited to software source code, documentation
source, and configuration files.
"Object" form shall mean any form resulting from mechanical
transformation or translation of a Source form, including but
not limited to compiled object code, generated documentation,
and conversions to other media types.
"Work" shall mean the work of authorship, whether in Source or
Object form, made available under the License, as indicated by a
copyright notice that is included in or attached to the work
(an example is provided in the Appendix below).
"Derivative Works" shall mean any work, whether in Source or Object
form, that is based on (or derived from) the Work and for which the
editorial revisions, annotations, elaborations, or other modifications
represent, as a whole, an original work of authorship. For the purposes
of this License, Derivative Works shall not include works that remain
separable from, or merely link (or bind by name) to the interfaces of,
the Work and Derivative Works thereof.
"Contribution" shall mean any work of authorship, including
the original version of the Work and any modifications or additions
to that Work or Derivative Works thereof, that is intentionally
submitted to Licensor for inclusion in the Work by the copyright owner
or by an individual or Legal Entity authorized to submit on behalf of
the copyright owner. For the purposes of this definition, "submitted"
means any form of electronic, verbal, or written communication sent
to the Licensor or its representatives, including but not limited to
communication on electronic mailing lists, source code control systems,
and issue tracking systems that are managed by, or on behalf of, the
Licensor for the purpose of discussing and improving the Work, but
excluding communication that is conspicuously marked or otherwise
designated in writing by the copyright owner as "Not a Contribution."
"Contributor" shall mean Licensor and any individual or Legal Entity
on behalf of whom a Contribution has been received by Licensor and
subsequently incorporated within the Work.
2. Grant of Copyright License. Subject to the terms and conditions of
this License, each Contributor hereby grants to You a perpetual,
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
copyright license to reproduce, prepare Derivative Works of,
publicly display, publicly perform, sublicense, and distribute the
Work and such Derivative Works in Source or Object form.
3. Grant of Patent License. Subject to the terms and conditions of
this License, each Contributor hereby grants to You a perpetual,
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
(except as stated in this section) patent license to make, have made,
use, offer to sell, sell, import, and otherwise transfer the Work,
where such license applies only to those patent claims licensable
by such Contributor that are necessarily infringed by their
Contribution(s) alone or by combination of their Contribution(s)
with the Work to which such Contribution(s) was submitted. If You
institute patent litigation against any entity (including a
cross-claim or counterclaim in a lawsuit) alleging that the Work
or a Contribution incorporated within the Work constitutes direct
or contributory patent infringement, then any patent licenses
granted to You under this License for that Work shall terminate
as of the date such litigation is filed.
4. Redistribution. You may reproduce and distribute copies of the
Work or Derivative Works thereof in any medium, with or without
modifications, and in Source or Object form, provided that You
meet the following conditions:
(a) You must give any other recipients of the Work or
Derivative Works a copy of this License; and
(b) You must cause any modified files to carry prominent notices
stating that You changed the files; and
(c) You must retain, in the Source form of any Derivative Works
that You distribute, all copyright, patent, trademark, and
attribution notices from the Source form of the Work,
excluding those notices that do not pertain to any part of
the Derivative Works; and
(d) If the Work includes a "NOTICE" text file as part of its
distribution, then any Derivative Works that You distribute must
include a readable copy of the attribution notices contained
within such NOTICE file, excluding those notices that do not
pertain to any part of the Derivative Works, in at least one
of the following places: within a NOTICE text file distributed
as part of the Derivative Works; within the Source form or
documentation, if provided along with the Derivative Works; or,
within a display generated by the Derivative Works, if and
wherever such third-party notices normally appear. The contents
of the NOTICE file are for informational purposes only and
do not modify the License. You may add Your own attribution
notices within Derivative Works that You distribute, alongside
or as an addendum to the NOTICE text from the Work, provided
that such additional attribution notices cannot be construed
as modifying the License.
You may add Your own copyright statement to Your modifications and
may provide additional or different license terms and conditions
for use, reproduction, or distribution of Your modifications, or
for any such Derivative Works as a whole, provided Your use,
reproduction, and distribution of the Work otherwise complies with
the conditions stated in this License.
5. Submission of Contributions. Unless You explicitly state otherwise,
any Contribution intentionally submitted for inclusion in the Work
by You to the Licensor shall be under the terms and conditions of
this License, without any additional terms or conditions.
Notwithstanding the above, nothing herein shall supersede or modify
the terms of any separate license agreement you may have executed
with Licensor regarding such Contributions.
6. Trademarks. This License does not grant permission to use the trade
names, trademarks, service marks, or product names of the Licensor,
except as required for reasonable and customary use in describing the
origin of the Work and reproducing the content of the NOTICE file.
7. Disclaimer of Warranty. Unless required by applicable law or
agreed to in writing, Licensor provides the Work (and each
Contributor provides its Contributions) on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
implied, including, without limitation, any warranties or conditions
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
PARTICULAR PURPOSE. You are solely responsible for determining the
appropriateness of using or redistributing the Work and assume any
risks associated with Your exercise of permissions under this License.
8. Limitation of Liability. In no event and under no legal theory,
whether in tort (including negligence), contract, or otherwise,
unless required by applicable law (such as deliberate and grossly
negligent acts) or agreed to in writing, shall any Contributor be
liable to You for damages, including any direct, indirect, special,
incidental, or consequential damages of any character arising as a
result of this License or out of the use or inability to use the
Work (including but not limited to damages for loss of goodwill,
work stoppage, computer failure or malfunction, or any and all
other commercial damages or losses), even if such Contributor
has been advised of the possibility of such damages.
9. Accepting Warranty or Additional Liability. While redistributing
the Work or Derivative Works thereof, You may choose to offer,
and charge a fee for, acceptance of support, warranty, indemnity,
or other liability obligations and/or rights consistent with this
License. However, in accepting such obligations, You may act only
on Your own behalf and on Your sole responsibility, not on behalf
of any other Contributor, and only if You agree to indemnify,
defend, and hold each Contributor harmless for any liability
incurred by, or claims asserted against, such Contributor by reason
of your accepting any such warranty or additional liability.
END OF TERMS AND CONDITIONS
APPENDIX: How to apply the Apache License to your work.
To apply the Apache License to your work, attach the following
boilerplate notice, with the fields enclosed by brackets "[]"
replaced with your own identifying information. (Don't include
the brackets!) The text should be enclosed in the appropriate
comment syntax for the file format. We also recommend that a
file or class name and description of purpose be included on the
same "printed page" as the copyright notice for easier
identification within third-party archives.
Copyright [yyyy] [name of copyright owner]
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
File diff suppressed because one or more lines are too long
File diff suppressed because it is too large Load Diff
File diff suppressed because one or more lines are too long
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
+11
View File
@@ -0,0 +1,11 @@
'use strict';
var uniH5Vite = require('@dcloudio/uni-h5-vite');
function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
var uniH5Vite__default = /*#__PURE__*/_interopDefault(uniH5Vite);
module.exports = uniH5Vite__default.default;
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
+1
View File
@@ -0,0 +1 @@
[https://dcloud.io/license/uni-app.html](https://dcloud.io/license/uni-app.html)
+64
View File
@@ -0,0 +1,64 @@
{
"name": "@dcloudio/uni-h5",
"version": "3.0.0-alpha-5030620261112001",
"description": "@dcloudio/uni-h5",
"main": "./dist/uni-h5.cjs.js",
"module": "./dist/uni-h5.es.js",
"files": [
"dist",
"dist-x",
"dist-x-vapor",
"dist-x-vapor-ssr",
"lib",
"style"
],
"sideEffects": [
"lib/automator.js",
"src/x/polyfill/polyfill.ts"
],
"repository": {
"type": "git",
"url": "git+https://github.com/dcloudio/uni-app.git",
"directory": "packages/uni-h5"
},
"license": "Apache-2.0",
"bugs": {
"url": "https://github.com/dcloudio/uni-app/issues"
},
"uni-app": {
"name": "uni-h5",
"apply": [
"h5"
],
"main": "dist/uni.compiler.js"
},
"dependencies": {
"@vue/server-renderer": "3.4.21",
"@vue/shared": "3.4.21",
"debug": "4.3.7",
"localstorage-polyfill": "^1.0.1",
"safe-area-insets": "1.4.1",
"postcss-selector-parser": "6.1.2",
"vue-router": "4.4.4",
"xmlhttprequest": "^1.8.0",
"@dcloudio/uni-i18n": "3.0.0-alpha-5030620261112001",
"@dcloudio/uni-shared": "3.0.0-alpha-5030620261112001",
"@dcloudio/uni-h5-vite": "3.0.0-alpha-5030620261112001",
"@dcloudio/uni-h5-vue": "3.0.0-alpha-5030620261112001"
},
"gitHead": "33e807d66e1fe47e2ee08ad9c59247e37b8884da",
"devDependencies": {
"@types/estree": "1.0.5",
"@types/google.maps": "3.58.0",
"@amap/amap-jsapi-types": "0.0.8",
"acorn-loose": "^8.2.1",
"acorn-walk": "^8.2.0",
"estree-walker": "2.0.2",
"fast-glob": "3.3.3",
"fs-extra": "10.1.0",
"unplugin-auto-import": "19.1.0",
"vue": "3.4.21",
"vue-jsx": "3.3.0-rc.2",
"@dcloudio/uni-cli-shared": "3.0.0-alpha-5030620261112001"
}
}
+8
View File
@@ -0,0 +1,8 @@
uni-ad-content-page {
display: block;
overflow: hidden;
}
uni-ad-content-page[hidden] {
display: none;
}
+8
View File
@@ -0,0 +1,8 @@
uni-ad-draw {
display: block;
overflow: hidden;
}
uni-ad-draw[hidden] {
display: none;
}
+8
View File
@@ -0,0 +1,8 @@
uni-ad {
display: block;
overflow: hidden;
}
uni-ad[hidden] {
display: none;
}
+134
View File
@@ -0,0 +1,134 @@
uni-actionsheet {
display: block;
box-sizing: border-box;
}
.uni-actionsheet {
position: fixed;
left: 6px;
right: 6px;
bottom: 6px;
transform: translate(0, 100%);
backface-visibility: hidden;
z-index: 999;
visibility: hidden;
transition: transform 0.3s, visibility 0.3s;
}
.uni-actionsheet.uni-actionsheet_toggle {
visibility: visible;
transform: translate(0, 0);
}
.uni-actionsheet * {
box-sizing: border-box;
}
.uni-actionsheet__menu,
.uni-actionsheet__action {
border-radius: 5px;
background-color: #fcfcfd;
}
.uni-actionsheet__action {
margin-top: 6px;
}
.uni-actionsheet__cell,
.uni-actionsheet__title {
position: relative;
padding: 10px 6px;
text-align: center;
font-size: 18px;
text-overflow: ellipsis;
overflow: hidden;
cursor: pointer;
}
.uni-actionsheet__title {
position: absolute;
top: 0;
right: 0;
left: 0;
z-index: 1;
color: var(--UI-FG);
background-color: #fff;
border-radius: 5px 5px 0 0;
border-bottom: 1px solid #e5e5e5;
}
.uni-actionsheet__cell:before {
content: ' ';
position: absolute;
left: 0;
top: 0;
right: 0;
height: 1px;
border-top: 1px solid #e5e5e5;
color: #e5e5e5;
transform-origin: 0 0;
transform: scaleY(0.5);
}
.uni-actionsheet__cell:active {
background-color: #ececec;
}
.uni-actionsheet__cell:first-child:before {
display: none;
}
@media screen and (min-width: 500px) and (min-height: 500px) {
.uni-mask.uni-actionsheet__mask {
background: none;
}
.uni-actionsheet {
width: 300px;
left: 50%;
right: auto;
top: 50%;
bottom: auto;
transform: translate(-50%, -50%);
opacity: 0;
transition: opacity 0.3s, visibility 0.3s;
}
.uni-actionsheet.uni-actionsheet_toggle {
opacity: 1;
transform: translate(-50%, -50%);
}
.uni-actionsheet__menu {
box-shadow: 0px 0 20px 5px rgba(0, 0, 0, 0.3);
}
.uni-actionsheet__action {
display: none;
}
}
@media (prefers-color-scheme: dark) {
.uni-actionsheet__title {
background-color: var(--UI-BG-1);
border-bottom-color: var(--UI-BORDER-COLOR-1);
}
body .uni-actionsheet {
background-color: var(--UI-BG-1);
}
.uni-actionsheet__action,
body .uni-actionsheet__menu {
background-color: var(--UI-BG-2);
}
.uni-actionsheet__cell:active {
background-color: var(--UI-BG-COLOR-ACTIVE);
}
.uni-actionsheet__cell:before {
border-top-color: var(--UI-BORDER-COLOR-1);
color: var(--UI-BORDER-COLOR-1);
}
}
@@ -0,0 +1,220 @@
.uni-system-choose-location {
display: block;
position: fixed;
left: 0;
top: 0;
width: 100%;
height: 100%;
background: #f8f8f8;
z-index: 999;
}
.uni-system-choose-location .map {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 300px;
}
.uni-system-choose-location .map-location {
position: absolute;
left: 50%;
bottom: 50%;
width: 32px;
height: 52px;
margin-left: -16px;
cursor: pointer;
background-size: 100%;
}
.uni-system-choose-location .map-move {
position: absolute;
bottom: 50px;
right: 10px;
width: 40px;
height: 40px;
box-sizing: border-box;
line-height: 40px;
background-color: white;
border-radius: 50%;
pointer-events: auto;
cursor: pointer;
box-shadow: 0px 0 5px 1px rgba(0, 0, 0, 0.3);
}
.uni-system-choose-location .map-move>svg {
display: block;
width: 100%;
height: 100%;
box-sizing: border-box;
padding: 8px;
}
.uni-system-choose-location .nav {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 44px;
background-color: transparent;
background-image: linear-gradient( to bottom, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0));
}
.uni-system-choose-location .nav-btn {
position: absolute;
box-sizing: border-box;
top: 0;
left: 0;
width: 60px;
height: 44px;
padding: 6px;
line-height: 32px;
font-size: 26px;
color: white;
text-align: center;
cursor: pointer;
}
.uni-system-choose-location .nav-btn.confirm {
left: auto;
right: 0;
}
.uni-system-choose-location .nav-btn.disable {
opacity: 0.4;
}
.uni-system-choose-location .nav-btn>svg {
display: block;
width: 100%;
height: 100%;
/* line-height: inherit; */
border-radius: 2px;
box-sizing: border-box;
padding: 3px;
}
.uni-system-choose-location .nav-btn.confirm>svg {
background-color: #007aff;
padding: 5px;
}
.uni-system-choose-location .menu {
position: absolute;
top: 300px;
left: 0;
width: 100%;
bottom: 0;
background-color: white;
}
.uni-system-choose-location .search {
display: flex;
flex-direction: row;
height: 50px;
padding: 8px;
line-height: 34px;
box-sizing: border-box;
background-color: white;
}
.uni-system-choose-location .search-input {
flex: 1;
height: 100%;
border-radius: 5px;
padding: 0 5px;
background: #ebebeb;
}
.uni-system-choose-location .search-btn {
margin-left: 5px;
color: #007aff;
font-size: 17px;
text-align: center;
}
.uni-system-choose-location .list {
position: absolute;
top: 50px;
left: 0;
width: 100%;
bottom: 0;
padding-bottom: 10px;
/* background-color: #f6f6f6; */
}
.uni-system-choose-location .list-loading {
display: flex;
height: 50px;
justify-content: center;
align-items: center;
}
.uni-system-choose-location .list-item {
position: relative;
padding: 10px;
padding-right: 40px;
cursor: pointer;
}
.uni-system-choose-location .list-item>svg {
display: none;
position: absolute;
top: 50%;
right: 10px;
width: 30px;
height: 30px;
margin-top: -15px;
box-sizing: border-box;
padding: 5px;
}
.uni-system-choose-location .list-item.selected>svg {
display: block;
}
.uni-system-choose-location .list-item:not(:last-child)::after {
position: absolute;
content: "";
height: 1px;
left: 10px;
bottom: 0;
width: 100%;
background-color: #d3d3d3;
}
.uni-system-choose-location .list-item-title {
font-size: 14px;
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
}
.uni-system-choose-location .list-item-detail {
font-size: 12px;
color: #808080;
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
}
@media screen and (min-width: 800px) {
.uni-system-choose-location .map {
top: 0;
height: 100%;
}
.uni-system-choose-location .map-move {
bottom: 10px;
right: 320px;
}
.uni-system-choose-location .menu {
top: 54px;
left: auto;
right: 10px;
width: 300px;
bottom: 10px;
max-height: 600px;
box-shadow: 0px 0 20px 5px rgba(0, 0, 0, 0.3);
}
}
+138
View File
@@ -0,0 +1,138 @@
.uni-system-open-location {
display: block;
position: fixed;
left: 0;
top: 0;
width: 100%;
height: 100%;
background: #f8f8f8;
z-index: 999;
}
.uni-system-open-location .map {
position: absolute;
top: 0;
left: 0;
width: 100%;
bottom: 80px;
height: auto;
}
.uni-system-open-location .info {
position: absolute;
bottom: 0;
left: 0;
width: 100%;
height: 80px;
background-color: white;
padding: 15px;
box-sizing: border-box;
line-height: 1.5;
}
.uni-system-open-location .info>.name {
font-size: 17px;
color: #111111;
/* vue3 一行展示避免被导航图标挡住 */
padding-right: 50px;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.uni-system-open-location .info>.address {
font-size: 14px;
color: #666666;
}
.uni-system-open-location .info>.nav {
position: absolute;
top: 50%;
right: 15px;
width: 50px;
height: 50px;
border-radius: 50%;
margin-top: -25px;
background-color: #007aff;
}
.uni-system-open-location .info>.nav>svg {
display: block;
width: 100%;
height: 100%;
padding: 10px;
box-sizing: border-box;
}
.uni-system-open-location .map-move {
position: absolute;
bottom: 50px;
right: 10px;
width: 40px;
height: 40px;
box-sizing: border-box;
line-height: 40px;
background-color: white;
border-radius: 50%;
pointer-events: auto;
cursor: pointer;
box-shadow: 0px 0 5px 1px rgba(0, 0, 0, 0.3);
}
.uni-system-open-location .map-move>svg {
display: block;
width: 100%;
height: 100%;
box-sizing: border-box;
padding: 8px;
}
.uni-system-open-location .nav-btn-back {
position: absolute;
box-sizing: border-box;
top: 0;
left: 0;
width: 44px;
height: 44px;
padding: 6px;
cursor: pointer;
}
.uni-system-open-location .nav-btn-back>svg {
display: block;
width: 100%;
height: 100%;
border-radius: 50%;
background-color: rgba(0, 0, 0, 0.5);
padding: 3px;
box-sizing: border-box;
}
.uni-system-open-location .map-content {
position: absolute;
left: 0;
top: 0px;
width: 100%;
bottom: 0;
overflow: hidden;
}
.uni-system-open-location .map-content.fix-position {
top: -74px;
bottom: -44px;
}
.uni-system-open-location .map-content>iframe {
width: 100%;
height: 100%;
border: none;
}
.uni-system-open-location .actTonav {
position: absolute;
right: 16px;
bottom: 56px;
width: 60px;
height: 60px;
border-radius: 60px;
}
+155
View File
@@ -0,0 +1,155 @@
uni-modal {
position: fixed;
top: 0;
right: 0;
bottom: 0;
left: 0;
z-index: 999;
display: block;
box-sizing: border-box;
}
.uni-modal {
position: fixed;
z-index: 999;
width: 80%;
max-width: 300px;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
background-color: #ffffff;
text-align: center;
border-radius: 3px;
overflow: hidden;
}
.uni-modal * {
box-sizing: border-box;
}
.uni-modal__hd {
padding: 1em 1.6em 0.3em;
}
.uni-modal__title {
font-weight: 400;
font-size: 18px;
word-wrap: break-word;
word-break: break-all;
white-space: pre-wrap;
overflow: hidden;
text-overflow: ellipsis;
display: -webkit-box;
-webkit-line-clamp: 2;
-webkit-box-orient: vertical;
}
.uni-modal__bd {
padding: 1.3em 1.6em 1.3em;
min-height: 40px;
font-size: 15px;
line-height: 1.4;
word-wrap: break-word;
word-break: break-all;
white-space: pre-wrap;
color: #999999;
max-height: 400px;
overflow-x: hidden;
overflow-y: auto;
}
.uni-modal__textarea {
resize: none;
border: 0;
margin: 0;
width: 90%;
padding: 10px;
font-size: 20px;
outline: none;
border: none;
background-color: #eee;
text-decoration: inherit;
/* 解决单行中文内容会出现滚动条的问题 */
line-height: 1.2;
}
.uni-modal__ft {
position: relative;
line-height: 48px;
font-size: 18px;
display: flex;
}
.uni-modal__ft:after {
content: ' ';
position: absolute;
left: 0;
top: 0;
right: 0;
height: 1px;
border-top: 1px solid #d5d5d6;
color: #d5d5d6;
transform-origin: 0 0;
transform: scaleY(0.5);
}
.uni-modal__btn {
display: block;
flex: 1;
color: #3cc51f;
text-decoration: none;
-webkit-tap-highlight-color: rgba(0, 0, 0, 0);
position: relative;
cursor: pointer;
}
.uni-modal__btn:active {
background-color: #eeeeee;
}
.uni-modal__btn:after {
content: ' ';
position: absolute;
left: 0;
top: 0;
width: 1px;
bottom: 0;
border-left: 1px solid #d5d5d6;
color: #d5d5d6;
transform-origin: 0 0;
transform: scaleX(0.5);
}
.uni-modal__btn:first-child:after {
display: none;
}
.uni-modal__btn_default {
color: #353535;
}
.uni-modal__btn_primary {
color: #007aff;
}
@media (prefers-color-scheme: dark) {
.uni-modal {
color: var(--UI-FG-0);
background-color: var(--UI-BG-2);
}
.uni-modal__bd {
color: var(--UI-FG-1);
}
.uni-modal__btn:active {
color: rgb(170, 170, 170);
background-color: var(--UI-BG-COLOR-ACTIVE);
}
.uni-modal__ft:after,
.uni-modal__btn:after {
color: var(--UI-BORDER-COLOR-1);
border-color: var(--UI-BORDER-COLOR-1);
}
}
+122
View File
@@ -0,0 +1,122 @@
uni-toast {
position: fixed;
top: 0;
right: 0;
bottom: 0;
left: 0;
z-index: 999;
display: block;
box-sizing: border-box;
pointer-events: none;
font-size: 16px;
}
uni-toast .uni-sample-toast {
position: fixed;
z-index: 999;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
text-align: center;
width: max-content;
max-width: 80%;
max-width: min(200px, 80%);
box-sizing: border-box;
padding: 12px 20px;
background-color: rgba(76, 76, 76, 0.95);
border-radius: 10px;
}
uni-toast .uni-simple-toast__text {
display: -webkit-box;
-webkit-box-orient: vertical;
-webkit-line-clamp: 2;
overflow: hidden;
margin: 0;
color: #ffffff;
font-size: 16px;
line-height: 1.4;
text-align: center;
max-width: 100%;
word-break: break-word;
white-space: normal;
}
uni-toast .uni-sample-toast.uni-toast--top {
top: 12px;
top: calc(12px + env(safe-area-inset-top, 0px));
transform: translateX(-50%);
}
uni-toast .uni-sample-toast.uni-toast--bottom {
top: auto;
bottom: 12px;
bottom: calc(12px + env(safe-area-inset-bottom, 0px));
transform: translateX(-50%);
}
uni-toast .uni-mask {
pointer-events: auto;
}
uni-toast .uni-toast {
position: fixed;
z-index: 999;
width: 140px;
height: 140px;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
background: rgba(76, 76, 76, 0.95);
text-align: center;
border-radius: 10px;
color: #ffffff;
}
.uni-toast * {
box-sizing: border-box;
}
uni-toast .uni-toast__icon {
margin: 0;
flex-shrink: 0;
width: 36px!important;
height: 36px!important;
object-fit: contain;
vertical-align: baseline!important;
}
.uni-icon_toast {
margin: 15px 0 0;
}
.uni-icon_toast.uni-icon-success-no-circle:before {
color: #ffffff;
font-size: 55px;
}
.uni-icon_toast.uni-loading {
margin: 20px 0 0;
width: 38px;
height: 38px;
vertical-align: baseline;
}
uni-toast .uni-toast__content {
display: -webkit-box;
-webkit-box-orient: vertical;
-webkit-line-clamp: 2;
margin: 16px 0 0;
padding: 0 8px;
max-width: 100%;
overflow: hidden;
font-size: 16px;
line-height: 1.4;
color: #ffffff;
word-break: break-word;
white-space: normal;
}
+8
View File
@@ -0,0 +1,8 @@
uni-camera {
display: block;
overflow: hidden;
}
uni-camera[hidden] {
display: none;
}
+33
View File
@@ -0,0 +1,33 @@
uni-cover-image {
display: block;
line-height: 1.2;
overflow: hidden;
height: 100%;
width: 100%;
pointer-events: auto;
}
uni-cover-image img {
width: 100%;
height: 100%;
}
uni-cover-image[hidden] {
display: none;
}
uni-cover-image .uni-cover-image {
width: 100%;
height: 100%;
text-overflow: inherit;
overflow: inherit;
white-space: nowrap;
-webkit-align-items: inherit;
align-items: inherit;
-webkit-justify-content: inherit;
justify-content: inherit;
-webkit-flex-direction: inherit;
flex-direction: inherit;
font-size: 0;
display: inherit;
}
+29
View File
@@ -0,0 +1,29 @@
uni-cover-view {
display: block;
line-height: 1.2;
overflow: hidden;
white-space: nowrap;
pointer-events: auto;
}
uni-cover-view[hidden] {
display: none;
}
uni-cover-view .uni-cover-view {
width: 100%;
height: 100%;
text-overflow: inherit;
overflow: hidden;
white-space: inherit;
-webkit-align-items: inherit;
align-items: inherit;
-webkit-justify-content: inherit;
justify-content: inherit;
-webkit-flex-direction: inherit;
flex-direction: inherit;
-webkit-flex-wrap: inherit;
flex-wrap: inherit;
display: inherit;
overflow: inherit;
}
+21
View File
@@ -0,0 +1,21 @@
.uni-async-error {
position: absolute;
left: 0;
right: 0;
top: 0;
bottom: 0;
color: #999;
padding: 100px 10px;
text-align: center;
}
.uni-async-loading {
box-sizing: border-box;
width: 100%;
padding: 50px;
text-align: center;
}
.uni-async-loading .uni-loading {
width: 30px;
height: 30px;
}
+149
View File
@@ -0,0 +1,149 @@
/* Reserve the probe fallback before application layers, including lazy styles. */
@layer uni-field-selection;
/* Keep the legacy class fallback before application and lazy component styles. */
@supports not (background-color: revert-layer) {
.uni-field-selection-probe {
background-color: var(--uni-selection-probe-background-color);
}
}
* {
margin: 0;
-webkit-tap-highlight-color: transparent;
}
html,
body {
-webkit-user-select: none;
user-select: none;
width: 100%;
height: 100%;
}
body {
overflow-x: hidden;
font-size: 16px;
}
uni-app,
uni-page,
uni-page-wrapper,
uni-page-body {
display: block;
box-sizing: border-box;
width: 100%;
}
uni-page-wrapper {
position: relative;
}
#app,
uni-app,
uni-page,
uni-page-wrapper {
height: 100%;
}
/* toast,modal,actionSheet,picker,layout */
.uni-mask {
position: fixed;
z-index: 999;
top: 0;
right: 0;
left: 0;
bottom: 0;
background: rgba(0, 0, 0, 0.5);
}
/* toast,modal,actionSheet,picker */
.uni-fade-enter-active,
.uni-fade-leave-active {
transition-duration: 0.25s;
transition-property: opacity;
transition-timing-function: ease;
}
.uni-fade-enter-from,
.uni-fade-leave-active {
opacity: 0;
}
.uni-loading,
uni-button[loading]:before {
background-color: transparent;
background-image: url('data:image/svg+xml;base64, PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxMjAiIGhlaWdodD0iMTIwIiB2aWV3Qm94PSIwIDAgMTAwIDEwMCI+PHBhdGggZmlsbD0ibm9uZSIgZD0iTTAgMGgxMDB2MTAwSDB6Ii8+PHJlY3Qgd2lkdGg9IjciIGhlaWdodD0iMjAiIHg9IjQ2LjUiIHk9IjQwIiBmaWxsPSIjRTlFOUU5IiByeD0iNSIgcnk9IjUiIHRyYW5zZm9ybT0idHJhbnNsYXRlKDAgLTMwKSIvPjxyZWN0IHdpZHRoPSI3IiBoZWlnaHQ9IjIwIiB4PSI0Ni41IiB5PSI0MCIgZmlsbD0iIzk4OTY5NyIgcng9IjUiIHJ5PSI1IiB0cmFuc2Zvcm09InJvdGF0ZSgzMCAxMDUuOTggNjUpIi8+PHJlY3Qgd2lkdGg9IjciIGhlaWdodD0iMjAiIHg9IjQ2LjUiIHk9IjQwIiBmaWxsPSIjOUI5OTlBIiByeD0iNSIgcnk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DM1IDY1KSIvPjxyZWN0IHdpZHRoPSI3IiBoZWlnaHQ9IjIwIiB4PSI0Ni41IiB5PSI0MCIgZmlsbD0iI0RBREFEQSIgcng9IjUiIHJ5PSI1IiB0cmFuc2Zvcm09InJvdGF0ZSgtNjAgMjQuMDIgNjUpIi8+PHJlY3Qgd2lkdGg9IjciIGhlaWdodD0iMjAiIHg9IjQ2LjUiIHk9IjQwIiBmaWxsPSIjRTJFMkUyIiByeD0iNSIgcnk9IjUiIHRyYW5zZm9ybT0icm90YXRlKC0zMCAtNS45OCA2NSkiLz48L3N2Zz4=');
background-repeat: no-repeat;
}
.uni-loading {
width: 20px;
height: 20px;
display: inline-block;
vertical-align: middle;
animation: uni-loading 1s steps(12, end) infinite;
background-size: 100%;
}
@keyframes uni-loading {
0% {
transform: rotate3d(0, 0, 1, 0deg);
}
100% {
transform: rotate3d(0, 0, 1, 360deg);
}
}
html {
/* --UI-BG-0: #ededed; */
--primary-color: #007aff;
--UI-BG: #fff;
--UI-BG-1: #f7f7f7;
--UI-BG-2: #fff;
--UI-BG-3: #f7f7f7;
--UI-BG-4: #4c4c4c;
--UI-BG-5: #fff;
--UI-FG: #000;
--UI-FG-0: rgba(0, 0, 0, 0.9);
--UI-FG-HALF: rgba(0, 0, 0, 0.9);
--UI-FG-1: rgba(0, 0, 0, 0.5);
--UI-FG-2: rgba(0, 0, 0, 0.3);
--UI-FG-3: rgba(0, 0, 0, 0.1);
}
@media (prefers-color-scheme: dark) {
html {
--UI-BG-COLOR-ACTIVE: #373737;
--UI-BORDER-COLOR-1: #373737;
/* UI */
--UI-BG: #000;
--UI-BG-0: #191919;
--UI-BG-1: #1f1f1f;
--UI-BG-2: #232323;
--UI-BG-3: #2f2f2f;
--UI-BG-4: #606060;
--UI-BG-5: #2c2c2c;
--UI-FG: #fff;
--UI-FG-0: hsla(0, 0%, 100%, 0.8);
--UI-FG-HALF: hsla(0, 0%, 100%, 0.6);
--UI-FG-1: hsla(0, 0%, 100%, 0.5);
--UI-FG-2: hsla(0, 0%, 100%, 0.3);
--UI-FG-3: hsla(0, 0%, 100%, 0.05);
}
.uni-mask {
background: rgba(0, 0, 0, .6);
}
body,
uni-page-body {
background-color: var(--UI-BG-0);
color: var(--UI-FG-0);
}
}
uni-page[data-type] uni-page-body {
background-color: transparent;
}
+58
View File
@@ -0,0 +1,58 @@
uni-content {
display: flex;
flex: 1 0 auto;
height: 100%;
}
uni-main {
flex: 1;
width: 100%;
/* 解除 flex 子项默认的内容最小宽度限制,避免主区域被内容撑宽、挤压左右窗口。 */
min-width: 0;
}
uni-top-window + uni-content {
height: calc(100vh - var(--top-window-height));
}
uni-left-window {
position: relative;
width: var(--window-left);
order: -1;
overflow-x: hidden;
}
uni-right-window {
position: relative;
width: var(--window-right);
overflow-x: hidden;
}
uni-left-window[data-show],
uni-right-window[data-show] {
position: absolute;
}
uni-right-window[data-show] {
right: 0;
}
uni-content .uni-mask,
.uni-left-window,
.uni-right-window {
z-index: 997;
}
.uni-mask + .uni-left-window,
.uni-mask + .uni-right-window {
position: fixed;
}
.uni-top-window {
position: fixed;
left: var(--window-margin);
right: var(--window-margin);
top: 0;
z-index: 998;
overflow: hidden;
}
+57
View File
@@ -0,0 +1,57 @@
[nvue] uni-view,
[nvue] uni-label,
[nvue] uni-swiper-item,
[nvue] uni-scroll-view {
display: flex;
flex-shrink: 0;
flex-grow: 0;
flex-basis: auto;
align-items: stretch;
align-content: flex-start;
}
[nvue] uni-button {
margin: 0;
}
[nvue-dir-row] uni-view,
[nvue-dir-row] uni-label,
[nvue-dir-row] uni-swiper-item {
flex-direction: row;
}
[nvue-dir-column] uni-view,
[nvue-dir-column] uni-label,
[nvue-dir-column] uni-swiper-item {
flex-direction: column;
}
[nvue-dir-row-reverse] uni-view,
[nvue-dir-row-reverse] uni-label,
[nvue-dir-row-reverse] uni-swiper-item {
flex-direction: row-reverse;
}
[nvue-dir-column-reverse] uni-view,
[nvue-dir-column-reverse] uni-label,
[nvue-dir-column-reverse] uni-swiper-item {
flex-direction: column-reverse;
}
[nvue] uni-view,
[nvue] uni-image,
[nvue] uni-input,
[nvue] uni-scroll-view,
[nvue] uni-swiper,
[nvue] uni-swiper-item,
[nvue] uni-text,
[nvue] uni-textarea,
[nvue] uni-video {
position: relative;
border: 0px solid #000000;
box-sizing: border-box;
}
[nvue] uni-swiper-item {
position: absolute;
}
+226
View File
@@ -0,0 +1,226 @@
uni-page-head {
display: block;
box-sizing: border-box;
}
.uni-page-head {
position: fixed;
left: var(--window-left);
right: var(--window-right);
height: 44px;
height: calc(44px + constant(safe-area-inset-top));
height: calc(44px + env(safe-area-inset-top));
padding: 7px 3px;
padding-top: calc(7px + constant(safe-area-inset-top));
padding-top: calc(7px + env(safe-area-inset-top));
display: flex;
overflow: hidden;
justify-content: space-between;
box-sizing: border-box;
z-index: 998;
color: #fff;
background-color: #000;
transition-property: all;
}
.uni-page-head * {
box-sizing: border-box;
}
.uni-page-head .uni-btn-icon {
overflow: hidden;
min-width: 1em;
font-style: normal;
}
.uni-page-head-titlePenetrate,
.uni-page-head-titlePenetrate .uni-page-head-bd,
.uni-page-head-titlePenetrate .uni-page-head-bd * {
pointer-events: none;
}
.uni-page-head-titlePenetrate * {
pointer-events: auto;
}
.uni-page-head.uni-page-head-transparent .uni-page-head-ft > div {
justify-content: center;
}
.uni-page-head ~ .uni-placeholder {
width: 100%;
height: 44px;
height: calc(44px + constant(safe-area-inset-top));
height: calc(44px + env(safe-area-inset-top));
}
.uni-placeholder-titlePenetrate {
pointer-events: none;
}
.uni-page-head-hd {
display: flex;
align-items: center;
font-size: 16px;
}
.uni-page-head-bd {
position: absolute;
left: 70px;
right: 70px;
min-width: 0;
user-select: auto;
}
.uni-page-head-btn {
position: relative;
width: auto;
margin: 0 2px;
word-break: keep-all;
white-space: pre;
cursor: pointer;
font-size: 0px;
}
/* .uni-page-head-btn svg {
} */
.uni-page-head-transparent .uni-page-head-btn {
display: flex;
align-items: center;
width: 32px;
height: 32px;
border-radius: 50%;
background-color: rgba(0, 0, 0, 0.5);
}
.uni-page-head-btn-red-dot::after {
content: attr(badge-text);
position: absolute;
right: 0;
top: 0;
background-color: red;
color: white;
width: 18px;
height: 18px;
line-height: 18px;
border-radius: 18px;
overflow: hidden;
transform: scale(0.5) translate(40%, -40%);
transform-origin: 100% 0;
}
.uni-page-head-btn-red-dot[badge-text]::after {
font-size: 12px;
width: auto;
min-width: 18px;
max-width: 42px;
text-align: center;
padding: 0 3px;
transform: scale(0.7) translate(40%, -40%);
}
.uni-page-head-btn-select svg {
vertical-align: middle;
margin-left: 2px;
transform: rotate(270deg) scale(0.8);
}
.uni-page-head-search {
position: relative;
display: flex;
flex: 1;
margin: 0 2px;
line-height: 30px;
font-size: 15px;
}
.uni-page-head-search-input {
width: 100%;
height: 100%;
padding-left: 34px;
text-align: left;
}
.uni-page-head-search-input .uni-input-input:disabled {
pointer-events: none;
}
.uni-page-head-search-placeholder {
position: absolute;
max-width: 100%;
height: 100%;
padding-left: 34px;
overflow: hidden;
word-break: keep-all;
white-space: pre;
}
.uni-page-head-search-placeholder-right {
right: 0;
}
.uni-page-head-search-placeholder-center {
left: 50%;
transform: translateX(-50%);
}
.uni-page-head-search-icon {
position: absolute;
top: 0;
left: 2px;
width: 30px;
height: 30px;
display: flex;
justify-content: center;
align-items: center;
}
.uni-page-head-ft {
display: flex;
align-items: center;
flex-direction: row-reverse;
font-size: 13px;
}
.uni-page-head__title {
font-weight: bold;
font-size: 16px;
line-height: 30px;
text-align: center;
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
}
.uni-page-head__title .uni-loading {
width: 16px;
height: 16px;
margin-top: -3px;
}
.uni-page-head__title .uni-page-head__title_image {
width: auto;
height: 26px;
vertical-align: middle;
}
.uni-page-head-shadow {
overflow: visible;
}
.uni-page-head-shadow::after {
content: '';
position: absolute;
left: 0;
right: 0;
top: 100%;
height: 5px;
background-size: 100% 100%;
}
uni-page-head[uni-page-head-type='default'] ~ uni-page-wrapper {
height: calc(100% - 44px);
height: calc(100% - 44px - constant(safe-area-inset-top));
height: calc(100% - 44px - env(safe-area-inset-top));
}
@@ -0,0 +1,88 @@
uni-page-refresh {
position: absolute;
top: 0;
width: 100%;
height: 40px;
display: block;
box-sizing: border-box;
}
.uni-page-refresh {
position: absolute;
top: -45px;
left: 50%;
transform: translate3d(-50%, 0, 0);
width: 40px;
height: 40px;
justify-content: center;
align-items: center;
background: #fff;
border-radius: 50%;
box-shadow: 0 1px 6px rgba(0, 0, 0, 0.117647),
0 1px 4px rgba(0, 0, 0, 0.117647);
display: none;
z-index: 997;
}
.uni-page-refresh-inner {
display: flex;
align-items: center;
justify-content: center;
line-height: 0;
width: 40px;
height: 40px;
border-radius: 50%;
}
.uni-page-refresh--pulling .uni-page-refresh,
.uni-page-refresh--aborting .uni-page-refresh,
.uni-page-refresh--reached .uni-page-refresh,
.uni-page-refresh--refreshing .uni-page-refresh,
.uni-page-refresh--restoring .uni-page-refresh {
display: flex;
}
.uni-page-refresh--pulling .uni-page-refresh__spinner,
.uni-page-refresh--aborting .uni-page-refresh__spinner,
.uni-page-refresh--reached .uni-page-refresh__spinner,
.uni-page-refresh--refreshing .uni-page-refresh__icon,
.uni-page-refresh--restoring .uni-page-refresh__icon {
display: none;
}
.uni-page-refresh--refreshing .uni-page-refresh__spinner {
transform-origin: center center;
animation: uni-page-refresh-rotate 2s linear infinite;
}
.uni-page-refresh--refreshing .uni-page-refresh__path {
stroke-dasharray: 1, 200;
stroke-dashoffset: 0;
stroke-linecap: round;
animation: uni-page-refresh-dash 1.5s ease-in-out infinite,
uni-page-refresh-colorful 6s ease-in-out infinite;
}
@keyframes uni-page-refresh-rotate {
100% {
-webkit-transform: rotate(360deg);
transform: rotate(360deg);
}
}
@keyframes uni-page-refresh-dash {
0% {
stroke-dasharray: 1, 200;
stroke-dashoffset: 0;
}
50% {
stroke-dasharray: 89, 200;
stroke-dashoffset: -35px;
}
100% {
stroke-dasharray: 89, 200;
stroke-dashoffset: -124px;
}
}
@@ -0,0 +1,8 @@
body::after {
position: fixed;
content: '';
left: -1000px;
top: -1000px;
animation: shadow-preload 0.1s;
animation-delay: 3s;
}
+166
View File
@@ -0,0 +1,166 @@
uni-tabbar {
display: block;
box-sizing: border-box;
width: 100%;
z-index: 998;
}
.uni-tabbar {
display: flex;
z-index: 998;
box-sizing: border-box;
}
.uni-tabbar-top,
.uni-tabbar-bottom,
.uni-tabbar-top .uni-tabbar,
.uni-tabbar-bottom .uni-tabbar {
position: fixed;
left: var(--window-left);
right: var(--window-right);
}
.uni-app--showlayout + .uni-tabbar-top,
.uni-app--showlayout + .uni-tabbar-bottom,
.uni-app--showlayout + .uni-tabbar-top .uni-tabbar,
.uni-app--showlayout + .uni-tabbar-bottom .uni-tabbar {
left: var(--window-margin);
right: var(--window-margin);
}
.uni-tabbar-bottom .uni-tabbar {
bottom: 0;
padding-bottom: 0;
padding-bottom: constant(safe-area-inset-bottom);
padding-bottom: env(safe-area-inset-bottom);
}
.uni-tabbar ~ .uni-placeholder {
width: 100%;
margin-bottom: 0;
margin-bottom: constant(safe-area-inset-bottom);
margin-bottom: env(safe-area-inset-bottom);
}
.uni-tabbar * {
box-sizing: border-box;
}
.uni-tabbar__item {
display: flex;
justify-content: center;
align-items: center;
flex-direction: column;
flex: 1;
font-size: 0;
text-align: center;
-webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}
.uni-tabbar__bd {
position: relative;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
cursor: pointer;
}
.uni-tabbar__icon {
position: relative;
display: inline-block;
margin-top: 5px;
}
.uni-tabbar__icon.uni-tabbar__icon__diff {
margin-top: 0px;
width: 34px;
height: 34px;
}
.uni-tabbar__icon img {
width: 100%;
height: 100%;
}
.uni-tabbar__iconfont {
font-family: 'UniTabbarIconFont';
}
.uni-tabbar__label {
position: relative;
text-align: center;
font-size: 10px;
}
.uni-tabbar-border {
position: absolute;
left: 0;
top: 0;
width: 100%;
height: 1px;
transform: scaleY(0.5);
}
.uni-tabbar__reddot {
position: absolute;
top: 2px;
right: 0;
width: 12px;
height: 12px;
border-radius: 50%;
background-color: #f43530;
color: #ffffff;
transform: translate(40%, 0%);
}
.uni-tabbar__badge {
width: auto;
height: 16px;
line-height: 16px;
border-radius: 16px;
min-width: 16px;
padding: 0 2px;
font-size: 12px;
text-align: center;
white-space: nowrap;
}
.uni-tabbar__mid {
display: flex;
justify-content: center;
position: absolute;
bottom: 0;
background-size: 100% 100%;
}
.uni-app--showtabbar uni-page-wrapper {
display: block;
height: calc(100% - var(--tab-bar-height));
height: calc(100% - var(--tab-bar-height) - constant(safe-area-inset-bottom));
height: calc(100% - var(--tab-bar-height) - env(safe-area-inset-bottom));
}
uni-page[data-type] uni-page-wrapper {
height: 100%;
}
.uni-app--showtabbar uni-page-wrapper::after {
content: '';
display: block;
width: 100%;
height: var(--tab-bar-height);
height: calc(var(--tab-bar-height) + constant(safe-area-inset-bottom));
height: calc(var(--tab-bar-height) + env(safe-area-inset-bottom));
}
.uni-app--showtabbar
uni-page-head[uni-page-head-type='default']
~ uni-page-wrapper {
height: calc(100% - 44px - var(--tab-bar-height));
height: calc(
100% - 44px - constant(safe-area-inset-top) - var(--tab-bar-height) -
constant(safe-area-inset-bottom)
);
height: calc(
100% - 44px - env(safe-area-inset-top) - var(--tab-bar-height) -
env(safe-area-inset-bottom)
);
}
@@ -0,0 +1,386 @@
/*
* Web Vapor 的框架布局、基础节点样式及组件根节点重置。
* 组件内部规则位于 style/vapor,由组件及 API 的样式依赖按需加载。
* VDOM 继续使用 uvue.css,组件样式路径保持原样。
*/
html,
body {
font-family: -apple-system, HelveticaNeue;
}
body,
uni-page-body {
background-color: var(--background-color-content);
}
uni-app uni-page-body {
height: 100%;
overflow: visible;
}
uni-app uni-page-body,
uni-app uni-top-window,
uni-app uni-left-window,
uni-app uni-right-window {
position: relative;
}
uni-app uni-left-window .uni-left-window,
uni-app uni-right-window .uni-right-window {
height: 100%;
}
uni-app.uni-app--showtabbar uni-page-body::after {
content: '';
display: block;
width: 100%;
height: var(--tab-bar-height);
height: calc(var(--tab-bar-height) + constant(safe-area-inset-bottom));
height: calc(var(--tab-bar-height) + env(safe-area-inset-bottom));
min-height: var(--tab-bar-height);
min-height: calc(var(--tab-bar-height) + constant(safe-area-inset-bottom));
min-height: calc(var(--tab-bar-height) + env(safe-area-inset-bottom));
}
uni-app.uni-app--showtabbar uni-page-wrapper::after {
display: none;
}
/* input 布局对齐 App 端 */
uni-app div:where([uni-input]) {
height: auto;
display: flex;
line-height: 1.4em;
/* 保留旧 input 的 flex 默认值,不继承基础 view 的纵向布局。 */
flex-direction: row;
align-items: normal;
align-content: normal;
justify-content: normal;
}
/* Textarea 保留旧宿主的尺寸、换行和布局默认值,内部类样式位于 style/vapor/textarea.css。 */
uni-app div:where([uni-textarea]) {
width: 300px;
height: 150px;
display: block;
line-height: normal;
white-space: pre-wrap;
word-break: break-all;
letter-spacing: 0;
flex-direction: row;
align-items: normal;
align-content: normal;
justify-content: normal;
}
uni-app div:where([uni-textarea])[auto-height='true'] {
height: fit-content !important;
}
/* 保留 Icon 的内联布局,不继承基础 view 的字体、裁剪和 flex 默认值。 */
uni-app div:where([uni-icon]) {
display: inline-block;
font-size: 0;
text-align: inherit;
overflow: visible;
flex-direction: row;
align-items: normal;
align-content: normal;
justify-content: normal;
}
/* Movable 复用基础 view 的布局,保留旧宿主的尺寸与字体继承。 */
uni-app div:where([uni-movable-area]),
uni-app div:where([uni-movable-view]) {
width: 10px;
height: 10px;
font-size: inherit;
text-align: inherit;
}
uni-app div:where([uni-movable-view]) {
top: 0;
left: 0;
cursor: grab;
}
/* Editor 的布局继续使用 editor.css,保留旧宿主的字体继承和 flex 默认值。 */
uni-app div:where([uni-editor]) {
font-size: inherit;
text-align: inherit;
flex-direction: row;
align-items: normal;
align-content: normal;
justify-content: normal;
}
/* Canvas 的 CSS 显示尺寸独立于 width/height 绘图缓冲区尺寸,用户样式可覆盖默认值。 */
uni-app canvas:where([uni-canvas]) {
width: 300px;
height: 150px;
display: block;
font-size: inherit;
text-align: inherit;
overflow: visible;
flex-direction: row;
align-items: normal;
align-content: normal;
justify-content: normal;
}
/* WebView 保留旧宿主的 flex 布局和字体继承,iframe 继续占满宿主。 */
uni-app div:where([uni-web-view]) {
flex: 1;
font-size: inherit;
text-align: inherit;
overflow: visible;
flex-direction: row;
align-items: normal;
align-content: normal;
justify-content: normal;
}
/* Video 保留旧宿主尺寸与布局,内部控制栏和全屏容器样式位于 style/vapor/video.css。 */
uni-app div:where([uni-video]) {
width: 300px;
height: 225px;
display: inline-block;
line-height: 0;
font-size: inherit;
text-align: inherit;
flex-direction: row;
align-items: normal;
align-content: normal;
justify-content: normal;
}
/* Map 保留旧宿主尺寸与字体继承,SDK 仍挂载到内部固定 div。 */
uni-app div:where([uni-map]) {
width: 300px;
height: 150px;
display: block;
font-size: inherit;
text-align: inherit;
overflow: visible;
flex-direction: row;
align-items: normal;
align-content: normal;
justify-content: normal;
}
/* PageBody 直接使用 ResizeSensor;首次显示动画不能依赖其他组件引入旧 CSS。 */
@keyframes once-show {
from {
top: 0;
}
}
/* 内部尺寸传感器不使用 uni-view,避免套用业务组件的布局和 Element 能力。 */
div:where([uni-resize-sensor]),
div:where([uni-resize-sensor]) > div {
position: absolute;
left: 0;
top: 0;
right: 0;
bottom: 0;
overflow: hidden;
}
div:where([uni-resize-sensor]) {
display: block;
z-index: -1;
visibility: hidden;
animation: once-show 1ms;
}
div:where([uni-resize-sensor]) > div > div {
position: absolute;
left: 0;
top: 0;
}
div:where([uni-resize-sensor]) > div:first-child > div {
width: 100000px;
height: 100000px;
}
div:where([uni-resize-sensor]) > div:last-child > div {
width: 200%;
height: 200%;
}
/* 保留 RichText 的内联布局与字体继承,不套用基础 view 的 flex 和裁剪默认值。 */
uni-app div:where([uni-rich-text]) {
display: inline;
font-size: inherit;
text-align: inherit;
line-height: 1.5;
overflow: visible;
flex-direction: row;
align-items: normal;
align-content: normal;
justify-content: normal;
}
uni-app div:where([uni-rich-text])[selectable='true'] {
user-select: text;
-webkit-user-select: text;
}
/* 与开发者元素接触的容器 */
uni-app uni-page-body,
uni-app uni-left-window .uni-left-window,
uni-app uni-right-window .uni-right-window,
uni-app uni-top-window .uni-top-window {
display: flex;
align-items: stretch;
align-content: stretch;
justify-content: flex-start;
}
/* 此样式可被manifest.json内配置的flex-direction重置 */
uni-app uni-page-body,
uni-app uni-left-window .uni-left-window,
uni-app uni-right-window .uni-right-window,
uni-app uni-top-window .uni-top-window {
flex-direction: column;
}
/* 默认色放在组件根节点,支持通过 caret-color 和 CSS 变量覆盖。 */
div:where([uni-input]),
div:where([uni-textarea]) {
caret-color: #3393e2;
}
/*
* Web Vapor 使用原生 div、span、img、canvas 承载 view、text、image、canvas。
* 复合组件使用 view/text/image 作为根节点时,也复用对应基础规则。
*/
div:where([uni-view]),
canvas:where([uni-canvas]),
span:where([uni-text]),
img:where([uni-image]) {
position: relative;
box-sizing: border-box;
flex-shrink: 0;
flex-grow: 0;
flex-basis: auto;
min-width: 0;
min-height: 0;
overflow: hidden;
border-width: medium;
font-size: 16px;
text-align: left;
}
div:where([uni-view]) {
display: flex;
flex-direction: column;
align-items: stretch;
align-content: stretch;
justify-content: flex-start;
}
span:where([uni-text]) {
display: block;
letter-spacing: 0;
white-space: pre-line;
}
span:where([uni-text]) > span:where([uni-text]) {
display: inline;
}
span:where([uni-text][selectable]) {
cursor: auto;
user-select: text;
}
img:where([uni-image]) {
width: 320px;
height: 240px;
display: inline-block;
-webkit-touch-callout: none;
user-select: none;
object-fit: fill;
object-position: center;
}
/* 基础节点的 hidden 优先于业务 display 样式。 */
div:where([uni-view][hidden]),
canvas:where([uni-canvas][hidden]),
span:where([uni-text][hidden]),
img:where([uni-image][hidden]) {
display: none !important;
}
img:where([uni-image])[mode='aspectFit'] {
object-fit: contain;
object-position: center;
}
img:where([uni-image])[mode='aspectFill'] {
object-fit: cover;
object-position: center;
}
img:where([uni-image])[mode='top'] {
object-fit: none;
object-position: center top;
}
img:where([uni-image])[mode='bottom'] {
object-fit: none;
object-position: center bottom;
}
img:where([uni-image])[mode='center'] {
object-fit: none;
object-position: center;
}
img:where([uni-image])[mode='left'] {
object-fit: none;
object-position: left center;
}
img:where([uni-image])[mode='right'] {
object-fit: none;
object-position: right center;
}
img:where([uni-image])[mode='top left'] {
object-fit: none;
object-position: left top;
}
img:where([uni-image])[mode='top right'] {
object-fit: none;
object-position: right top;
}
img:where([uni-image])[mode='bottom left'] {
object-fit: none;
object-position: left bottom;
}
img:where([uni-image])[mode='bottom right'] {
object-fit: none;
object-position: right bottom;
}
@font-face {
font-family: 'uni-icon';
src: url('data:font/woff2;base64,d09GMgABAAAAAAPkAAoAAAAACDQAAAOXAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAABmAAgmoKhhCEfgsQAAE2AiQDEgQgBYMtB1wb3AbIjtMVccokZYqLVPHA/zH/vlgFRtqogYcpsDPhgY0nOoX6AVY/n1e+H81KQb2yMlMpWUDJacVkCvLU3mAsjoXn/1g+v2uK1PriV3YokYkVFJF0LXCA0ZbAt014NsC9sW1w3sRDCE0h6QU57UQjQIJ4w64DuDqnwycEBEOAiErgkEMbLjuek9bCxY9o0gH3/O9pqXkC7gMIgNQBwKSmSUY1gBROVIj/DkIq0GQAQz3Qx9xJfNJg0nzS4f9/AH5qtll3Bugf+hv9DhDvHxiKANAlmiaOfgOEXS8kp0YIgsNN8ExwziaGHGcB0ubQyJg0JbT0PqOmtYIi2Uz0MaKqIlnPFun76cY2VKfTy4zaZ1OohdQJieYL/Ypi3D9s1vGuwKRXSUZGfWixbFy/YBPfd0A+2L9f2re4r/C+TwGJf0Ax7tc9oiBZ+/B9OnULy+r30rxylq3T76YZRbKpn+hjyoz7FVh4mTAy6lPRYlm/aBNulvurrqdenifMlXKHsn8sByTfY7FCrjhFREQLxeSC/QGLAzN218XrcCjGzsq/0MQ2NtFNAQ4J7hTpnpAKKvLG5lWA6WzqSw/b08Q1TU1+mUzs3Vw35pcClBAwTpE7A9SnT00H7iSpiYButgfmrDEsAMc0pRiWiCM/6x7HXqf1jusYp5aSGCEisjiqrKslqjhSFCJKolu6yqKLIyJEk9AiRZdGFOMvLI2ByPfG3Mr08r3nbynnLPa7XT735vzzA/MPFC7bsGA9vKNDCZ40ScYcMFfcATNOJvkF98wFW2G+moj1yf1vHCpmdz+IE7V++b7+vB9/zU/rn5/vj/XX+CrG3zf/mhi3bHGNuVnCr0Jeoku8i/En7nRJQIF450TXHdCQ6OyiEnbK44f4/APyACAAAWxKauQK88ivBsYEAB4X7r5Gp+3/F6d72H+UYSvEJ4c+wwiS1wJAvD8qhkawz4C28A5CeAnhDQElfnAgWqcC2t1jBEoQUYxAMocFyIx4gIL5goQzjxfAoWwIiI1lEGBM1ABcsA5AsHESkCJdClFsAn4BiQ9/8eNriuQ6JGmdrZ+3r2247WBZLrkmhHo8wna2wbWRt7nBqyCqUqmeYK0S9TViraxogwrJY8xJ32vLjzdftsLZrq7dPq8lqFWnRJVKu0oE2/09rhrHe7tBM8bjufZAiQaEiHBEIBJRSENcWSry5lISF6jG/B6zVFZ9eKQh/uOvpu5FAAAA')
format('woff2');
font-weight: normal;
font-style: normal;
}
.uni-icon-font {
font-family: 'uni-icon';
font-weight: normal;
font-style: normal;
}
+505
View File
@@ -0,0 +1,505 @@
html,
body {
font-family: -apple-system, HelveticaNeue;
}
body,
uni-page-body {
background-color: var(--background-color-content);
}
uni-app uni-page-body {
height: 100%;
overflow: visible;
position: relative;
}
uni-app uni-page-body,
uni-app uni-top-window,
uni-app uni-left-window,
uni-app uni-right-window {
position: relative;
}
uni-app uni-left-window .uni-left-window,
uni-app uni-right-window .uni-right-window {
height: 100%;
}
uni-app.uni-app--showtabbar uni-page-body::after {
content: '';
display: block;
width: 100%;
height: var(--tab-bar-height);
height: calc(var(--tab-bar-height) + constant(safe-area-inset-bottom));
height: calc(var(--tab-bar-height) + env(safe-area-inset-bottom));
min-height: var(--tab-bar-height);
min-height: calc(var(--tab-bar-height) + constant(safe-area-inset-bottom));
min-height: calc(var(--tab-bar-height) + env(safe-area-inset-bottom));
}
uni-app.uni-app--showtabbar uni-page-wrapper::after {
display: none;
}
uni-app uni-text,
uni-app uni-input,
uni-app uni-textarea,
uni-app uni-match-media,
uni-app uni-view {
font-size: 16px;
text-align: left;
}
/* input 布局对齐 App 端 */
uni-app uni-input {
height: auto;
display: flex;
}
uni-app uni-input>.uni-input-wrapper {
height: auto;
flex: 1;
}
uni-app uni-input>.uni-input-wrapper>.uni-input-input {
height: auto;
flex: 1;
}
/* 文字容器 */
uni-app uni-text,
uni-app uni-textarea,
uni-app uni-label {
overflow: hidden;
flex-basis: auto;
letter-spacing: 0;
}
uni-app uni-text,
uni-app uni-label {
letter-spacing: 0;
}
/* uni-app uni-* */
uni-app uni-ad-draw,
uni-app uni-ad-fullscreen-video,
uni-app uni-ad-interactive,
uni-app uni-ad-interstitial,
uni-app uni-ad-rewarded-video,
uni-app uni-ad,
uni-app uni-animation-view,
uni-app uni-audio,
uni-app uni-block,
uni-app uni-button,
uni-app uni-camera,
uni-app uni-canvas,
uni-app uni-checkbox-group,
uni-app uni-checkbox,
uni-app uni-cover-image,
uni-app uni-cover-view,
uni-app uni-custom-tab-bar,
uni-app uni-editor,
uni-app uni-form,
uni-app uni-icon,
uni-app uni-image,
uni-app uni-input,
uni-app uni-label,
uni-app uni-list-item,
uni-app uni-list-view,
uni-app uni-live-player,
uni-app uni-live-pusher,
uni-app uni-map,
uni-app uni-match-media,
uni-app uni-navigation-bar,
uni-app uni-navigator,
uni-app uni-open-data,
uni-app uni-page-meta,
/* uni-app uni-picker-view-column, */
uni-app uni-picker-view,
uni-app uni-picker,
uni-app uni-progress,
uni-app uni-radio-group,
uni-app uni-radio,
uni-app uni-rich-text,
uni-app uni-scroll-view,
uni-app uni-slider,
uni-app uni-sticky-header,
uni-app uni-sticky-section,
uni-app uni-swiper-item,
uni-app uni-swiper,
uni-app uni-switch,
uni-app uni-template,
uni-app uni-text,
uni-app uni-textarea,
uni-app uni-unicloud-db,
uni-app uni-video,
uni-app uni-view,
uni-app uni-web-view {
position: relative;
box-sizing: border-box;
flex-shrink: 0;
flex-grow: 0;
flex-basis: auto;
/* 默认情况下,元素不会缩短至小于内容框尺寸,若想改变这一状况,请设置元素的min-width 与 min-height属性。https://developer.mozilla.org/zh-CN/docs/Web/CSS/flex */
min-height: 0px;
min-width: 0px;
border-width: medium;
}
/**
* 不设置position样式
*/
uni-app uni-movable-area,
uni-app uni-movable-view {
box-sizing: border-box;
flex-shrink: 0;
flex-grow: 0;
flex-basis: auto;
/* 默认情况下,元素不会缩短至小于内容框尺寸,若想改变这一状况,请设置元素的min-width 与 min-height属性。https://developer.mozilla.org/zh-CN/docs/Web/CSS/flex */
min-height: 0px;
min-width: 0px;
border-width: medium;
}
uni-app uni-rich-text {
line-height: 1.5;
}
uni-app uni-text {
/* 使用display: block使text-overflow生效 */
display: block;
white-space: pre-line;
}
uni-app uni-text>span>uni-text {
display: inline;
}
/* uni-app uni-* */
uni-app uni-ad-draw[hidden],
uni-app uni-ad-fullscreen-video[hidden],
uni-app uni-ad-interactive[hidden],
uni-app uni-ad-interstitial[hidden],
uni-app uni-ad-rewarded-video[hidden],
uni-app uni-ad[hidden],
uni-app uni-animation-view[hidden],
uni-app uni-audio[hidden],
uni-app uni-block[hidden],
uni-app uni-button[hidden],
uni-app uni-camera[hidden],
uni-app uni-canvas[hidden],
uni-app uni-checkbox-group[hidden],
uni-app uni-checkbox[hidden],
uni-app uni-cover-image[hidden],
uni-app uni-cover-view[hidden],
uni-app uni-custom-tab-bar[hidden],
uni-app uni-editor[hidden],
uni-app uni-form[hidden],
uni-app uni-icon[hidden],
uni-app uni-image[hidden],
uni-app uni-input[hidden],
uni-app uni-label[hidden],
uni-app uni-list-item[hidden],
uni-app uni-list-view[hidden],
uni-app uni-live-player[hidden],
uni-app uni-live-pusher[hidden],
uni-app uni-map[hidden],
uni-app uni-match-media[hidden],
uni-app uni-movable-area[hidden],
uni-app uni-movable-view[hidden],
uni-app uni-navigation-bar[hidden],
uni-app uni-navigator[hidden],
uni-app uni-open-data[hidden],
uni-app uni-page-meta[hidden],
uni-app uni-picker-view-column[hidden],
uni-app uni-picker-view[hidden],
uni-app uni-picker[hidden],
uni-app uni-progress[hidden],
uni-app uni-radio-group[hidden],
uni-app uni-radio[hidden],
uni-app uni-rich-text[hidden],
uni-app uni-scroll-view[hidden],
uni-app uni-slider[hidden],
uni-app uni-sticky-header[hidden],
uni-app uni-sticky-section[hidden],
uni-app uni-swiper-item[hidden],
uni-app uni-swiper[hidden],
uni-app uni-switch[hidden],
uni-app uni-template[hidden],
uni-app uni-text[hidden],
uni-app uni-textarea[hidden],
uni-app uni-unicloud-db[hidden],
uni-app uni-video[hidden],
uni-app uni-view[hidden],
uni-app uni-web-view[hidden] {
display: none !important;
}
/* 与开发者元素接触的容器 */
uni-app uni-page-body,
uni-app uni-left-window .uni-left-window,
uni-app uni-right-window .uni-right-window,
uni-app uni-top-window .uni-top-window,
uni-app uni-animation-view,
uni-app uni-block,
uni-app uni-view,
uni-app uni-match-media,
uni-app uni-label,
uni-app uni-swiper,
uni-app uni-swiper-item,
uni-app uni-movable-area,
uni-app uni-movable-view,
uni-app uni-cover-view,
uni-app uni-list-item,
uni-app uni-navigator,
uni-app uni-radio-group,
uni-app uni-checkbox-group,
uni-app uni-scroll-view,
uni-app uni-list-view,
uni-app uni-unicloud-db,
uni-app uni-custom-tab-bar,
uni-app uni-sticky-section,
uni-app uni-sticky-header {
display: flex;
align-items: stretch;
align-content: stretch;
justify-content: flex-start;
}
/* 此样式可被manifest.json内配置的flex-direction重置 */
uni-app uni-page-body,
uni-app uni-left-window .uni-left-window,
uni-app uni-right-window .uni-right-window,
uni-app uni-top-window .uni-top-window,
uni-app uni-view,
uni-app uni-match-media,
uni-app uni-label,
uni-app uni-swiper,
uni-app uni-swiper-item,
uni-app uni-movable-area,
uni-app uni-movable-view,
uni-app uni-cover-view,
uni-app uni-list-item,
uni-app uni-navigator,
uni-app uni-radio-group,
uni-app uni-checkbox-group,
uni-app uni-scroll-view,
uni-app uni-list-view,
uni-app uni-unicloud-db,
uni-app uni-sticky-section,
uni-app uni-sticky-header {
flex-direction: column;
}
/* 与开发者元素接触的非滚动容器 */
uni-app uni-view,
uni-app uni-match-media,
uni-app uni-label,
uni-app uni-swiper,
uni-app uni-swiper-item,
uni-app uni-movable-area,
uni-app uni-movable-view,
uni-app uni-cover-view,
uni-app uni-list-item,
uni-app uni-navigator,
uni-app uni-radio-group,
uni-app uni-checkbox-group {
overflow: hidden;
}
uni-app uni-button {
margin: 0;
}
/* 透传scroll-view的flex-direction样式 */
uni-app uni-scroll-view {
width: auto;
}
uni-app .uni-scroll-view,
uni-app .uni-scroll-view-content,
uni-app .uni-list-view-visible,
uni-app uni-navigator a {
flex-direction: inherit;
align-items: inherit;
align-content: inherit;
justify-content: inherit;
flex-wrap: inherit;
}
uni-app uni-navigator a {
display: flex;
width: 100%;
height: 100%;
}
uni-app .uni-scroll-view-content,
uni-app .uni-sticky-header-wrapper {
display: flex;
min-height: 0px;
}
uni-app uni-swiper-item {
position: absolute;
}
/* 默认色放在组件根节点,支持通过 caret-color 和 CSS 变量覆盖。 */
uni-input,
uni-textarea {
caret-color: #3393e2;
}
uni-app .uni-input-input,
uni-app .uni-textarea-textarea {
caret-color: inherit;
}
uni-app .uni-input-input:disabled,
uni-app .uni-textarea-textarea:disabled {
cursor: inherit;
}
uni-app uni-checkbox {
align-items: center;
}
uni-app .uni-checkbox-wrapper {
flex-direction: inherit;
align-content: inherit;
justify-content: inherit;
align-items: inherit;
width: 100%;
height: 100%;
}
/* 覆盖 video 的 poster 背景 */
uni-app .uni-video-cover {
background-color: unset;
}
/**
* 界面相关api样式
*/
body .uni-toast {
width: 140px;
height: 140px;
display: flex;
justify-content: center;
flex-direction: column;
align-items: center;
background-color: rgba(76, 76, 76, 0.95);
}
body .uni-toast__icon {
margin: 0;
}
body .uni-toast__content {
margin: 16px 0 0;
font-size: 16px;
line-height: 1.4;
color: #ffffff;
}
body .uni-modal {
border-radius: 12px;
}
body .uni-modal__hd {
padding: 32px 24px 16px;
}
body .uni-modal__title {
font-weight: 700;
font-size: 17px;
line-height: 1.4;
-webkit-line-clamp: unset;
}
body .uni-modal__bd {
font-size: 17px;
padding: 0 24px;
margin-bottom: 32px;
min-height: unset;
max-height: 300px;
overflow: hidden auto;
hyphens: auto;
}
body .uni-modal__textarea {
display: block;
width: 100%;
height: 48px;
font-size: 17px;
line-height: 24px;
padding: 0px 8px;
}
body .uni-modal__ft {
line-height: 56px;
font-size: 17px;
}
body .uni-modal__btn {
font-weight: 700;
}
body .uni-modal__btn_primary {
color: #576b95;
}
@media screen and (max-width: 500px) {
body .uni-actionsheet {
left: 0px;
right: 0px;
bottom: 0px;
border-top-left-radius: 12px;
border-top-right-radius: 12px;
background-color: #f7f7f7;
overflow: hidden;
}
body .uni-actionsheet__menu {
border-radius: 0px;
background-color: #ffffff;
}
body .uni-actionsheet__action {
border-radius: 0px;
margin-top: 8px;
}
body .uni-actionsheet__cell,
body .uni-actionsheet__title {
padding: 16px;
line-height: 24px;
}
body .uni-actionsheet__cell {
font-size: 17px;
}
body .uni-actionsheet__title {
font-size: 14px;
color: #747474;
}
}
:is(.uni-video-slots *) {
pointer-events: auto;
}
@font-face {
font-family: 'uni-icon';
src: url('data:font/woff2;base64,d09GMgABAAAAAAPkAAoAAAAACDQAAAOXAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAABmAAgmoKhhCEfgsQAAE2AiQDEgQgBYMtB1wb3AbIjtMVccokZYqLVPHA/zH/vlgFRtqogYcpsDPhgY0nOoX6AVY/n1e+H81KQb2yMlMpWUDJacVkCvLU3mAsjoXn/1g+v2uK1PriV3YokYkVFJF0LXCA0ZbAt014NsC9sW1w3sRDCE0h6QU57UQjQIJ4w64DuDqnwycEBEOAiErgkEMbLjuek9bCxY9o0gH3/O9pqXkC7gMIgNQBwKSmSUY1gBROVIj/DkIq0GQAQz3Qx9xJfNJg0nzS4f9/AH5qtll3Bugf+hv9DhDvHxiKANAlmiaOfgOEXS8kp0YIgsNN8ExwziaGHGcB0ubQyJg0JbT0PqOmtYIi2Uz0MaKqIlnPFun76cY2VKfTy4zaZ1OohdQJieYL/Ypi3D9s1vGuwKRXSUZGfWixbFy/YBPfd0A+2L9f2re4r/C+TwGJf0Ax7tc9oiBZ+/B9OnULy+r30rxylq3T76YZRbKpn+hjyoz7FVh4mTAy6lPRYlm/aBNulvurrqdenifMlXKHsn8sByTfY7FCrjhFREQLxeSC/QGLAzN218XrcCjGzsq/0MQ2NtFNAQ4J7hTpnpAKKvLG5lWA6WzqSw/b08Q1TU1+mUzs3Vw35pcClBAwTpE7A9SnT00H7iSpiYButgfmrDEsAMc0pRiWiCM/6x7HXqf1jusYp5aSGCEisjiqrKslqjhSFCJKolu6yqKLIyJEk9AiRZdGFOMvLI2ByPfG3Mr08r3nbynnLPa7XT735vzzA/MPFC7bsGA9vKNDCZ40ScYcMFfcATNOJvkF98wFW2G+moj1yf1vHCpmdz+IE7V++b7+vB9/zU/rn5/vj/XX+CrG3zf/mhi3bHGNuVnCr0Jeoku8i/En7nRJQIF450TXHdCQ6OyiEnbK44f4/APyACAAAWxKauQK88ivBsYEAB4X7r5Gp+3/F6d72H+UYSvEJ4c+wwiS1wJAvD8qhkawz4C28A5CeAnhDQElfnAgWqcC2t1jBEoQUYxAMocFyIx4gIL5goQzjxfAoWwIiI1lEGBM1ABcsA5AsHESkCJdClFsAn4BiQ9/8eNriuQ6JGmdrZ+3r2247WBZLrkmhHo8wna2wbWRt7nBqyCqUqmeYK0S9TViraxogwrJY8xJ32vLjzdftsLZrq7dPq8lqFWnRJVKu0oE2/09rhrHe7tBM8bjufZAiQaEiHBEIBJRSENcWSry5lISF6jG/B6zVFZ9eKQh/uOvpu5FAAAA')
format('woff2');
font-weight: normal;
font-style: normal;
}
.uni-icon-font {
font-family: 'uni-icon';
font-weight: normal;
font-style: normal;
}
+30
View File
@@ -0,0 +1,30 @@
uni-input,
div:where([uni-input]) {
background-color: #ffffff;
}
.uni-input-placeholder {
color: #757575;
}
@layer uni-field-selection {
:where(.uni-field-selection-probe) {
background-color: var(--uni-selection-probe-background-color);
}
}
.uni-input-input.uni-field-selection[data-uni-selection]::selection {
background-color: var(--uni-selection-background-color);
}
@media (prefers-color-scheme: dark) {
uni-input {
color: #ffffff;
background-color: #3b3b3b;
}
div:where([uni-input]) {
color: #ffffff;
background-color: #3b3b3b;
}
}
+8
View File
@@ -0,0 +1,8 @@
uni-live-player {
display: block;
overflow: hidden;
}
uni-live-player[hidden] {
display: none;
}
+8
View File
@@ -0,0 +1,8 @@
uni-live-pusher {
display: block;
overflow: hidden;
}
uni-live-pusher[hidden] {
display: none;
}
+34
View File
@@ -0,0 +1,34 @@
uni-map {
position: relative;
width: 300px;
height: 150px;
display: block;
}
uni-map[hidden] {
display: none;
}
/* 处理高德地图 marker label 默认样式 */
.amap-marker-label {
padding: 0;
border: none;
background-color: transparent;
}
/* 处理高德地图 open-location icon 被遮挡问题 */
.amap-marker > .amap-icon > img {
left: 0 !important;
top: 0 !important;
}
.uni-map-control {
position: absolute;
width: 0;
height: 0;
top: 0;
left: 0;
z-index: 999;
}
.uni-map-control-icon {
position: absolute;
max-width: initial;
}
+228
View File
@@ -0,0 +1,228 @@
uni-picker {
position: relative;
display: block;
cursor: pointer;
}
uni-picker[hidden] {
display: none;
}
uni-picker[disabled] {
cursor: not-allowed;
}
.uni-picker-container {
display: none;
position: fixed;
left: 0;
right: 0;
top: 0;
bottom: 0;
box-sizing: border-box;
z-index: 999;
font-size: 16px;
}
.uni-picker-container .uni-picker-custom * {
box-sizing: border-box;
}
.uni-picker-container .uni-picker-custom {
position: fixed;
left: 0;
bottom: 0;
transform: translate(0, 100%);
backface-visibility: hidden;
z-index: 999;
width: 100%;
background-color: #fff;
visibility: hidden;
transition: transform 0.3s, visibility 0.3s;
}
.uni-picker-container .uni-picker-custom.uni-picker-toggle {
visibility: visible;
transform: translate(0, 0);
}
.uni-picker-container .uni-picker-content {
position: relative;
display: block;
width: 100%;
height: 238px;
background-color: white;
}
.uni-picker-container .uni-picker-item {
padding: 0;
height: 34px;
line-height: 34px;
text-align: center;
color: #000;
text-overflow: ellipsis;
white-space: nowrap;
overflow: hidden;
cursor: pointer;
}
.uni-picker-container .uni-picker-header {
display: block;
position: relative;
text-align: center;
width: 100%;
height: 45px;
}
.uni-picker-container .uni-picker-header:after {
content: '';
position: absolute;
left: 0;
bottom: 0;
right: 0;
height: 1px;
clear: both;
border-bottom: 1px solid #e5e5e5;
color: #e5e5e5;
transform-origin: 0 100%;
transform: scaleY(0.5);
}
.uni-picker-container .uni-picker-action {
display: block;
max-width: 50%;
top: 0;
height: 100%;
box-sizing: border-box;
padding: 0 14px;
font-size: 17px;
line-height: 45px;
overflow: hidden;
cursor: pointer;
}
.uni-picker-container .uni-picker-action.uni-picker-action-cancel {
float: left;
color: #888;
}
.uni-picker-container .uni-picker-action.uni-picker-action-confirm {
float: right;
color: #007aff;
}
.uni-picker-container .uni-picker-select {
display: none;
}
.uni-picker-system {
position: absolute;
display: none;
display: block;
top: 0;
left: 0;
width: 100%;
height: 100%;
overflow: hidden;
}
.uni-picker-system > .uni-picker-system_input {
position: absolute;
border: none;
height: 100%;
opacity: 0;
/* Chrome 无效 */
cursor: pointer;
}
.uni-picker-system > .uni-picker-system_input.firefox {
top: 0;
left: 0;
width: 100%;
}
.uni-picker-system > .uni-picker-system_input.chrome {
/* 日历空白位置宽度 32px */
top: 0;
left: 0;
width: 2em;
font-size: 32px;
height: 32px;
}
@media screen and (min-width: 500px) and (min-height: 500px) {
.uni-mask.uni-picker-mask {
background: none;
}
.uni-picker-container .uni-picker-custom {
width: 300px !important;
left: 50%;
right: auto;
top: 50%;
bottom: auto;
transform: translate(-50%, -50%);
opacity: 0;
border-radius: 5px;
transition: opacity 0.3s, visibility 0.3s;
box-shadow: 0px 0 20px 5px rgba(0, 0, 0, 0.3);
}
.uni-picker-container .uni-picker-header {
border-radius: 5px 5px 0 0;
}
.uni-picker-container .uni-picker-content {
/* transform 用于解决 Safari overflow 失效的问题 */
transform: translate(0 0);
overflow: hidden;
border-radius: 0 0 5px 5px;
}
.uni-picker-container .uni-picker-custom.uni-picker-toggle {
opacity: 1;
transform: translate(-50%, -50%);
}
.uni-selector-select .uni-picker-header,
.uni-selector-select .uni-picker-content {
display: none;
}
.uni-selector-select .uni-picker-select {
display: block;
max-height: 300px;
overflow: auto;
background-color: white;
border-radius: 5px;
padding: 6px 0;
}
.uni-selector-select .uni-picker-item {
padding: 0 10px;
color: #555555;
}
.uni-selector-select .uni-picker-item:hover {
background-color: #f6f6f6;
}
.uni-selector-select .uni-picker-item.selected {
color: #007aff;
}
}
@media (prefers-color-scheme: dark) {
.uni-picker-container {
--uni-picker-arrow-color: var(--UI-BG-2);
}
.uni-picker-container .uni-picker-content,
.uni-picker-container .uni-picker-select {
background-color: var(--UI-BG-2);
}
.uni-selector-select .uni-picker-item,
.uni-picker-container .uni-picker-item,
.uni-picker-container .uni-picker-action.uni-picker-action-cancel {
color: var(--UI-FG-0);
}
.uni-selector-select .uni-picker-item:hover {
background-color: var(--UI-BG-COLOR-ACTIVE);
}
.uni-picker-container .uni-picker-custom {
background-color: var(--UI-BG-2);
}
.uni-picker-container .uni-picker-header:after {
border-bottom-color: var(--UI-FG-3);
}
}
+30
View File
@@ -0,0 +1,30 @@
uni-textarea,
div:where([uni-textarea]) {
background-color: #ffffff;
}
.uni-textarea-placeholder {
color: #757575;
}
@layer uni-field-selection {
:where(.uni-field-selection-probe) {
background-color: var(--uni-selection-probe-background-color);
}
}
.uni-textarea-textarea.uni-field-selection[data-uni-selection]::selection {
background-color: var(--uni-selection-background-color);
}
@media (prefers-color-scheme: dark) {
uni-textarea {
color: #ffffff;
background-color: #3b3b3b;
}
div:where([uni-textarea]) {
color: #ffffff;
background-color: #3b3b3b;
}
}
+10
View File
@@ -0,0 +1,10 @@
/* Ad 保留旧宿主的块布局和字体继承,广告 SDK 仍使用内部容器。 */
uni-app div:where([uni-ad]) {
display: block;
font-size: inherit;
text-align: inherit;
flex-direction: row;
align-items: normal;
align-content: normal;
justify-content: normal;
}
+120
View File
@@ -0,0 +1,120 @@
/* Vapor 独立组件样式;基础节点及根节点重置由 uvue-vapor.css 提供。 */
.uni-input-wrapper,
.uni-input-placeholder,
.uni-input-form,
.uni-input-input {
outline: none;
border: none;
padding: 0;
margin: 0;
text-decoration: inherit;
}
.uni-input-wrapper,
.uni-input-form {
display: flex;
position: relative;
width: 100%;
height: 100%;
flex-direction: column;
justify-content: center;
}
.uni-input-placeholder,
.uni-input-input {
width: 100%;
}
.uni-input-placeholder {
position: absolute;
top: auto !important;
left: 0;
color: gray;
overflow: hidden;
text-overflow: clip;
white-space: pre;
word-break: keep-all;
pointer-events: none;
line-height: inherit;
}
.uni-input-input {
position: relative;
display: block;
height: 100%;
background: none;
color: inherit;
opacity: 1;
font: inherit;
line-height: inherit;
letter-spacing: inherit;
text-align: inherit;
text-indent: inherit;
text-transform: inherit;
text-shadow: inherit;
}
.uni-input-input[type='search']::-webkit-search-cancel-button,
.uni-input-input[type='search']::-webkit-search-decoration {
display: none;
}
.uni-input-input::-webkit-outer-spin-button,
.uni-input-input::-webkit-inner-spin-button {
appearance: none;
margin: 0;
}
.uni-input-input[type='number'] {
-moz-appearance: textfield;
}
.uni-input-input:disabled {
/* 用于重置iOS14以下禁用状态文字颜色 */
-webkit-text-fill-color: currentcolor;
}
div:where([uni-input]) {
background-color: #ffffff;
}
.uni-input-placeholder {
color: #757575;
}
@layer uni-field-selection {
:where(.uni-field-selection-probe) {
background-color: var(--uni-selection-probe-background-color);
}
}
.uni-input-input.uni-field-selection[data-uni-selection]::selection {
background-color: var(--uni-selection-background-color);
}
@media (prefers-color-scheme: dark) {
div:where([uni-input]) {
color: #ffffff;
background-color: #3b3b3b;
}
}
/* Vapor 输入框内部布局;根节点重置仍由 uvue-vapor.css 维护。 */
uni-app div:where([uni-input]) > .uni-input-wrapper {
height: auto;
flex: 1;
}
uni-app div:where([uni-input]) > .uni-input-wrapper > .uni-input-input {
height: auto;
flex: 1;
}
/* 内部原生输入框继承组件外部设置的光标样式。 */
uni-app .uni-input-input {
caret-color: inherit;
}
uni-app .uni-input-input:disabled {
cursor: inherit;
}
@@ -0,0 +1,8 @@
/* 根节点直接承载滚动和内容布局,尺寸及 flex 属性由使用方设置。 */
.uni-scroll-view-scrollbar-hidden::-webkit-scrollbar {
display: none;
}
.uni-scroll-view-scrollbar-hidden {
scrollbar-width: none;
}
+105
View File
@@ -0,0 +1,105 @@
/* Vapor 独立组件样式;基础节点及根节点重置由 uvue-vapor.css 提供。 */
.uni-textarea-wrapper,
.uni-textarea-placeholder,
.uni-textarea-line,
.uni-textarea-compute,
.uni-textarea-textarea {
outline: none;
border: none;
padding: 0;
margin: 0;
text-decoration: inherit;
}
.uni-textarea-wrapper {
display: block;
position: relative;
width: 100%;
height: 100%;
min-height: inherit;
overflow-y: hidden;
}
.uni-textarea-placeholder,
.uni-textarea-line,
.uni-textarea-compute,
.uni-textarea-textarea {
position: absolute;
width: 100%;
height: 100%;
left: 0;
top: 0;
white-space: inherit;
word-break: inherit;
}
.uni-textarea-placeholder {
color: grey;
overflow: hidden;
}
.uni-textarea-line,
.uni-textarea-compute {
visibility: hidden;
height: auto;
}
.uni-textarea-line {
width: 1em;
}
.uni-textarea-compute-auto-height {
/* 解决全输入符号设置auto-height不会自动增加高度 */
overflow-wrap: break-word;
}
.uni-textarea-textarea {
resize: none;
background: none;
color: inherit;
opacity: 1;
font: inherit;
line-height: inherit;
letter-spacing: inherit;
text-align: inherit;
text-indent: inherit;
text-transform: inherit;
text-shadow: inherit;
}
/* 用于解决 iOS textarea 内部默认边距 */
.uni-textarea-textarea-fix-margin {
width: auto;
right: 0;
margin: 0 -3px;
}
.uni-textarea-textarea:disabled {
/* 用于重置iOS14以下禁用状态文字颜色 */
-webkit-text-fill-color: currentcolor;
}
div:where([uni-textarea]) {
background-color: #ffffff;
}
.uni-textarea-placeholder {
color: #757575;
}
@layer uni-field-selection {
:where(.uni-field-selection-probe) {
background-color: var(--uni-selection-probe-background-color);
}
}
.uni-textarea-textarea.uni-field-selection[data-uni-selection]::selection {
background-color: var(--uni-selection-background-color);
}
@media (prefers-color-scheme: dark) {
div:where([uni-textarea]) {
color: #ffffff;
background-color: #3b3b3b;
}
}
/* 内部原生输入框继承组件外部设置的光标样式。 */
uni-app .uni-textarea-textarea {
caret-color: inherit;
}
uni-app .uni-textarea-textarea:disabled {
cursor: inherit;
}
+364
View File
@@ -0,0 +1,364 @@
/* Vapor 独立组件样式;基础节点及根节点重置由 uvue-vapor.css 提供。 */
.uni-video-container {
width: 100%;
height: 100%;
background-color: black;
display: inline-block;
position: absolute;
top: 0;
left: 0;
overflow: hidden;
object-position: inherit;
}
.uni-video-container.uni-video-type-fullscreen {
position: fixed;
z-index: 999;
}
.uni-video-video {
width: 100%;
height: 100%;
object-position: inherit;
}
.uni-video-cover {
position: absolute;
top: 0;
left: 0;
bottom: 0;
width: 100%;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
background-color: rgba(1, 1, 1, 0.5);
z-index: 1;
}
.uni-video-slots {
position: absolute;
left: 0;
top: 0;
width: 100%;
height: 100%;
overflow: hidden;
pointer-events: none;
}
.uni-video-cover-play-button {
width: 75px;
height: 75px;
line-height: 75px;
font-size: 56px;
color: rgba(255, 255, 255, 0.5);
cursor: pointer;
}
.uni-video-cover-play-button::after {
content: '\ea24';
}
.uni-video-cover-duration {
color: #fff;
font-size: 16px;
line-height: 1;
margin-top: 10px;
}
.uni-video-bar {
height: 44px;
/* background-color: rgba(0, 0, 0, 0.5); */
background-image: linear-gradient(-180deg, transparent, rgba(0, 0, 0, 0.5));
overflow: hidden;
position: absolute;
bottom: 0;
right: 0;
display: flex;
display: flex;
align-items: center;
align-items: center;
padding: 0 16px;
z-index: 0;
/* 解决全屏后被 video 遮挡的问题 */
transform: translate3d(0, 0, 0);
}
.uni-video-bar.uni-video-bar-full {
left: 0;
}
.uni-video-video-fullscreen .uni-video-bar {
padding-bottom: 8px;
}
.uni-video-controls {
display: flex;
flex-grow: 1;
margin: 0 8.5px;
align-items: center;
}
.uni-video-control-button {
width: 17px;
height: 17px;
font-size: 16px;
line-height: 17px;
padding: 0px 16px 0px 0px;
margin-left: -6px;
margin-right: -6px;
box-sizing: content-box;
cursor: pointer;
}
.uni-video-control-button::after {
content: '';
display: block;
width: 100%;
height: 100%;
color: rgba(255, 255, 255, 0.5);
}
.uni-video-control-button.uni-video-control-button-play::after {
content: '\ea24';
}
.uni-video-control-button.uni-video-control-button-pause::after {
content: '\ea25';
}
.uni-video-current-time,
.uni-video-duration {
height: 15px;
line-height: 15px;
font-size: 14px;
color: rgba(255, 255, 255, 0.5);
}
.uni-video-progress-container {
flex-grow: 2;
position: relative;
}
.uni-video-progress {
/* 高度与 uni-video-progress-progressing 配套调整 */
height: 4px;
margin: 21px 12px;
border-radius: 20px;
position: relative;
cursor: pointer;
display: flex;
align-items: center;
}
.uni-video-progress.uni-video-progress-progressing {
height: 8px;
}
.uni-video-progress .uni-video-progress-played {
background-color: #fff;
border-top-left-radius: 20px;
border-bottom-left-radius: 20px;
}
.uni-video-progress-played,
.uni-video-progress-buffered {
position: absolute;
left: 0;
top: 0;
width: 0;
height: 100%;
background-color: rgba(255, 255, 255, 0.3);
}
.uni-video-progress-buffered {
border-top-right-radius: 20px;
border-bottom-right-radius: 20px;
/* transition: width 0.1s; */
}
.uni-video-ball {
/* 宽高与 uni-video-ball-progressing 配套调整 */
width: 8px;
height: 8px;
padding: 14px;
position: absolute;
box-sizing: content-box;
left: 0%;
margin-left: -16px;
}
.uni-video-ball.uni-video-ball-progressing {
width: 16px;
height: 16px;
}
.uni-video-inner {
width: 100%;
height: 100%;
background-color: #ffffff;
border-radius: 50%;
box-shadow: 0px 0px 2px #ccc;
}
.uni-video-danmu-button {
width: 24px;
height: 24px;
line-height: 24px;
font-size: 24px;
white-space: nowrap;
border-radius: 5px;
margin: 0 2px;
cursor: pointer;
color: rgba(255, 255, 255, 0.5);
}
.uni-video-danmu-button::after {
content: '\ea26';
}
.uni-video-danmu-button.uni-video-danmu-button-active::after {
content: '\ea27';
}
.uni-video-fullscreen {
width: 32px;
height: 32px;
line-height: 32px;
font-size: 18px;
color: rgba(255, 255, 255, 0.5);
box-sizing: content-box;
cursor: pointer;
}
.uni-video-fullscreen::after {
content: '\ea29';
}
.uni-video-fullscreen.uni-video-type-fullscreen::after {
content: '\ea28';
}
.uni-video-danmu {
position: absolute;
top: 0;
left: 0;
bottom: 0;
width: 100%;
margin-top: 14px;
margin-bottom: 44px;
font-size: 14px;
line-height: 14px;
overflow: visible;
}
.uni-video-danmu-item {
line-height: 1;
position: absolute;
color: #ffffff;
white-space: nowrap;
left: 100%;
transform: translatex(0);
transition-property: left, transform;
transition-duration: 3s;
transition-timing-function: linear;
}
.uni-video-toast {
pointer-events: none;
position: absolute;
left: 50%;
top: 50%;
transform: translate(-50%, -50%);
border-radius: 5px;
background-color: rgba(255, 255, 255, 0.6);
color: #000000;
display: none;
}
.uni-video-toast.uni-video-toast-progress {
display: block;
background-color: rgba(0, 0, 0, 0.5);
color: rgba(255, 255, 255, 0.6);
font-size: 24px;
line-height: 18px;
padding: 6px;
}
.uni-video-toast.uni-video-toast-progress .uni-video-toast-title-current-time {
color: rgba(255, 255, 255, 0.9);
}
@font-face {
font-family: 'uni-video-icon';
src: url(data:font/woff2;base64,d09GMgABAAAAAAvkAAoAAAAAF7gAAAuZAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAABmAAgloKpDSbTAsYAAE2AiQDLAQgBYMtB4EqG4ISA+4wbBwQQL8R2R8JORleaw5cKJYoIp5oiqFM3sGmBV8H//3PPf4+MzevQHNToqSEeQVG29XlUQEqYsUkVD2Qq7BV/D0Oj5v27wXNSwIdTUKh3UZt4khl0t4NOjqrwEjYHFrI6OaF2ik5qcDd/ydIuzPrOhNDvuq54fOulXbgaPYwxxZIrpBVBMJWVrjkJ/s2MLMHTKoA4IGfr5AHrADl1VWRr5SVrtLV9v81NV8kSCbUuA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4ibNOt7xcwTB1w5QBzId0XtOpRxeuUc/5RtlFCmDgP0f6Y8nyHf83Sb73kQAAJZiF+NtdlbCmVEqweQSwuQh1gpIEwIAkpxEGAJUg0KSkMUnlhUSbsCYAlLIWEqj9ObcAgjG5SZAsAKALxzDkoKJEQiF5SurFTy6RMYYKaKolWgQmvI1mFSrBINlaIqGSx5UUxR8okTGHK8NyaEkmdsSkivhXY2WvuvO+ZDBOm2GYZdjdlEWmX7B+ebZBu2pCJ3loIqwCBDaziRB+fLQlrJLTTsNYBxuxy46cN9WAkWnMSF45C4P1nZuKrzS2EyQQR+1fZzaG7tsm0Cl/8kSoxWCnNKEIvE0ADUqgFMqgHCqgEuIQQQLNB+mpc0UBkS/k7QgGCJ9308aOqV+MEhhTSFo9wyTmlPTU75zdVPXlU10+Ecupyj0hP2qZc3p/kz8YzAE=)
format('woff2');
}
.uni-video-icon {
/* 解决自定义全局字体会覆盖按钮的问题 */
font-family: 'uni-video-icon' !important;
text-align: center;
}
.uni-video-loading {
position: absolute;
top: 0;
bottom: 0;
left: 0;
right: 0;
pointer-events: none;
}
.uni-video-toast-container {
position: relative;
display: flex;
flex-direction: row;
align-items: center;
width: 22%;
min-width: 100px;
max-width: 200px;
height: 30px;
max-height: 30px;
min-height: 6px;
background-color: rgba(0, 0, 0, 0.4);
box-shadow: 0px 0px 2px #ccc;
margin: 5px auto 0;
border-radius: 30px;
overflow: hidden;
transition-property: height;
transition-duration: 0.2s;
transition-timing-function: ease-in-out;
opacity: 0.6;
}
.uni-video-toast-container.uni-video-toast-container-thin {
height: 6px;
}
.uni-video-toast-container-thin .uni-video-toast-icon {
display: none;
}
.uni-video-toast-icon {
font-size: 20px;
position: absolute;
left: 10px;
color: #222;
z-index: 1;
}
.uni-video-toast-draw {
height: 100%;
background-color: #fff;
}
/* 覆盖 video 的 poster 背景 */
uni-app .uni-video-cover {
background-color: unset;
}
/* 插槽容器不接收指针事件,内部业务节点仍须能够交互。 */
:is(.uni-video-slots *) {
pointer-events: auto;
}
+6
View File
@@ -0,0 +1,6 @@
/* Vapor 使用 div 作为宿主,内部 iframe 保持占满容器。 */
uni-app div:where([uni-web-view]) > iframe {
width: 100%;
height: 100%;
border: none;
}
+365
View File
@@ -0,0 +1,365 @@
uni-video {
width: 300px;
height: 225px;
display: inline-block;
line-height: 0;
overflow: hidden;
position: relative;
}
uni-video[hidden] {
display: none;
}
.uni-video-container {
width: 100%;
height: 100%;
background-color: black;
display: inline-block;
position: absolute;
top: 0;
left: 0;
overflow: hidden;
object-position: inherit;
}
.uni-video-container.uni-video-type-fullscreen {
position: fixed;
z-index: 999;
}
.uni-video-video {
width: 100%;
height: 100%;
object-position: inherit;
}
.uni-video-cover {
position: absolute;
top: 0;
left: 0;
bottom: 0;
width: 100%;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
background-color: rgba(1, 1, 1, 0.5);
z-index: 1;
}
.uni-video-slots {
position: absolute;
left: 0;
top: 0;
width: 100%;
height: 100%;
overflow: hidden;
pointer-events: none;
}
.uni-video-cover-play-button {
width: 75px;
height: 75px;
line-height: 75px;
font-size: 56px;
color: rgba(255, 255, 255, 0.5);
cursor: pointer;
}
.uni-video-cover-play-button::after {
content: '\ea24';
}
.uni-video-cover-duration {
color: #fff;
font-size: 16px;
line-height: 1;
margin-top: 10px;
}
.uni-video-bar {
height: 44px;
/* background-color: rgba(0, 0, 0, 0.5); */
background-image: linear-gradient(-180deg, transparent, rgba(0, 0, 0, 0.5));
overflow: hidden;
position: absolute;
bottom: 0;
right: 0;
display: flex;
display: flex;
align-items: center;
align-items: center;
padding: 0 16px;
z-index: 0;
/* 解决全屏后被 video 遮挡的问题 */
transform: translate3d(0, 0, 0);
}
.uni-video-bar.uni-video-bar-full {
left: 0;
}
.uni-video-video-fullscreen .uni-video-bar {
padding-bottom: 8px;
}
.uni-video-controls {
display: flex;
flex-grow: 1;
margin: 0 8.5px;
align-items: center;
}
.uni-video-control-button {
width: 17px;
height: 17px;
font-size: 16px;
line-height: 17px;
padding: 0px 16px 0px 0px;
margin-left: -6px;
margin-right: -6px;
box-sizing: content-box;
cursor: pointer;
}
.uni-video-control-button::after {
content: '';
display: block;
width: 100%;
height: 100%;
color: rgba(255, 255, 255, 0.5);
}
.uni-video-control-button.uni-video-control-button-play::after {
content: '\ea24';
}
.uni-video-control-button.uni-video-control-button-pause::after {
content: '\ea25';
}
.uni-video-current-time,
.uni-video-duration {
height: 15px;
line-height: 15px;
font-size: 14px;
color: rgba(255, 255, 255, 0.5);
}
.uni-video-progress-container {
flex-grow: 2;
position: relative;
}
.uni-video-progress {
/* NOTE uni-video-progress-progressing height */
height: 4px;
margin: 21px 12px;
border-radius: 20px;
position: relative;
cursor: pointer;
display: flex;
align-items: center;
}
.uni-video-progress.uni-video-progress-progressing {
height: 8px;
}
.uni-video-progress .uni-video-progress-played {
background-color: #fff;
border-top-left-radius: 20px;
border-bottom-left-radius: 20px;
}
.uni-video-progress-played,
.uni-video-progress-buffered {
position: absolute;
left: 0;
top: 0;
width: 0;
height: 100%;
background-color: rgba(255, 255, 255, 0.3);
}
.uni-video-progress-buffered {
border-top-right-radius: 20px;
border-bottom-right-radius: 20px;
/* transition: width 0.1s; */
}
.uni-video-ball {
/* NOTE uni-video-ball-progressing width height */
width: 8px;
height: 8px;
padding: 14px;
position: absolute;
box-sizing: content-box;
left: 0%;
margin-left: -16px;
}
.uni-video-ball.uni-video-ball-progressing {
width: 16px;
height: 16px;
}
.uni-video-inner {
width: 100%;
height: 100%;
background-color: #ffffff;
border-radius: 50%;
box-shadow: 0px 0px 2px #ccc;
}
.uni-video-danmu-button {
width: 24px;
height: 24px;
line-height: 24px;
font-size: 24px;
white-space: nowrap;
border-radius: 5px;
margin: 0 2px;
cursor: pointer;
color: rgba(255, 255, 255, 0.5);
}
.uni-video-danmu-button::after {
content: '\ea26';
}
.uni-video-danmu-button.uni-video-danmu-button-active::after {
content: '\ea27';
}
.uni-video-fullscreen {
width: 32px;
height: 32px;
line-height: 32px;
font-size: 18px;
color: rgba(255, 255, 255, 0.5);
box-sizing: content-box;
cursor: pointer;
}
.uni-video-fullscreen::after {
content: '\ea29';
}
.uni-video-fullscreen.uni-video-type-fullscreen::after {
content: '\ea28';
}
.uni-video-danmu {
position: absolute;
top: 0;
left: 0;
bottom: 0;
width: 100%;
margin-top: 14px;
margin-bottom: 44px;
font-size: 14px;
line-height: 14px;
overflow: visible;
}
.uni-video-danmu-item {
line-height: 1;
position: absolute;
color: #ffffff;
white-space: nowrap;
left: 100%;
transform: translatex(0);
transition-property: left, transform;
transition-duration: 3s;
transition-timing-function: linear;
}
.uni-video-toast {
pointer-events: none;
position: absolute;
left: 50%;
top: 50%;
transform: translate(-50%, -50%);
border-radius: 5px;
background-color: rgba(255, 255, 255, 0.6);
color: #000000;
display: none;
}
.uni-video-toast.uni-video-toast-progress {
display: block;
background-color: rgba(0, 0, 0, 0.5);
color: rgba(255, 255, 255, 0.6);
font-size: 24px;
line-height: 18px;
padding: 6px;
}
.uni-video-toast.uni-video-toast-progress .uni-video-toast-title-current-time {
color: rgba(255, 255, 255, 0.9);
}
@font-face {
font-family: "uni-video-icon";
src: url(data:font/woff2;base64,d09GMgABAAAAAAvkAAoAAAAAF7gAAAuZAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAABmAAgloKpDSbTAsYAAE2AiQDLAQgBYMtB4EqG4ISA+4wbBwQQL8R2R8JORleaw5cKJYoIp5oiqFM3sGmBV8H//3PPf4+MzevQHNToqSEeQVG29XlUQEqYsUkVD2Qq7BV/D0Oj5v27wXNSwIdTUKh3UZt4khl0t4NOjqrwEjYHFrI6OaF2ik5qcDd/ydIuzPrOhNDvuq54fOulXbgaPYwxxZIrpBVBMJWVrjkJ/s2MLMHTKoA4IGfr5AHrADl1VWRr5SVrtLV9v81NV8kSCbUuAZlOrLGrXrsyw5I/lYvUIDdsC/A5aScfjBVncaNlsPOU7DqJmG5H+cDZz8s+9AsmZKbAlZuqkFKbpMs6WcMlUASmiIgALgMJERK9U4RSjCw7xM/NH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hUSbsCYAlLIWEqj9ObcAgjG5SZAsAKALxzDkoKJEQiF5SurFTy6RMYYKaKolWgQmvI1mFSrBINlaIqGSx5UUxR8okTGHK8NyaEkmdsSkivhXY2WvuvO+ZDBOm2GYZdjdlEWmX7B+ebZBu2pCJ3loIqwCBDaziRB+fLQlrJLTTsNYBxuxy46cN9WAkWnMSF45C4P1nZuKrzS2EyQQR+1fZzaG7tsm0Cl/8kSoxWCnNKEIvE0ADUqgFMqgHCqgEuIQQQLNB+mpc0UBkS/k7QgGCJ9308aOqV+MEhhTSFo9wyTmlPTU75zdVPXlU10+Ecupyj0hP2qZc3p/kz8YzAE=) format('woff2');
}
.uni-video-icon {
/* 解决自定义全局字体会覆盖按钮的问题 */
font-family: 'uni-video-icon' !important;
text-align: center;
}
.uni-video-loading {
position: absolute;
top: 0;
bottom: 0;
left: 0;
right: 0;
pointer-events: none;
}
.uni-video-toast-container {
position: relative;
display: flex;
flex-direction: row;
align-items: center;
width: 22%;
min-width: 100px;
max-width: 200px;
height: 30px;
max-height: 30px;
min-height: 6px;
background-color: rgba(0, 0, 0, 0.4);
box-shadow: 0px 0px 2px #ccc;
margin: 5px auto 0;
border-radius: 30px;
overflow: hidden;
transition-property: height;
transition-duration: 0.2s;
transition-timing-function: ease-in-out;
opacity: 0.6;
}
.uni-video-toast-container.uni-video-toast-container-thin {
height: 6px;
}
.uni-video-toast-container-thin .uni-video-toast-icon {
display: none;
}
.uni-video-toast-icon {
font-size: 20px;
position: absolute;
left: 10px;
color: #222;
z-index: 1;
}
.uni-video-toast-draw {
height: 100%;
background-color: #fff;
}
+24
View File
@@ -0,0 +1,24 @@
uni-web-view {
display: flex;
}
/* #ifndef UNI-APP-X */
uni-web-view.uni-webview--fullscreen {
position: absolute;
left: 0;
right: 0;
top: 0;
bottom: 0;
}
/* #endif */
/* #ifdef UNI-APP-X */
uni-web-view.uni-webview {
flex: 1;
}
uni-web-view.uni-webview > iframe {
width: 100%;
height: 100%;
border: none;
}
/* #endif */