standard weui select gap (#328)

* standard weui select gap

* replace weui cell snapshot
This commit is contained in:
x
2016-04-18 13:26:52 +08:00
committed by jf
parent aeccf03ca6
commit 14ee030f71
11 changed files with 21 additions and 14 deletions

View File

@@ -412,7 +412,7 @@
</div>
<div class="weui_cell weui_cell_select weui_select_after">
<div class="weui_cell_hd">
国家/地区
<label for="" class="weui_label">国家/地区</label>
</div>
<div class="weui_cell_bd weui_cell_primary">
<select class="weui_select" name="select2">

View File

Binary file not shown.

Before

Width:  |  Height:  |  Size: 55 KiB

After

Width:  |  Height:  |  Size: 62 KiB

14
dist/style/weui.css vendored
View File

File diff suppressed because one or more lines are too long

View File

File diff suppressed because one or more lines are too long

View File

@@ -272,7 +272,7 @@
</div>
<div class="weui_cell weui_cell_select weui_select_after">
<div class="weui_cell_hd">
国家/地区
<label for="" class="weui_label">国家/地区</label>
</div>
<div class="weui_cell_bd weui_cell_primary">
<select class="weui_select" name="select2">

View File

Binary file not shown.

Before

Width:  |  Height:  |  Size: 55 KiB

After

Width:  |  Height:  |  Size: 62 KiB

View File

@@ -6,6 +6,7 @@
@weuiCellHeight: 44px;
@weuiCellFontSize:17px;
@weuiCellTipsFontSize:14px;
@weuiCellLabelWidth:105px;
@weuiCellLineHeight: unit((@weuiCellHeight - 2 * @weuiCellGapV) / @weuiCellFontSize); // 高度为44px,减去上下padding的行高
@weuiCellsMarginTop:unit(20 / @weuiCellFontSize, em);

View File

@@ -2,7 +2,7 @@
.weui_label{
display:block;
width:3em;
width:@weuiCellLabelWidth;
}
.weui_input {
width: 100%;
@@ -60,9 +60,6 @@
color:@globalWarnColor;
.weui_icon_warn{display:inline-block;}
}
.weui_cell_hd {
padding-right: .3em;
}
.weui_cell_ft{font-size:0;}
.weui_icon_warn{
display:none;

View File

@@ -29,6 +29,7 @@
width: 100%;
font-size: inherit;
height: @weuiCellHeight;
line-height: @weuiCellHeight;
position: relative;
z-index: 1;
padding-left: @weuiCellGapH;

View File

@@ -3,4 +3,7 @@
.weui_select_after {
padding-left:@weuiCellGapH;
.weui_select {
padding-left:0;
}
}

View File

@@ -3,7 +3,10 @@
.weui_select_before {
padding-right:@weuiCellGapH;
.weui_select{width:auto;}
.weui_select {
width:@weuiCellLabelWidth;
box-sizing: border-box;
}
.weui_cell_hd {
position:relative;
&:after {