r52376 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r52375‎ | r52376 | r52377 >
Date:21:44, 24 June 2009
Author:tparscal
Status:deferred
Tags:
Comment:
Toolbar is laying out mostly correctly in IE6, but still only works intermitently, and Images need to be converted to 8bit with an #f3f3f3 matte.
Modified paths:
  • /trunk/extensions/UsabilityInitiative/EditToolbar/EditToolbar.css (modified) (history)
  • /trunk/extensions/UsabilityInitiative/EditToolbar/EditToolbar.js (modified) (history)
  • /trunk/extensions/UsabilityInitiative/EditToolbar/images/arrow-down.png (modified) (history)
  • /trunk/extensions/UsabilityInitiative/EditToolbar/images/arrow-left.png (modified) (history)
  • /trunk/extensions/UsabilityInitiative/EditToolbar/images/arrow-right.png (modified) (history)

Diff [purge]

Index: trunk/extensions/UsabilityInitiative/EditToolbar/EditToolbar.css
@@ -21,7 +21,12 @@
2222 border-bottom-width: 0;
2323 background-color: #F3F3F3;
2424 }
25 -div#edittoolbar div.tabs,
 25+div#edittoolbar ul.tabs {
 26+ list-style: none;
 27+ margin: 0;
 28+ padding: 0;
 29+}
 30+div#edittoolbar ul.tabs,
2631 div#edittoolbar div.group {
2732 float: left;
2833 height: 26px;
@@ -29,10 +34,7 @@
3035 padding-left: 3px;
3136 border-left: solid 1px #DDDDDD;
3237 }
33 -div#edittoolbar div.group:first-child {
34 - border-left: none;
35 -}
36 -body.rtl div#edittoolbar div.tabs,
 38+body.rtl div#edittoolbar ul.tabs,
3739 body.rtl div#edittoolbar div.group {
3840 float: right;
3941 padding-left: 0;
@@ -40,9 +42,6 @@
4143 border-left: none;
4244 border-right: solid 1px #DDDDDD;
4345 }
44 -body.rtl div.group:first-child {
45 - border-right: none;
46 -}
4746 div#edittoolbar div.sections {
4847 float: left;
4948 width: 100%;
@@ -51,22 +50,22 @@
5251 body.rtl div#edittoolbar div.sections {
5352 float: right;
5453 }
55 -div#edittoolbar div.sections > div.section {
 54+div#edittoolbar div.sections div.section {
5655 display: none;
5756 float: left;
5857 width: 100%;
5958 border-top: solid 1px #DDDDDD;
6059 }
61 -body.rtl div#edittoolbar div.sections > div.section {
 60+body.rtl div#edittoolbar div.sections div.section {
6261 float: right;
6362 }
64 -div#edittoolbar div.sections > div.loading {
 63+div#edittoolbar div.sections div.loading {
6564 padding: 10px;
6665 }
67 -div#edittoolbar div.sections > div > div.progress {
 66+div#edittoolbar div.sections div div.progress {
6867 display: none;
6968 }
70 -div#edittoolbar div.sections > div.loading > div.progress {
 69+div#edittoolbar div.sections div.loading div.progress {
7170 display: block;
7271 background-image: url(images/loading.gif);
7372 background-position: left center;
@@ -75,13 +74,13 @@
7675 float: left;
7776 color: #666666;
7877 }
79 -div#edittoolbar div.sections > div.loading > div.progress {
 78+div#edittoolbar div.sections div.loading div.progress {
8079 background-position: right center;
8180 padding-left: 0;
8281 padding-right: 32px;
8382 float: right;
8483 }
85 -div#edittoolbar div.group > div.label {
 84+div#edittoolbar div.group div.label {
8685 float: left;
8786 border: 0px;
8887 height: 22px;
@@ -92,12 +91,12 @@
9392 color: #777777;
9493 cursor: default;
9594 }
96 -body.rtl div#edittoolbar div.group > div.label {
 95+body.rtl div#edittoolbar div.group div.label {
9796 float: right;
9897 margin-left: 8px;
9998 margin-right: 5px;
10099 }
101 -div#edittoolbar div.group > img {
 100+div#edittoolbar div.group img.tool {
102101 float: left;
103102 border: 0px;
104103 height: 22px;
@@ -105,16 +104,16 @@
106105 padding: 2px;
107106 cursor: pointer;
108107 }
109 -body.rtl div#edittoolbar div.group > img {
 108+body.rtl div#edittoolbar div.group img {
110109 float: right;
111110 }
112 -div#edittoolbar div.group > select {
 111+div#edittoolbar div.group select {
