Add shadow style

This commit is contained in:
Laurent Destailleur 2019-08-15 01:58:22 +02:00
parent bb35d9be0c
commit ca256a6635
2 changed files with 7 additions and 3 deletions

View File

@ -345,7 +345,7 @@ function dolSaveReadme($file, $content)
/**
* Show list of themes. Show all thumbs of themes
* Show list of themes. Show all thumbs of themes/skins
*
* @param Website $website Object website to load the tempalte into
* @return void
@ -421,7 +421,7 @@ function showWebsiteTemplates(Website $website)
$url=DOL_URL_ROOT.'/viewimage.php?modulepart=doctemplateswebsite&file='.$subdirwithoutzip.".jpg";
if (! file_exists($file)) $url=DOL_URL_ROOT.'/public/theme/common/nophoto.png';
print '<img src="'.$url.'" border="0" width="80" height="60" alt="'.$title.'" title="'.$title.'" style="margin-bottom: 5px;">';
print '<img class="websiteskinthumb shadow" src="'.$url.'" border="0" width="80" height="60" alt="'.$title.'" title="'.$title.'" style="margin-bottom: 5px;">';
print '<br>';
print $subdir.' ('.dol_print_size(dol_filesize($dirtheme."/".$subdir), 1, 1).')';
print '<br><a href="'.$_SERVER["PHP_SELF"].'?action=importsiteconfirm&website='.$website->ref.'&templateuserfile='.$subdir.'" class="button">'.$langs->trans("Load").'</a>';

View File

@ -3020,11 +3020,15 @@ table.noborder.paymenttable {
height: 22px;
}
/* Disable shadows */
/* Disable-Enable shadows */
.noshadow {
-webkit-box-shadow: 0px 0px 0px #DDD !important;
box-shadow: 0px 0px 0px #DDD !important;
}
.shadow {
-webkit-box-shadow: 2px 2px 5px #CCC !important;
box-shadow: 2px 2px 5px #CCC !important;
}
div.tabBar .noborder {
-webkit-box-shadow: 0px 0px 0px #DDD !important;