r85219 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r85218‎ | r85219 | r85220 >
Date:23:16, 2 April 2011
Author:happy-melon
Status:ok
Tags:
Comment:
Tweak the CSS for tags in the WordCloud; #DDD is too light for meaningful text; increase specificity so visited links don't go back to blue; and make TagListView get fresh data for the tag list when called; AFAICT it's an indexed query so it doesn't really need caching too strongly.
Modified paths:
  • /trunk/extensions/CodeReview/modules/ext.codereview.css (modified) (history)
  • /trunk/extensions/CodeReview/ui/CodeTagListView.php (modified) (history)

Diff [purge]

Index: trunk/extensions/CodeReview/modules/ext.codereview.css
@@ -149,52 +149,59 @@
150150 color: #008b8b;
151151 }
152152
153 -div.mw-wordcloud { width: 100%; }
 153+/* WordCloud for tag list view */
 154+
 155+div.mw-wordcloud {
 156+ width: 100%;
 157+}
 158+
154159 .mw-wordcloud-size-1, .mw-wordcloud-size-2,
155160 .mw-wordcloud-size-3, .mw-wordcloud-size-4,
156161 .mw-wordcloud-size-5, .mw-wordcloud-size-6,
157162 .mw-wordcloud-size-7, .mw-wordcloud-size-8,
158 -.mw-wordcloud-size-0 {
159 - padding: 4px 4px 4px 4px;
160 - letter-spacing: 3px;
 163+.mw-wordcloud-size-9, .mw-wordcloud-size-0 {
 164+ padding: 4px;
 165+ letter-spacing: 0.1em;
161166 }
162 -.mw-wordcloud-size-1 {
163 - color: #000;
164 - font-size: 2.4em;
 167+
 168+a.mw-wordcloud-size-1 {
 169+ color: #222;
 170+ font-size: 240%;
165171 }
166 -.mw-wordcloud-size-2 {
 172+a.mw-wordcloud-size-2 {
167173 color: #333;
168 - font-size:2.2em;
 174+ font-size:220%;
169175 }
170 -.mw-wordcloud-size-3 {
 176+a.mw-wordcloud-size-3 {
 177+ color: #444;
 178+ font-size: 200%;
 179+}
 180+a.mw-wordcloud-size-4 {
 181+ color: #555;
 182+ font-size: 180%;
 183+}
 184+a.mw-wordcloud-size-5 {
171185 color: #666;
172 - font-size: 2.0em;
 186+ font-size: 160%;
173187 }
174 -.mw-wordcloud-size-4 {
 188+a.mw-wordcloud-size-6 {
 189+ color: #777;
 190+ font-size: 140%;
 191+}
 192+a.mw-wordcloud-size-7 {
 193+ color: #888;
 194+ font-size: 120%;
 195+}
 196+a.mw-wordcloud-size-8 {
175197 color: #999;
176 - font-size: 1.8em;
 198+ font-size: 100%;
177199 }
178 -.mw-wordcloud-size-5 {
 200+a.mw-wordcloud-size-9 {
179201 color: #aaa;
180 - font-size: 1.6em;
 202+ font-size: 90%;
181203 }
182 -.mw-wordcloud-size-6 {
 204+a.mw-wordcloud-size-10,
 205+a.mw-wordcloud-size-0 {
183206 color: #bbb;
184 - font-size: 1.4em;
 207+ font-size: 80%;
185208 }
186 -.mw-wordcloud-size-7 {
187 - color: #ccc;
188 - font-size: 1.2em;
189 -}
190 -.mw-wordcloud-size-8 {
191 - color: #ddd;
192 - font-size: 1em;
193 -}
194 -.mw-wordcloud-size-9 {
195 - color: #ddd;
196 - font-size: 0.8em;
197 -}
198 -.mw-wordcloud-size-10 {
199 - color: #ddd;
200 - font-size: 0.8em;
201 -}
Index: trunk/extensions/CodeReview/ui/CodeTagListView.php
@@ -8,7 +8,7 @@
99
1010 function execute() {
1111 global $wgOut;
12 - $list = $this->mRepo->getTagList();
 12+ $list = $this->mRepo->getTagList( true );
1313
1414 if( count( $list ) === 0 ) {
1515 $wgOut->addWikiMsg( 'code-tags-no-tags' );

Follow-up revisions

RevisionCommit summaryAuthorDate
r85220Follow-up r85219: ugh, missed a file.happy-melon23:17, 2 April 2011

Status & tagging log