113112 float: left;
114113 margin: 2px;
115114 height: 22px;
116115 cursor: pointer;
117116 }
118 -body.rtl div#edittoolbar div.group > select {
 117+body.rtl div#edittoolbar div.group select {
119118 float: right;
120119 font-size: 0.9em;
121120 }
@@ -127,22 +126,22 @@
128127 body.rtl div#edittoolbar div.index {
129128 float: right;
130129 }
131 -div#edittoolbar div.index > div {
 130+div#edittoolbar div.index div {
132131 padding: 4px;
133132 padding-left: 6px;
134133 cursor: pointer;
135134 color: #0645ad;
136135 }
137 -body.rtl div#edittoolbar div.index > div {
 136+body.rtl div#edittoolbar div.index div {
138137 padding-left: 4px;
139138 padding-right: 6px;
140139 }
141 -div#edittoolbar div.index > div.current {
 140+div#edittoolbar div.index div.current {
142141 background-color: #FAFAFA;
143142 color: #333333;
144143 cursor: default;
145144 }
146 -div#edittoolbar div.index > div:first-child {
 145+div#edittoolbar div.index div:first-child {
147146 border-top: none;
148147 }
149148 div#edittoolbar div.pages {
@@ -155,48 +154,48 @@
156155 body.rtl div#edittoolbar div.pages {
157156 float: left;
158157 }
159 -div#edittoolbar div.pages > div.page {
 158+div#edittoolbar div.pages div.page {
160159 display: none;
161160 }
162 -div#edittoolbar div.pages > div.page:first-child {
 161+div#edittoolbar div.pages div.page:first-child {
163162 display: block;
164163 }
165 -div#edittoolbar div.pages > div.page > table {
 164+div#edittoolbar div.pages div.page table {
166165 padding-left: 5px;
167166 padding-right: 5px;
168167 background: none;
169168 }
170 -div#edittoolbar div.pages > div.page > table th {
 169+div#edittoolbar div.pages div.page table th {
171170 color: #999999;
172171 }
173 -div#edittoolbar div.pages > div.page > table td {
 172+div#edittoolbar div.pages div.page table td {
174173 color: black;
175174 border-top: solid 1px #EEEEEE;
176175 }
177 -div#edittoolbar div.pages > div.page > table tr:first-child > td {
 176+div#edittoolbar div.pages div.page table tr:first-child td {
178177 border-top: solid 1px #DDDDDD;
179178 }
180 -div#edittoolbar div.pages > div.page > table th,
181 -div#edittoolbar div.pages > div.page > table td {
 179+div#edittoolbar div.pages div.page table th,
 180+div#edittoolbar div.pages div.page table td {
182181 text-align: left;
183182 padding: 5px;
184183 margin: 0px;
185184 }
186 -body.rtl div#edittoolbar div.pages > div.page > table th,
187 -body.rtl div#edittoolbar div.pages > div.page > table td {
 185+body.rtl div#edittoolbar div.pages div.page table th,
 186+body.rtl div#edittoolbar div.pages div.page table td {
188187 text-align: right;
189188 }
190 -div#edittoolbar div.pages > div.page > table td.syntax {
 189+div#edittoolbar div.pages div.page table td.syntax {
191190 font-family: monospace;
192191 }
193 -div#edittoolbar-section-help div.page > table td.syntax,
194 -div#edittoolbar-section-help div.page > table td.result {
 192+div#edittoolbar-section-help div.page table td.syntax,
 193+div#edittoolbar-section-help div.page table td.result {
195194 width: 40%;
196195 }
197 -div#edittoolbar-section-help div.page > table td.description {
 196+div#edittoolbar-section-help div.page table td.description {
198197 width: 20%;
199198 }
200 -div#edittoolbar-section-characters div.page > div > a {
 199+div#edittoolbar-section-characters div.page div a {
201200 border: solid 1px #DDDDDD;
202201 padding: 5px;
203202 padding-left: 8px;
@@ -209,26 +208,28 @@
210209 color: black;
211210 text-decoration: none;
212211 }
213 -body.rtl div#edittoolbar-section-characters div.page > div > a {
 212+body.rtl div#edittoolbar-section-characters div.page div a {
214213 direction: rtl;
215214 float: right;
216215 margin-left: 0;
217216 margin-right: 5px;
218217 }
219 -div#edittoolbar-section-characters div.page > div > a:hover {
 218+div#edittoolbar-section-characters div.page div a:hover {
220219 background-color: white;
221220 text-decoration: none;
222221 border-color: #a8d7f9;
223222 }
224 -div#edittoolbar div.tabs > div.tab {
 223+div#edittoolbar ul.tabs li.tab {
 224+ display: inline-block;
