https://www.mediawiki.org/wiki/Special:Code/MediaWiki/113116

Revision: 113116
Author:   kaldari
Date:     2012-03-06 01:04:52 +0000 (Tue, 06 Mar 2012)
Log Message:
-----------
finishing the implementation for the large buttons

Modified Paths:
--------------
    
trunk/extensions/ArticleCreationWorkflow/modules/ext.articleCreation.core/ext.articleCreation.core.css
    
trunk/extensions/ArticleCreationWorkflow/modules/ext.articleCreation.core/images/left-arrow-blue.png
    
trunk/extensions/ArticleCreationWorkflow/modules/ext.articleCreation.core/images/left-arrow-green.png
    
trunk/extensions/ArticleCreationWorkflow/modules/ext.articleCreation.core/images/left-arrow-orange.png
    
trunk/extensions/ArticleCreationWorkflow/modules/ext.articleCreation.core/images/left-arrow-red.png
    
trunk/extensions/ArticleCreationWorkflow/modules/ext.articleCreation.core/images/right-arrow-blue.png
    
trunk/extensions/ArticleCreationWorkflow/modules/ext.articleCreation.core/images/right-arrow-green.png
    
trunk/extensions/ArticleCreationWorkflow/modules/ext.articleCreation.core/images/right-arrow-orange.png
    
trunk/extensions/ArticleCreationWorkflow/modules/ext.articleCreation.core/images/right-arrow-red.png
    
trunk/extensions/ArticleCreationWorkflow/modules/ext.articleCreation.user/ext.articleCreation.user.js

Added Paths:
-----------
    
trunk/extensions/ArticleCreationWorkflow/modules/ext.articleCreation.core/images/left-arrow-blue-hover.png
    
trunk/extensions/ArticleCreationWorkflow/modules/ext.articleCreation.core/images/left-arrow-green-hover.png
    
trunk/extensions/ArticleCreationWorkflow/modules/ext.articleCreation.core/images/left-arrow-orange-hover.png
    
trunk/extensions/ArticleCreationWorkflow/modules/ext.articleCreation.core/images/left-arrow-red-hover.png
    
trunk/extensions/ArticleCreationWorkflow/modules/ext.articleCreation.core/images/right-arrow-blue-hover.png
    
trunk/extensions/ArticleCreationWorkflow/modules/ext.articleCreation.core/images/right-arrow-green-hover.png
    
trunk/extensions/ArticleCreationWorkflow/modules/ext.articleCreation.core/images/right-arrow-orange-hover.png
    
trunk/extensions/ArticleCreationWorkflow/modules/ext.articleCreation.core/images/right-arrow-red-hover.png

Modified: 
trunk/extensions/ArticleCreationWorkflow/modules/ext.articleCreation.core/ext.articleCreation.core.css
===================================================================
--- 
trunk/extensions/ArticleCreationWorkflow/modules/ext.articleCreation.core/ext.articleCreation.core.css
      2012-03-06 00:53:48 UTC (rev 113115)
+++ 
trunk/extensions/ArticleCreationWorkflow/modules/ext.articleCreation.core/ext.articleCreation.core.css
      2012-03-06 01:04:52 UTC (rev 113116)
