mediawiki-extensions-Multim.../resources/mmv/ui/mmv.ui.reuse.dialog.less
Geoffrey Mon a907339f89 Add button to select and copy share/embed text to clipboard
Clipboard icon adapted from modules/tools/images/pasting.svg from the
ContentTranslation extension.

Also adjusts some margins to better separate embed code box from embed
options

Bug: T77295
Change-Id: Ic7a11eab6ecc767ad4d80b94a7b62578d535d047
2016-12-25 23:59:47 -05:00

77 lines
1.7 KiB
Plaintext

@import '../mmv.mixins';
@import '../mmv.globals';
.mw-mmv-reuse-dialog {
@divider-border-height: 1px;
// positioned relative to the reuse button
bottom: @metadatabar-above-fold-height + @progress-bar-height - 5px;
.mw-mmv-reuse-tabs {
@divider-color: rgb( 204, 204, 204 );
position: static;
box-shadow: none;
padding-bottom: 0; // OOUI override
border: 0; // OOUI override
border-bottom: @divider-border-height solid @divider-color;
.box-round( @border-radius @border-radius 0 0 );
.oo-ui-iconedElement-icon.oo-ui-icon-check,
.oo-ui-iconElement-icon.oo-ui-icon-check {
display: none;
}
.oo-ui-optionWidget {
@tab-border-height: 3px;
@highlighted-tab-color: rgb( 225, 243, 255 );
@selected-tab-color: rgb( 0, 113, 188 );
display: inline-block;
padding: 10px 25px;
font-size: 1.2em;
&.oo-ui-optionWidget-highlighted {
border-bottom: ( @tab-border-height - @divider-border-height ) solid @highlighted-tab-color;
}
&.oo-ui-optionWidget-selected,
&.oo-ui-optionWidget-highlighted.oo-ui-optionWidget-selected {
border-bottom: @tab-border-height solid @selected-tab-color;
}
&:first-child {
.box-round( @border-radius 0 0 0 );
}
}
}
.mw-mmv-reuse-pane {
display: none;
padding: 20px;
&.active {
display: block;
}
.mw-mmv-reuse-copy {
/* @embed */
background-image: url( img/pasting.svg );
background-size: contain;
background-position: right center;
background-repeat: no-repeat;
&:hover {
/* @embed */
background-image: url( img/pasting-hover.svg );
text-decoration: none;
}
}
}
.mw-mmv-dialog-down-arrow {
bottom: @metadatabar-above-fold-height + @progress-bar-height + 5px;
}
}