openrat-cms

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs

commit 11c6078ed3bab74d3f60e04c122fa96392d42283
parent 9b9d38f7c9127e049742cdf8d316e67498b787b2
Author: dankert <devnull@localhost>
Date:   Sun,  7 Feb 2010 23:39:54 +0100

Bessers CSS für Menü-Leisten und Titel.

Diffstat:
themes/default/css/default.css | 70+++++++++++++++++++++++++++++++++++++++++++++++++++++++---------------
themes/default/include/html/window.inc.php | 15++++++++-------
themes/default/templates/mainmenu/show.tpl.src.php | 37++++++++++++++++++-------------------
themes/default/templates/treetitle/show.tpl.src.php | 31+++++++++++++++++--------------
4 files changed, 98 insertions(+), 55 deletions(-)

diff --git a/themes/default/css/default.css b/themes/default/css/default.css @@ -30,6 +30,16 @@ Created for a smooth and useful user interface. */ +/* reset.css */ +html, body, div, span, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, abbr, acronym, address, code, del, dfn, em, img, q, dl, dt, dd, ol, ul, li, fieldset, form, label, legend, table, caption, tbody, tfoot, thead, tr, th, td {margin:0;padding:0;border:0;font-weight:inherit;font-style:inherit;font-size:100%;font-family:inherit;vertical-align:baseline;} +body {line-height:1.5;} +table {border-collapse:separate;border-spacing:0;} +caption, th, td {text-align:left;font-weight:normal;} +table, td, th {vertical-align:middle;} +blockquote:before, blockquote:after, q:before, q:after {content:"";} +blockquote, q {quotes:"" "";} +a img {border:none;} + a:link, a:visited { @@ -184,27 +194,32 @@ body.tree tr.active } */ -form +body.main tr.menu table.menu td.action:hover, +body.menu tr.menu td table tr td.action:hover { - margin:0px; - padding:0px; - + background-color:white; } +body.menu tr.menu, +body.main tr.menu +{ background-color:#cac2a6; vertical-align:middle;} -pre -{ - font-family:Courier; - font-size:13px; -} +body.menu tr.menu td table tr td, +body.main tr.menu td table tr td +{ padding:4px; padding-right:6px;padding-left:6px; width:30px; white-space:nowrap;} -small +body.menu tr.menu table { width:50px;} + +/* Inaktive Menuepunkte werden ausgegraut */ +body.menu tr.menu td table tr td.noaction, +body.main tr.menu td table tr td.noaction { color:gray; } -td.menu span.title +body.menu tr.title span.title, +body.main tr.title span.title { color:white; font-family:Arial; @@ -212,11 +227,31 @@ td.menu span.title font-weight:bold; text-shadow:#cac2a6 2px 1px 3px; } -td.subaction span.menu_disabled + + + +form +{ + margin:0px; + padding:0px; + +} + + +pre +{ + font-family:Courier; + font-size:13px; +} + +small { color:gray; } + + + td.subaction span.accesskey { text-decoration:underline; @@ -282,12 +317,17 @@ tr.diff td.notequal -td.menu { background-color:#7B9CBD;vertical-align:middle; height:30px;} + +body.menu tr.title td, +body.main tr.title td +{ background-color:#7B9CBD;vertical-align:middle; padding:4px; height:30px;} + td.message { padding:10px; font-weight:bold; } td.title { font-family:Verdana,Arial,Helvetica,sans-serif; font-size:11px; } td.submenu { border-bottom:solid 1px black; background-color:#cac2a6; } -td.subaction { background-color:#cac2a6; } - +td.subaction { background-color:#cac2a6; vertical-align:middle; padding:4px;} +table.main td.window td { padding:2px;} +table.main td.window td.logo { padding:10px;} table.main td.act { background-color:#eae2c6; diff --git a/themes/default/include/html/window.inc.php b/themes/default/include/html/window.inc.php @@ -27,7 +27,7 @@ if (!@$conf['interface']['application_mode'] ) { - echo '<tr><td class="menu">'; + echo '<tr class="title"><td>'; echo '<img src="'.$image_dir.'icon_'.$actionName.IMG_ICON_EXT.'" align="left" border="0">'; if ($this->isEditable()) { ?> @@ -67,8 +67,8 @@ ?> </td>--> </tr> - <tr><td class="subaction"> - + <tr class="menu"><td> + <table class="menu"><tr> <?php if ( !isset($windowMenu) || !is_array($windowMenu) ) $windowMenu = array(); foreach( $windowMenu as $menu ) @@ -81,18 +81,19 @@ if ( isset($menu['url']) ) { - ?><a href="<?php echo Html::url($actionName,$menu['subaction'],$this->getRequestId() ) ?>" accesskey="<?php echo $tmp_key ?>" title="<?php echo langHtml($menu['text'].'_DESC') ?>" class="menu<?php echo $this->subActionName==$menu['subaction']?'_highlight':'' ?>"><?php echo $tmp_text ?></a>&nbsp;&nbsp;&nbsp;<?php + ?><td class="action"><a href="<?php echo Html::url($actionName,$menu['subaction'],$this->getRequestId() ) ?>" accesskey="<?php echo $tmp_key ?>" title="<?php echo langHtml($menu['text'].'_DESC') ?>" class="menu<?php echo $this->subActionName==$menu['subaction']?'_highlight':'' ?>"><?php echo $tmp_text ?></a></td><?php } else { - ?><span class="menu_disabled" title="<?php echo langHtml($menu['text'].'_DESC') ?>" class="menu_disabled"><?php echo $tmp_text ?></span>&nbsp;&nbsp;&nbsp;<?php + ?><td class="noaction"><?php echo $tmp_text ?></td><?php } } if (@$conf['help']['enabled'] ) { - ?><a href="<?php echo $conf['help']['url'].$actionName.'/'.$subActionName.@$conf['help']['suffix'] ?> " target="_new" title="<?php echo langHtml('MENU_HELP_DESC') ?>" class="menu" style="cursor:help;"><?php echo @$conf['help']['only_question_mark']?'?':langHtml('MENU_HELP') ?></a><?php + ?><td><a href="<?php echo $conf['help']['url'].$actionName.'/'.$subActionName.@$conf['help']['suffix'] ?> " target="_new" title="<?php echo langHtml('MENU_HELP_DESC') ?>" class="menu" style="cursor:help;"><?php echo @$conf['help']['only_question_mark']?'?':langHtml('MENU_HELP') ?></a></td><?php } - ?></td> + ?> + </tr></table></td> </tr> <?php if (isset($notices) && count($notices)>0 ) diff --git a/themes/default/templates/mainmenu/show.tpl.src.php b/themes/default/templates/mainmenu/show.tpl.src.php @@ -1,9 +1,9 @@ page class:menu - table padding:5 space:0 width:100% rowclasses:a,b columnclasses:a,b + table padding:5 space:0 width:100% if true:!config:interface/application_mode - row - cell class:menu + row class:title + cell if not:true value:var:type equals:empty image type:var:type @@ -26,19 +26,18 @@ page class:menu // link url:var:url target:_top // image type:var:type align:middle - row - cell class:subaction colspan:2 - - # Schleife �ber alle Men�punkte - list list:windowMenu extract:true value:xy - - if not:true empty:url - # Men�punkt - link url:var:url target:cms_main_main title:messagevar:title accesskey:var:key class:menu - text textvar:text accesskey:var:key - if empty:url - text textvar:text class:menu_disabled - - # Trenner zwischen Men�punkten - text raw:__ - text raw:_ + row class:menu + cell colspan:2 + table class:submenu + row + # Schleife �ber alle Men�punkte + list list:windowMenu extract:true value:xy + if not:true empty:url + # Menuepunkt + cell class:action + link url:var:url target:cms_main_main title:messagevar:title accesskey:var:key + text key:var:text accesskey:var:key + else + cell class:noaction + text key:var:text + diff --git a/themes/default/templates/treetitle/show.tpl.src.php b/themes/default/templates/treetitle/show.tpl.src.php @@ -2,8 +2,8 @@ page class:menu table padding:5 space:0 width:100% if true:!config:interface/application_mode - row - cell class:menu + row class:title + cell image type:var:type list list:path extract:true value:xy @@ -13,15 +13,18 @@ page class:menu char type:filesep text var:text title:var:text class:title maxlength:20 - row - # Men�leiste - cell class:subaction - # Schleife �ber alle Men�punkte - list list:windowMenu extract:true - if not: empty:url - link url:var:url title:messagevar:title target:_parent accesskey:messagevar:key class:menu - text key:var:text accesskey:messagevar:key - else - text key:var:text class:menu_disabled accesskey:messagevar:key - text raw:__ - set var:url value: + row class:menu + # Menueleiste + cell + table class:submenu + row + # Schleife ueber alle Menuepunkte + list list:windowMenu extract:true + if not: empty:url + cell class:action + link url:var:url title:messagevar:title target:_parent accesskey:messagevar:key class:menu + text key:var:text accesskey:messagevar:key + else + cell class:noaction + text key:var:text accesskey:messagevar:key + set var:url value: