summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnika Henke <a.c.henke@arcor.de>2006-02-19 01:19:44 +0100
committerAnika Henke <a.c.henke@arcor.de>2006-02-19 01:19:44 +0100
commitfa24fadb723ff7b496ac3b0d2811a0aa7a541200 (patch)
tree1b1236ca6962e440d132c98b5d005e6ad1124263
parent444b87a537c5206baab35c5a59f0902df114b6a1 (diff)
downloadrpg-fa24fadb723ff7b496ac3b0d2811a0aa7a541200.tar.gz
rpg-fa24fadb723ff7b496ac3b0d2811a0aa7a541200.tar.bz2
another try on styling the edit bar
darcs-hash:20060219001944-d5083-ccf6932ab2878183e116524f45eec31f78ac422c.gz
-rw-r--r--inc/html.php16
-rw-r--r--lib/tpl/default/design.css13
2 files changed, 21 insertions, 8 deletions
diff --git a/inc/html.php b/inc/html.php
index 46336b68d..1d5ffeebb 100644
--- a/inc/html.php
+++ b/inc/html.php
@@ -1021,16 +1021,18 @@ function html_edit($text=null,$include='edit'){ //FIXME: include needed?
<div id="wikieditbar">
<div id="sizectl"></div>
<?php if($wr){?>
- <input class="button" id="edbtn_save" type="submit" name="do" value="<?php echo $lang['btn_save']?>" accesskey="s" title="[ALT+S]" tabindex="4" />
- <input class="button" id="edbtn_preview" type="submit" name="do" value="<?php echo $lang['btn_preview']?>" accesskey="p" title="[ALT+P]" tabindex="5" />
- <input class="button" type="submit" name="do" value="<?php echo $lang['btn_cancel']?>" tabindex="5" />
+ <div class="editButtons">
+ <input class="button" id="edbtn_save" type="submit" name="do" value="<?php echo $lang['btn_save']?>" accesskey="s" title="[ALT+S]" tabindex="4" />
+ <input class="button" id="edbtn_preview" type="submit" name="do" value="<?php echo $lang['btn_preview']?>" accesskey="p" title="[ALT+P]" tabindex="5" />
+ <input class="button" type="submit" name="do" value="<?php echo $lang['btn_cancel']?>" tabindex="5" />
+ </div>
<?php } ?>
<?php if($wr){ ?>
- <span class="summary">
- <label for="summary"><?php echo $lang['summary']?>:</label>
+ <div class="summary">
+ <label for="summary" class="nowrap"><?php echo $lang['summary']?>:</label>
<input type="text" class="edit" name="summary" id="summary" size="50" value="<?php echo formText($SUM)?>" tabindex="2" />
<?php html_minoredit()?>
- </span>
+ </div>
<?php }?>
</div>
</div></form>
@@ -1060,10 +1062,12 @@ function html_minoredit(){
if($_REQUEST['minor']) $p['checked']='checked';
$att = buildAttributes($p);
+ print '<span class="nowrap">';
print "<input $att />";
print '<label for="minoredit">';
print $lang['minoredit'];
print '</label>';
+ print '</span>';
}
/**
diff --git a/lib/tpl/default/design.css b/lib/tpl/default/design.css
index 9462e6c52..cbd11abe9 100644
--- a/lib/tpl/default/design.css
+++ b/lib/tpl/default/design.css
@@ -116,13 +116,22 @@ input.missing {
/* edit form */
div.toolbar, div#wikieditbar {
margin:2px 0;
+ text-align: left;
}
div#sizectl {
float:right;
width:50px;
}
-div#wikieditbar span.summary {
- margin-left: 10%;
+div#wikieditbar div.editButtons {
+ width: 32%;
+ float: left;
+}
+div#wikieditbar div.summary {
+ width: 60%;
+ float: right;
+}
+.nowrap {
+ white-space:nowrap;
}
/* --------- buttons ------------------- */