From 76b5659d4c754ef8655d37a17c8821838921e6cb Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Tue, 22 Apr 2014 00:04:31 +0200 Subject: [PATCH] Optimize for small screen --- htdocs/barcode/printsheet.php | 4 ++-- htdocs/public/test/test_arrays.php | 8 ++++---- htdocs/theme/auguria/style.css.php | 1 + htdocs/theme/bureau2crea/style.css.php | 1 + htdocs/theme/cameleo/style.css.php | 1 + htdocs/theme/eldy/style.css.php | 1 + 6 files changed, 10 insertions(+), 6 deletions(-) diff --git a/htdocs/barcode/printsheet.php b/htdocs/barcode/printsheet.php index ea3175d9277..f82551b57a5 100644 --- a/htdocs/barcode/printsheet.php +++ b/htdocs/barcode/printsheet.php @@ -270,7 +270,7 @@ print '
'; print '
'; print '
'; print $langs->trans("DescADHERENT_ETIQUETTE_TYPE").'   '; -print '
'; +print '
'; // List of possible labels (defined into $_Avery_Labels variable set into format_cards.lib.php) $arrayoflabels=array(); foreach(array_keys($_Avery_Labels) as $codecards) @@ -284,7 +284,7 @@ print '
'; print '
'; print '
'; print $langs->trans("NumberOfStickers").'   '; -print '
'; +print '
'; print ''; print '
'; diff --git a/htdocs/public/test/test_arrays.php b/htdocs/public/test/test_arrays.php index f7e29a695a1..6dbb6bccca4 100644 --- a/htdocs/public/test/test_arrays.php +++ b/htdocs/public/test/test_arrays.php @@ -4,7 +4,7 @@ define("NOCSRFCHECK",1); // We accept to go on this page from external web site. require '../../main.inc.php'; -if (empty($conf->global->MAIN_FEATURES_LEVEL)) +if (!empty($conf->global->MAIN_FEATURES_LEVEL)) { print "Page available onto dev environment only"; exit; @@ -23,7 +23,7 @@ if (empty($conf->global->MAIN_FEATURES_LEVEL)) - + @@ -58,7 +58,7 @@ Example 0a : Table with div+div+div containg a select that should be overflowed Example 0b: Table with div+form+div containg a select that should be overflowed and truncated
-
+
@@ -69,7 +69,7 @@ Example 0b: Table with div+form+div containg a select that should be overflowed Example 0c: Table with table+tr+td containg a select that should be overflowed and truncated
-
+ diff --git a/htdocs/theme/auguria/style.css.php b/htdocs/theme/auguria/style.css.php index 7cfc8e57b2c..7e10b40d706 100644 --- a/htdocs/theme/auguria/style.css.php +++ b/htdocs/theme/auguria/style.css.php @@ -242,6 +242,7 @@ div.inline-block .hideonsmartphone { display: none; } .noenlargeonsmartphone { width : 50px !important; display: inline !important; } .maxwidthonsmartphone { max-width: 100px; } +.maxwidth200onsmartphone { max-width: 200px; } .linkobject { cursor: pointer; } diff --git a/htdocs/theme/bureau2crea/style.css.php b/htdocs/theme/bureau2crea/style.css.php index 9e5b56b753b..3fa8b980fe4 100644 --- a/htdocs/theme/bureau2crea/style.css.php +++ b/htdocs/theme/bureau2crea/style.css.php @@ -266,6 +266,7 @@ div.inline-block .hideonsmartphone { display: none; } .noenlargeonsmartphone { width : 50px !important; display: inline !important; } .maxwidthonsmartphone { max-width: 100px; } +.maxwidth200onsmartphone { max-width: 200px; } .linkobject { cursor: pointer; } diff --git a/htdocs/theme/cameleo/style.css.php b/htdocs/theme/cameleo/style.css.php index 23e97ed2c6b..dc7ccd58e59 100644 --- a/htdocs/theme/cameleo/style.css.php +++ b/htdocs/theme/cameleo/style.css.php @@ -241,6 +241,7 @@ div.inline-block .hideonsmartphone { display: none; } .noenlargeonsmartphone { width : 50px !important; display: inline !important; } .maxwidthonsmartphone { max-width: 100px; } +.maxwidth200onsmartphone { max-width: 200px; } .linkobject { cursor: pointer; } diff --git a/htdocs/theme/eldy/style.css.php b/htdocs/theme/eldy/style.css.php index e4ff22532cc..c6cf6b29e6c 100644 --- a/htdocs/theme/eldy/style.css.php +++ b/htdocs/theme/eldy/style.css.php @@ -408,6 +408,7 @@ th .button { .hideonsmartphone { display: none; } .noenlargeonsmartphone { width : 50px !important; display: inline !important; } .maxwidthonsmartphone { max-width: 100px; } +.maxwidth200onsmartphone { max-width: 200px; } .linkobject { cursor: pointer; }