Commit cfbc621b authored by Romain Courteaud's avatar Romain Courteaud

[erp5_web_renderjs_ui] CSS: only align right float value in Listbox

Follow xhtml_style CSS.
parent 7efe9533
...@@ -1305,8 +1305,6 @@ div[data-gadget-scope='header'] .ui-header ul { ...@@ -1305,8 +1305,6 @@ div[data-gadget-scope='header'] .ui-header ul {
/********************************************** /**********************************************
* Gadget: float/integer field * Gadget: float/integer field
**********************************************/ **********************************************/
.floatfield p,
.integerfield p,
.floatfield input, .floatfield input,
.integerfield input { .integerfield input {
text-align: right; text-align: right;
...@@ -1423,6 +1421,11 @@ div[data-gadget-scope='erp5_searchfield'] div.search_parsed_value button { ...@@ -1423,6 +1421,11 @@ div[data-gadget-scope='erp5_searchfield'] div.search_parsed_value button {
.document_table table a { .document_table table a {
color: #1F1F1F; color: #1F1F1F;
} }
.document_table table .floatfield p,
.document_table table .integerfield p {
text-align: right;
white-space: nowrap;
}
.document_table table tbody { .document_table table tbody {
animation: fadein 0.2s ease-out; animation: fadein 0.2s ease-out;
} }
......
...@@ -240,7 +240,7 @@ ...@@ -240,7 +240,7 @@
</item> </item>
<item> <item>
<key> <string>serial</string> </key> <key> <string>serial</string> </key>
<value> <string>971.20364.49895.30788</string> </value> <value> <string>975.34558.59242.38229</string> </value>
</item> </item>
<item> <item>
<key> <string>state</string> </key> <key> <string>state</string> </key>
...@@ -258,7 +258,7 @@ ...@@ -258,7 +258,7 @@
</tuple> </tuple>
<state> <state>
<tuple> <tuple>
<float>1540981324.5</float> <float>1557129679.58</float>
<string>UTC</string> <string>UTC</string>
</tuple> </tuple>
</state> </state>
......
...@@ -1527,12 +1527,17 @@ div[data-gadget-scope='header'] .ui-header { ...@@ -1527,12 +1527,17 @@ div[data-gadget-scope='header'] .ui-header {
/********************************************** /**********************************************
* Gadget: float/integer field * Gadget: float/integer field
**********************************************/ **********************************************/
.floatfield, .integerfield { .alignFloatValueOnTheRight() {
p, input { text-align: right;
text-align: right; // Do not render float/integer on multiline
// Do not render float/integer on multiline // as it make them unreadable
// as it make them unreadable white-space: nowrap;
white-space: nowrap; }
@floatvalue-selector: .floatfield, .integerfield;
@{floatvalue-selector} {
input {
.alignFloatValueOnTheRight();
} }
} }
...@@ -1659,6 +1664,16 @@ div[data-gadget-scope='erp5_searchfield'] { ...@@ -1659,6 +1664,16 @@ div[data-gadget-scope='erp5_searchfield'] {
color: @colorforeground; color: @colorforeground;
} }
@{floatvalue-selector} {
// Only align right the float value inside Listbox
// outside listbox, it is unpleasant to read
// and useless, as previous/next fields are probably not
// float/integer to compare
p {
.alignFloatValueOnTheRight();
}
}
tbody { tbody {
animation: fadein @transition-timing; animation: fadein @transition-timing;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment