Commit 2df6275d authored by Romain Courteaud's avatar Romain Courteaud

[erp5_web_renderjs_ui] Align center group's field on the left group's field

parent 3d0114c0
...@@ -917,9 +917,6 @@ div[data-gadget-scope='header'] .ui-header ul a { ...@@ -917,9 +917,6 @@ div[data-gadget-scope='header'] .ui-header ul a {
display: inline-block; display: inline-block;
width: 50%; width: 50%;
} }
.gadget-content .left {
padding-right: 2%;
}
.gadget-content .right { .gadget-content .right {
padding-left: 2%; padding-left: 2%;
} }
...@@ -944,6 +941,11 @@ div[data-gadget-scope='header'] .ui-header ul a { ...@@ -944,6 +941,11 @@ div[data-gadget-scope='header'] .ui-header ul a {
flex: 3; flex: 3;
} }
} }
@media only screen and (min-width: 62em) {
.gadget-content .center .ui-field-contain label + div {
flex: 7;
}
}
@media only screen and (max-width: 28em) { @media only screen and (max-width: 28em) {
.gadget-content .ui-field-contain { .gadget-content .ui-field-contain {
padding: 0.8em 0; padding: 0.8em 0;
......
...@@ -236,7 +236,7 @@ ...@@ -236,7 +236,7 @@
</item> </item>
<item> <item>
<key> <string>serial</string> </key> <key> <string>serial</string> </key>
<value> <string>952.51887.37105.17459</string> </value> <value> <string>952.52941.50188.56166</string> </value>
</item> </item>
<item> <item>
<key> <string>state</string> </key> <key> <string>state</string> </key>
...@@ -254,7 +254,7 @@ ...@@ -254,7 +254,7 @@
</tuple> </tuple>
<state> <state>
<tuple> <tuple>
<float>1469518656.63</float> <float>1469520994.41</float>
<string>UTC</string> <string>UTC</string>
</tuple> </tuple>
</state> </state>
......
...@@ -1051,9 +1051,6 @@ div[data-gadget-scope='header'] .ui-header { ...@@ -1051,9 +1051,6 @@ div[data-gadget-scope='header'] .ui-header {
display: inline-block; display: inline-block;
width: 50%; width: 50%;
} }
.left {
padding-right: 2%;
}
.right { .right {
padding-left: 2%; padding-left: 2%;
} }
...@@ -1080,6 +1077,16 @@ div[data-gadget-scope='header'] .ui-header { ...@@ -1080,6 +1077,16 @@ div[data-gadget-scope='header'] .ui-header {
} }
} }
} }
@media @desktop {
// Align field on the left group's field
.center {
.ui-field-contain {
label + div {
flex: 7;
}
}
}
}
@media @smartphone { @media @smartphone {
.ui-field-contain { .ui-field-contain {
......
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