form field component

This commit is contained in:
cookfront
2017-02-14 17:34:51 +08:00
parent 00848c6ea4
commit cf87bd3603
3 changed files with 9 additions and 7 deletions
+2
View File
@@ -35,6 +35,7 @@
@descendent title {
float: left;
overflow: hidden;
}
@descendent label {
@@ -46,6 +47,7 @@
@descendent value {
float: right;
overflow: hidden;
@when link {
margin-right: 20px;
+5 -5
View File
@@ -4,7 +4,6 @@
@component-namespace o2 {
@component field {
width: 100%;
display: table;
overflow: hidden;
@when textarea {
@@ -27,18 +26,19 @@
.o2-cell-title,
.o2-cell-value {
float: none;
display: table-cell;
box-sizing: border-box;
}
.o2-cell-title {
width: 90px;
text-align: right;
position: absolute;
top: 10px;
left: 0;
}
.o2-cell-value {
width: 90%;
padding-left: 10px;
width: 100%;
padding-left: 90px;
}
@descendent control {