Skip to content

Commit

Permalink
action sheet update
Browse files Browse the repository at this point in the history
  • Loading branch information
sklme committed Apr 7, 2017
1 parent dc08fc9 commit 8a11ee5
Show file tree
Hide file tree
Showing 5 changed files with 72 additions and 6 deletions.
3 changes: 3 additions & 0 deletions dist/example/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -1141,6 +1141,9 @@ <h1 class="page__title">ActionSheet</h1>
<div>
<div class="weui-mask" id="iosMask" style="display: none"></div>
<div class="weui-actionsheet" id="iosActionsheet">
<div class="weui-actionsheet__title">
<p class="weui-actionsheet__title-text">这是一个标题,可以为一行或者两行,但不应该展示超过三行的文案。</p>
</div>
<div class="weui-actionsheet__menu">
<div class="weui-actionsheet__cell">示例菜单</div>
<div class="weui-actionsheet__cell">示例菜单</div>
Expand Down
47 changes: 44 additions & 3 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.

3 changes: 3 additions & 0 deletions src/example/fragment/actionsheet.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@ <h1 class="page__title">ActionSheet</h1>
<div>
<div class="weui-mask" id="iosMask" style="display: none"></div>
<div class="weui-actionsheet" id="iosActionsheet">
<div class="weui-actionsheet__title">
<p class="weui-actionsheet__title-text">这是一个标题,可以为一行或者两行,但不应该展示超过三行的文案。</p>
</div>
<div class="weui-actionsheet__menu">
<div class="weui-actionsheet__cell">示例菜单</div>
<div class="weui-actionsheet__cell">示例菜单</div>
Expand Down
23 changes: 21 additions & 2 deletions src/style/widget/weui-tips/weui-actionsheet.less
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,31 @@
//slide up animation
transition: transform .3s;
}
.weui-actionsheet__title {
position: relative;
height: 65px;
padding: 0 20px;
line-height: 1.4;
display: flex;
justify-content: center;
flex-direction: column;
text-align: center;
font-size: 14px;
color: #888;
background: #FCFCFD;
&:before {
.setBottomLine(@weuiCellBorderColor);
}
.weui-actionsheet__title-text {
.ellipsisLn(2);
}
}
.weui-actionsheet__menu{
background-color: #FFFFFF;
background-color: #FCFCFD;
}
.weui-actionsheet__action {
margin-top: 6px;
background-color: #FFFFFF;
background-color: #FCFCFD;;
}
.weui-actionsheet__cell {
position: relative;
Expand Down

0 comments on commit 8a11ee5

Please sign in to comment.