From: cajus Date: Mon, 1 Mar 2010 08:09:19 +0000 (+0000) Subject: Updated styles X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=0b9deba73d585d90b9dddb0ae997345f290ebc68;p=gosa.git Updated styles git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@15777 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/gosa-core/html/themes/modern/style.css b/gosa-core/html/themes/modern/style.css index d3fff133e..947318d10 100644 --- a/gosa-core/html/themes/modern/style.css +++ b/gosa-core/html/themes/modern/style.css @@ -69,7 +69,6 @@ color:#000; background-color:#DDD; } - h1, h2, h3 { margin-top:2px; } @@ -79,6 +78,20 @@ h3 { font-weight:bold; } +div.img{ + background-color:transparent; + background-repeat:no-repeat; + position:relative; +} + +div.img div { + background-color:transparent; + background-repeat:no-repeat; + bottom:0; + right:0; + position:absolute; +} + /* Title bar definitions */ @@ -517,7 +530,6 @@ fieldset textarea:hover{ .icon-menu-item div.img{ float:left; - position:relative; } .icon-menu-item div.dsc{ diff --git a/gosa-core/ihtml/themes/modern/headers.tpl b/gosa-core/ihtml/themes/modern/headers.tpl index b741938e7..c40aabccc 100644 --- a/gosa-core/ihtml/themes/modern/headers.tpl +++ b/gosa-core/ihtml/themes/modern/headers.tpl @@ -28,15 +28,11 @@ diff --git a/gosa-core/include/class_pluglist.inc b/gosa-core/include/class_pluglist.inc index 6e1c059a7..8c0bfe39b 100644 --- a/gosa-core/include/class_pluglist.inc +++ b/gosa-core/include/class_pluglist.inc @@ -270,8 +270,7 @@ class pluglist $this->iconmenu.= "\n
"; - /* $this->iconmenu.= "\n ".image($icon); */ - $this->iconmenu.= "\n
"; + $this->iconmenu.= "\n ".image($icon); $this->iconmenu.= "\n
"; $this->iconmenu.= "\n

{$title}

"; $this->iconmenu.= "\n

{$desc}

"; diff --git a/gosa-core/include/functions.inc b/gosa-core/include/functions.inc index fd8252b1f..fc2ff2045 100644 --- a/gosa-core/include/functions.inc +++ b/gosa-core/include/functions.inc @@ -3521,6 +3521,9 @@ function mark($needle, $haystack, $ignorecase= true) /* Return an image description using the path */ function image($path, $label= null) { + global $config; + global $BASE_DIR; + // Bail out, if there's no style file if(!session::global_is_set("img-styles")){ diff --git a/gosa-core/update-gosa b/gosa-core/update-gosa index 0ae8950bb..be1de84a2 100755 --- a/gosa-core/update-gosa +++ b/gosa-core/update-gosa @@ -727,17 +727,17 @@ function rescan_images($path, $theme) imageCopyResampled($dst, $src, $x, $y, 0, 0, $imageWidth, $imageHeight, $imageWidth, $imageHeight); imageDestroy($src); - // Store style + // Eventually overload with grey part if (isset($duplicates[$imagePath])){ $imageHeight= $heights[$duplicates[$imagePath]]; $imageWidth= $widths[$duplicates[$imagePath]]; $x= $posX[$duplicates[$imagePath]]; $y= $posY[$duplicates[$imagePath]]; - $styles[$imagePath]= "background-position:-$x -$y;width:".$imageWidth."px;height:".$imageHeight."px"; - } else { - $styles[$imagePath]= "background-position:-$x -$y;width:".$imageWidth."px;height:".$imageHeight."px"; } + // Store style + $styles[$imagePath]= "background-position:-".$x."px -".$y."px;width:".$imageWidth."px;height:".$imageHeight."px"; + echo "."; flush(); }