2023-04-03 20:44:15 +00:00
|
|
|
@import 'mediawiki.skin.variables.less';
|
2020-04-18 04:13:01 +00:00
|
|
|
@import '../mmv.variables.less';
|
|
|
|
@import '../mmv.mixins.less';
|
2014-04-01 01:41:57 +00:00
|
|
|
|
2016-11-02 08:27:04 +00:00
|
|
|
@panel-below-fold-background-color: #f8f9fa;
|
2014-04-08 22:43:54 +00:00
|
|
|
|
2014-10-29 19:50:53 +00:00
|
|
|
@vertical-padding: 10px;
|
|
|
|
@horizontal-padding: 20px;
|
|
|
|
@space-above-credit: 2px;
|
2014-10-27 16:17:49 +00:00
|
|
|
|
2014-04-08 22:43:54 +00:00
|
|
|
.mw-mmv-info-box {
|
|
|
|
display: inline-block;
|
|
|
|
overflow: hidden;
|
2023-04-03 20:44:15 +00:00
|
|
|
border: @border-subtle;
|
|
|
|
border-radius: @border-radius-base;
|
|
|
|
background-color: @background-color-base;
|
2014-04-08 22:43:54 +00:00
|
|
|
}
|
|
|
|
|
2014-04-01 01:41:57 +00:00
|
|
|
.mw-mmv-title-contain {
|
|
|
|
position: relative;
|
|
|
|
}
|
|
|
|
|
|
|
|
.mw-mmv-title-para {
|
2014-10-29 19:50:53 +00:00
|
|
|
@height: @metadatabar-above-fold-inner-height - 2 * @vertical-padding; // needs explicit height for text truncation logic
|
2014-11-11 15:21:36 +00:00
|
|
|
margin: 0 0 @vertical-padding; // use margin instead of padding for bottom so text is not visible
|
2014-10-29 19:50:53 +00:00
|
|
|
padding: @vertical-padding @horizontal-padding 0 @horizontal-padding;
|
|
|
|
height: @height;
|
|
|
|
line-height: @height;
|
|
|
|
|
|
|
|
&.mw-mmv-ttf-normal {
|
|
|
|
font-size: 20px;
|
|
|
|
}
|
2018-11-29 05:13:08 +00:00
|
|
|
|
2014-10-29 19:50:53 +00:00
|
|
|
&.mw-mmv-title-small {
|
|
|
|
font-size: 18px;
|
|
|
|
}
|
2018-11-29 05:13:08 +00:00
|
|
|
|
2014-10-29 19:50:53 +00:00
|
|
|
&.mw-mmv-title-smaller {
|
|
|
|
@vertical-padding: 6px;
|
|
|
|
@height: @metadatabar-above-fold-inner-height - 2 * @vertical-padding;
|
|
|
|
height: @height;
|
|
|
|
margin: 0 0 @horizontal-padding;
|
2016-07-18 14:24:02 +00:00
|
|
|
padding: @vertical-padding @horizontal-padding 0 @horizontal-padding;
|
|
|
|
line-height: floor( @height / 2 ); // two lines
|
2014-10-29 19:50:53 +00:00
|
|
|
font-size: 16px;
|
|
|
|
}
|
|
|
|
|
|
|
|
// this should be after the size-specific styles so it can override any height set there
|
|
|
|
&.mw-mmv-ttf-untruncated {
|
|
|
|
height: auto;
|
|
|
|
}
|
|
|
|
|
|
|
|
.mw-mmv-ttf-ellipsis {
|
|
|
|
right: @horizontal-padding;
|
2014-11-11 15:21:36 +00:00
|
|
|
bottom: 3px;
|
2014-10-29 19:50:53 +00:00
|
|
|
background-color: @panel-above-fold-background-color; // clip text
|
2017-03-02 23:45:42 +00:00
|
|
|
|
2023-04-04 06:18:59 +00:00
|
|
|
&::before {
|
2016-07-18 14:24:02 +00:00
|
|
|
.fade-out-horizontal( @panel-above-fold-background-color );
|
2014-10-29 19:50:53 +00:00
|
|
|
}
|
|
|
|
}
|
2014-06-17 22:23:18 +00:00
|
|
|
}
|
2014-10-29 19:50:53 +00:00
|
|
|
|
2014-06-17 22:23:18 +00:00
|
|
|
.mw-mmv-credit {
|
2014-10-29 19:50:53 +00:00
|
|
|
@padding-right: 5px;
|
2014-06-17 22:23:18 +00:00
|
|
|
margin: 0;
|
2023-04-03 20:44:15 +00:00
|
|
|
color: @color-subtle;
|
2014-10-29 19:50:53 +00:00
|
|
|
padding: 0 0 @padding-right;
|
2014-10-27 16:17:49 +00:00
|
|
|
font-size: 0.85em;
|
2014-10-29 19:50:53 +00:00
|
|
|
|
2015-06-19 00:16:16 +00:00
|
|
|
.metadata-panel-is-closed {
|
2023-04-03 20:44:15 +00:00
|
|
|
height: @metadatabar-below-fold-pushup-height - @space-above-credit - @border-width-base; // needs explicit height for text truncation logic
|
|
|
|
line-height: @metadatabar-below-fold-pushup-height - @space-above-credit - @border-width-base;
|
2014-10-29 19:50:53 +00:00
|
|
|
}
|
|
|
|
|
2014-10-27 16:17:49 +00:00
|
|
|
&.empty {
|
|
|
|
height: 0.85em;
|
|
|
|
}
|
2014-10-29 19:50:53 +00:00
|
|
|
|
|
|
|
.mw-mmv-ttf-ellipsis {
|
|
|
|
right: @padding-right;
|
|
|
|
bottom: 13px;
|
|
|
|
background-color: @panel-below-fold-background-color; // clip text
|
2017-03-02 23:45:42 +00:00
|
|
|
|
2023-04-04 06:18:59 +00:00
|
|
|
&::before {
|
2016-07-18 14:24:02 +00:00
|
|
|
.fade-out-horizontal( @panel-below-fold-background-color );
|
2014-10-29 19:50:53 +00:00
|
|
|
}
|
|
|
|
}
|
2014-04-01 01:41:57 +00:00
|
|
|
}
|
|
|
|
|
2014-11-06 16:48:42 +00:00
|
|
|
.mw-mmv-source-author {
|
|
|
|
line-height: 1.8em;
|
|
|
|
}
|
|
|
|
|
2014-04-01 01:41:57 +00:00
|
|
|
.mw-mmv-title {
|
2014-11-11 15:21:36 +00:00
|
|
|
// this element is the click target for text untruncation; with the default display:inline it would be an
|
|
|
|
// inline box which can have "gaps" between the lines, making clicks seem to have no effect
|
|
|
|
display: inline-block;
|
2014-04-01 01:41:57 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.mw-mmv-image-metadata {
|
|
|
|
width: 100%;
|
|
|
|
position: relative;
|
2014-10-27 16:17:49 +00:00
|
|
|
margin-top: -@metadatabar-below-fold-pushup-height;
|
2023-04-03 20:44:15 +00:00
|
|
|
border-top: @border-subtle;
|
2014-10-29 19:50:53 +00:00
|
|
|
background-color: @panel-below-fold-background-color;
|
|
|
|
padding-top: @space-above-credit;
|
2014-10-27 16:17:49 +00:00
|
|
|
|
|
|
|
.jq-fullscreened & {
|
|
|
|
// Make sure content fits into the screen. This assumes no paddings.
|
2023-04-03 20:44:15 +00:00
|
|
|
height: @metadatabar-below-fold-pushup-height - @border-width-base - @space-above-credit;
|
2014-10-27 16:17:49 +00:00
|
|
|
overflow: hidden;
|
|
|
|
}
|
2018-11-29 05:13:08 +00:00
|
|
|
|
2014-10-27 16:17:49 +00:00
|
|
|
.jq-fullscreened .mw-mmv-untruncated & {
|
|
|
|
height: auto;
|
|
|
|
}
|
2014-04-01 01:41:57 +00:00
|
|
|
}
|
|
|
|
|
2023-04-04 06:18:59 +00:00
|
|
|
.mw-mmv-author::before {
|
2018-10-11 06:25:43 +00:00
|
|
|
/* @embed */
|
|
|
|
background-image: url( img/user-avatar.svg );
|
|
|
|
background-position: center center;
|
|
|
|
background-repeat: no-repeat;
|
|
|
|
background-size: contain;
|
2014-10-27 16:17:49 +00:00
|
|
|
display: inline-block;
|
|
|
|
vertical-align: middle;
|
|
|
|
height: 16px;
|
|
|
|
width: 16px;
|
|
|
|
content: ' ';
|
2014-11-06 16:48:42 +00:00
|
|
|
margin-right: 7px;
|
|
|
|
margin-bottom: 2px;
|
2014-04-01 01:41:57 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.mw-mmv-image-desc-div {
|
|
|
|
overflow-y: auto;
|
2016-07-18 14:24:02 +00:00
|
|
|
max-height: 150px;
|
|
|
|
margin-bottom: 15px;
|
2014-10-29 14:46:30 +00:00
|
|
|
|
|
|
|
&.empty {
|
|
|
|
display: none;
|
|
|
|
}
|
2014-04-01 01:41:57 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.mw-mmv-image-desc-div,
|
|
|
|
.mw-mmv-image-links-div {
|
|
|
|
display: inline-block;
|
|
|
|
vertical-align: top;
|
|
|
|
}
|
|
|
|
|
|
|
|
@littlefont: 0.85em;
|
2014-10-27 16:17:49 +00:00
|
|
|
@mediumfont: 0.95em;
|
2014-04-01 01:41:57 +00:00
|
|
|
|
|
|
|
.mw-mmv-image-desc {
|
|
|
|
font-size: @mediumfont;
|
2023-04-03 20:44:15 +00:00
|
|
|
color: @color-subtle;
|
2014-04-01 01:41:57 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.mw-mmv-image-links {
|
2014-04-08 22:43:54 +00:00
|
|
|
margin: 0 20px;
|
2022-04-03 15:49:08 +00:00
|
|
|
word-break: break-word;
|
2017-03-02 23:45:42 +00:00
|
|
|
|
2014-04-01 01:41:57 +00:00
|
|
|
li {
|
|
|
|
list-style: none;
|
|
|
|
font-size: @littlefont;
|
|
|
|
|
|
|
|
&.empty {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
|
2015-06-19 00:16:16 +00:00
|
|
|
// Make sure the next list item is not visible when the
|
|
|
|
// metadata panel is closed
|
|
|
|
.metadata-panel-is-closed &.mw-mmv-license-li {
|
|
|
|
height: @metadatabar-below-fold-pushup-height - @space-above-credit;
|
|
|
|
line-height: @metadatabar-below-fold-pushup-height - @space-above-credit;
|
|
|
|
}
|
|
|
|
|
2023-04-04 06:18:59 +00:00
|
|
|
&::before {
|
2014-04-01 01:41:57 +00:00
|
|
|
display: inline-block;
|
|
|
|
vertical-align: middle;
|
|
|
|
height: 16px;
|
|
|
|
width: 16px;
|
|
|
|
content: ' ';
|
2014-11-06 16:48:42 +00:00
|
|
|
margin-right: 7px;
|
|
|
|
margin-bottom: 2px;
|
2014-04-01 01:41:57 +00:00
|
|
|
background-size: contain;
|
|
|
|
background-position: right center;
|
|
|
|
background-repeat: no-repeat;
|
|
|
|
}
|
|
|
|
|
2023-04-04 06:18:59 +00:00
|
|
|
&.mw-mmv-license-li::before {
|
2014-11-13 23:27:07 +00:00
|
|
|
/* @embed */
|
2016-07-18 14:24:02 +00:00
|
|
|
background-image: url( img/license.svg );
|
2014-11-13 23:27:07 +00:00
|
|
|
}
|
|
|
|
|
2023-04-04 06:18:59 +00:00
|
|
|
&.mw-mmv-license-li.cc-license::before {
|
2014-10-27 14:03:16 +00:00
|
|
|
/* @embed */
|
2016-07-18 14:24:02 +00:00
|
|
|
background-image: url( img/cc.svg );
|
2014-10-27 14:03:16 +00:00
|
|
|
}
|
|
|
|
|
2023-04-04 06:18:59 +00:00
|
|
|
&.mw-mmv-license-li.pd-license::before {
|
2014-10-29 12:05:29 +00:00
|
|
|
/* @embed */
|
2016-07-18 14:24:02 +00:00
|
|
|
background-image: url( img/pd.svg );
|
2014-10-29 12:05:29 +00:00
|
|
|
}
|
|
|
|
|
2023-04-04 06:18:59 +00:00
|
|
|
&.mw-mmv-filename-li::before {
|
2015-01-13 02:51:46 +00:00
|
|
|
/* @embed */
|
2016-07-18 14:24:02 +00:00
|
|
|
background-image: url( img/file.svg );
|
2015-01-13 02:51:46 +00:00
|
|
|
}
|
|
|
|
|
2023-04-04 06:18:59 +00:00
|
|
|
&.mw-mmv-datetime-li::before {
|
2014-04-01 01:41:57 +00:00
|
|
|
/* @embed */
|
2016-07-18 14:24:02 +00:00
|
|
|
background-image: url( img/time.svg );
|
2014-04-01 01:41:57 +00:00
|
|
|
}
|
|
|
|
|
2023-04-04 06:18:59 +00:00
|
|
|
&.mw-mmv-location-li::before {
|
2014-04-01 01:41:57 +00:00
|
|
|
/* @embed */
|
2016-07-18 14:24:02 +00:00
|
|
|
background-image: url( img/location.svg );
|
2014-04-01 01:41:57 +00:00
|
|
|
}
|
|
|
|
|
2023-04-04 06:18:59 +00:00
|
|
|
&.empty::before {
|
2016-07-18 14:24:02 +00:00
|
|
|
background-image: none !important; /* stylelint-disable-line declaration-no-important */
|
2014-04-01 01:41:57 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.mw-mmv-license-contain,
|
|
|
|
.mw-mmv-license {
|
|
|
|
text-align: right;
|
|
|
|
}
|
|
|
|
|
2015-01-13 02:51:46 +00:00
|
|
|
.mw-mmv-filename-prefix {
|
|
|
|
padding-right: 4px;
|
|
|
|
cursor: text;
|
|
|
|
}
|
|
|
|
|
2014-04-01 01:41:57 +00:00
|
|
|
.mw-mmv-title-para,
|
|
|
|
.mw-mmv-credit,
|
2014-10-29 14:46:30 +00:00
|
|
|
.mw-mmv-image-desc {
|
2014-10-29 19:50:53 +00:00
|
|
|
padding-left: @horizontal-padding;
|
2014-04-01 01:41:57 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.mw-mmv-about-links {
|
|
|
|
font-size: @littlefont;
|
2014-10-29 19:50:53 +00:00
|
|
|
padding: @horizontal-padding;
|
2014-04-01 01:41:57 +00:00
|
|
|
width: 50%;
|
2016-07-18 14:24:02 +00:00
|
|
|
clear: both;
|
2014-04-01 01:41:57 +00:00
|
|
|
}
|
|
|
|
|
2014-03-31 21:33:12 +00:00
|
|
|
.mw-mmv-label {
|
2017-03-02 23:45:42 +00:00
|
|
|
background-color: #eaecf0;
|
2020-04-18 04:22:52 +00:00
|
|
|
color: @color-base;
|
2014-02-28 13:14:34 +00:00
|
|
|
margin-left: 6px;
|
2015-06-20 05:03:28 +00:00
|
|
|
margin-top: 1px;
|
2023-04-03 20:44:15 +00:00
|
|
|
border-radius: @border-radius-base;
|
2014-02-14 00:36:10 +00:00
|
|
|
padding: 2px 5px;
|
2014-02-28 13:14:34 +00:00
|
|
|
font-size: 0.9em;
|
2017-03-02 23:45:42 +00:00
|
|
|
|
2014-02-28 13:14:34 +00:00
|
|
|
&:hover {
|
2017-03-02 23:45:42 +00:00
|
|
|
background-color: #c8ccd1;
|
2014-02-28 13:14:34 +00:00
|
|
|
}
|
2014-02-14 00:36:10 +00:00
|
|
|
}
|
|
|
|
|
2014-03-31 21:33:12 +00:00
|
|
|
.mw-mmv-image-metadata-column {
|
2014-02-14 00:36:10 +00:00
|
|
|
float: left;
|
2014-03-11 14:18:34 +00:00
|
|
|
}
|
|
|
|
|
2014-03-31 21:33:12 +00:00
|
|
|
.mw-mmv-image-metadata-desc-column {
|
2014-03-11 14:18:34 +00:00
|
|
|
width: 66.5%;
|
|
|
|
}
|
|
|
|
|
2014-03-31 21:33:12 +00:00
|
|
|
.mw-mmv-image-metadata-links-column {
|
2014-10-29 17:00:22 +00:00
|
|
|
max-width: 33.5%;
|
|
|
|
width: 25%;
|
|
|
|
text-align: right;
|
|
|
|
float: right;
|
|
|
|
transition: width 0.2s ease-out;
|
|
|
|
|
2014-11-22 02:46:51 +00:00
|
|
|
.mw-mmv-untruncated & {
|
2014-10-29 17:00:22 +00:00
|
|
|
width: 33.5%;
|
|
|
|
text-align: left;
|
|
|
|
}
|
2014-02-14 00:36:10 +00:00
|
|
|
}
|
|
|
|
|
2015-06-20 05:03:28 +00:00
|
|
|
.mw-mmv-restrictions {
|
|
|
|
display: inline-block;
|
|
|
|
line-height: 14px;
|
|
|
|
}
|
|
|
|
|
2015-01-15 03:14:20 +00:00
|
|
|
.mw-mmv-restriction-label {
|
2018-11-29 05:13:08 +00:00
|
|
|
cursor: default;
|
|
|
|
display: inline-block;
|
|
|
|
height: 16px;
|
|
|
|
|
2016-07-18 14:24:02 +00:00
|
|
|
&,
|
|
|
|
&:hover {
|
|
|
|
background-color: #fc6;
|
2015-01-15 03:14:20 +00:00
|
|
|
}
|
2015-06-20 05:03:28 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.mw-mmv-restriction-label-inner {
|
|
|
|
display: inline-block;
|
|
|
|
width: 14px;
|
|
|
|
height: 14px;
|
|
|
|
text-indent: -9999px;
|
|
|
|
text-align: left;
|
|
|
|
background-size: contain;
|
2018-11-29 05:13:08 +00:00
|
|
|
|
2023-04-04 06:18:59 +00:00
|
|
|
&::after {
|
2015-06-20 05:03:28 +00:00
|
|
|
float: right;
|
|
|
|
text-indent: 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.mw-mmv-restriction-2257 {
|
|
|
|
/* @embed */
|
2016-07-18 14:24:02 +00:00
|
|
|
background-image: url( img/restrict-2257.svg );
|
2015-06-20 05:03:28 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.mw-mmv-restriction-aus-reserve {
|
|
|
|
/* @embed */
|
2016-07-18 14:24:02 +00:00
|
|
|
background-image: url( img/restrict-aus-reserve.svg );
|
2015-06-20 05:03:28 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.mw-mmv-restriction-communist {
|
|
|
|
/* @embed */
|
2016-07-18 14:24:02 +00:00
|
|
|
background-image: url( img/restrict-communist.svg );
|
2015-06-20 05:03:28 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.mw-mmv-restriction-costume {
|
|
|
|
/* @embed */
|
2016-07-18 14:24:02 +00:00
|
|
|
background-image: url( img/restrict-costume.svg );
|
2015-06-20 05:03:28 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.mw-mmv-restriction-currency {
|
|
|
|
/* @embed */
|
2016-07-18 14:24:02 +00:00
|
|
|
background-image: url( img/restrict-currency.svg );
|
2015-06-20 05:03:28 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.mw-mmv-restriction-design {
|
|
|
|
/* @embed */
|
2016-07-18 14:24:02 +00:00
|
|
|
background-image: url( img/restrict-design.svg );
|
2015-06-20 05:03:28 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.mw-mmv-restriction-fan-art {
|
|
|
|
/* @embed */
|
2016-07-18 14:24:02 +00:00
|
|
|
background-image: url( img/restrict-fan-art.svg );
|
2015-06-20 05:03:28 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.mw-mmv-restriction-ihl {
|
|
|
|
/* @embed */
|
2016-07-18 14:24:02 +00:00
|
|
|
background-image: url( img/restrict-ihl.svg );
|
2015-06-20 05:03:28 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.mw-mmv-restriction-insignia {
|
|
|
|
/* @embed */
|
2016-07-18 14:24:02 +00:00
|
|
|
background-image: url( img/restrict-insignia.svg );
|
2015-06-20 05:03:28 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.mw-mmv-restriction-ita-mibac {
|
|
|
|
/* @embed */
|
2016-07-18 14:24:02 +00:00
|
|
|
background-image: url( img/restrict-ita-mibac.svg );
|
2015-06-20 05:03:28 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.mw-mmv-restriction-nazi {
|
|
|
|
/* @embed */
|
2016-07-18 14:24:02 +00:00
|
|
|
background-image: url( img/restrict-nazi.svg );
|
2015-06-20 05:03:28 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.mw-mmv-restriction-personality {
|
|
|
|
/* @embed */
|
2016-07-18 14:24:02 +00:00
|
|
|
background-image: url( img/restrict-personality.svg );
|
2015-06-20 05:03:28 +00:00
|
|
|
}
|
|
|
|
|
2023-04-04 06:18:59 +00:00
|
|
|
.mw-mmv-restriction-trademarked::after {
|
2015-06-20 05:03:28 +00:00
|
|
|
content: '\002122';
|
|
|
|
}
|
|
|
|
|
|
|
|
.mw-mmv-restriction-default {
|
|
|
|
/* @embed */
|
2016-07-18 14:24:02 +00:00
|
|
|
background-image: url( img/restrict-default.svg );
|
2015-01-15 03:14:20 +00:00
|
|
|
}
|
|
|
|
|
2014-03-31 21:33:12 +00:00
|
|
|
.mw-mmv-permission-link {
|
2014-02-14 00:36:10 +00:00
|
|
|
cursor: pointer;
|
2014-06-17 21:57:44 +00:00
|
|
|
|
|
|
|
.jq-fullscreened & {
|
|
|
|
display: none;
|
|
|
|
}
|
2014-02-14 00:36:10 +00:00
|
|
|
}
|
|
|
|
|
2014-06-18 00:17:45 +00:00
|
|
|
.mw-mmv-optout-link.pending {
|
|
|
|
cursor: wait;
|
2023-04-03 20:44:15 +00:00
|
|
|
color: @color-subtle;
|
2014-06-18 00:17:45 +00:00
|
|
|
}
|