mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/MultimediaViewer
synced 2024-11-25 08:35:29 +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
35 lines
784 B
Plaintext
35 lines
784 B
Plaintext
@import '../mmv.mixins';
|
|
@import '../mmv.globals';
|
|
|
|
.mw-mmv-download-dialog {
|
|
// resetting height (to overwrite .mw-mmv-dialog's bigger height), since the
|
|
// height may have to change for warnings being added
|
|
height: initial;
|
|
// positioned relative to the download button
|
|
position: fixed;
|
|
bottom: @metadatabar-above-fold-height + @progress-bar-height + 35px;
|
|
|
|
.mw-mmv-download-size .oo-ui-optionWidget {
|
|
display: inline-block;
|
|
padding: 10px 25px;
|
|
font-size: 16px;
|
|
|
|
&.oo-ui-optionWidget-selected {
|
|
border: 0;
|
|
}
|
|
|
|
&:first-child {
|
|
border-radius: @border-radius 0 0 0;
|
|
}
|
|
}
|
|
|
|
.mw-mmv-dialog-down-arrow {
|
|
bottom: @metadatabar-above-fold-height + @progress-bar-height + 45px;
|
|
background-color: #f8f9fa;
|
|
}
|
|
|
|
.mw-mmv-dialog-warning {
|
|
padding: 10px 30px;
|
|
}
|
|
}
|