r22479 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r22478‎ | r22479 | r22480 >
Date:21:46, 27 May 2007
Author:david
Status:old
Tags:
Comment:
cosmetic changes
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
@@ -41,6 +41,11 @@
4242 display: none;
4343 }
4444
 45+h1.lqt_header {
 46+
 47+ font-size: 150%; /* same as h2 normally is */
 48+}
 49+
4550 .lqt_thread {
4651 // display: none;
4752 }
@@ -78,14 +83,14 @@
7984 background-color: white;
8085 }
8186
82 -.lqt_post { border: solid 0px #ddd; margin-top: 0.1in; padding: 0.2em; }
 87+.lqt_post { border: solid 0px #ddd; margin-bottom: 0em; padding: 0 0 0.5em 0; }
8388
8489 .lqt_post_highlight { border: solid 1px #fabd23; margin-top: 0.1in; padding: 0.2em; }
8590
8691 .lqt_replies { margin-left: 0.25in; }
8792
8893 .lqt_footer {
89 - margin: 0.5em 0 0em 0 ;
 94+ margin: 0em 0 0em 0 ;
9095 font-size: smaller;
9196 color: #777;
9297 }
@@ -94,10 +99,16 @@
95100 display: inline;
96101 list-style-type: none;
97102 padding-right: 0.6em;
 103+ border-bottom: solid 1px #ddd;
98104 }
99105
100 -.lqt_topic_field {
101 - margin-top: 0.5em;
 106+/*.lqt_footer > li:first-child {
 107+ border-left: solid 1px #ddd;
 108+ padding-left: 2pt;
 109+}*/
 110+
 111+#lqt_subject_field {
 112+ margin-top: 0.7em;
102113 margin-bottom: 0.5em;
103114 }
104115
Index: branches/liquidthreads/extensions/LqtExtension.php
@@ -254,7 +254,7 @@
255255
256256 function showThreadHeading( $thread ) {
257257 if ( $thread->hasSubject() )
258 - $this->output->addHTML( wfElement( "h{$this->headerLevel}", null, $thread->subject() ) );
 258+ $this->output->addHTML( wfElement( "h{$this->headerLevel}", array('class'=>'lqt_header'), $thread->subject() ) );
259259 }
260260
261261 function showThread( $thread ) {
@@ -286,7 +286,7 @@
287287 if( $this->request->getBool('lqt_new_thread_form') ) {
288288 $this->showNewThreadForm();
289289 } else {
290 - $this->output->addHTML("<a href=\"{$this->title->getFullURL('lqt_new_thread_form=1')}\">Start a Discussion</a>");
 290+ $this->output->addHTML("<strong><a href=\"{$this->title->getFullURL('lqt_new_thread_form=1')}\">Start a Discussion</a></strong>");
291291 }
292292 $threads = Thread::allThreadsOfArticle($this->article);
293293 foreach($threads as $t) {