@@ -16,7 +16,7 @@
 
 /* Buttons */
 .ac-article-button {
-       width: 220px !important;
+       width: 225px !important;
 }
 .ui-button-large {
        padding: 5px 35px 7px 5px !important;
@@ -60,10 +60,10 @@
 .ac-arrow {
        position: absolute;
        top: 50%;
-       right: 16px;
-       width: 16px;
-       height: 16px;
-       margin-top: -9px;
+       right: 15px;
+       width: 23px;
+       height: 23px;
+       margin-top: -12px;
 }
 
 .ac-arrow-forward {
@@ -75,6 +75,55 @@
        background: url(images/arrow_left.png) no-repeat;
 }
 
+.ui-button-blue.ui-button-large .ac-arrow-forward {
+       /* @embed */
+       background: url(images/right-arrow-blue.png) no-repeat;
+}
+.ui-button-blue.ui-button-large:hover .ac-arrow-forward {
+       /* @embed */
+       background: url(images/right-arrow-blue-hover.png) no-repeat;
+}
+.ui-button-blue.ui-button-large .ac-arrow-back {
+       /* @embed */
+       background: url(images/left-arrow-blue.png) no-repeat;
+}
+.ui-button-blue.ui-button-large:hover .ac-arrow-back {
+       /* @embed */
+       background: url(images/left-arrow-blue-hover.png) no-repeat;
+}
+.ui-button-green.ui-button-large .ac-arrow-forward {
+       /* @embed */
+       background: url(images/right-arrow-green.png) no-repeat;
+}
+.ui-button-green.ui-button-large:hover .ac-arrow-forward {
+       /* @embed */
+       background: url(images/right-arrow-green-hover.png) no-repeat;
+}
+.ui-button-green.ui-button-large .ac-arrow-back {
+       /* @embed */
+       background: url(images/left-arrow-green.png) no-repeat;
+}
+.ui-button-green.ui-button-large:hover .ac-arrow-back {
+       /* @embed */
+       background: url(images/left-arrow-green-hover.png) no-repeat;
+}
+.ui-button-red.ui-button-large .ac-arrow-forward {
+       /* @embed */
+       background: url(images/right-arrow-red.png) no-repeat;
+}
+.ui-button-red.ui-button-large:hover .ac-arrow-forward {
+       /* @embed */
+       background: url(images/right-arrow-red-hover.png) no-repeat;
+}
+.ui-button-red.ui-button-large .ac-arrow-back {
+       /* @embed */
+       background: url(images/left-arrow-red.png) no-repeat;
+}
+.ui-button-red.ui-button-large:hover .ac-arrow-back {
+       /* @embed */
+       background: url(images/left-arrow-red-hover.png) no-repeat;
+}
+
 /* Tooltip Magic */
 
 .mw-ac-tip {

Added: 
trunk/extensions/ArticleCreationWorkflow/modules/ext.articleCreation.core/images/left-arrow-blue-hover.png
===================================================================
(Binary files differ)


Property changes on: 
trunk/extensions/ArticleCreationWorkflow/modules/ext.articleCreation.core/images/left-arrow-blue-hover.png
___________________________________________________________________
Added: svn:mime-type
   + image/png

Modified: 
trunk/extensions/ArticleCreationWorkflow/modules/ext.articleCreation.core/images/left-arrow-blue.png
===================================================================
(Binary files differ)

Added: 
trunk/extensions/ArticleCreationWorkflow/modules/ext.articleCreation.core/images/left-arrow-green-hover.png
===================================================================
(Binary files differ)


Property changes on: 
trunk/extensions/ArticleCreationWorkflow/modules/ext.articleCreation.core/images/left-arrow-green-hover.png
___________________________________________________________________
Added: svn:mime-type
   + image/png

Modified: 
trunk/extensions/ArticleCreationWorkflow/modules/ext.articleCreation.core/images/left-arrow-green.png
===================================================================
(Binary files differ)

Added: 
trunk/extensions/ArticleCreationWorkflow/modules/ext.articleCreation.core/images/left-arrow-orange-hover.png
===================================================================
(Binary files differ)


Property changes on: 
trunk/extensions/ArticleCreationWorkflow/modules/ext.articleCreation.core/images/left-arrow-orange-hover.png
___________________________________________________________________
Added: svn:mime-type
   + image/png

Modified: 
trunk/extensions/ArticleCreationWorkflow/modules/ext.articleCreation.core/images/left-arrow-orange.png
===================================================================
(Binary files differ)

Added: 
trunk/extensions/ArticleCreationWorkflow/modules/ext.articleCreation.core/images/left-arrow-red-hover.png
===================================================================
(Binary files differ)


Property changes on: 
trunk/extensions/ArticleCreationWorkflow/modules/ext.articleCreation.core/images/left-arrow-red-hover.png
___________________________________________________________________
Added: svn:mime-type
   + image/png

Modified: 
trunk/extensions/ArticleCreationWorkflow/modules/ext.articleCreation.core/images/left-arrow-red.png
===================================================================
(Binary files differ)

Added: 
trunk/extensions/ArticleCreationWorkflow/modules/ext.articleCreation.core/images/right-arrow-blue-hover.png
===================================================================
(Binary files differ)


Property changes on: 
trunk/extensions/ArticleCreationWorkflow/modules/ext.articleCreation.core/images/right-arrow-blue-hover.png
___________________________________________________________________
Added: svn:mime-type
   + image/png

Modified: 
trunk/extensions/ArticleCreationWorkflow/modules/ext.articleCreation.core/images/right-arrow-blue.png
===================================================================
(Binary files differ)

Added: 
trunk/extensions/ArticleCreationWorkflow/modules/ext.articleCreation.core/images/right-arrow-green-hover.png
===================================================================
(Binary files differ)


Property changes on: 
trunk/extensions/ArticleCreationWorkflow/modules/ext.articleCreation.core/images/right-arrow-green-hover.png
___________________________________________________________________
Added: svn:mime-type
   + image/png

Modified: 
trunk/extensions/ArticleCreationWorkflow/modules/ext.articleCreation.core/images/right-arrow-green.png
===================================================================
(Binary files differ)

Added: 
trunk/extensions/ArticleCreationWorkflow/modules/ext.articleCreation.core/images/right-arrow-orange-hover.png
===================================================================
(Binary files differ)


Property changes on: 
trunk/extensions/ArticleCreationWorkflow/modules/ext.articleCreation.core/images/right-arrow-orange-hover.png
___________________________________________________________________
Added: svn:mime-type
   + image/png

Modified: 
trunk/extensions/ArticleCreationWorkflow/modules/ext.articleCreation.core/images/right-arrow-orange.png
===================================================================
(Binary files differ)

Added: 
trunk/extensions/ArticleCreationWorkflow/modules/ext.articleCreation.core/images/right-arrow-red-hover.png
===================================================================
(Binary files differ)


Property changes on: 
trunk/extensions/ArticleCreationWorkflow/modules/ext.articleCreation.core/images/right-arrow-red-hover.png
___________________________________________________________________
Added: svn:mime-type
   + image/png

Modified: 
trunk/extensions/ArticleCreationWorkflow/modules/ext.articleCreation.core/images/right-arrow-red.png
===================================================================
(Binary files differ)

Modified: 
trunk/extensions/ArticleCreationWorkflow/modules/ext.articleCreation.user/ext.articleCreation.user.js
===================================================================
--- 
trunk/extensions/ArticleCreationWorkflow/modules/ext.articleCreation.user/ext.articleCreation.user.js
       2012-03-06 00:53:48 UTC (rev 113115)
+++ 
trunk/extensions/ArticleCreationWorkflow/modules/ext.articleCreation.user/ext.articleCreation.user.js
       2012-03-06 01:04:52 UTC (rev 113116)
@@ -98,11 +98,13 @@
                                        var article = wgPageName.substr( 
wgPageName.indexOf('/') + 1 );
                                        ac.trackAction( article, 
$(this).data('ac-button' ) + '_button_click' );
 
+                                       // make button green
                                        $( this )
-                                               //make it green
                                                .removeClass('ui-button-blue')
                                                .addClass('ui-button-green')
-                                               .addClass('ac-button-selected')
+                                               .addClass('ac-button-selected');
+                                       // show interstitial
+                                       $( this )
                                                .parent()
                                                .find('.mw-ac-tooltip' )
                                                        .hide()


_______________________________________________
MediaWiki-CVS mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs

Reply via email to