r22607 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r22606‎ | r22607 | r22608 >
Date:21:17, 31 May 2007
Author:david
Status:old
Tags:
Comment:
yay, color coding is now pretty.
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
@@ -114,17 +114,17 @@
115115 font-size: smaller;
116116 color: #777;
117117
118 -// padding-left: 0.3em; /* for post colors */
119 -// border-left: 0.3em solid;
 118+ /* for post colors */
 119+/* padding-left: 0.3em;
 120+ border-left: 0.3em solid; */
120121 }
121122
122 -.lqt_post_color_1 { border-left-color: #cd9800; }
123 -.lqt_post_color_2 { border-left-color: #cd0098; }
124 -.lqt_post_color_3 { border-left-color: #98cd00; }
125 -.lqt_post_color_4 { border-left-color: #9800cd; }
126 -.lqt_post_color_5 { border-left-color: #0098cd; }
127 -.lqt_post_color_6 { border-left-color: #00cd98; }
128123
 124+/* color coding with left border: */
 125+/*.lqt_footer > li:first-child {
 126+ border-left: solid 1px #ddd;
 127+ padding-left: 2pt;
 128+}*/
129129
130130 .lqt_footer li {
131131 display: inline;
@@ -133,10 +133,6 @@
134134 border-bottom: solid 1px #ddd;
135135 }
136136
137 -/*.lqt_footer > li:first-child {
138 - border-left: solid 1px #ddd;
139 - padding-left: 2pt;
140 -}*/
141137
142138 #lqt_subject_field {
143139 margin-top: 0.7em;
@@ -206,6 +202,25 @@
207203 }
208204
209205
 206+/* light, background color scheme:
 207+.lqt_post_color_1 a { color: #E0BF96 !important; }
 208+.lqt_post_color_2 a { color: #D2E096 !important; }
 209+.lqt_post_color_3 a { color: #96E0B4 !important; }
 210+.lqt_post_color_4 a { color: #96CCE0 !important; }
 211+.lqt_post_color_5 a { color: #C096E0 !important; }
 212+.lqt_post_color_6 a { color: #E09696 !important; }
 213+*/
 214+
 215+/* bright, forground color scheme: */
 216+.lqt_post_color_1 a { color: #cd9800 !important; }
 217+.lqt_post_color_2 a { color: #cd0098 !important; }
 218+.lqt_post_color_3 a { color: #98cd00 !important; }
 219+.lqt_post_color_4 a { color: #9800cd !important; }
 220+.lqt_post_color_5 a { color: #0098cd !important; }
 221+.lqt_post_color_6 a { color: #00cd98 !important; }
 222+
 223+
 224+
210225 /**
211226 * Stylesheet for screen/projection. All rules not marked media-specific are
212227 * shared with handheld.css and should be updated in tandem. The rules can't
Index: branches/liquidthreads/extensions/LqtExtension.php
@@ -243,9 +243,9 @@
244244 function showThreadFooter( $thread ) {
245245
246246 $color_number = $this->selectNewUserColor( $thread->rootPost()->originalAuthor() );
247 - $this->output->addHTML(wfOpenElement('ul', array('class'=>"lqt_footer lqt_post_color_$color_number" )));
 247+ $this->output->addHTML(wfOpenElement('ul', array('class'=>"lqt_footer" )));
248248
249 - $this->output->addHTML( wfOpenElement( 'li' ) );
 249+ $this->output->addHTML( wfOpenElement( 'li', array('class'=>"lqt_author_sig lqt_post_color_$color_number") ) );
250250 $p = new Parser(); $sig = $p->getUserSig( $thread->rootPost()->originalAuthor() );
251251 $this->output->addWikitext( $sig, false );
252252 $this->output->addHTML( wfCloseElement( 'li' ) );