Index: trunk/phase3/skins/common/ajaxwatch.js |
— | — | @@ -24,29 +24,29 @@ |
25 | 25 | wgAjaxWatch.iconMode = false; // new icon driven functionality |
26 | 26 | wgAjaxWatch.imgBasePath = ""; // base img path derived from icons on load |
27 | 27 | |
28 | | -wgAjaxWatch.setLinkText = function(newText) { |
29 | | - if( wgAjaxWatch.iconMode ) { |
30 | | - for ( i = 0; i < wgAjaxWatch.watchLinks.length; i++ ) { |
31 | | - wgAjaxWatch.watchLinks[i].firstChild.alt = newText; |
32 | | - if( newText==wgAjaxWatch.watchingMsg || newText==wgAjaxWatch.unwatchingMsg ) { |
33 | | - wgAjaxWatch.watchLinks[i].firstChild.src = wgAjaxWatch.imgBasePath |
| 28 | +wgAjaxWatch.setLinkText = function( newText ) { |
| 29 | + if( wgAjaxWatch.iconMode ) { |
| 30 | + for ( i = 0; i < wgAjaxWatch.watchLinks.length; i++ ) { |
| 31 | + wgAjaxWatch.watchLinks[i].firstChild.alt = newText; |
| 32 | + if( newText == wgAjaxWatch.watchingMsg || newText == wgAjaxWatch.unwatchingMsg ) { |
| 33 | + wgAjaxWatch.watchLinks[i].firstChild.src = wgAjaxWatch.imgBasePath |
34 | 34 | + "/common/images/spinner.gif"; |
35 | | - } else if( newText==wgAjaxWatch.watchMsg ) { |
36 | | - wgAjaxWatch.watchLinks[i].firstChild.src = wgAjaxWatch.imgBasePath |
| 35 | + } else if( newText==wgAjaxWatch.watchMsg ) { |
| 36 | + wgAjaxWatch.watchLinks[i].firstChild.src = wgAjaxWatch.imgBasePath |
37 | 37 | + "/vector/images/watch_off.gif"; |
38 | | - } else if( newText==wgAjaxWatch.unwatchMsg ) { |
39 | | - wgAjaxWatch.watchLinks[i].firstChild.src = wgAjaxWatch.imgBasePath |
| 38 | + } else if( newText==wgAjaxWatch.unwatchMsg ) { |
| 39 | + wgAjaxWatch.watchLinks[i].firstChild.src = wgAjaxWatch.imgBasePath |
40 | 40 | + "/vector/images/watch_on.gif"; |
41 | | - } |
42 | | - } |
43 | | - } else{ |
44 | | - for ( i = 0; i < wgAjaxWatch.watchLinks.length; i++ ) { |
45 | | - changeText( wgAjaxWatch.watchLinks[i], newText ); |
46 | | - } |
47 | | - } |
| 41 | + } |
| 42 | + } |
| 43 | + } else { |
| 44 | + for ( i = 0; i < wgAjaxWatch.watchLinks.length; i++ ) { |
| 45 | + changeText( wgAjaxWatch.watchLinks[i], newText ); |
| 46 | + } |
| 47 | + } |
48 | 48 | }; |
49 | 49 | |
50 | | -wgAjaxWatch.setLinkID = function(newId) { |
| 50 | +wgAjaxWatch.setLinkID = function( newId ) { |
51 | 51 | // We can only set the first one |
52 | 52 | wgAjaxWatch.watchLinks[0].parentNode.setAttribute( 'id', newId ); |
53 | 53 | akeytt(newId); // update tooltips for Monobook |
— | — | @@ -153,25 +153,25 @@ |
154 | 154 | } |
155 | 155 | |
156 | 156 | // If we're using the icon, add rollover affects |
157 | | - try{ |
158 | | - if( el1.firstChild.firstChild.tagName.match( /img/i ) ) { |
| 157 | + try { |
| 158 | + if( el1.firstChild.firstChild.tagName.match( /img/i ) ) { |
159 | 159 | wgAjaxWatch.iconMode = true; |
160 | | - wgAjaxWatch.imgBasePath = el1.firstChild.firstChild.src |
| 160 | + wgAjaxWatch.imgBasePath = el1.firstChild.firstChild.src |
161 | 161 | .replace( /\/vector\/images\/watch_(off|on).gif/, "" ); |
162 | | - el1.firstChild.onmouseover = function( e ) { |
163 | | - if ( !wgAjaxWatch.inprogress ) |
164 | | - this.firstChild.src = wgAjaxWatch.imgBasePath |
165 | | - + "/vector/images/watch_over.gif"; |
166 | | - } |
167 | | - el1.firstChild.onmouseout = function( e ) { |
168 | | - if ( !wgAjaxWatch.inprogress ) |
169 | | - this.firstChild.src = wgAjaxWatch.imgBasePath |
170 | | - + "/vector/images/watch_" + ( wgAjaxWatch.watching ? |
171 | | - "on.gif" : "off.gif" ); |
172 | | - } |
173 | | - } |
| 162 | + el1.firstChild.onmouseover = function( e ) { |
| 163 | + if ( !wgAjaxWatch.inprogress ) |
| 164 | + this.firstChild.src = wgAjaxWatch.imgBasePath |
| 165 | + + "/vector/images/watch_over.gif"; |
| 166 | + } |
| 167 | + el1.firstChild.onmouseout = function( e ) { |
| 168 | + if ( !wgAjaxWatch.inprogress ) |
| 169 | + this.firstChild.src = wgAjaxWatch.imgBasePath |
| 170 | + + "/vector/images/watch_" + ( wgAjaxWatch.watching ? |
| 171 | + "on.gif" : "off.gif" ); |
| 172 | + } |
| 173 | + } |
174 | 174 | } catch( e ) { |
175 | | - // not using the icon |
| 175 | + // not using the icon |
176 | 176 | } |
177 | 177 | |
178 | 178 | |
Index: trunk/phase3/skins/vector/main-ltr.css |
— | — | @@ -1054,48 +1054,48 @@ |
1055 | 1055 | |
1056 | 1056 | /* Babaco color scheme */ |
1057 | 1057 | /* Still working on this. Needs incorporated above once it's closer to final */ |
1058 | | -body{ |
1059 | | - background-color:#f9f9f9; |
1060 | | - color:#000000; |
| 1058 | +body { |
| 1059 | + background-color: #f9f9f9; |
| 1060 | + color: #000000; |
1061 | 1061 | } |
1062 | | -a{ |
1063 | | - color:#003cb3; |
| 1062 | +a { |
| 1063 | + color: #003cb3; |
1064 | 1064 | } |
1065 | | -a.new{ |
1066 | | - color:#990000; |
| 1065 | +a.new { |
| 1066 | + color: #990000; |
1067 | 1067 | } |
1068 | 1068 | |
1069 | 1069 | a:visited, |
1070 | 1070 | div.vectorTabs li.selected a:visited div.vectorTabs li.selected a:visited span { |
1071 | | - color:#260e9c; |
| 1071 | + color: #260e9c; |
1072 | 1072 | } |
1073 | 1073 | |
1074 | 1074 | html .thumbimage, |
1075 | | -#toc, .toc, .mw-warning, div.thumbinner{ |
1076 | | - border-color:#c0c0c0; |
1077 | | - background-color:#f0f0f0; |
| 1075 | +#toc, .toc, .mw-warning, div.thumbinner { |
| 1076 | + border-color: #c0c0c0; |
| 1077 | + background-color: #f0f0f0; |
1078 | 1078 | } |
1079 | 1079 | |
1080 | | -h1, h2, h3, h4, h5, h6{ |
1081 | | - border-color:#8d8d8d; |
| 1080 | +h1, h2, h3, h4, h5, h6 { |
| 1081 | + border-color: #8d8d8d; |
1082 | 1082 | } |
1083 | 1083 | |
1084 | 1084 | |
1085 | 1085 | /* Watch/Unwatch Icon Styling */ |
1086 | 1086 | #ca-unwatch, |
1087 | | -#ca-watch{ |
1088 | | - background-image:none; |
1089 | | - background-color:#ffffff; |
| 1087 | +#ca-watch { |
| 1088 | + background-image: none; |
| 1089 | + background-color: #ffffff; |
1090 | 1090 | } |
1091 | 1091 | #ca-unwatch a, |
1092 | | -#ca-watch a{ |
1093 | | - outline:none; |
| 1092 | +#ca-watch a { |
| 1093 | + outline: none; |
1094 | 1094 | } |
1095 | 1095 | #ca-unwatch a img, |
1096 | | -#ca-watch a img{ |
1097 | | - padding-top:1.35em; |
1098 | | - display:block; |
1099 | | - font-size:0.8em; |
1100 | | - max-height:14px; |
1101 | | - max-width:14px; |
| 1096 | +#ca-watch a img { |
| 1097 | + padding-top: 1.35em; |
| 1098 | + display: block; |
| 1099 | + font-size: 0.8em; |
| 1100 | + max-height: 14px; |
| 1101 | + max-width: 14px; |
1102 | 1102 | } |
\ No newline at end of file |
Index: trunk/phase3/skins/vector/main-rtl.css |
— | — | @@ -1049,4 +1049,51 @@ |
1050 | 1050 | line-height: 1.5em; |
1051 | 1051 | } |
1052 | 1052 | |
1053 | | - |
\ No newline at end of file |
| 1053 | + |
| 1054 | +/* Babaco color scheme */ |
| 1055 | +/* Still working on this. Needs incorporated above once it's closer to final */ |
| 1056 | +body { |
| 1057 | + background-color: #f9f9f9; |
| 1058 | + color: #000000; |
| 1059 | +} |
| 1060 | +a { |
| 1061 | + color: #003cb3; |
| 1062 | +} |
| 1063 | +a.new { |
| 1064 | + color: #990000; |
| 1065 | +} |
| 1066 | + |
| 1067 | +a:visited, |
| 1068 | +div.vectorTabs li.selected a:visited div.vectorTabs li.selected a:visited span { |
| 1069 | + color: #260e9c; |
| 1070 | +} |
| 1071 | + |
| 1072 | +html .thumbimage, |
| 1073 | +#toc, .toc, .mw-warning, div.thumbinner { |
| 1074 | + border-color: #c0c0c0; |
| 1075 | + background-color: #f0f0f0; |
| 1076 | +} |
| 1077 | + |
| 1078 | +h1, h2, h3, h4, h5, h6 { |
| 1079 | + border-color: #8d8d8d; |
| 1080 | +} |
| 1081 | + |
| 1082 | + |
| 1083 | +/* Watch/Unwatch Icon Styling */ |
| 1084 | +#ca-unwatch, |
| 1085 | +#ca-watch { |
| 1086 | + background-image: none; |
| 1087 | + background-color: #ffffff; |
| 1088 | +} |
| 1089 | +#ca-unwatch a, |
| 1090 | +#ca-watch a { |
| 1091 | + outline: none; |
| 1092 | +} |
| 1093 | +#ca-unwatch a img, |
| 1094 | +#ca-watch a img { |
| 1095 | + padding-top: 1.35em; |
| 1096 | + display: block; |
| 1097 | + font-size: 0.8em; |
| 1098 | + max-height: 14px; |
| 1099 | + max-width: 14px; |
| 1100 | +} |
\ No newline at end of file |