Merge "Convert non-standard class-names (mw-mlb, multiediaviewer-)"

This commit is contained in:
jenkins-bot 2014-07-07 16:29:47 +00:00 committed by Gerrit Code Review
commit 6faaa01ad3
3 changed files with 18 additions and 18 deletions

View file

@ -33,7 +33,7 @@
/** @property {mw.mmv.ui.reuse.Utils} utils - */ /** @property {mw.mmv.ui.reuse.Utils} utils - */
this.utils = new mw.mmv.ui.reuse.Utils(); this.utils = new mw.mmv.ui.reuse.Utils();
this.$pane.addClass( 'mw-mlb-download-pane' ); this.$pane.addClass( 'mw-mmv-download-pane' );
this.$pane.appendTo( this.$container ); this.$pane.appendTo( this.$container );
this.createDownloadButton( this.$pane ); this.createDownloadButton( this.$pane );
@ -72,18 +72,18 @@
this.$downloadButton = $( '<a>' ) this.$downloadButton = $( '<a>' )
.attr( 'target', '_blank' ) .attr( 'target', '_blank' )
.attr( 'download', '' ) .attr( 'download', '' )
.addClass( 'mw-ui-button mw-ui-constructive multimediaviewer-download-button' ); .addClass( 'mw-ui-button mw-ui-constructive mw-mmv-download-button' );
this.$selectionArrow = $( '<span>' ) this.$selectionArrow = $( '<span>' )
.addClass( 'mw-ui-button mw-mlb-download-select-menu' ) .addClass( 'mw-ui-button mw-mmv-download-select-menu' )
.append( .append(
$( '<span>' ) $( '<span>' )
.addClass( 'multimediaviewer-download-image-size-name' ) .addClass( 'mw-mmv-download-image-size-name' )
.html( '&nbsp;' ) .html( '&nbsp;' )
) )
.append( .append(
$( '<span>' ) $( '<span>' )
.addClass( 'multimediaviewer-download-image-size' ) .addClass( 'mw-mmv-download-image-size' )
.html( '&nbsp;' ) .html( '&nbsp;' )
); );
@ -100,7 +100,7 @@
DP.createSizePulldownMenu = function ( $container ) { DP.createSizePulldownMenu = function ( $container ) {
this.downloadSizeMenu = this.utils.createPulldownMenu( this.downloadSizeMenu = this.utils.createPulldownMenu(
[ 'original', 'small', 'medium', 'large' ], [ 'original', 'small', 'medium', 'large' ],
[ 'mw-mlb-download-size' ], [ 'mw-mmv-download-size' ],
'original' 'original'
); );
@ -115,7 +115,7 @@
DP.createPreviewLink = function ( $container ) { DP.createPreviewLink = function ( $container ) {
this.$previewLink = $( '<a>' ) this.$previewLink = $( '<a>' )
.attr( 'target', '_blank' ) .attr( 'target', '_blank' )
.addClass( 'mw-mlb-download-preview-link' ) .addClass( 'mw-mmv-download-preview-link' )
.text( mw.message( 'multimediaviewer-download-preview-link-title' ).text() ) .text( mw.message( 'multimediaviewer-download-preview-link-title' ).text() )
.appendTo( $container ); .appendTo( $container );
}; };
@ -289,8 +289,8 @@
// Update button label and size strings to reflect new selected size // Update button label and size strings to reflect new selected size
this.$downloadButton.html( this.$downloadButton.html(
'<span class="multimediaviewer-download-image-size-name">' + sizeClasMessage + '</span>' '<span class="mw-mmv-download-image-size-name">' + sizeClasMessage + '</span>'
+ '<span class="multimediaviewer-download-image-size">' + sizeMessage + '</span>' + '<span class="mw-mmv-download-image-size">' + sizeMessage + '</span>'
); );
}; };

View file

@ -4,7 +4,7 @@
@attribution-color-highlighted: #f5f5f5; @attribution-color-highlighted: #f5f5f5;
@attribution-logo-size: 40px; @attribution-logo-size: 40px;
.mw-mlb-download-pane { .mw-mmv-download-pane {
padding: 0 @pane-padding; padding: 0 @pane-padding;
position: relative; position: relative;
height: 280px; height: 280px;
@ -15,13 +15,13 @@
cursor: default; cursor: default;
} }
.multimediaviewer-download-button { .mw-mmv-download-button {
border-top-right-radius: 0; border-top-right-radius: 0;
border-bottom-right-radius: 0; border-bottom-right-radius: 0;
} }
/* Selection size arrow element */ /* Selection size arrow element */
.mw-mlb-download-select-menu { .mw-mmv-download-select-menu {
background-position: center center; background-position: center center;
background-repeat: no-repeat; background-repeat: no-repeat;
background-color: @mw-ui-constructive-button-color; background-color: @mw-ui-constructive-button-color;
@ -35,17 +35,17 @@
} }
} }
.multimediaviewer-download-image-size-name { .mw-mmv-download-image-size-name {
display:block; display:block;
} }
.multimediaviewer-download-image-size { .mw-mmv-download-image-size {
display:block; display:block;
font-size: small; font-size: small;
font-weight: normal; font-weight: normal;
} }
.mw-mlb-download-preview-link { .mw-mmv-download-preview-link {
display: block; display: block;
margin-top: 12px; margin-top: 12px;
margin-left: -6px; margin-left: -6px;
@ -67,7 +67,7 @@
} }
/* Pulldown size menu */ /* Pulldown size menu */
.mw-mlb-download-size { .mw-mmv-download-size {
display: none; display: none;
&.active { &.active {

View file

@ -30,7 +30,7 @@
def = 'large', def = 'large',
menu = utils.createPulldownMenu( menu = utils.createPulldownMenu(
menuItems, menuItems,
[ 'mw-mlb-download-size' ], [ 'mw-mmv-download-size' ],
def def
), ),
options = menu.getMenu().getItems(), options = menu.getMenu().getItems(),
@ -53,7 +53,7 @@
var utils = new mw.mmv.ui.reuse.Utils(), var utils = new mw.mmv.ui.reuse.Utils(),
menu = utils.createPulldownMenu( menu = utils.createPulldownMenu(
[ 'original', 'small', 'medium', 'large' ], [ 'original', 'small', 'medium', 'large' ],
[ 'mw-mlb-download-size' ], [ 'mw-mmv-download-size' ],
'original' 'original'
), ),
options = menu.getMenu().getItems(), options = menu.getMenu().getItems(),