r24110 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r24109‎ | r24110 | r24111 >
Date:06:42, 15 July 2007
Author:david
Status:old
Tags:
Comment:
cosmetic changes to summaries
Modified paths:
  • /branches/liquidthreads/extensions/LqtExtension.php (modified) (history)
  • /branches/liquidthreads/skins/monobook/main.css (modified) (history)

Diff [purge]

Index: branches/liquidthreads/skins/monobook/main.css
@@ -79,17 +79,22 @@
8080 display: table; /* Occupy only the width of the text, */
8181 width: auto; /* not the entire available width. */
8282
83 - border: 1px solid #ddd;
 83+ border: 1px solid #c0c090;
 84+ background-color: #faeaba;
8485 margin: 1em 0;
8586 padding: .5em 1em;
8687 }
8788 .lqt_summary_notice a { font-weight: bold; }
8889
8990 .lqt_thread_permalink_summary {
 91+margin-right: 5em;
 92+}
 93+.lqt_thread_permalink_summary_body {
 94+ background-color: #eee;
 95+ border: 1px solid #ddd;
9096 clear: both;
91 -/* border: solid 1px #ddd;*/
9297 padding-left: 1em; padding-right: 1em;
93 - margin: 3em 2em 0.7em 1em;
 98+ margin: 2em 1em 1em 1em;
9499 }
95100 .lqt_thread_permalink_summary_title {
96101 float: left;
@@ -98,7 +103,7 @@
99104 }
100105 .lqt_thread_permalink_summary_edit {
101106 float: right;
102 - margin-right: 2em;
 107+ margin-right: 1em;
103108 font-weight: bold;
104109 font-size: smaller;
105110 }
Index: branches/liquidthreads/extensions/LqtExtension.php
@@ -510,6 +510,7 @@
511511 function showSummary($t) {
512512 if ( !$t->summary() ) return;
513513 $this->output->addHTML(<<<HTML
 514+ <div class='lqt_thread_permalink_summary'>
514515 <span class="lqt_thread_permalink_summary_title">
515516 This thread has been summarized as follows:
516517 </span><span class="lqt_thread_permalink_summary_edit">
@@ -517,9 +518,10 @@
518519 </span>
519520 HTML
520521 );
521 - $this->openDiv('lqt_thread_permalink_summary');
 522+ $this->openDiv('lqt_thread_permalink_summary_body');
522523 $this->showPostBody($t->summary());
523524 $this->closeDiv();
 525+ $this->closeDiv();
524526 }
525527
526528 }

Status & tagging log