225225 float: left;
226226 line-height: 26px;
227227 }
228 -body.rtl div#edittoolbar div.tabs > div.tab {
 228+body.rtl div#edittoolbar ul.tabs li.tab {
229229 float: right;
230230 }
231 -div#edittoolbar div.tabs > div.tab > a,
232 -div#edittoolbar div.tabs > div.tab > a:visited {
 231+div#edittoolbar ul.tabs li.tab a,
 232+div#edittoolbar ul.tabs li.tab a:visited {
 233+ float: left;
233234 padding-left: 18px;
234235 padding-right: 12px;
235236 display: block;
@@ -239,22 +240,23 @@
240241 background-position: left center;
241242 background-repeat: no-repeat;
242243 }
243 -body.rtl div#edittoolbar div.tabs > div.tab > a,
244 -body.rtl div#edittoolbar div.tabs > div.tab > a:visited {
 244+body.rtl div#edittoolbar ul.tabs li.tab a,
 245+body.rtl div#edittoolbar ul.tabs li.tab a:visited {
 246+ float: right;
245247 padding-left: 12px;
246248 padding-right: 18px;
247249 background-image: url(images/arrow-left.png);
248250 background-position: right center;
249251 }
250 -div#edittoolbar div.tabs > div.tab > a.current,
251 -div#edittoolbar div.tabs > div.tab > a.current:visited {
 252+div#edittoolbar ul.tabs li.tab a.current,
 253+div#edittoolbar ul.tabs li.tab a.current:visited {
252254 color: #333333;
253255 background-image: url(images/arrow-down.png);
254256 }
255 -body.rtl div#edittoolbar div.tabs > div.tab > a.current,
256 -body.rtl div#edittoolbar div.tabs > div.tab > a.current:visited {
 257+body.rtl div#edittoolbar ul.tabs li.tab a.current,
 258+body.rtl div#edittoolbar ul.tabs li.tab a.current:visited {
257259 background-image: url(images/arrow-down.png);
258260 }
259 -div#edittoolbar div.tabs > div.tab > a.current:hover {
 261+div#edittoolbar div.ul li.tab a.current:hover {
260262 text-decoration: none;
261263 }
\ No newline at end of file
Index: trunk/extensions/UsabilityInitiative/EditToolbar/EditToolbar.js
@@ -21,7 +21,7 @@
2222 $(this).addToolbarSection( tools.main, textbox, 'main' );
2323 }
2424 // Appends additional section tabs
25 - var tabDiv = $( '<div />' )
 25+ var tabUl = $( '<ul />' )
2626 .attr( 'class', 'tabs' )
2727 .appendTo( $(this) );
2828 // Appends additional section
@@ -64,8 +64,8 @@
6565 'textbox': textbox
6666 };
6767 // Appends section tab
68 - tabDiv.append(
69 - $( '<div />' )
 68+ tabUl.append(
 69+ $( '<li />' )
7070 .attr( 'class', 'tab' )
7171 .append(
7272 $( '<a />' )
@@ -77,10 +77,10 @@
7878 .click( function() {
7979 $(this).blur();
8080 var show = ( $(this).data( 'sectionDiv' ).css( 'display' ) == 'none' );
81 - $(this).data( 'sectionDiv' ).parent().children().hide('fast');
 81+ $(this).data( 'sectionDiv' ).parent().children().hide();
8282 $(this).parent().parent().find( 'a' ).removeClass( 'current' );
8383 if ( show ) {
84 - $(this).data( 'sectionDiv' ).show('fast');
 84+ $(this).data( 'sectionDiv' ).show();
8585 $(this).addClass( 'current' );
8686 }
8787 // Sets or deletes cookie when sections are shown or hidden
@@ -88,7 +88,7 @@
8989 $(this).data( 'sectionCookie' ),
9090 show ? $(this).data( 'sectionDiv' ).attr( 'id' ) : null
9191 );
92 - $(this).data( 'textbox' ).focus();
 92+ /*$(this).data( 'textbox' ).focus();*/
9393 return false;
9494 })
9595 )
@@ -175,7 +175,8 @@
176176 .attr( {
177177 src: imagePath + section.groups[group].tools[tool].icon,
178178 alt: label,
179 - title: label
 179+ title: label,
 180+ 'class': 'tool'
180181 } )
181182 .data( 'context', context )
182183 .click( action )
Index: trunk/extensions/UsabilityInitiative/EditToolbar/images/arrow-down.png
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
Index: trunk/extensions/UsabilityInitiative/EditToolbar/images/arrow-right.png
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
Index: trunk/extensions/UsabilityInitiative/EditToolbar/images/arrow-left.png
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream

Status & tagging log