Skip to content

Commit

Permalink
style: actionsheet
Browse files Browse the repository at this point in the history
  • Loading branch information
uxsi committed Aug 28, 2019
1 parent 64e4731 commit d5b369c
Show file tree
Hide file tree
Showing 5 changed files with 32 additions and 14 deletions.
4 changes: 2 additions & 2 deletions dist/example/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -1591,8 +1591,7 @@ <h1 class="page__title">ActionSheet</h1>
<div class="weui-actionsheet__menu">
<div class="weui-actionsheet__cell">示例菜单</div>
<div class="weui-actionsheet__cell">示例菜单</div>
<div class="weui-actionsheet__cell">示例菜单</div>
<div class="weui-actionsheet__cell">示例菜单</div>
<div class="weui-actionsheet__cell weui-actionsheet__cell_warn">负向菜单</div>
</div>
<div class="weui-actionsheet__action">
<div class="weui-actionsheet__cell" id="iosActionsheetCancel">取消</div>
Expand Down Expand Up @@ -1647,6 +1646,7 @@ <h1 class="page__title">ActionSheet</h1>
});
});
</script>

</script>
<script type="text/html" id="tpl_icons">
<div class="page">
Expand Down
17 changes: 13 additions & 4 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.

5 changes: 2 additions & 3 deletions src/example/fragment/actionsheet.html
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,7 @@ <h1 class="page__title">ActionSheet</h1>
<div class="weui-actionsheet__menu">
<div class="weui-actionsheet__cell">示例菜单</div>
<div class="weui-actionsheet__cell">示例菜单</div>
<div class="weui-actionsheet__cell">示例菜单</div>
<div class="weui-actionsheet__cell">示例菜单</div>
<div class="weui-actionsheet__cell weui-actionsheet__cell_warn">负向菜单</div>
</div>
<div class="weui-actionsheet__action">
<div class="weui-actionsheet__cell" id="iosActionsheetCancel">取消</div>
Expand Down Expand Up @@ -72,4 +71,4 @@ <h1 class="page__title">ActionSheet</h1>
});
});
});
</script>
</script>
18 changes: 14 additions & 4 deletions src/style/widget/weui-tips/weui-actionsheet.less
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,13 @@
backface-visibility: hidden;
z-index: 5000;
width: 100%;
background-color: @weuiBgColorDefault;
background-color: #EAE7E8;
//slide up animation
transition: transform .3s;

border-top-left-radius:12px;
border-top-right-radius:12px;
overflow:hidden;
}
.weui-actionsheet__title {
position: relative;
Expand All @@ -37,7 +41,7 @@
justify-content: center;
flex-direction: column;
text-align: center;
font-size: 14px;
font-size: 12px;
color: @weuiTextColorDesc;
line-height: 1.4;
background: #FFFFFF;
Expand All @@ -49,10 +53,11 @@
}
}
.weui-actionsheet__menu{
background-color: #FFFFFF;
color:@weuiTextColorTitle;
background-color: #FFFFFF;
}
.weui-actionsheet__action {
margin-top: 6px;
margin-top: 8px;
background-color: #FFFFFF;
padding-bottom:constant(safe-area-inset-bottom);
padding-bottom:env(safe-area-inset-bottom);
Expand All @@ -75,6 +80,9 @@
}
}
}
.weui-actionsheet__cell_warn {
color:@weuiColorWarn;
}


//android actionSheet
Expand All @@ -92,6 +100,8 @@
background: transparent;
//slide up animation
transition: transform .3s;
border-top-left-radius:0;
border-top-right-radius:0;
}
.weui-actionsheet__action{
display: none;
Expand Down

0 comments on commit d5b369c

Please sign in to comment.