css
This commit is contained in:
parent
1fa3e9f37d
commit
52b855fb4b
@ -3,14 +3,28 @@
|
|||||||
/* Demo */
|
/* Demo */
|
||||||
/* ============================================================================== */
|
/* ============================================================================== */
|
||||||
|
|
||||||
|
div.titre {
|
||||||
|
text-transform: none;
|
||||||
|
}
|
||||||
|
|
||||||
a:hover {
|
a:hover {
|
||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.CTable {
|
||||||
|
/* padding: 6px; */
|
||||||
|
font-weight: normal;
|
||||||
|
color: #444444 !important;
|
||||||
|
|
||||||
|
margin: 8px 2px 8px 2px;
|
||||||
|
max-width: 346px;
|
||||||
|
}
|
||||||
.demobox {
|
.demobox {
|
||||||
border: 1px solid #bbb;
|
border: 1px solid #bbb;
|
||||||
border-radius: 8px;
|
border-radius: 8px;
|
||||||
-moz-border-radius: 8px;
|
-moz-border-radius: 8px;
|
||||||
min-height: 210px;
|
min-height: 210px;
|
||||||
|
background: -webkit-linear-gradient(bottom, rgb(255,255,255) 85%, rgb(255,255,255) 100%);
|
||||||
}
|
}
|
||||||
.demobox:hover {
|
.demobox:hover {
|
||||||
border: 1px solid #bbb;
|
border: 1px solid #bbb;
|
||||||
@ -18,33 +32,29 @@ a:hover {
|
|||||||
-moz-border-radius: 8px;
|
-moz-border-radius: 8px;
|
||||||
box-shadow: 2px 2px 8px #BBB;
|
box-shadow: 2px 2px 8px #BBB;
|
||||||
}
|
}
|
||||||
.CTable {
|
|
||||||
padding: 6px;
|
|
||||||
font-weight: normal;
|
|
||||||
color: #444444 !important;
|
|
||||||
|
|
||||||
margin: 8px 2px 8px 2px;
|
|
||||||
|
|
||||||
/*border: 1px solid #bbb;
|
|
||||||
border-radius: 8px;
|
|
||||||
-moz-border-radius: 8px;*/
|
|
||||||
background: -webkit-linear-gradient(bottom, rgb(255,255,255) 85%, rgb(255,255,255) 100%);
|
|
||||||
|
|
||||||
max-width: 346px;
|
|
||||||
}
|
|
||||||
.csscolumns {
|
|
||||||
margin-top: 6px;
|
|
||||||
margin-bottom: 5px;
|
|
||||||
-webkit-column-count: 2; /* Chrome, Safari, Opera */
|
|
||||||
-moz-column-count: 2; /* Firefox */
|
|
||||||
column-count: 2;
|
|
||||||
text-align: left;
|
|
||||||
}
|
|
||||||
.demomaxoveflow {
|
.demomaxoveflow {
|
||||||
max-width: 120px;
|
max-width: 120px;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
text-overflow: ellipsis;
|
text-overflow: ellipsis;
|
||||||
}
|
}
|
||||||
|
@media only screen and (min-width: 641px)
|
||||||
|
{
|
||||||
|
.csscolumns {
|
||||||
|
margin-top: 6px;
|
||||||
|
margin-bottom: 5px;
|
||||||
|
-webkit-column-count: 3; /* Chrome, Safari, Opera */
|
||||||
|
-moz-column-count: 3; /* Firefox */
|
||||||
|
column-count: 3;
|
||||||
|
text-align: left;
|
||||||
|
}
|
||||||
|
#divprofdemoall {
|
||||||
|
max-width: unset;
|
||||||
|
}
|
||||||
|
|
||||||
|
.demomaxoveflow {
|
||||||
|
max-width: 200px;
|
||||||
|
}
|
||||||
|
}
|
||||||
@media only screen and (max-width: 840px)
|
@media only screen and (max-width: 840px)
|
||||||
{
|
{
|
||||||
.csscolumns {
|
.csscolumns {
|
||||||
@ -76,6 +86,9 @@ a:hover {
|
|||||||
column-count: 1;
|
column-count: 1;
|
||||||
text-align: left;
|
text-align: left;
|
||||||
}
|
}
|
||||||
|
.demomaxoveflow {
|
||||||
|
max-width: 220px !important;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -250,17 +250,18 @@ jQuery(document).ready(function () {
|
|||||||
jQuery(".modulelineshow").attr("href","#a1profdemoall");
|
jQuery(".modulelineshow").attr("href","#a1profdemoall");
|
||||||
jQuery(".cursorpointer").css("cursor","pointer");
|
jQuery(".cursorpointer").css("cursor","pointer");
|
||||||
jQuery(".modulelineshow").click(function() {
|
jQuery(".modulelineshow").click(function() {
|
||||||
var idstring=$(this).attr("id");
|
console.log("We select the custom demo");
|
||||||
if (typeof idstring != "undefined")
|
var idstring=$(this).attr("id");
|
||||||
{
|
if (typeof idstring != "undefined")
|
||||||
var currentId = idstring.substring(2);
|
{
|
||||||
jQuery("tr.moduleline").hide();
|
var currentId = idstring.substring(2);
|
||||||
if (currentId != openedId)
|
jQuery("tr.moduleline").hide();
|
||||||
{
|
if (currentId != openedId)
|
||||||
openedId=currentId;
|
{
|
||||||
jQuery("#tr1"+currentId).show();
|
openedId=currentId;
|
||||||
jQuery("#tr2"+currentId).show();
|
jQuery("#tr1"+currentId).show();
|
||||||
}
|
jQuery("#tr2"+currentId).show();
|
||||||
|
}
|
||||||
else openedId = "";
|
else openedId = "";
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
@ -350,7 +351,7 @@ foreach ($demoprofiles as $profilearray) {
|
|||||||
|
|
||||||
// Modules (a profile you must choose modules)
|
// Modules (a profile you must choose modules)
|
||||||
if (empty($profilearray['url'])) {
|
if (empty($profilearray['url'])) {
|
||||||
print '<div id="tr1'.$profilearray['key'].'" class="moduleline hidden" style="margin-left: 8px; margin-right: 8px; text-align: justify; font-size:14px; line-height: 130%; padding-bottom: 8px">';
|
print '<div id="tr1'.$profilearray['key'].'" class="moduleline hidden" style="margin-left: 8px; margin-right: 8px; text-align: justify; font-size:0.75em; line-height: 130%; padding-bottom: 8px">';
|
||||||
|
|
||||||
print '<span class="opacitymedium">'.$langs->trans("ThisIsListOfModules").'</span><br><br>';
|
print '<span class="opacitymedium">'.$langs->trans("ThisIsListOfModules").'</span><br><br>';
|
||||||
|
|
||||||
@ -387,14 +388,22 @@ foreach ($demoprofiles as $profilearray) {
|
|||||||
//if ($modulo == 0) print '<tr>';
|
//if ($modulo == 0) print '<tr>';
|
||||||
print '<!-- id='.$val->numero.' -->';
|
print '<!-- id='.$val->numero.' -->';
|
||||||
print '<div class="nowrap">';
|
print '<div class="nowrap">';
|
||||||
print '<input type="checkbox" class="checkbox" id="id'.$modulekeyname.'" name="'.$modulekeyname.'" value="1" title="'.dol_escape_htmltag($val->getName()).'"';
|
print '<input type="checkbox" class="checkbox valignmiddle paddingright" id="id'.$modulekeyname.'" name="'.$modulekeyname.'" value="1" title="'.dol_escape_htmltag($val->getName()).'"';
|
||||||
if (in_array($modulekeyname, $alwaysuncheckedmodules)) {
|
if (in_array($modulekeyname, $alwaysuncheckedmodules)) {
|
||||||
print ' disabled';
|
print ' disabled';
|
||||||
}
|
}
|
||||||
if (!in_array($modulekeyname, $alwaysuncheckedmodules) && (!in_array($modulekeyname, $listofdisabledmodules) || in_array($modulekeyname, $alwayscheckedmodules))) {
|
if (!in_array($modulekeyname, $alwaysuncheckedmodules) && (!in_array($modulekeyname, $listofdisabledmodules) || in_array($modulekeyname, $alwayscheckedmodules))) {
|
||||||
print ' checked';
|
print ' checked';
|
||||||
}
|
}
|
||||||
print '> <label for="id'.$modulekeyname.'" class="inline-block demomaxoveflow" title="'.dol_escape_htmltag($val->getName()).'">'.$val->getName().'</label><br>';
|
print '>';
|
||||||
|
/*
|
||||||
|
$s = img_picto('', $modulekeyname, 'class="pictofixedwidth paddingleft"');
|
||||||
|
if ($s) {
|
||||||
|
print $s;
|
||||||
|
} else {
|
||||||
|
print img_picto('', 'generic', 'class="pictofixedwidth paddingleft"');
|
||||||
|
}*/
|
||||||
|
print '<label for="id'.$modulekeyname.'" class="inline-block demomaxoveflow valignmiddle paddingleft" title="'.dol_escape_htmltag($val->getName()).'">'.$val->getName().'</label><br>';
|
||||||
print '</div>';
|
print '</div>';
|
||||||
//if ($modulo == ($nbcolsmod - 1)) print '</tr>';
|
//if ($modulo == ($nbcolsmod - 1)) print '</tr>';
|
||||||
$j++;
|
$j++;
|
||||||
@ -405,6 +414,7 @@ foreach ($demoprofiles as $profilearray) {
|
|||||||
|
|
||||||
print '<br><div class="center">';
|
print '<br><div class="center">';
|
||||||
print '<input type="submit" value=" '.$langs->trans("Start").' " class="button">';
|
print '<input type="submit" value=" '.$langs->trans("Start").' " class="button">';
|
||||||
|
print '<br><br>';
|
||||||
print '</div>';
|
print '</div>';
|
||||||
|
|
||||||
print '</div>';
|
print '</div>';
|
||||||
@ -419,6 +429,8 @@ foreach ($demoprofiles as $profilearray) {
|
|||||||
|
|
||||||
print '</div>';
|
print '</div>';
|
||||||
|
|
||||||
|
print '<br>';
|
||||||
|
|
||||||
|
|
||||||
// TODO Replace this with a hook
|
// TODO Replace this with a hook
|
||||||
// Google Adsense (need Google module)
|
// Google Adsense (need Google module)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user