Skip to content

Commit 14ee030

Browse files
uxsiprogrape
authored andcommitted
standard weui select gap (#328)
* standard weui select gap * replace weui cell snapshot
1 parent aeccf03 commit 14ee030

File tree

11 files changed

+21
-14
lines changed

11 files changed

+21
-14
lines changed

dist/example/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -412,7 +412,7 @@ <h1 class="page_title">Cell</h1>
412412
</div>
413413
<div class="weui_cell weui_cell_select weui_select_after">
414414
<div class="weui_cell_hd">
415-
国家/地区
415+
<label for="" class="weui_label">国家/地区</label>
416416
</div>
417417
<div class="weui_cell_bd weui_cell_primary">
418418
<select class="weui_select" name="select2">

dist/example/snapshot/cell.png

6.95 KB
Loading

dist/style/weui.css

Lines changed: 8 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/style/weui.min.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/example/fragment/cell.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -272,7 +272,7 @@ <h1 class="page_title">Cell</h1>
272272
</div>
273273
<div class="weui_cell weui_cell_select weui_select_after">
274274
<div class="weui_cell_hd">
275-
国家/地区
275+
<label for="" class="weui_label">国家/地区</label>
276276
</div>
277277
<div class="weui_cell_bd weui_cell_primary">
278278
<select class="weui_select" name="select2">

src/example/snapshot/cell.png

6.95 KB
Loading

src/style/base/variable/weui_cell.less

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
@weuiCellHeight: 44px;
77
@weuiCellFontSize:17px;
88
@weuiCellTipsFontSize:14px;
9+
@weuiCellLabelWidth:105px;
910

1011
@weuiCellLineHeight: unit((@weuiCellHeight - 2 * @weuiCellGapV) / @weuiCellFontSize); // 高度为44px,减去上下padding的行高
1112
@weuiCellsMarginTop:unit(20 / @weuiCellFontSize, em);

src/style/widget/weui_cell/weui_form/weui_form_common.less

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
.weui_label{
44
display:block;
5-
width:3em;
5+
width:@weuiCellLabelWidth;
66
}
77
.weui_input {
88
width: 100%;
@@ -60,9 +60,6 @@
6060
color:@globalWarnColor;
6161
.weui_icon_warn{display:inline-block;}
6262
}
63-
.weui_cell_hd {
64-
padding-right: .3em;
65-
}
6663
.weui_cell_ft{font-size:0;}
6764
.weui_icon_warn{
6865
display:none;

src/style/widget/weui_cell/weui_form/weui_select.less

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@
2929
width: 100%;
3030
font-size: inherit;
3131
height: @weuiCellHeight;
32+
line-height: @weuiCellHeight;
3233
position: relative;
3334
z-index: 1;
3435
padding-left: @weuiCellGapH;

src/style/widget/weui_cell/weui_form/weui_select_after.less

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,7 @@
33

44
.weui_select_after {
55
padding-left:@weuiCellGapH;
6+
.weui_select {
7+
padding-left:0;
8+
}
69
}

0 commit comments

Comments
 (0)