field component

This commit is contained in:
cookfront
2017-02-14 17:05:43 +08:00
parent 975c39029b
commit fb7089fd35
6 changed files with 164 additions and 5 deletions
+1
View File
@@ -16,6 +16,7 @@
overflow: hidden;
position: relative;
padding: 10px 10px 10px 0;
box-sizing: border-box;
line-height: 22px;
background-color: $c-white;
color: #333;
+47
View File
@@ -0,0 +1,47 @@
@import "./common/var.pcss";
@import "./mixins/border_retina.pcss";
@component-namespace o2 {
@component field {
width: 100%;
display: table;
overflow: hidden;
@when nolabel {
.o2-cell-title {
display: none;
}
.o2-cell-value {
width: 100%;
}
}
.o2-cell-title,
.o2-cell-value {
float: none;
display: table-cell;
box-sizing: border-box;
}
.o2-cell-title {
width: 90px;
text-align: right;
}
.o2-cell-value {
width: 90%;
padding-left: 10px;
}
@descendent control {
border: 0;
font-size: 14px;
line-height: 22px;
display: block;
width: 100%;
resize: none;
outline: 0;
}
}
}
+1
View File
@@ -3,5 +3,6 @@
*/
@import './button.pcss';
@import './cell.pcss';
@import './field.pcss';
@import './icon.pcss';
@import './switch.pcss';