From 0c6b58a847e74cc5f51616e9a6f71935806dece0 Mon Sep 17 00:00:00 2001 From: Andreas Gohr Date: Sat, 21 Jan 2006 13:14:35 +0100 Subject: removed graphical list bullet Unordered lists used a graphic for the list bullet. Using the same technique as in the ordered lists we don't need an image just to have the color. This has two advantages: 1. The list bullets still have the correct color when colors are adjusted in style.ini 2. List bullets grow and shrink correctly with the fontsize It has a disadvantage as well: All list items need to be marked up like this:
  • '; - print '
  • '.$lang['lockedby'].': '.$INFO['locked'].'
  • '; - print '
  • '.$lang['lockexpire'].': '.$expire.' ('.$min.' min)
  • '; + print '
  • '.$lang['lockedby'].': '.$INFO['locked'].'
  • '; + print '
  • '.$lang['lockexpire'].': '.$expire.' ('.$min.' min)
  • '; print ''; } @@ -416,6 +416,7 @@ function html_revisions(){ print ''; @@ -494,6 +498,7 @@ function html_recent($first=0){ foreach($recents as $recent){ $date = date($conf['dformat'],$recent['date']); print ($recent['minor']) ? '
  • ' : '
  • '; + print '
    '; print $date.' '; @@ -532,6 +537,7 @@ function html_recent($first=0){ } print ''; + print '
    '; print '
  • '; } print ''; @@ -669,9 +675,9 @@ function html_buildlist($data,$class,$func,$lifunc='html_li_default'){ //print item $ret .= $lifunc($item); //user function - $ret .= ''; + $ret .= '
    '; $ret .= $func($item); //user function - $ret .= ''; + $ret .= '
    '; } //close remaining items and lists @@ -698,9 +704,9 @@ function html_backlinks(){ print '
      '; foreach($data as $blink){ - print '
    • '; + print '
    • '; print html_wikilink(':'.$blink,$conf['useheading']?NULL:$blink); - print '
    • '; + print ''; } print '
    '; } @@ -1144,12 +1150,12 @@ function html_admin(){ foreach ($menu as $item) { if (!$item['prompt']) continue; - ptln('
  • '.$item['prompt'].'
  • '); + ptln('
  • '); } // add in non-plugin functions if (!$conf['openregister']){ - ptln('
  • '.$lang['admin_register'].'
  • '); + ptln('
  • '); } ptln(''); diff --git a/inc/template.php b/inc/template.php index 636fcfca3..315373e21 100644 --- a/inc/template.php +++ b/inc/template.php @@ -678,7 +678,7 @@ function tpl_mediafilelist(){ $class .= ' class="mediafile mf_'.$class.'"'; } - ptln('
  • ',4); + ptln('
  • ',4); ptln(''. utf8_decodeFN($item['file']). '',6); @@ -749,7 +749,7 @@ function tpl_mediafilelist(){ ptln ('('.filesize_h($item['size']).')',6); ptln($del,6); } - ptln('
  • ',4); + ptln('',4); } ptln('',2); } diff --git a/lib/plugins/info/syntax.php b/lib/plugins/info/syntax.php index 25b2fff45..d5209397f 100644 --- a/lib/plugins/info/syntax.php +++ b/lib/plugins/info/syntax.php @@ -110,7 +110,7 @@ class syntax_plugin_info extends DokuWiki_Syntax_Plugin { if (!$po =& plugin_load('syntax',$p)) continue; $info = $po->getInfo(); - $renderer->doc .= '
  • '; + $renderer->doc .= '
  • '; $renderer->externallink($info['url'],$info['name']); $renderer->doc .= ' '; $renderer->doc .= ''.$info['date'].''; @@ -120,7 +120,7 @@ class syntax_plugin_info extends DokuWiki_Syntax_Plugin { $renderer->emaillink($info['email'],$info['author']); $renderer->doc .= '
    '; $renderer->doc .= strtr(htmlspecialchars($info['desc']),array("\n"=>"
    ")); - $renderer->doc .= '
  • '; + $renderer->doc .= ''; unset($po); } diff --git a/lib/plugins/plugin/admin.php b/lib/plugins/plugin/admin.php index cffcf8057..0f25cbc85 100644 --- a/lib/plugins/plugin/admin.php +++ b/lib/plugins/plugin/admin.php @@ -388,7 +388,7 @@ class ap_manage { ptln('

    '.$this->lang['downloads'].'

    '); ptln(''); } else { // none found in download @@ -546,7 +546,7 @@ class ap_manage { ptln('

    '.$this->lang['updates'].'

    '); ptln(''); } else { // none found in download diff --git a/lib/tpl/default/design.css b/lib/tpl/default/design.css index d9f0a2307..f7055ddf9 100644 --- a/lib/tpl/default/design.css +++ b/lib/tpl/default/design.css @@ -369,7 +369,8 @@ ul { list-style-type: square; margin: 0 0 0.5em 1.5em; padding: 0; - list-style-image: url(images/bullet.gif); + color: __darker__; + list-style-image: none; } /* ordered lists */ @@ -379,10 +380,10 @@ ol { padding: 0; color: __darker__; font-weight: bold; - list-style-image: none; + list-style-image: none; } -/* the list items overriding the ol definition */ +/* the list items overriding the ul/ol definition */ .li { color: __black__; font-weight: normal; @@ -395,10 +396,12 @@ ol ol ol ol {list-style-type: lower-greek} li.open { list-style-image: url(images/open.gif); + /*list-style-type: circle;*/ } li.closed { list-style-image: url(images/closed.gif); + /*list-style-type: disc;*/ } blockquote { @@ -493,9 +496,6 @@ div.tocheader { margin-bottom: 2px; } -div.toctoggle { -} - div.tocheader img { width:0.8em; height:0.8em; diff --git a/lib/tpl/default/layout.css b/lib/tpl/default/layout.css index 2f1386256..d541fa2f9 100644 --- a/lib/tpl/default/layout.css +++ b/lib/tpl/default/layout.css @@ -5,7 +5,6 @@ * @author moraes */ - /* -------------- top row --------------- */ .header { height:35px; -- cgit v1.2.3