Skip to content

Commit 4f23c8b

Browse files
committed
update: demo
1 parent 88c266f commit 4f23c8b

File tree

2 files changed

+10
-3
lines changed

2 files changed

+10
-3
lines changed

tools/demo/example/index.wxml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
<view class="kind-list__item-bd {{item.open ? 'kind-list__item-bd_show' : ''}}">
1515
<view class="weui-cells {{item.open ? 'weui-cells_show' : ''}}">
1616
<block wx:for="{{item.pages}}" wx:for-item="page" wx:key="*this">
17-
<navigator url="{{page}}/{{page}}" class="weui-cell weui-cell_access">
17+
<navigator url="{{page}}/{{page}}" class="weui-cell weui-cell_access" hover-class="weui-cell_active">
1818
<view class="weui-cell__bd">{{page}}</view>
1919
<view class="weui-cell__ft weui-cell__ft_in-access"></view>
2020
</navigator>
@@ -26,6 +26,8 @@
2626
</view>
2727
</view>
2828
<view class="page__ft">
29-
<image bindtap="themeToggle" src="images/icon_footer.png" style="width: 84px; height: 19px;"></image>
29+
<view class="ft-img-cnt" bindtap="themeToggle">
30+
<image src="images/icon_footer.png" style="width: 84px; height: 19px;"></image>
31+
</view>
3032
</view>
3133
</view>

tools/demo/example/index.wxss

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,9 @@
44
* Licensed under the MIT license
55
*/
66
@import './common.wxss';
7-
.weui-flex{-webkit-box-align:center;-webkit-align-items:center;align-items:center}.weui-cells{margin-top:0;opacity:0;-webkit-transform:translateY(-50%);transform:translateY(-50%);-webkit-transition:.3s;transition:.3s}.weui-cells:after,.weui-cells:before{display:none}.weui-cells_show{opacity:1;-webkit-transform:translateY(0);transform:translateY(0)}.weui-cell:before{right:15px}.kind-list__item{margin:10px 0;background-color:var(--weui-BG-2);border-radius:2px;overflow:hidden}.kind-list__item:first-child{margin-top:0}.kind-list__img{width:30px;height:30px}[data-weui-theme=dark] .kind-list__img{-webkit-filter:invert(100) hue-rotate(180deg);filter:invert(100) hue-rotate(180deg)}.kind-list__item-hd{padding:20px;-webkit-transition:opacity .3s;transition:opacity .3s}.kind-list__item-hd_show{opacity:.4}.kind-list__item-bd{height:0;overflow:hidden}.kind-list__item-bd_show{height:auto}
7+
.weui-flex{-webkit-box-align:center;-webkit-align-items:center;align-items:center}.weui-cells{margin-top:0;opacity:0;-webkit-transform:translateY(-50%);transform:translateY(-50%);-webkit-transition:.3s;transition:.3s}.weui-cells:after,.weui-cells:before{display:none}.weui-cells_show{opacity:1;-webkit-transform:translateY(0);transform:translateY(0)}.weui-cell:before{right:15px}.kind-list__item{margin:10px 0;background-color:var(--weui-BG-2);border-radius:2px;overflow:hidden}.kind-list__item:first-child{margin-top:0}.kind-list__img{width:30px;height:30px}[data-weui-theme=dark] .kind-list__img{-webkit-filter:invert(100) hue-rotate(180deg);filter:invert(100) hue-rotate(180deg)}.kind-list__item-hd{padding:20px;-webkit-transition:opacity .3s;transition:opacity .3s}.kind-list__item-hd_show{opacity:.4}.kind-list__item-bd{height:0;overflow:hidden}.kind-list__item-bd_show{height:auto}
8+
9+
.ft-img-cnt {
10+
display: inline-block;
11+
height: 20px;
12+
}

0 commit comments

Comments
 (0)