Skip to content

Commit bbaaec0

Browse files
committed
fix: fix weui style
1 parent 169f52e commit bbaaec0

File tree

8 files changed

+141
-7
lines changed

8 files changed

+141
-7
lines changed

miniprogram/packageExtend/pages/base/badge/badge.wxml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
<mp-cells title="未读数红点跟在主题信息后,统一在列表左侧">
2020
<mp-cell>
2121
<view slot="title" style="position: relative;margin-right: 10px;">
22-
<image src="../images/pic_160.png" style="width: 50px; height: 50px; display: block"/>
22+
<image src="../../images/pic_160.png" style="width: 50px; height: 50px; display: block"/>
2323
<mp-badge aria-label="未读" content="99+" style="position: absolute;top: -0.4rem;right: -0.4rem;"/>
2424
</view>
2525
<view>联系人名称</view>
Lines changed: 134 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,134 @@
1+
/*!
2+
* WeUI v2.3.0 (https://github.com/weui/weui-wxss)
3+
* Copyright 2020 Tencent, Inc.
4+
* Licensed under the MIT license
5+
*/
6+
/* @import '../components/weui-wxss/dist/style/weui.wxss'; */
7+
8+
page {
9+
height: 100%;
10+
display: flex;
11+
justify-content: center;
12+
}
13+
14+
.page {
15+
min-height: 100%;
16+
background-color: var(--weui-BG-1);
17+
color: var(--weui-FG-0);
18+
font-size: 16px;
19+
font-family: -apple-system-font, Helvetica Neue, Helvetica, sans-serif;
20+
max-width: 600px;
21+
}
22+
23+
image {
24+
max-width: 100%;
25+
max-height: 100%
26+
}
27+
28+
.link {
29+
display: inline;
30+
color: var(--weui-LINK)
31+
}
32+
33+
.fadeIn {
34+
-webkit-animation: a .3s forwards;
35+
animation: a .3s forwards
36+
}
37+
38+
.fadeOut {
39+
-webkit-animation: b .3s forwards;
40+
animation: b .3s forwards
41+
}
42+
43+
@-webkit-keyframes a {
44+
0% {
45+
opacity: 0
46+
}
47+
48+
to {
49+
opacity: 1
50+
}
51+
}
52+
53+
@keyframes a {
54+
0% {
55+
opacity: 0
56+
}
57+
58+
to {
59+
opacity: 1
60+
}
61+
}
62+
63+
@-webkit-keyframes b {
64+
0% {
65+
opacity: 1
66+
}
67+
68+
to {
69+
opacity: 0
70+
}
71+
}
72+
73+
@keyframes b {
74+
0% {
75+
opacity: 1
76+
}
77+
78+
to {
79+
opacity: 0
80+
}
81+
}
82+
83+
.weui-msg__extra-area {
84+
position: static
85+
}
86+
87+
.page__hd {
88+
padding: 40px
89+
}
90+
91+
.page__bd {
92+
padding-bottom: 40px
93+
}
94+
95+
.page__bd_spacing {
96+
padding-left: 15px;
97+
padding-right: 15px
98+
}
99+
100+
.page__ft {
101+
padding-top: 40px;
102+
padding-bottom: 10px;
103+
padding-bottom: calc(10px + constant(safe-area-inset-bottom));
104+
padding-bottom: calc(10px + env(safe-area-inset-bottom));
105+
text-align: center
106+
}
107+
108+
[data-weui-theme=dark] .page__ft image {
109+
-webkit-filter: invert(100) hue-rotate(180deg);
110+
filter: invert(100) hue-rotate(180deg)
111+
}
112+
113+
.page__title {
114+
text-align: left;
115+
font-size: 20px;
116+
font-weight: 400
117+
}
118+
119+
.page__desc {
120+
margin-top: 5px;
121+
color: var(--weui-FG-1);
122+
text-align: left;
123+
font-size: 14px
124+
}
125+
126+
.weui-cell_example:before {
127+
left: 52px
128+
}
129+
130+
@media (prefers-color-scheme: dark) {
131+
page {
132+
background-color: #1F1F1F;
133+
}
134+
}

miniprogram/packageExtend/pages/extend/index-list/index-list.wxss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
@import '../../common.wxss';
1+
@import '../common.wxss';
22

33
page{
44
background-color: #FFFFFF;

miniprogram/packageExtend/pages/extend/select-text/select-text.wxss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
@import '../../common.wxss';
1+
@import '../common.wxss';
22

33
page{
44
height: 100%;

miniprogram/packageExtend/pages/extend/sticky/sticky.wxss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
@import '../../common.wxss';
1+
@import '../common.wxss';
22

33
.page{
44
background-color: var(--weui-BG-0);

miniprogram/packageExtend/pages/extend/tabs/tabs.wxss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
@import '../../common.wxss';
1+
@import '../common.wxss';
22

33
.page{
44
background-color: var(--weui-BG-2);

miniprogram/packageExtend/pages/extend/video-swiper/video-swiper.wxss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
@import '../../common.wxss';
1+
@import '../common.wxss';
22

33
.page{
44
background-color: var(--weui-BG-0);

miniprogram/packageExtend/pages/extend/vtabs/vtabs.wxss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
@import '../../common.wxss';
1+
@import '../common.wxss';
22

33
.page{
44
background-color: var(--weui-BG-2);

0 commit comments

Comments
 (0)