Index: trunk/phase3/skins/common/ajaxwatch.js |
— | — | @@ -73,7 +73,7 @@ |
74 | 74 | $links.each( function(){ |
75 | 75 | var $link = $j(this); |
76 | 76 | $link |
77 | | - .data( 'icon', $link.parent().hasClass( 'icon' ) ) |
| 77 | + .data( 'icon', $link.parents( 'li' ).hasClass( 'icon' ) ) |
78 | 78 | .data( 'action', $link.attr( 'href' ).match( /[\?\&]action=unwatch/i ) ? 'unwatch' : 'watch' ); |
79 | 79 | var title = $link.attr( 'href' ).match( /[\?\&]title=(.*?)&/i )[1]; |
80 | 80 | $link.data( 'target', decodeURIComponent( title ).replace( /_/g, ' ' ) ); |
— | — | @@ -117,8 +117,8 @@ |
118 | 118 | $link.data( 'action', otheraction ); |
119 | 119 | wgAjaxWatch.setLinkText( $link, otheraction ); |
120 | 120 | $link.attr( 'href', $link.attr('href').replace( '/&action='+action+'/', '&action='+otheraction ) ); |
121 | | - if( $link.parent().attr('id') == 'ca-'+action ){ |
122 | | - $link.parent().attr( 'id', 'ca-'+otheraction ); |
| 121 | + if( $link.parents( 'li' ).attr('id') == 'ca-'+action ){ |
| 122 | + $link.parents( 'li' ).attr( 'id', 'ca-'+otheraction ); |
123 | 123 | } |
124 | 124 | }; |
125 | 125 | return false; |
Index: trunk/phase3/skins/Vector.php |
— | — | @@ -695,7 +695,7 @@ |
696 | 696 | <h5><?php $this->msg('namespaces') ?></h5> |
697 | 697 | <ul<?php $this->html('userlangattributes') ?>> |
698 | 698 | <?php foreach ($this->data['namespace_urls'] as $key => $link ): ?> |
699 | | - <li <?php echo $link['attributes'] ?>><a href="<?php echo htmlspecialchars( $link['href'] ) ?>" <?php echo $link['key'] ?>><span><?php echo htmlspecialchars( $link['text'] ) ?></span></a></li> |
| 699 | + <li <?php echo $link['attributes'] ?>><span><a href="<?php echo htmlspecialchars( $link['href'] ) ?>" <?php echo $link['key'] ?>><?php echo htmlspecialchars( $link['text'] ) ?></a></span></li> |
700 | 700 | <?php endforeach; ?> |
701 | 701 | </ul> |
702 | 702 | </div> |
— | — | @@ -730,7 +730,7 @@ |
731 | 731 | <h5><?php $this->msg('views') ?></h5> |
732 | 732 | <ul<?php $this->html('userlangattributes') ?>> |
733 | 733 | <?php foreach ( $this->data['view_urls'] as $key => $link ): ?> |
734 | | - <li<?php echo $link['attributes'] ?>><a href="<?php echo htmlspecialchars( $link['href'] ) ?>" <?php echo $link['key'] ?>><?php echo (array_key_exists('img',$link) ? '<img src="'.$link['img'].'" alt="'.$link['text'].'" />' : '<span>'.htmlspecialchars( $link['text'] ).'</span>') ?></a></li> |
| 734 | + <li<?php echo $link['attributes'] ?>><span><a href="<?php echo htmlspecialchars( $link['href'] ) ?>" <?php echo $link['key'] ?>><?php echo (array_key_exists('img',$link) ? '<img src="'.$link['img'].'" alt="'.$link['text'].'" />' : htmlspecialchars( $link['text'] ) ) ?></a></span></li> |
735 | 735 | <?php endforeach; ?> |
736 | 736 | </ul> |
737 | 737 | </div> |
Index: trunk/phase3/skins/vector/main-ltr.css |
— | — | @@ -158,19 +158,18 @@ |
159 | 159 | /* OVERRIDDEN BY COMPLIANT BROWSERS */ |
160 | 160 | div.vectorTabs li a { |
161 | 161 | display: inline-block; |
162 | | - height: 2.5em; |
163 | | - padding-left: 0.4em; |
164 | | - padding-right: 0.4em; |
| 162 | + height: 1.9em; |
| 163 | + padding-left: 0.5em; |
| 164 | + padding-right: 0.5em; |
165 | 165 | background-image: url(images/tab-break.png?1); |
166 | 166 | background-position: bottom right; |
167 | 167 | background-repeat: no-repeat; |
168 | 168 | } |
169 | | - div.vectorTabs li a, |
170 | | - div.vectorTabs li a span { |
| 169 | + div.vectorTabs li a{ |
171 | 170 | color: #0645ad; |
172 | 171 | cursor: pointer; |
173 | 172 | } |
174 | | - div.vectorTabs li a span { |
| 173 | + div.vectorTabs li a { |
175 | 174 | font-size: 0.8em; |
176 | 175 | } |
177 | 176 | /* IGNORED BY IE6 */ |
— | — | @@ -178,27 +177,23 @@ |
179 | 178 | display: block; |
180 | 179 | } |
181 | 180 | /* OVERRIDDEN BY COMPLIANT BROWSERS */ |
182 | | - div.vectorTabs a span { |
| 181 | + div.vectorTabs span a { |
183 | 182 | display: inline-block; |
184 | 183 | padding-top: 1.25em; |
185 | 184 | } |
186 | 185 | /* IGNORED BY IE6 */ |
187 | 186 | /* @noflip */ |
188 | | - div.vectorTabs a > span { |
| 187 | + div.vectorTabs span > a { |
189 | 188 | float: left; |
190 | 189 | display: block; |
191 | 190 | } |
192 | 191 | div.vectorTabs li.selected a, |
193 | | - div.vectorTabs li.selected a span, |
194 | | - div.vectorTabs li.selected a:visited |
195 | | - div.vectorTabs li.selected a:visited span { |
| 192 | + div.vectorTabs li.selected a:visited{ |
196 | 193 | color: #333333; |
197 | 194 | text-decoration: none; |
198 | 195 | } |
199 | 196 | div.vectorTabs li.new a, |
200 | | - div.vectorTabs li.new a span, |
201 | | - div.vectorTabs li.new a:visited, |
202 | | - div.vectorTabs li.new a:visited span { |
| 197 | + div.vectorTabs li.new a:visited{ |
203 | 198 | color: #a55858; |
204 | 199 | } |
205 | 200 | /* Variants and Actions */ |
— | — | @@ -1104,7 +1099,8 @@ |
1105 | 1100 | outline: none; |
1106 | 1101 | display: block; |
1107 | 1102 | width: 26px; |
1108 | | - height: 2.5em; |
| 1103 | + height: 3.1em; |
| 1104 | + text-indent: -9999px; |
1109 | 1105 | } |
1110 | 1106 | #ca-unwatch.icon a { |
1111 | 1107 | background-image: url(images/watch-icons.png?1); |
Index: trunk/phase3/skins/vector/main-rtl.css |
— | — | @@ -158,19 +158,18 @@ |
159 | 159 | /* OVERRIDDEN BY COMPLIANT BROWSERS */ |
160 | 160 | div.vectorTabs li a { |
161 | 161 | display: inline-block; |
162 | | - height: 2.5em; |
163 | | - padding-right: 0.4em; |
164 | | - padding-left: 0.4em; |
| 162 | + height: 1.9em; |
| 163 | + padding-right: 0.5em; |
| 164 | + padding-left: 0.5em; |
165 | 165 | background-image: url(images/tab-break.png?1); |
166 | 166 | background-position: bottom left; |
167 | 167 | background-repeat: no-repeat; |
168 | 168 | } |
169 | | - div.vectorTabs li a, |
170 | | - div.vectorTabs li a span { |
| 169 | + div.vectorTabs li a{ |
171 | 170 | color: #0645ad; |
172 | 171 | cursor: pointer; |
173 | 172 | } |
174 | | - div.vectorTabs li a span { |
| 173 | + div.vectorTabs li a { |
175 | 174 | font-size: 0.8em; |
176 | 175 | } |
177 | 176 | /* IGNORED BY IE6 */ |
— | — | @@ -178,27 +177,23 @@ |
179 | 178 | display: block; |
180 | 179 | } |
181 | 180 | /* OVERRIDDEN BY COMPLIANT BROWSERS */ |
182 | | - div.vectorTabs a span { |
| 181 | + div.vectorTabs span a { |
183 | 182 | display: inline-block; |
184 | 183 | padding-top: 1.25em; |
185 | 184 | } |
186 | 185 | /* IGNORED BY IE6 */ |
187 | 186 | /* @noflip */ |
188 | | - div.vectorTabs a > span { |
| 187 | + div.vectorTabs span > a { |
189 | 188 | float: left; |
190 | 189 | display: block; |
191 | 190 | } |
192 | 191 | div.vectorTabs li.selected a, |
193 | | - div.vectorTabs li.selected a span, |
194 | | - div.vectorTabs li.selected a:visited |
195 | | - div.vectorTabs li.selected a:visited span { |
| 192 | + div.vectorTabs li.selected a:visited{ |
196 | 193 | color: #333333; |
197 | 194 | text-decoration: none; |
198 | 195 | } |
199 | 196 | div.vectorTabs li.new a, |
200 | | - div.vectorTabs li.new a span, |
201 | | - div.vectorTabs li.new a:visited, |
202 | | - div.vectorTabs li.new a:visited span { |
| 197 | + div.vectorTabs li.new a:visited{ |
203 | 198 | color: #a55858; |
204 | 199 | } |
205 | 200 | /* Variants and Actions */ |
— | — | @@ -1104,7 +1099,8 @@ |
1105 | 1100 | outline: none; |
1106 | 1101 | display: block; |
1107 | 1102 | width: 26px; |
1108 | | - height: 2.5em; |
| 1103 | + height: 3.1em; |
| 1104 | + text-indent: -9999px; |
1109 | 1105 | } |
1110 | 1106 | #ca-unwatch.icon a { |
1111 | 1107 | background-image: url(images/watch-icons.png?1); |