Moved a bunch of inline styles to the stylesheets.

This commit is contained in:
defacer 2005-03-02 19:47:04 +00:00
parent 2ad1c3ff06
commit 96803c8810
3 changed files with 21 additions and 8 deletions

View File

@ -259,7 +259,7 @@ class block_base {
$this->str->configure = get_string('configuration');
}
$movebuttons = '<div style="float: right; font-size: 0.75em; margin-top: 0.3em;">';
$movebuttons = '<div class="commands">';
if ($this->instance->visible) {
$icon = '/t/hide.gif';
@ -272,31 +272,31 @@ class block_base {
$page = page_create_object($this->instance->pagetype, $this->instance->pageid);
$script = $page->url_get_full(array('instanceid' => $this->instance->id, 'sesskey' => $USER->sesskey));
$movebuttons .= '<a style="margin-right: 6px; margin-left: 2px;" title="'. $title .'" href="'.$script.'&amp;blockaction=toggle">' .
$movebuttons .= '<a style="margin-right: 6px;" title="'. $title .'" href="'.$script.'&amp;blockaction=toggle">' .
'<img src="'. $CFG->pixpath.$icon .'" alt="'.$title.'" /></a>';
if ($options & BLOCK_CONFIGURE) {
$movebuttons .= '<a style="margin-right: 6px; margin-left: 2px;" title="'. $this->str->configure .'" href="'.$script.'&amp;blockaction=config">' .
$movebuttons .= '<a style="margin-right: 6px;" title="'. $this->str->configure .'" href="'.$script.'&amp;blockaction=config">' .
'<img src="'. $CFG->pixpath .'/t/edit.gif" alt="'. $this->str->configure .'" /></a>';
}
$movebuttons .= '<a style="margin-right: 2px; margin-left: 2px;" title="'. $this->str->delete .'" href="'.$script.'&amp;blockaction=delete">' .
$movebuttons .= '<a title="'. $this->str->delete .'" href="'.$script.'&amp;blockaction=delete">' .
'<img src="'. $CFG->pixpath .'/t/delete.gif" alt="'. $this->str->delete .'" /></a> ';
if ($options & BLOCK_MOVE_LEFT) {
$movebuttons .= '<a style="margin-right: 2px; margin-left: 2px;" title="'. $this->str->moveleft .'" href="'.$script.'&amp;blockaction=moveleft">' .
$movebuttons .= '<a title="'. $this->str->moveleft .'" href="'.$script.'&amp;blockaction=moveleft">' .
'<img src="'. $CFG->pixpath .'/t/left.gif" alt="'. $this->str->moveleft .'" /></a>';
}
if ($options & BLOCK_MOVE_UP) {
$movebuttons .= '<a style="margin-right: 2px; margin-left: 2px;" title="'. $this->str->moveup .'" href="'.$script.'&amp;blockaction=moveup">' .
$movebuttons .= '<a title="'. $this->str->moveup .'" href="'.$script.'&amp;blockaction=moveup">' .
'<img src="'. $CFG->pixpath .'/t/up.gif" alt="'. $this->str->moveup .'" /></a>';
}
if ($options & BLOCK_MOVE_DOWN) {
$movebuttons .= '<a style="margin-right: 2px; margin-left: 2px;" title="'. $this->str->movedown .'" href="'.$script.'&amp;blockaction=movedown">' .
$movebuttons .= '<a title="'. $this->str->movedown .'" href="'.$script.'&amp;blockaction=movedown">' .
'<img src="'. $CFG->pixpath .'/t/down.gif" alt="'. $this->str->movedown .'" /></a>';
}
if ($options & BLOCK_MOVE_RIGHT) {
$movebuttons .= '<a style="margin-right: 2px; margin-left: 2px;" title="'. $this->str->moveright .'" href="'.$script.'&amp;blockaction=moveright">' .
$movebuttons .= '<a title="'. $this->str->moveright .'" href="'.$script.'&amp;blockaction=moveright">' .
'<img src="'. $CFG->pixpath .'/t/right.gif" alt="'. $this->str->moveright .'" /></a>';
}

View File

@ -395,6 +395,10 @@ table.calendar-controls .next {
text-align: left;
}
.sideblock .sideblockheading .commands {
font-size: 0.75em;
}
.sideblock .footer {
font-size:0.75em;
text-align:center;

View File

@ -821,6 +821,15 @@ table.calendar-controls .next
margin-top:0.25em;
}
.sideblock .sideblockheading .commands {
float: right;
margin-top: 0.3em;
}
.sideblock .sideblockheading .commands a {
margin: 0px 2px;
}
.sideblockmain {
padding:4px;
}