Skip to content

Commit

Permalink
fix: 修复weui-cell_access在新表单下的字体颜色被覆盖的问题
Browse files Browse the repository at this point in the history
  • Loading branch information
uxsi committed Jan 16, 2020
1 parent 3863da6 commit a993864
Show file tree
Hide file tree
Showing 8 changed files with 50 additions and 15 deletions.
2 changes: 1 addition & 1 deletion dist/example/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -915,7 +915,7 @@ <h2 class="weui-form__title">验证码</h2>
</div>
</div>
</div>
<div class="weui-cells__tips"><a href="javascript:;">收不到验证码</a></div>
<div class="weui-cells__tips"><a class="weui-link" href="javascript:;">收不到验证码</a></div>
</div>
</div>
<div class="weui-form__tips-area">
Expand Down
18 changes: 13 additions & 5 deletions dist/style/weui.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/style/weui.min.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/example/fragment/form_vcode.html
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ <h2 class="weui-form__title">验证码</h2>
</div>
</div>
</div>
<div class="weui-cells__tips"><a href="javascript:;">收不到验证码</a></div>
<div class="weui-cells__tips"><a class="weui-link" href="javascript:;">收不到验证码</a></div>
</div>
</div>
<div class="weui-form__tips-area">
Expand Down
3 changes: 3 additions & 0 deletions src/style/weui.less
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@
@import "./icon/weui-icon";


// text
@import "./widget/weui-text/weui-link";

// button
@import "./widget/weui-button/weui-button";

Expand Down
8 changes: 6 additions & 2 deletions src/style/widget/weui-cell/weui-cells__group.less
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,9 @@
}
.weui-cell{
padding:16px 32px;
color:rgba(0,0,0,.9);
&:not(.weui-cell_link){
color:rgba(0,0,0,.9);
}
}
.weui-cell__hd{
padding-right:16px;
Expand All @@ -74,9 +76,11 @@

.weui-cells__tips{
margin-top:8px;
font-weight:700;
padding:0 32px;
color:rgba(0,0,0,.3);
a{
font-weight:700;
}
}


Expand Down
5 changes: 0 additions & 5 deletions src/style/widget/weui-page/weui-form.less
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,6 @@
line-height:1.4;
background-color:#FFFFFF;

a{
&:not(.weui-btn){
color:@weuiLinkColorDefault;
}
}
.weui-footer,.weui-footer__link{
font-size:12px;
}
Expand Down
25 changes: 25 additions & 0 deletions src/style/widget/weui-text/weui-link.less
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
/*
* Tencent is pleased to support the open source community by making WeUI available.
*
* Copyright (C) 2017 THL A29 Limited, a Tencent company. All rights reserved.
*
* Licensed under the MIT License (the "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://opensource.org/licenses/MIT
*
* 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.
*/

@import "../../base/fn";

.weui-link {
color: @weuiLinkColorDefault;
-webkit-tap-highlight-color: rgba(0,0,0,0);
&:visited{
color: @weuiLinkColorDefault;
}
}

0 comments on commit a993864

Please sign in to comment.