mirror of
https://github.com/Tencent/weui.git
synced 2026-03-13 08:02:03 +08:00
dark mode 适配
This commit is contained in:
@@ -110,7 +110,7 @@ body, .page {
|
||||
}
|
||||
|
||||
.page.progress{
|
||||
background-color: #FFFFFF;
|
||||
background-color: var(--weui-BG-2);
|
||||
}
|
||||
.page.home{
|
||||
@pageHomePadding: 20px;
|
||||
@@ -246,18 +246,18 @@ body, .page {
|
||||
}
|
||||
|
||||
.page.form {
|
||||
background-color: #FFFFFF;
|
||||
background-color: var(--weui-BG-2);
|
||||
.page__bd {
|
||||
padding-bottom: 30px;
|
||||
}
|
||||
}
|
||||
|
||||
.page.actionsheet{
|
||||
background-color: #FFFFFF;
|
||||
background-color: var(--weui-BG-2);
|
||||
}
|
||||
|
||||
.page.dialog {
|
||||
background-color: #FFFFFF;
|
||||
background-color: var(--weui-BG-2);
|
||||
.page__bd {
|
||||
padding: 0 15px;
|
||||
}
|
||||
@@ -268,11 +268,11 @@ body, .page {
|
||||
.page.msg_text_primary,
|
||||
.page.msg_success,
|
||||
.page.msg_warn {
|
||||
background-color: #FFFFFF;
|
||||
background-color: var(--weui-BG-2);
|
||||
}
|
||||
|
||||
.page.toast{
|
||||
background-color: #FFFFFF;
|
||||
background-color: var(--weui-BG-2);
|
||||
}
|
||||
|
||||
.page.panel {
|
||||
@@ -282,7 +282,7 @@ body, .page {
|
||||
}
|
||||
|
||||
.page.article {
|
||||
background-color: #FFFFFF;
|
||||
background-color: var(--weui-BG-2);
|
||||
}
|
||||
|
||||
.page.icons-svg,
|
||||
@@ -333,7 +333,7 @@ body, .page {
|
||||
}
|
||||
|
||||
.page.loadmore{
|
||||
background-color: #FFFFFF;
|
||||
background-color: var(--weui-BG-2);
|
||||
}
|
||||
|
||||
.page.layers{
|
||||
@@ -440,7 +440,7 @@ body, .page {
|
||||
}
|
||||
}
|
||||
.layers__layer_content{
|
||||
background-color: #FFFFFF;
|
||||
background-color: var(--weui-BG-2);
|
||||
z-index: 1;
|
||||
&.j_transform{
|
||||
transform: @layerBaseTransform translateZ(@layerStartPos - 3 * @layerSpacing);
|
||||
@@ -471,7 +471,7 @@ body, .page {
|
||||
}
|
||||
|
||||
.page.picker{
|
||||
background-color: #FFFFFF;
|
||||
background-color: var(--weui-BG-2);
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
|
||||
@@ -33,7 +33,7 @@
|
||||
color:#000000;
|
||||
.setTapColor();
|
||||
&:active{
|
||||
background-color:#ECECEC;
|
||||
background-color: @weuiBgColorActive;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -57,7 +57,7 @@
|
||||
margin-top: 16px;
|
||||
padding-bottom: 4px;
|
||||
font-size: 13px;
|
||||
color: #CECECE;
|
||||
color: @weuiTextColorTips;
|
||||
line-height: 1em;
|
||||
list-style: none;
|
||||
overflow: hidden;
|
||||
@@ -68,7 +68,7 @@
|
||||
}
|
||||
.weui-media-box__info__meta_extra {
|
||||
padding-left: 1em;
|
||||
border-left: 1px solid #CECECE;
|
||||
border-left: 1px solid @weuiTextColorTips;
|
||||
}
|
||||
.weui-media-box_appmsg {
|
||||
display: flex;
|
||||
|
||||
@@ -21,7 +21,7 @@
|
||||
padding:24px calc(16px ~"+ constant(safe-area-inset-right)") calc(24px ~"+ constant(safe-area-inset-bottom)") calc(16px ~"+ constant(safe-area-inset-left)");
|
||||
padding:24px calc(16px ~"+ env(safe-area-inset-right)") calc(24px ~"+ env(safe-area-inset-bottom)") calc(16px ~"+ env(safe-area-inset-left)");
|
||||
font-size: 17px;
|
||||
color:rgba(0,0,0,.9);
|
||||
color: var(--weui-FG-0);
|
||||
section {
|
||||
margin-bottom: 1.5em;
|
||||
}
|
||||
|
||||
@@ -26,8 +26,7 @@
|
||||
line-height:1.4;
|
||||
min-height:100%;
|
||||
box-sizing:border-box;
|
||||
line-height:1.4;
|
||||
background-color:#FFFFFF;
|
||||
background-color: var(--weui-BG-2);
|
||||
|
||||
.weui-footer,.weui-footer__link{
|
||||
font-size:14px;
|
||||
@@ -38,7 +37,7 @@
|
||||
}
|
||||
.weui-form__text-area{
|
||||
padding:0 32px;
|
||||
color:rgba(0,0,0,.9);
|
||||
color: var(--weui-FG-0);
|
||||
text-align:center;
|
||||
}
|
||||
.weui-form__control-area{
|
||||
@@ -68,7 +67,7 @@
|
||||
margin-top:16px;
|
||||
}
|
||||
.weui-form__tips{
|
||||
color:rgba(0,0,0,.5);
|
||||
color: @weuiTextColorDesc;
|
||||
font-size:14px;
|
||||
a{
|
||||
color:@weuiLinkColorDefault;
|
||||
|
||||
@@ -27,7 +27,7 @@
|
||||
box-sizing:border-box;
|
||||
display:flex;
|
||||
flex-direction: column;
|
||||
background-color: #FFFFFF;
|
||||
background-color: var(--weui-BG-2);
|
||||
a:not(.weui-btn){
|
||||
color: @weuiLinkColorDefault;
|
||||
display: inline-block;
|
||||
|
||||
@@ -18,7 +18,7 @@
|
||||
|
||||
|
||||
.weui-panel {
|
||||
background-color: #FFFFFF;
|
||||
background-color: var(--weui-BG-2);
|
||||
margin-top: 10px;
|
||||
&:first-child {
|
||||
margin-top: 0;
|
||||
|
||||
@@ -24,7 +24,7 @@
|
||||
left: 0;
|
||||
bottom: 0;
|
||||
z-index: 5000;
|
||||
background-color: #fff;
|
||||
background-color: var(--weui-BG-2);
|
||||
padding-bottom:constant(safe-area-inset-bottom);
|
||||
padding-bottom:env(safe-area-inset-bottom);
|
||||
backface-visibility: hidden;
|
||||
@@ -50,7 +50,7 @@
|
||||
.weui-picker__bd {
|
||||
display: flex;
|
||||
position: relative;
|
||||
background-color: #fff;
|
||||
background-color: var(--weui-BG-2);
|
||||
height: 240px;
|
||||
overflow: hidden;
|
||||
}
|
||||
@@ -81,7 +81,7 @@
|
||||
height: 100%;
|
||||
margin: 0 auto;
|
||||
z-index: 3;
|
||||
background: linear-gradient(180deg, hsla(0, 0%, 100%, .95), hsla(0, 0%, 100%, .6)), linear-gradient(0deg, hsla(0, 0%, 100%, .95), hsla(0, 0%, 100%, .6));
|
||||
background: linear-gradient(180deg, hsla(0, 0%, 100%, .95), hsla(0, 0%, 100%, .6)), linear-gradient(0deg, hsla(0, 0%, 100%, .95), hsla(0, 0%, 100%, .6)); // TODO 咨询视觉
|
||||
background-position: top, bottom;
|
||||
background-size: 100% 92px;
|
||||
background-repeat: no-repeat;
|
||||
|
||||
@@ -42,7 +42,7 @@
|
||||
.weui-search-bar__form {
|
||||
position: relative;
|
||||
flex: auto;
|
||||
background-color: #FFFFFF;
|
||||
background-color: var(--weui-BG-2);
|
||||
border-radius:4px;
|
||||
}
|
||||
.weui-search-bar__box {
|
||||
@@ -96,7 +96,7 @@
|
||||
line-height:32px;
|
||||
text-align: center;
|
||||
color: @weuiTextColorDesc;
|
||||
background: #FFFFFF;
|
||||
background: var(--weui-BG-2);
|
||||
span {
|
||||
display: inline-block;
|
||||
font-size: 14px;
|
||||
|
||||
@@ -42,8 +42,8 @@
|
||||
margin-left: -14px;
|
||||
margin-top: -14px;
|
||||
border-radius: 50%;
|
||||
background-color: #FFFFFF;
|
||||
box-shadow: 0 0 4px rgba(0, 0, 0, .2);
|
||||
background-color: #FFFFFF; // 固定色值
|
||||
box-shadow: 0 0 4px var(--weui-FG-3);
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -20,7 +20,7 @@
|
||||
display: flex;
|
||||
position: relative;
|
||||
z-index: 500;
|
||||
background-color: #FFFFFF;
|
||||
background-color: var(--weui-BG-2);
|
||||
padding-top:constant(safe-area-inset-top);
|
||||
padding-top:env(safe-area-inset-top);
|
||||
|
||||
|
||||
@@ -25,7 +25,7 @@
|
||||
z-index:5000;
|
||||
|
||||
line-height:1.4;
|
||||
background-color:#FFFFFF;
|
||||
background-color: var(--weui-BG-2);
|
||||
border-top-left-radius:12px;
|
||||
border-top-right-radius:12px;
|
||||
overflow:hidden;
|
||||
@@ -68,7 +68,7 @@
|
||||
}
|
||||
.weui-half-screen-dialog__title {
|
||||
display:block;
|
||||
color:rgba(0,0,0,.9);
|
||||
color: var(--weui-FG-0);
|
||||
font-weight:700;
|
||||
font-size:15px;
|
||||
}
|
||||
@@ -145,7 +145,7 @@
|
||||
color: @weuiTextColorTitle;
|
||||
display: inline-block;
|
||||
vertical-align: middle;
|
||||
width: 12px;
|
||||
width: 14px;
|
||||
height: 24px;
|
||||
mask: url("data:image/svg+xml,%3Csvg%20width%3D%2224%22%20height%3D%2224%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20d%3D%22M12.25%2010.693L6.057%204.5%205%205.557l6.193%206.193L5%2017.943%206.057%2019l6.193-6.193L18.443%2019l1.057-1.057-6.193-6.193L19.5%205.557%2018.443%204.5z%22%20fill-rule%3D%22evenodd%22%2F%3E%3C%2Fsvg%3E") no-repeat 50% 50%;
|
||||
-webkit-mask-size: cover;
|
||||
|
||||
Reference in New Issue
Block a user