From a8998763b3b7bcf3efdb538da290e41223af54dc Mon Sep 17 00:00:00 2001 From: io <> Date: Sat, 29 Jan 2005 05:13:54 +0000 Subject: [PATCH] css improved - not finished --- ezmlm-web/trunk/TODO | 2 + ezmlm-web/trunk/css/default.css | 72 +++++++++++++-------------------- ezmlm-web/trunk/ezmlm-web.cgi | 32 +++++++-------- 3 files changed, 47 insertions(+), 59 deletions(-) diff --git a/ezmlm-web/trunk/TODO b/ezmlm-web/trunk/TODO index a09d11f..3e60c10 100644 --- a/ezmlm-web/trunk/TODO +++ b/ezmlm-web/trunk/TODO @@ -6,3 +6,5 @@ TODO - ezmlm-web 2.2 - Some nice install method. But then I use FreeBSD and ported it so that might just count as my nice install method :) - Option for a css-stylesheet + - migrate header and footer in ezmlmwebrc to css + - improve css-design diff --git a/ezmlm-web/trunk/css/default.css b/ezmlm-web/trunk/css/default.css index ff52259..2311365 100644 --- a/ezmlm-web/trunk/css/default.css +++ b/ezmlm-web/trunk/css/default.css @@ -19,43 +19,8 @@ a:visited { color: #8888ff; } -strong.big { - font-size: large; - } -font.helper { - font-size: -1; - } - -.center { - text-align: center; - } - -table { - margin-left: auto; - margin-right: auto; - } - -table.left { - margin-left: 0px; - } - -table hr { - text-align: center; - width: 25%; - } - -table.big-pad td { - padding: 10px; - } - - -table.small-pad td { - padding: 5px; - } - - -/*********************** general **************************/ +/*********************** general ************************** used classes for containers: title - heading of most pages (except main) @@ -86,18 +51,30 @@ div.container { div.add_remove span.button { width: auto; margin-top: 0px; + margin-right: auto; } div.add_remove span.formfield { width: auto; margin: 0px; + margin-right: auto; padding: 0px; } +div.add_remove span.formfield:before { + content: attr("
"); + } + div.list { - padding: 10px; + margin: 1%; + margin-right: 3%; text-align: center; float: left; + margin-bottom: auto; + } + +div.question { + text-align: center; } p.warning { @@ -107,7 +84,16 @@ p.warning { } span.help { - font-size: -1; + font-size: small; + } + +span.button { + margin-left: 3px; + margin-right: 3px; + } + +span.formfield { + margin-right: auto; } /************************ main page *********************** @@ -152,8 +138,8 @@ available classes: title input question ***********************************************************/ #create div.input span.formfield { - text-weight: bold; - text-size: large; + font-weight: bold; + font-size: large; margin-left: 0px; margin-right: auto; } @@ -166,12 +152,12 @@ available classes: title info input question ***********************************************************/ #config div.info { - text-size: large; - text-weight: bold; + font-size: large; + font-weight: bold; } #config div.input span.formfield { - text-weight: bold; + font-weight: bold; margin-left: 0px; margin-right: auto; } diff --git a/ezmlm-web/trunk/ezmlm-web.cgi b/ezmlm-web/trunk/ezmlm-web.cgi index c3e9a65..cd9b18f 100755 --- a/ezmlm-web/trunk/ezmlm-web.cgi +++ b/ezmlm-web/trunk/ezmlm-web.cgi @@ -317,7 +317,7 @@ sub confirm_delete { print $q->hidden(-name=>'state', -default=>'confirm_delete'); print $q->hidden(-name=>'list', -default=>$q->param('list')); - print '
"; + print '
'; print '

', $LANGUAGE{'confirmdelete'}, ' ', $q->param('list'), '

'; print '
'; # end of delete->title @@ -368,10 +368,10 @@ sub display_list { print '
'; # end of edit->list print '
'; - print ($#subscribers + 1), ' ', $LANGUAGE{'subscribers'} if defined(@subscribers); + print '

', ($#subscribers + 1), ' ', $LANGUAGE{'subscribers'}, '

' if defined(@subscribers); print '', $q->submit(-name=>'action', -value=>"[$BUTTON{'deleteaddress'}]"), '' if defined(@subscribers); - print '', $q->textfield(-name=>'addsubscriber', -size=>'40'), ' '; - print '', $q->filefield(-name=>'addfile', -size=>20, -maxlength=>100), ' ' if ($FILE_UPLOAD); + print '', $q->textfield(-name=>'addsubscriber', -size=>'40'), ' '; + print '', $q->filefield(-name=>'addfile', -size=>20, -maxlength=>100), ' ' if ($FILE_UPLOAD); print '', $q->submit(-name=>'action', -value=>"[$BUTTON{'addaddress'}]"), ''; print '
'; # end of edit->add_remove @@ -609,7 +609,7 @@ sub part_subscribers { $divclass = ($remotepath)? 'warning' : 'ok'; $moderated .= "

[$LANGUAGE{'remoteadmin'}]" if($list->isremote); $moderated .= '' if ($remotepath); - $moderated .= '

if ($list->isremote); + $moderated .= '

if ($list->isremote)'; } @@ -622,7 +622,7 @@ sub part_subscribers { # Keep selection box a resonable size - suggested by Sebastian Andersson $scrollsize = 25 if(($scrollsize = $#subscribers + 1) > 25); - # container for the content + # Begin of content print '
'; # Print out a form of options ... @@ -630,7 +630,7 @@ sub part_subscribers { print '
'; print "

$type $LANGUAGE{'for'} $listaddress

"; - print '
': + print '
'; print '
'; # end of parts_title print '
', "$moderated", '
' if(defined($moderated)); @@ -641,7 +641,7 @@ sub part_subscribers { print '
', $q->scrolling_list(-name=>'delsubscriber', -size=>$scrollsize, -values=>\@subscribers, -multiple=>'true', -labels=>&pretty_names), '
' if defined(@subscribers); - print '
': + print '
'; print '', $q->submit(-name=>'action', -value=>"[$BUTTON{'deleteaddress'}]"), '' if defined(@subscribers); print '', $q->textfield(-name=>'addsubscriber', -size=>'40'), ' '; print '', $q->filefield(-name=>'addfile', -size=>20, -maxlength=>100), ' ' if ($FILE_UPLOAD); @@ -683,7 +683,7 @@ sub allow_create_list { print '
'; print '

', $LANGUAGE{'createnew'}, '

'; - print '; + print '
'; print '
'; # end of create->title print $q->startform; @@ -691,7 +691,7 @@ sub allow_create_list { print '
'; print '', $LANGUAGE{'listname'}, ': ', $q->textfield(-name=>'list', -size=>'20'), ' '; - print '', $LANGUAGE{'listaddress'}, ': ', $q->textfield(-name=>'inlocal', -default=>$username, -size=>'10')'; + print '', $LANGUAGE{'listaddress'}, ': ', $q->textfield(-name=>'inlocal', -default=>$username, -size=>'10'); print ' @ ', $q->textfield(-name=>'inhost', -default=>$hostname, -size=>'30'), ' '; print '', $LANGUAGE{'listoptions'}, ':'; @@ -741,7 +741,7 @@ sub create_list { # Sanity Checks ... return 1 if ($listname eq '' || $qmail eq ''); if(-e ("$LIST_DIR/$listname/lock") || -e ("$HOME_DIR/.qmail-$qmail")) { - print "

List '$listname' already exists :(

"; + print '

', "List '$listname' already exists :(

"; return 1; } @@ -798,7 +798,7 @@ sub list_config { $listaddress = &this_listaddress; # Begin of content - print '
'; + print '
'; # Print a form of options ... $q->delete_all; @@ -953,7 +953,7 @@ sub list_text { closedir DIR; # Begin of content - print '
'; + print '
'; # Print a form ... $q->delete('state'); @@ -961,7 +961,7 @@ sub list_text { print $q->hidden(-name=>'state', -default=>'list_text'); print $q->hidden(-name=>'list', -default=>$q->param('list')); - print '
; + print '
'; print $q->scrolling_list(-name=>'file', -values=>\@files); print '
'; # end of textfiles->list @@ -990,7 +990,7 @@ sub edit_text { $content = $list->getpart("text/$Q::file"); # Begin of content - print '
'; + print '
'; # Print a form ... $q->delete('state'); @@ -1086,7 +1086,7 @@ sub display_options { print '

'; foreach $i (grep {/\D/} keys %EZMLM_LABELS) { if ($opts =~ /^\w*$i\w*\s*/) { - print '', $q->checkbox(-name=>$i, -value=>$i, -label=>$EZMLM_LABELS{$i}[0], -on=>'1')'; + print '', $q->checkbox(-name=>$i, -value=>$i, -label=>$EZMLM_LABELS{$i}[0], -on=>'1'); } else { print '', $q->checkbox(-name=>$i, -value=>$i, -label=>$EZMLM_LABELS{$i}[0]); }