mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/MultimediaViewer
synced 2024-11-28 10:00:18 +00:00
eca337e62f
Adds setWarning(<element>,...) and clearWarning() to mw.mmv.ui.Dialog. These functions can be used to display a warning ribbon with the given text in the reuse dialogs, typically when the copyright status of the file is problematic (e.g. non-free or tagged with {{wrong licence}}). Bug: T76030 Bug: T71389 Bug: T71557 Change-Id: I7c477c810d391578ec64635357eda97a85ab2954
46 lines
940 B
Plaintext
46 lines
940 B
Plaintext
@import '../mmv.mixins';
|
|
@import '../mmv.globals';
|
|
|
|
@background-color: #fff;
|
|
@dialog-width: 450px;
|
|
@box-shadow-dialog: 0 2px 2px 0 darken( @background-color, 33.3% );
|
|
|
|
.mw-mmv-dialog {
|
|
position: fixed;
|
|
right: 58px;
|
|
display: none;
|
|
width: @dialog-width;
|
|
height: @dialog-height;
|
|
background-color: @background-color;
|
|
box-shadow: @box-shadow-dialog;
|
|
border-radius: @border-radius;
|
|
z-index: 1004;
|
|
|
|
.mw-mmv-dialog-down-arrow {
|
|
right: 48px;
|
|
background-color: @background-color;
|
|
width: @arrow-size;
|
|
height: @arrow-size;
|
|
.rotate( -45deg );
|
|
position: fixed;
|
|
}
|
|
|
|
.mw-mmv-dialog-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-warning {
|
|
background-color: @dialog-warning-color;
|
|
}
|
|
}
|