Commit 0aaf4b22 authored by Romain Courteaud's avatar Romain Courteaud

[erp5_web_renderjs_ui] Change textarea size

On smartphone, display the textarea small and increase its size when focused
This behaviour should not be activated on bigscreen, as it make it unusable (difficult to search text for example)
parent 49adae3c
...@@ -337,10 +337,19 @@ textarea { ...@@ -337,10 +337,19 @@ textarea {
white-space: normal; white-space: normal;
vertical-align: top; vertical-align: top;
transition: height 0.2s ease-out; transition: height 0.2s ease-out;
height: 4em;
} }
textarea:focus { @media only screen and (max-width: 45em) {
height: 20em; textarea {
height: 4em;
}
textarea:focus {
height: 20em;
}
}
@media only screen and (min-width: 45em) and (max-width: 90em), only screen and (min-width: 90em) {
textarea {
min-height: 10em;
}
} }
::-webkit-input-placeholder { ::-webkit-input-placeholder {
color: #575757; color: #575757;
......
...@@ -242,7 +242,7 @@ ...@@ -242,7 +242,7 @@
</item> </item>
<item> <item>
<key> <string>serial</string> </key> <key> <string>serial</string> </key>
<value> <string>956.17327.55379.35737</string> </value> <value> <string>956.58713.6703.47906</string> </value>
</item> </item>
<item> <item>
<key> <string>state</string> </key> <key> <string>state</string> </key>
...@@ -260,7 +260,7 @@ ...@@ -260,7 +260,7 @@
</tuple> </tuple>
<state> <state>
<tuple> <tuple>
<float>1482940671.94</float> <float>1485423923.88</float>
<string>UTC</string> <string>UTC</string>
</tuple> </tuple>
</state> </state>
......
...@@ -420,9 +420,19 @@ textarea { ...@@ -420,9 +420,19 @@ textarea {
vertical-align: top; vertical-align: top;
transition: height @transition-timing; transition: height @transition-timing;
height: 4em;
&:focus { // On smartphone, display the textarea small
height: 20em; // and increase its size when focused
// This behaviour should not be activated on bigscreen,
// as it make it unusable (difficult to search text for example)
@media @smartphone {
height: 4em;
&:focus {
height: 20em;
}
}
@media @tablet, @desktop {
min-height: 10em;
} }
} }
......
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