Skip to content

Commit

Permalink
Fix: Still working on css debug. bureau2crea and cameleo are too
Browse files Browse the repository at this point in the history
bugged. I disable them with jmobile to have things working correctly.
  • Loading branch information
eldy committed Jun 20, 2013
1 parent 7f66030 commit b477272
Show file tree
Hide file tree
Showing 6 changed files with 134 additions and 19 deletions.
8 changes: 8 additions & 0 deletions htdocs/main.inc.php
Expand Up @@ -679,6 +679,7 @@ function analyse_sql_and_script(&$var, $type)
$conf->theme=GETPOST('theme','alpha',1);
$conf->css = "/theme/".$conf->theme."/style.css.php";
}


// Set javascript option
if (! GETPOST('nojs')) // If javascript was not disabled on URL
Expand All @@ -702,6 +703,13 @@ function analyse_sql_and_script(&$var, $type)
$conf->dol_no_mouse_hover=1;
}

// Disabled bugged themes
if (! empty($conf->dol_use_jmobile) && in_array($conf->theme,array('bureau2crea','cameleo')))
{
$conf->theme='eldy';
$conf->css = "/theme/".$conf->theme."/style.css.php";
}

if (! defined('NOREQUIRETRAN'))
{
if (! GETPOST('lang')) // If language was not forced on URL
Expand Down
25 changes: 24 additions & 1 deletion htdocs/theme/amarok/style.css.php
Expand Up @@ -2065,6 +2065,9 @@
li.ui-li-divider .ui-link {
color: #FFF !important;
}
.ui-btn {
margin: 0.1em 2px
}
.ui-btn-inner {
min-width: .4em;
padding-left: 10px;
Expand All @@ -2074,9 +2077,19 @@
font-size: <?php print $fontsize ?>px;
<?php } ?>
}
.ui-btn-icon-right .ui-btn-inner {
padding-right: 34px;
}
.ui-btn-icon-left .ui-btn-inner {
padding-left: 34px;
}
.ui-select .ui-btn-icon-right .ui-btn-inner {
padding-right: 36px;
}
.ui-select .ui-btn-icon-left .ui-btn-inner {
padding-left: 36px;
}

.fiche .ui-controlgroup {
margin: 0px;
padding-bottom: 0px;
Expand All @@ -2091,7 +2104,11 @@
-moz-box-shadow: 0 -3px 6px rgba(0,0,0,.2);
-webkit-box-shadow: 0 -3px 6px rgba(0,0,0,.2);
box-shadow: 0 -3px 6px rgba(0,0,0,.2);
border: none;
}
div.ui-controlgroup-controls div.tabsElem a#active {
-moz-box-shadow: 0 -3px 6px rgba(0,0,0,.3);
-webkit-box-shadow: 0 -3px 6px rgba(0,0,0,.3);
box-shadow: 0 -3px 6px rgba(0,0,0,.3);
}

a.tab span.ui-btn-inner, a.tab span.ui-btn-inner span.ui-btn-text
Expand Down Expand Up @@ -2139,6 +2156,12 @@
padding-bottom: 10px; margin-bottom: 4px; border-bottom: 1px solid #AAAAAA !important;
}

ul.ulmenu {
border-radius: 0;
-webkit-border-radius: 0;
}


<?php
if (is_object($db)) $db->close();
?>
12 changes: 12 additions & 0 deletions htdocs/theme/auguria/style.css.php
Expand Up @@ -2203,6 +2203,9 @@
li.ui-li-divider .ui-link {
color: #FFF !important;
}
.ui-btn {
margin: 0.1em 2px
}
a.ui-link, a.ui-link:hover, .ui-btn:hover, span.ui-btn-text:hover, span.ui-btn-inner:hover {
text-decoration: none !important;
}
Expand All @@ -2219,6 +2222,10 @@
.ui-select .ui-btn-icon-right .ui-btn-inner {
padding-right: 36px;
}
.ui-select .ui-btn-icon-left .ui-btn-inner {
padding-left: 36px;
}

.fiche .ui-controlgroup {
margin: 0px;
padding-bottom: 0px;
Expand Down Expand Up @@ -2281,6 +2288,11 @@
}


ul.ulmenu {
border-radius: 0;
-webkit-border-radius: 0;
}

<?php
if (is_object($db)) $db->close();
?>
77 changes: 64 additions & 13 deletions htdocs/theme/bureau2crea/style.css.php
Expand Up @@ -57,18 +57,20 @@
$fontsize=empty($conf->dol_optimize_smallscreen)?'12':'12';
$fontsizesmaller=empty($conf->dol_optimize_smallscreen)?'11':'11';


$path=''; // This value may be used in future for external module to overwrite theme
$theme='bureau2crea'; // Value of theme
if (! empty($conf->global->MAIN_OVERWRITE_THEME_RES)) { $path='/'.$conf->global->MAIN_OVERWRITE_THEME_RES; $theme=$conf->global->MAIN_OVERWRITE_THEME_RES; }

// Define image path files
$fontlist='arial, sans-serif, verdana, helvetica';
//$fontlist='Verdana,Helvetica,Arial,sans-serif';

