r22922 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r22921‎ | r22922 | r22923 >
Date:00:58, 12 June 2007
Author:david
Status:old
Tags:
Comment:
proper styling for the results table.
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
@@ -128,6 +128,29 @@
129129 display: inline;
130130 }
131131
 132+#lqt_archive_search_form {
 133+ border: 1px solid #ddd;
 134+ margin: 0.5em 0;
 135+ background-color: #eee;
 136+ padding: 0.4em;
 137+ display: table; width: auto;
 138+}
 139+#lqt_archive_search_form table {
 140+ background-color: transparent;
 141+}
 142+
 143+.lqt_archive_listing td {
 144+ padding-right: 2em;
 145+ padding-bottom: 1em;
 146+ vertical-align: top;
 147+}
 148+.lqt_archive_listing th {
 149+ text-align: left;
 150+ vertical-align: baseline;
 151+ font-weight: bold;
 152+ border-bottom: 1px solid #ddd;
 153+}
 154+
132155 .lqt_hidden {
133156 display: none;
134157 }
Index: branches/liquidthreads/extensions/LqtExtension.php
@@ -806,7 +806,13 @@
807807
808808 $this->showSearchForm();
809809 $this->output->addHTML("<p>" . $this->annotations . ".</p>");
810 - $this->output->addHTML('<table border="1">');
 810+ $this->output->addHTML(<<<HTML
 811+<table class="lqt_archive_listing">
 812+<col class="lqt_titles" />
 813+<col class="lqt_summaries" />
 814+<tr><th>Title<th>Summary</tr>
 815+HTML
 816+ );
811817 foreach ($this->threads() as $t) {
812818 $this->showThread($t);
813819 }

Status & tagging log