Optimize for small screen
This commit is contained in:
parent
bb2c829997
commit
76b5659d4c
@ -270,7 +270,7 @@ print '<div class="tagtable">';
|
|||||||
print ' <div class="tagtr">';
|
print ' <div class="tagtr">';
|
||||||
print ' <div class="tagtd" style="overflow: hidden; white-space: nowrap; max-width: 300px;">';
|
print ' <div class="tagtd" style="overflow: hidden; white-space: nowrap; max-width: 300px;">';
|
||||||
print $langs->trans("DescADHERENT_ETIQUETTE_TYPE").' ';
|
print $langs->trans("DescADHERENT_ETIQUETTE_TYPE").' ';
|
||||||
print '</div><div class="tagtd" style="overflow: hidden; white-space: nowrap; max-width: 300px;">';
|
print '</div><div class="tagtd maxwidthonsmartphone" style="overflow: hidden; white-space: nowrap;">';
|
||||||
// List of possible labels (defined into $_Avery_Labels variable set into format_cards.lib.php)
|
// List of possible labels (defined into $_Avery_Labels variable set into format_cards.lib.php)
|
||||||
$arrayoflabels=array();
|
$arrayoflabels=array();
|
||||||
foreach(array_keys($_Avery_Labels) as $codecards)
|
foreach(array_keys($_Avery_Labels) as $codecards)
|
||||||
@ -284,7 +284,7 @@ print '</div></div>';
|
|||||||
print ' <div class="tagtr">';
|
print ' <div class="tagtr">';
|
||||||
print ' <div class="tagtd" style="overflow: hidden; white-space: nowrap; max-width: 300px;">';
|
print ' <div class="tagtd" style="overflow: hidden; white-space: nowrap; max-width: 300px;">';
|
||||||
print $langs->trans("NumberOfStickers").' ';
|
print $langs->trans("NumberOfStickers").' ';
|
||||||
print '</div><div class="tagtd" style="overflow: hidden; white-space: nowrap; max-width: 300px;">';
|
print '</div><div class="tagtd maxwidthonsmartphone" style="overflow: hidden; white-space: nowrap;">';
|
||||||
print '<input size="4" type="text" name="numberofsticker" value="'.(GETPOST('numberofsticker')?GETPOST('numberofsticker','int'):10).'">';
|
print '<input size="4" type="text" name="numberofsticker" value="'.(GETPOST('numberofsticker')?GETPOST('numberofsticker','int'):10).'">';
|
||||||
print '</div></div>';
|
print '</div></div>';
|
||||||
|
|
||||||
|
|||||||
@ -4,7 +4,7 @@ define("NOCSRFCHECK",1); // We accept to go on this page from external web site.
|
|||||||
|
|
||||||
require '../../main.inc.php';
|
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";
|
print "Page available onto dev environment only";
|
||||||
exit;
|
exit;
|
||||||
@ -23,7 +23,7 @@ if (empty($conf->global->MAIN_FEATURES_LEVEL))
|
|||||||
<link rel="stylesheet" type="text/css" href="<?php echo DOL_URL_ROOT ?>/includes/jquery/css/smoothness/jquery-ui-latest.custom.css" />
|
<link rel="stylesheet" type="text/css" href="<?php echo DOL_URL_ROOT ?>/includes/jquery/css/smoothness/jquery-ui-latest.custom.css" />
|
||||||
<link rel="stylesheet" type="text/css" href="<?php echo DOL_URL_ROOT ?>/includes/jquery/plugins/datatables/css/jquery.dataTables.css" />
|
<link rel="stylesheet" type="text/css" href="<?php echo DOL_URL_ROOT ?>/includes/jquery/plugins/datatables/css/jquery.dataTables.css" />
|
||||||
<link rel="stylesheet" type="text/css" href="<?php echo DOL_URL_ROOT ?>/includes/jquery/plugins/mobile/jquery.mobile-latest.min.css" />
|
<link rel="stylesheet" type="text/css" href="<?php echo DOL_URL_ROOT ?>/includes/jquery/plugins/mobile/jquery.mobile-latest.min.css" />
|
||||||
<link rel="stylesheet" type="text/css" title="default" href="<?php echo DOL_URL_ROOT ?>/theme/eldy/style.css.php?dol_use_jmobile=1" />
|
<link rel="stylesheet" type="text/css" title="default" href="<?php echo DOL_URL_ROOT ?>/theme/eldy/style.css.php?dol_use_jmobile=1&dol_optimize_smallscreen=1" />
|
||||||
<!-- Includes JS for JQuery -->
|
<!-- Includes JS for JQuery -->
|
||||||
<script type="text/javascript" src="<?php echo DOL_URL_ROOT ?>/includes/jquery/js/jquery-latest.min.js"></script>
|
<script type="text/javascript" src="<?php echo DOL_URL_ROOT ?>/includes/jquery/js/jquery-latest.min.js"></script>
|
||||||
<script type="text/javascript" src="<?php echo DOL_URL_ROOT ?>/includes/jquery/plugins/tablednd/jquery.tablednd.0.6.min.js"></script>
|
<script type="text/javascript" src="<?php echo DOL_URL_ROOT ?>/includes/jquery/plugins/tablednd/jquery.tablednd.0.6.min.js"></script>
|
||||||
@ -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<br>
|
Example 0b: Table with div+form+div containg a select that should be overflowed and truncated<br>
|
||||||
<div class="tagtable centpercent">
|
<div class="tagtable centpercent">
|
||||||
<form action="xxx" method="POST" class="tagtr">
|
<form action="xxx" method="POST" class="tagtr">
|
||||||
<div class="tagtd" style="max-width:100px; overflow: hidden; white-space: nowrap;"> <!-- If you remove max-width, the jmobile overflow does not work -->
|
<div class="tagtd maxwidthonsmartphone" style="overflow: hidden; white-space: nowrap;"> <!-- If you remove max-width, the jmobile overflow does not work -->
|
||||||
<select name="hidedetails"><option>aaaaaaaaaaaaaaafd sf sf gfd gfds fsd gfd fhfg hf dhfg hg fhfgdhfgdh gh gfdhdgf h gfdh dfhg dfgh dfgh fdgh gfd hfd hfd gs fgdf gaaaa</option><option>gdfs gdf g sdfg dfg fdsg dsfg dfs gdfs gds fgs gdfdf gd</option></select>
|
<select name="hidedetails"><option>aaaaaaaaaaaaaaafd sf sf gfd gfds fsd gfd fhfg hf dhfg hg fhfgdhfgdh gh gfdhdgf h gfdh dfhg dfgh dfgh fdgh gfd hfd hfd gs fgdf gaaaa</option><option>gdfs gdf g sdfg dfg fdsg dsfg dfs gdfs gds fgs gdfdf gd</option></select>
|
||||||
</div>
|
</div>
|
||||||
<div class="tagtd" style="max-width:100px; overflow: hidden; white-space: nowrap;"> <!-- If you remove max-width, the jmobile overflow does not work -->
|
<div class="tagtd" style="max-width:100px; overflow: hidden; white-space: nowrap;"> <!-- If you remove max-width, the jmobile overflow does not work -->
|
||||||
@ -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<br>
|
Example 0c: Table with table+tr+td containg a select that should be overflowed and truncated<br>
|
||||||
<table class="centpercent">
|
<table class="centpercent">
|
||||||
<tr>
|
<tr>
|
||||||
<td class="tagtd" style="max-width:100px; overflow: hidden; white-space: nowrap;"> <!-- If you remove max-width, the jmobile overflow does not work -->
|
<td class="tagtd maxwidthonsmartphone" style="overflow: hidden; white-space: nowrap;"> <!-- If you remove max-width, the jmobile overflow does not work -->
|
||||||
<select name="hidedetails"><option>aaaaaaaaaaaaaaafd sf sf gfd gfds fsd gfd fhfg hf dhfg hg fhfgdhfgdh gh gfdhdgf h gfdh dfhg dfgh dfgh fdgh gfd hfd hfd gs fgdf gaaaa</option><option>gdfs gdf g sdfg dfg fdsg dsfg dfs gdfs gds fgs gdfdf gd</option></select>
|
<select name="hidedetails"><option>aaaaaaaaaaaaaaafd sf sf gfd gfds fsd gfd fhfg hf dhfg hg fhfgdhfgdh gh gfdhdgf h gfdh dfhg dfgh dfgh fdgh gfd hfd hfd gs fgdf gaaaa</option><option>gdfs gdf g sdfg dfg fdsg dsfg dfs gdfs gds fgs gdfdf gd</option></select>
|
||||||
</td>
|
</td>
|
||||||
<td class="tagtd" style="max-width:100px; overflow: hidden; white-space: nowrap;"> <!-- If you remove max-width, the jmobile overflow does not work -->
|
<td class="tagtd" style="max-width:100px; overflow: hidden; white-space: nowrap;"> <!-- If you remove max-width, the jmobile overflow does not work -->
|
||||||
|
|||||||
@ -242,6 +242,7 @@ div.inline-block
|
|||||||
.hideonsmartphone { display: none; }
|
.hideonsmartphone { display: none; }
|
||||||
.noenlargeonsmartphone { width : 50px !important; display: inline !important; }
|
.noenlargeonsmartphone { width : 50px !important; display: inline !important; }
|
||||||
.maxwidthonsmartphone { max-width: 100px; }
|
.maxwidthonsmartphone { max-width: 100px; }
|
||||||
|
.maxwidth200onsmartphone { max-width: 200px; }
|
||||||
<?php } ?>
|
<?php } ?>
|
||||||
.linkobject { cursor: pointer; }
|
.linkobject { cursor: pointer; }
|
||||||
<?php if (GETPOST("optioncss") == 'print') { ?>
|
<?php if (GETPOST("optioncss") == 'print') { ?>
|
||||||
|
|||||||
@ -266,6 +266,7 @@ div.inline-block
|
|||||||
.hideonsmartphone { display: none; }
|
.hideonsmartphone { display: none; }
|
||||||
.noenlargeonsmartphone { width : 50px !important; display: inline !important; }
|
.noenlargeonsmartphone { width : 50px !important; display: inline !important; }
|
||||||
.maxwidthonsmartphone { max-width: 100px; }
|
.maxwidthonsmartphone { max-width: 100px; }
|
||||||
|
.maxwidth200onsmartphone { max-width: 200px; }
|
||||||
<?php } ?>
|
<?php } ?>
|
||||||
.linkobject { cursor: pointer; }
|
.linkobject { cursor: pointer; }
|
||||||
<?php if (GETPOST("optioncss") == 'print') { ?>
|
<?php if (GETPOST("optioncss") == 'print') { ?>
|
||||||
|
|||||||
@ -241,6 +241,7 @@ div.inline-block
|
|||||||
.hideonsmartphone { display: none; }
|
.hideonsmartphone { display: none; }
|
||||||
.noenlargeonsmartphone { width : 50px !important; display: inline !important; }
|
.noenlargeonsmartphone { width : 50px !important; display: inline !important; }
|
||||||
.maxwidthonsmartphone { max-width: 100px; }
|
.maxwidthonsmartphone { max-width: 100px; }
|
||||||
|
.maxwidth200onsmartphone { max-width: 200px; }
|
||||||
<?php } ?>
|
<?php } ?>
|
||||||
.linkobject { cursor: pointer; }
|
.linkobject { cursor: pointer; }
|
||||||
<?php if (GETPOST("optioncss") == 'print') { ?>
|
<?php if (GETPOST("optioncss") == 'print') { ?>
|
||||||
|
|||||||
@ -408,6 +408,7 @@ th .button {
|
|||||||
.hideonsmartphone { display: none; }
|
.hideonsmartphone { display: none; }
|
||||||
.noenlargeonsmartphone { width : 50px !important; display: inline !important; }
|
.noenlargeonsmartphone { width : 50px !important; display: inline !important; }
|
||||||
.maxwidthonsmartphone { max-width: 100px; }
|
.maxwidthonsmartphone { max-width: 100px; }
|
||||||
|
.maxwidth200onsmartphone { max-width: 200px; }
|
||||||
<?php } ?>
|
<?php } ?>
|
||||||
.linkobject { cursor: pointer; }
|
.linkobject { cursor: pointer; }
|
||||||
<?php if (GETPOST("optioncss") == 'print') { ?>
|
<?php if (GETPOST("optioncss") == 'print') { ?>
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user