$dol_hide_topmenu=$conf->dol_hide_topmenu;
$dol_hide_leftmenu=$conf->dol_hide_leftmenu;
$dol_optimize_smallscreen=$conf->dol_optimize_smallscreen;
$dol_no_mouse_hover=$conf->dol_no_mouse_hover;
$dol_use_jmobile=$conf->dol_use_jmobile;

$path=''; // This value may be used in future for external module to overwrite theme
$theme='bureau2crea'; // Value of theme
if (! empty($conf->global->MAIN_OVERWRITE_THEME_RES)) { $path='/'.$conf->global->MAIN_OVERWRITE_THEME_RES; $theme=$conf->global->MAIN_OVERWRITE_THEME_RES; }

?>

Expand Down Expand Up @@ -301,15 +303,15 @@
<?php if (empty($conf->dol_optimize_smallscreen)) { print "width: 35%;\n"; } ?>
}
div.fichetwothirdright {
<?php if (empty($conf->dol_optimize_smallscreen)) { print "float: ".$left.";\n"; } ?>
<?php if (empty($conf->dol_optimize_smallscreen)) { print "float: ".$right.";\n"; } ?>
<?php if (empty($conf->dol_optimize_smallscreen)) { print "width: 65%;\n"; } ?>
}
div.fichehalfleft {
<?php if (empty($conf->dol_optimize_smallscreen)) { print "float: ".$left.";\n"; } ?>
<?php if (empty($conf->dol_optimize_smallscreen)) { print "width: 50%;\n"; } ?>
}
div.fichehalfright {
<?php if (empty($conf->dol_optimize_smallscreen)) { print "float: ".$left.";\n"; } ?>
<?php if (empty($conf->dol_optimize_smallscreen)) { print "float: ".$right.";\n"; } ?>
<?php if (empty($conf->dol_optimize_smallscreen)) { print "width: 50%;\n"; } ?>
}
div.ficheaddleft {
Expand Down Expand Up @@ -902,7 +904,7 @@
* RESIZER-BARS
*/
.ui-layout-resizer { /* all 'resizer-bars' */
width: 8px !important;
width: <?php echo (empty($conf->dol_optimize_smallscreen)?'8':'24'); ?>px !important;
}
.ui-layout-resizer-hover { /* affects both open and closed states */
}
Expand All @@ -911,7 +913,7 @@
/*.ui-layout-resizer-open-hover ,*/ /* hover-color to 'resize' */
.ui-layout-resizer-dragging { /* resizer beging 'dragging' */
background: #DDD;
width: 8px;
width: <?php echo (empty($conf->dol_optimize_smallscreen)?'8':'24'); ?>px;
}
.ui-layout-resizer-dragging { /* CLONED resizer being dragged */
border-left: 1px solid #BBB;
Expand Down Expand Up @@ -1024,6 +1026,8 @@
border: 1px solid #BBB;
border-width: 0;
}
.ecm-layout-resizer-closed {
}

.ecm-in-layout-center {
border-left: 1px !important;
Expand Down Expand Up @@ -1676,7 +1680,7 @@
}

div.titre {
font-family: "Trebuchet MS",Arial,Helvetica,sans-serif;
font-family: <?php print $fontlist ?>;
font-weight: normal;
color: #842F00;
font-size: 16px;
Expand Down Expand Up @@ -1874,9 +1878,30 @@
/* Ajax - Liste deroulante de l'autocompletion */
/* ============================================================================== */

.ui-widget { font-family: Verdana,Arial,sans-serif; font-size: 0.9em; }
.ui-autocomplete-loading { background: white url(<?php echo dol_buildpath($path.'/theme/'.$theme.'/img/working.gif',1); ?>) right center no-repeat; }

.ui-autocomplete {
position:absolute;
width:auto;
font-size: 1.0em;
background-color:white;
border:1px solid #888;
margin:0px;
padding:0px;
}
.ui-autocomplete ul {
list-style-type:none;
margin:0px;
padding:0px;
}
.ui-autocomplete ul li.selected { background-color: #D3E5EC;}
.ui-autocomplete ul li {
list-style-type:none;
display:block;
margin:0;
padding:2px;
height:18px;
cursor:pointer;
}

/* ============================================================================== */
/* jQuery - jeditable */
Expand Down Expand Up @@ -2051,9 +2076,22 @@
line-height:1.5;
zoom:1;
font-weight: normal;
font-family:Verdana,Arial,sans-serif;
font-family:<?php echo $fontlist; ?>;
font-size:1em;
}
.ui-widget {
font-family:<?php echo $fontlist; ?>;
font-size:<?php echo $fontsize; ?>px;
}
.ui-button { margin-left: -1px; }
.ui-button-icon-only .ui-button-text { height: 8px; }
.ui-button-icon-only .ui-button-text, .ui-button-icons-only .ui-button-text { padding: 2px 0px 6px 0px; }
.ui-button-text
{
line-height: 1em !important;
}
.ui-autocomplete-input { margin: 0; padding: 1px; }


table.noborder {
margin-bottom: 10px;
Expand Down Expand Up @@ -2351,7 +2389,7 @@
/* Core Styles */
.ecmjqft LI.directory { font-weight:normal; background: url(<?php echo dol_buildpath($path.'/theme/common/treemenu/folder2.png',1); ?>) left top no-repeat; }
.ecmjqft LI.expanded { font-weight:normal; background: url(<?php echo dol_buildpath($path.'/theme/common/treemenu/folder2-expanded.png',1); ?>) left top no-repeat; }
.ecmjqft LI.wait { font-weight:normal; background: url(<?php echo dol_buildpath('/theme/eldy/img/working.gif',1); ?>) left top no-repeat; }
.ecmjqft LI.wait { font-weight:normal; background: url(<?php echo dol_buildpath('/theme/'.$theme.'/img/working.gif',1); ?>) left top no-repeat; }


/* ============================================================================== */
Expand Down Expand Up @@ -2379,6 +2417,9 @@
li.ui-li-divider .ui-link {
color: #FFF !important;
}
.ui-btn {
margin: 0.1em 2px
}
a.ui-link, a.ui-link:hover, .ui-btn:hover, span.ui-btn-text:hover, span.ui-btn-inner:hover {
text-decoration: none !important;
}
Expand All @@ -2391,6 +2432,10 @@
.ui-select .ui-btn-icon-right .ui-btn-inner {
padding-right: 36px;
}
.ui-select .ui-btn-icon-left .ui-btn-inner {
padding-left: 36px;
}

.fiche .ui-controlgroup {
margin: 0px;
padding-bottom: 0px;
Expand Down Expand Up @@ -2452,6 +2497,12 @@
padding-bottom: 10px; margin-bottom: 4px; border-bottom: 1px solid #AAAAAA !important;
}

ul.ulmenu {
border-radius: 0;
-webkit-border-radius: 0;
}


<?php
if (is_object($db)) $db->close();
?>
12 changes: 12 additions & 0 deletions htdocs/theme/cameleo/style.css.php
Expand Up @@ -2303,6 +2303,9 @@
li.ui-li-divider .ui-link {
color: #FFF !important;
}
.ui-btn {
margin: 0.1em 2px
}
a.ui-link, a.ui-link:hover, .ui-btn:hover, span.ui-btn-text:hover, span.ui-btn-inner:hover {
text-decoration: none !important;
}
Expand All @@ -2319,6 +2322,10 @@
.ui-select .ui-btn-icon-right .ui-btn-inner {
padding-right: 36px;
}
.ui-select .ui-btn-icon-left .ui-btn-inner {
padding-left: 36px;
}

.fiche .ui-controlgroup {
margin: 0px;
padding-bottom: 0px;
Expand Down Expand Up @@ -2380,6 +2387,11 @@
padding-bottom: 10px; margin-bottom: 4px; border-bottom: 1px solid #AAAAAA !important;
}

ul.ulmenu {
border-radius: 0;
-webkit-border-radius: 0;
}


<?php
if (is_object($db)) $db->close();
Expand Down
19 changes: 14 additions & 5 deletions htdocs/theme/eldy/style.css.php
Expand Up @@ -1107,9 +1107,6 @@
padding: 0 4px 0 4px !important;
}

.toolbar {
height: 34px !important;
}

a.toolbarbutton {
margin-top: 0px;
Expand Down Expand Up @@ -2623,7 +2620,7 @@
color: #FFF !important;
}
.ui-btn {
margin: 0.2em 4px
margin: 0.1em 2px
}
a.ui-link, a.ui-link:hover, .ui-btn:hover, span.ui-btn-text:hover, span.ui-btn-inner:hover {
text-decoration: none !important;
Expand All @@ -2641,9 +2638,15 @@
.ui-btn-icon-right .ui-btn-inner {
padding-right: 34px;
}
.ui-btn-icon-left .ui-btn-inner {
padding-left: 34px;
}
.ui-select .ui-btn-icon-right .ui-btn-inner {
padding-right: 38px;
}
.ui-select .ui-btn-icon-left .ui-btn-inner {
padding-left: 38px;
}
.fiche .ui-controlgroup {
margin: 0px;
padding-bottom: 0px;
Expand All @@ -2657,8 +2660,13 @@
-moz-box-shadow: 0 -3px 6px rgba(0,0,0,.2);
-webkit-box-shadow: 0 -3px 6px rgba(0,0,0,.2);
box-shadow: 0 -3px 6px rgba(0,0,0,.2);
border: none;
}
div.ui-controlgroup-controls div.tabsElem a#active {
-moz-box-shadow: 0 -3px 6px rgba(0,0,0,.3);
-webkit-box-shadow: 0 -3px 6px rgba(0,0,0,.3);
box-shadow: 0 -3px 6px rgba(0,0,0,.3);
}

a.tab span.ui-btn-inner
{
border: none;
Expand Down Expand Up @@ -2710,6 +2718,7 @@
-webkit-border-radius: 0;
}


<?php
if (is_object($db)) $db->close();
?>

0 comments on commit b477272

Please sign in to comment.