mirror of
https://github.com/Tencent/weui.git
synced 2026-03-13 08:02:03 +08:00
standard weui select gap (#328)
* standard weui select gap * replace weui cell snapshot
This commit is contained in:
2
dist/example/index.html
vendored
2
dist/example/index.html
vendored
@@ -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">
|
||||
|
||||
BIN
dist/example/snapshot/cell.png
vendored
BIN
dist/example/snapshot/cell.png
vendored
Binary file not shown.
|
Before Width: | Height: | Size: 55 KiB After Width: | Height: | Size: 62 KiB |
14
dist/style/weui.css
vendored
14
dist/style/weui.css
vendored
File diff suppressed because one or more lines are too long
2
dist/style/weui.min.css
vendored
2
dist/style/weui.min.css
vendored
File diff suppressed because one or more lines are too long
@@ -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">
|
||||
|
||||
Binary file not shown.
|
Before Width: | Height: | Size: 55 KiB After Width: | Height: | Size: 62 KiB |
@@ -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);
|
||||
@@ -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;
|
||||
|
||||
@@ -29,6 +29,7 @@
|
||||
width: 100%;
|
||||
font-size: inherit;
|
||||
height: @weuiCellHeight;
|
||||
line-height: @weuiCellHeight;
|
||||
position: relative;
|
||||
z-index: 1;
|
||||
padding-left: @weuiCellGapH;
|
||||
|
||||
@@ -3,4 +3,7 @@
|
||||
|
||||
.weui_select_after {
|
||||
padding-left:@weuiCellGapH;
|
||||
.weui_select {
|
||||
padding-left:0;
|
||||
}
|
||||
}
|
||||
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user