Skip to content

Commit

Permalink
"MDL-21943, remove hard-coded style"
Browse files Browse the repository at this point in the history
  • Loading branch information
Dongsheng Cai committed Mar 29, 2010
1 parent 5dce9d1 commit b1d124d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
8 changes: 4 additions & 4 deletions comment/lib.php
Original file line number Diff line number Diff line change
Expand Up @@ -302,7 +302,7 @@ public function output($return = true) {
if (!empty($this->viewcap)) {
// print commenting icon and tooltip
$html = <<<EOD
<div style="text-align:left">
<div class="mdl-left">
<a id="comment-link-{$this->cid}" href="{$this->link}">
<img id="comment-img-{$this->cid}" src="{$CFG->wwwroot}/pix/t/collapsed.png" alt="{$this->linktext}" title="{$this->linktext}" />
<span id="comment-link-text-{$this->cid}">{$this->linktext} {$this->count}</span>
Expand Down Expand Up @@ -342,7 +342,7 @@ public function output($return = true) {
$html .= <<<EOD
</div>
</div>
<div style="clear:both"></div>
<div class="clearer"></div>
EOD;
}

Expand Down Expand Up @@ -441,9 +441,9 @@ public function get_pagination($page = 0) {
for ($p=0; $p<$pages; $p++) {
$extra = '';
if ($p == $page) {
$extra = ' style="border:1px solid grey" ';
$class = ' curpage ';
}
$str .= '<a class="pageno" href="###"'.$extra.' id="comment-page-'.$this->cid.'-'.$p.'">'.($p+1).'</a> ';
$str .= '<a class="pageno '.$class.'" href="###" id="comment-page-'.$this->cid.'-'.$p.'">'.($p+1).'</a> ';
}
$str .= '</div>';
}
Expand Down
3 changes: 2 additions & 1 deletion theme/base/style/core.css
Original file line number Diff line number Diff line change
Expand Up @@ -315,6 +315,7 @@ table.mod_index {width:100%;}
.comment-list li {margin: 2px;margin-bottom:5px;clear:both;}
.comment-paging{text-align:center;}
.comment-paging .pageno{padding: 2px;}
.comment-paging .curpage{border:1px solid grey}
.comment-userpicture {width: 20px;float:left;}
.comment-content {margin-left: 22px;}
.comment-content div {margin:0;padding:0;}
Expand Down Expand Up @@ -507,4 +508,4 @@ body.tag .managelink {padding: 5px;}
/**
* Web Service
*/
#webservice-doc-generator td {text-align: left;border: 0px solid black;}
#webservice-doc-generator td {text-align: left;border: 0px solid black;}

0 comments on commit b1d124d

Please sign in to comment.