mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/MultimediaViewer
synced 2024-12-24 13:45:00 +00:00
bee73f7520
Replacing 'mediawiki.ui/variables.less' `@import` with new skin-aware 'mediawiki.skin.variables.less' standard. Also replacing and removing scattered WikimediaUI Base variables with new skin variables. Also - replacing several static values with new Codex design tokens featuring skin variables for following properties: - `background-color` - `color` - `border*` - `border-radius` - replacing local variables with new skin variables where applicable. Bump required MediaWiki core version to >= v1.41.0. Bug: T319381 Bug: T332541 Co-Authored-by: Volker E. <volker.e@wikimedia.org> Depends-On: I04f9e48a1cf9dee915cf51e1e12b17ff0a595a06 Change-Id: Ie834b3f652bd22d9bf96c112166a5b7fcc3ecf2d
182 lines
3.4 KiB
Plaintext
182 lines
3.4 KiB
Plaintext
@import 'mediawiki.skin.variables.less';
|
|
@import '../mmv/mmv.variables.less';
|
|
@import '../mmv/mmv.mixins.less';
|
|
|
|
@pane-padding: 10px;
|
|
@attribution-color: #f8f9fa;
|
|
@attribution-color-highlighted: #fff;
|
|
@attribution-logo-size: 40px;
|
|
|
|
.mw-mmv-download-pane {
|
|
padding: 0 @pane-padding;
|
|
position: relative;
|
|
height: 100%;
|
|
|
|
/* Disable link clicks */
|
|
a.disabledLink {
|
|
pointer-events: none;
|
|
cursor: default;
|
|
}
|
|
|
|
.mw-mmv-download-area {
|
|
padding-top: 20px;
|
|
padding-left: 10px;
|
|
padding-bottom: 60px;
|
|
width: 100%;
|
|
|
|
.mw-mmv-download-go-button {
|
|
border-top-right-radius: 0;
|
|
border-bottom-right-radius: 0;
|
|
}
|
|
|
|
/* Selection size arrow element */
|
|
.mw-mmv-download-select-menu {
|
|
.unselectable();
|
|
background-image: /* @embed */ url( img/down.svg );
|
|
background-position: center center;
|
|
background-repeat: no-repeat;
|
|
min-width: 10px;
|
|
border-top-left-radius: 0;
|
|
border-bottom-left-radius: 0;
|
|
border-left: 1px solid mix( #000, @color-progressive, 20% );
|
|
|
|
&:hover {
|
|
border-bottom: 1px solid mix( #000, @color-progressive, 20% );
|
|
}
|
|
}
|
|
|
|
.mw-mmv-download-image-size-name {
|
|
display: block;
|
|
}
|
|
|
|
.mw-mmv-download-image-size {
|
|
display: block;
|
|
font-size: small;
|
|
font-weight: normal;
|
|
}
|
|
|
|
.mw-mmv-download-preview-link {
|
|
display: inline-block;
|
|
margin-top: 12px;
|
|
margin-left: -6px;
|
|
font-size: 16px;
|
|
color: @color-subtle;
|
|
|
|
&::before {
|
|
display: inline-block;
|
|
vertical-align: middle;
|
|
content: ' ';
|
|
width: 44px;
|
|
height: 30px;
|
|
/* @embed */
|
|
background-image: url( img/open.svg );
|
|
background-size: contain;
|
|
background-position: right center;
|
|
background-repeat: no-repeat;
|
|
}
|
|
}
|
|
|
|
/* Pulldown size menu */
|
|
.mw-mmv-download-size {
|
|
text-align: start;
|
|
display: none;
|
|
margin-top: 0;
|
|
margin-right: 20px;
|
|
width: auto;
|
|
|
|
&.active {
|
|
display: block;
|
|
}
|
|
|
|
/* Changes to pulldown menu */
|
|
.oo-ui-dropdownWidget-handle {
|
|
display: none;
|
|
}
|
|
|
|
.oo-ui-menuOptionWidget {
|
|
display: block;
|
|
}
|
|
|
|
.oo-ui-widget-disabled {
|
|
display: none;
|
|
}
|
|
|
|
.oo-ui-labelElement-label {
|
|
margin-left: 20px;
|
|
}
|
|
}
|
|
}
|
|
|
|
.mw-mmv-download-attribution {
|
|
margin: 0 -@pane-padding;
|
|
padding: @pane-padding;
|
|
background-color: @attribution-color;
|
|
color: @color-subtle;
|
|
|
|
&:hover {
|
|
background-color: @attribution-color-highlighted;
|
|
color: @color-base;
|
|
}
|
|
|
|
&-how {
|
|
position: relative;
|
|
display: block;
|
|
padding: 5px;
|
|
margin-bottom: 0;
|
|
|
|
.mw-mmv-download-attribution-close-button {
|
|
cursor: pointer;
|
|
position: absolute;
|
|
top: 5px;
|
|
right: 0;
|
|
width: 12px;
|
|
height: 12px;
|
|
/* @embed */
|
|
background-image: url( ../mmv/ui/img/x_gray.svg );
|
|
}
|
|
}
|
|
|
|
&-how-header,
|
|
&-cta-header {
|
|
font-size: large;
|
|
font-weight: bold;
|
|
margin-top: 0;
|
|
}
|
|
|
|
&-cta-header {
|
|
margin-bottom: 0;
|
|
}
|
|
|
|
&-cta-invite {
|
|
font-size: small;
|
|
margin: 0;
|
|
color: #72777d;
|
|
}
|
|
|
|
&-cta {
|
|
/* @embed */
|
|
background-image: url( ../mmv/ui/img/user-avatar.svg );
|
|
background-position: left center;
|
|
background-repeat: no-repeat;
|
|
background-size: @attribution-logo-size;
|
|
cursor: pointer;
|
|
display: none;
|
|
padding-left: @attribution-logo-size + 10px;
|
|
}
|
|
|
|
&.mw-mmv-download-attribution-collapsed {
|
|
.mw-mmv-download-attribution-cta {
|
|
display: block;
|
|
}
|
|
|
|
.mw-mmv-download-attribution-how {
|
|
display: none;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
.mw-mmv-reuse-dialog.mw-mmv-reuse-download-active .mw-mmv-reuse-down-arrow {
|
|
background-color: @attribution-color;
|
|
}
|