Commit 51b90925 authored by Romain Courteaud's avatar Romain Courteaud

[erp5_web_renderjs_ui] Reduce font size on big screen

This will increase the information's density for desktop users
parent d879d58c
...@@ -177,6 +177,24 @@ select { ...@@ -177,6 +177,24 @@ select {
font-weight: 400; font-weight: 400;
line-height: 1.5; line-height: 1.5;
} }
@media only screen and (min-width: 45em) and (max-width: 85em) {
body,
button,
input,
textarea,
select {
font-size: 11pt;
}
}
@media not screen and (max-width: 85em) {
body,
button,
input,
textarea,
select {
font-size: 10pt;
}
}
/********************************************** /**********************************************
* Inline elements * Inline elements
**********************************************/ **********************************************/
......
...@@ -242,7 +242,7 @@ ...@@ -242,7 +242,7 @@
</item> </item>
<item> <item>
<key> <string>serial</string> </key> <key> <string>serial</string> </key>
<value> <string>965.13250.38999.16264</string> </value> <value> <string>965.13467.35844.48162</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>1517480024.55</float> <float>1517492960.24</float>
<string>UTC</string> <string>UTC</string>
</tuple> </tuple>
</state> </state>
......
...@@ -42,7 +42,7 @@ ...@@ -42,7 +42,7 @@
@radius: .325em; @radius: .325em;
// XXX BUG Generate wrong align on firefox smartphone // XXX BUG Generate wrong align on firefox smartphone
@headerheight: @font-size * 2 + @margin-size; @headerheight: @smartphone-font-size * 2 + @margin-size;
@headerheight-smartphone: 2 * @headerheight + @margin-size + 1; @headerheight-smartphone: 2 * @headerheight + @margin-size + 1;
@headerheight-tablet: 2 * @headerheight + 2 * @margin-size + 1; @headerheight-tablet: 2 * @headerheight + 2 * @margin-size + 1;
...@@ -81,7 +81,11 @@ ...@@ -81,7 +81,11 @@
**********************************************/ **********************************************/
@font-family: @sans-serif; @font-family: @sans-serif;
// Increase font size to prevent IOS auto zooming when focusing input field // Increase font size to prevent IOS auto zooming when focusing input field
@font-size: 12pt; @smartphone-font-size: 12pt;
// Reduce font size on tablet/desktop,
// as users want to increase information's density on big screen
@tablet-font-size: 11pt;
@desktop-font-size: 10pt;
@font-weight: 400; @font-weight: 400;
@line-height: 1.5; @line-height: 1.5;
...@@ -245,7 +249,13 @@ body { ...@@ -245,7 +249,13 @@ body {
body, button, input, textarea, select { body, button, input, textarea, select {
font-family: @font-family; font-family: @font-family;
font-size: @font-size; font-size: @smartphone-font-size;
@media @tablet {
font-size: @tablet-font-size;
}
@media @desktop {
font-size: @desktop-font-size;
}
padding: 0; padding: 0;
margin: 0; margin: 0;
......
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