2014-04-01 01:41:57 +00:00
|
|
|
@import "../mmv.globals";
|
|
|
|
@import "../mmv.mixins";
|
|
|
|
|
2014-04-08 22:43:54 +00:00
|
|
|
@info-box-color: #FFFFFF;
|
|
|
|
@info-box-border-color: #DDDDDD;
|
|
|
|
@info-box-border-shadow-color: #C9C9C9;
|
|
|
|
@secondary-text-color: rgb(136, 136, 136);
|
2014-10-29 19:50:53 +00:00
|
|
|
@panel-below-fold-background-color: #f5f5f5;
|
2014-04-08 22:43:54 +00:00
|
|
|
|
2014-10-27 16:17:49 +00:00
|
|
|
@fold-separator-border-width: 1px;
|
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;
|
|
|
|
|
|
|
|
border: 1px solid @info-box-border-color;
|
|
|
|
border-bottom: 2px solid @info-box-border-shadow-color;
|
|
|
|
.box-round(3px);
|
|
|
|
|
|
|
|
background-color: @info-box-color;
|
|
|
|
}
|
|
|
|
|
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;
|
|
|
|
}
|
|
|
|
&.mw-mmv-title-small {
|
|
|
|
font-size: 18px;
|
|
|
|
}
|
|
|
|
&.mw-mmv-title-smaller {
|
|
|
|
@vertical-padding: 6px;
|
|
|
|
@height: @metadatabar-above-fold-inner-height - 2 * @vertical-padding;
|
|
|
|
height: @height;
|
|
|
|
margin: 0 0 @horizontal-padding;
|
|
|
|
padding: @vertical-padding @horizontal-padding 0 @horizontal-padding ;
|
|
|
|
line-height: floor(@height / 2); // two lines
|
|
|
|
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
|
|
|
|
&:before {
|
|
|
|
.fade-out-horizontal(@panel-above-fold-background-color);
|
|
|
|
}
|
|
|
|
}
|
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;
|
2014-10-27 16:17:49 +00:00
|
|
|
color: #555;
|
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
|
|
|
height: @metadatabar-below-fold-pushup-height - @space-above-credit - @fold-separator-border-width; // needs explicit height for text truncation logic
|
|
|
|
|
|
|
|
&.mw-mmv-ttf-untruncated {
|
|
|
|
height: auto;
|
|
|
|
}
|
|
|
|
|
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
|
|
|
|
&:before {
|
|
|
|
.fade-out-horizontal(@panel-below-fold-background-color);
|
|
|
|
}
|
|
|
|
}
|
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;
|
|
|
|
border-top: @fold-separator-border-width solid #ddd;
|
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.
|
2014-10-29 19:50:53 +00:00
|
|
|
height: @metadatabar-below-fold-pushup-height - @fold-separator-border-width - @space-above-credit;
|
2014-10-27 16:17:49 +00:00
|
|
|
overflow: hidden;
|
|
|
|
}
|
|
|
|
.jq-fullscreened .mw-mmv-untruncated & {
|
|
|
|
height: auto;
|
|
|
|
}
|
2014-04-01 01:41:57 +00:00
|
|
|
}
|
|
|
|
|
2014-10-27 16:17:49 +00:00
|
|
|
.mw-mmv-author:before {
|
|
|
|
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-10-27 16:17:49 +00:00
|
|
|
background-size: contain;
|
|
|
|
background-position: center center;
|
|
|
|
background-repeat: no-repeat;
|
2014-10-29 19:50:53 +00:00
|
|
|
/* @embed */
|
2014-10-27 16:17:49 +00:00
|
|
|
background-image: url(img/user-ltr.svg);
|
2014-04-01 01:41:57 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.mw-mmv-image-desc-div {
|
|
|
|
overflow-y: auto;
|
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;
|
|
|
|
}
|
|
|
|
|
|
|
|
.mw-mmv-image-desc-div {
|
|
|
|
max-height: 150px;
|
|
|
|
margin-bottom: 15px;
|
|
|
|
}
|
|
|
|
|
|
|
|
@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;
|
|
|
|
color: #555555;
|
|
|
|
}
|
|
|
|
|
|
|
|
.mw-mmv-image-links {
|
2014-04-08 22:43:54 +00:00
|
|
|
margin: 0 20px;
|
2014-04-01 01:41:57 +00:00
|
|
|
li {
|
|
|
|
list-style: none;
|
|
|
|
font-size: @littlefont;
|
|
|
|
color: #3f4040;
|
|
|
|
|
|
|
|
&.empty {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
&:before {
|
|
|
|
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;
|
|
|
|
}
|
|
|
|
|
2014-11-13 23:27:07 +00:00
|
|
|
&.mw-mmv-license-li:before {
|
|
|
|
/* @embed */
|
|
|
|
background-image: url(img/license.svg);
|
|
|
|
}
|
|
|
|
|
2014-10-27 14:03:16 +00:00
|
|
|
&.mw-mmv-license-li.cc-license:before {
|
|
|
|
/* @embed */
|
|
|
|
background-image: url(img/cc.svg);
|
|
|
|
}
|
|
|
|
|
2014-10-29 12:05:29 +00:00
|
|
|
&.mw-mmv-license-li.pd-license:before {
|
|
|
|
/* @embed */
|
|
|
|
background-image: url(img/pd.svg);
|
|
|
|
}
|
|
|
|
|
2015-01-13 02:51:46 +00:00
|
|
|
&.mw-mmv-filename-li:before {
|
|
|
|
/* @embed */
|
|
|
|
background-image: url(img/file.svg);
|
|
|
|
}
|
|
|
|
|
2014-04-01 01:41:57 +00:00
|
|
|
&.mw-mmv-datetime-li:before {
|
|
|
|
/* @embed */
|
|
|
|
background-image: url(img/time.svg);
|
|
|
|
}
|
|
|
|
|
|
|
|
&.mw-mmv-username-li:before {
|
|
|
|
/* @embed */
|
2014-10-27 16:17:49 +00:00
|
|
|
background-image: url(img/uploader-ltr.svg);
|
|
|
|
width: 18px;
|
2014-11-06 16:48:42 +00:00
|
|
|
margin-right: 5px;
|
2014-04-01 01:41:57 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
&.mw-mmv-location-li:before {
|
|
|
|
/* @embed */
|
|
|
|
background-image: url(img/location.svg);
|
|
|
|
}
|
|
|
|
|
|
|
|
&.empty:before {
|
|
|
|
background-image: none !important;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.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%;
|
|
|
|
}
|
|
|
|
|
2014-03-31 21:33:12 +00:00
|
|
|
.mw-mmv-label {
|
2014-02-27 17:48:54 +00:00
|
|
|
color: #333333;
|
2014-02-28 13:14:34 +00:00
|
|
|
margin-left: 6px;
|
2014-02-14 00:36:10 +00:00
|
|
|
.box-round(3px);
|
|
|
|
padding: 2px 5px;
|
2014-02-28 13:14:34 +00:00
|
|
|
background-color: #dddddd;
|
|
|
|
font-size: 0.9em;
|
|
|
|
&:hover {
|
|
|
|
background-color: #c9c9c9;
|
|
|
|
}
|
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-01-15 03:14:20 +00:00
|
|
|
.mw-mmv-restriction-label {
|
|
|
|
&, &:hover {
|
|
|
|
background-color: #ffcc66;
|
|
|
|
}
|
|
|
|
cursor: default;
|
|
|
|
}
|
|
|
|
|
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;
|
|
|
|
color: #555;
|
|
|
|
}
|
|
|
|
|
2014-03-31 21:33:12 +00:00
|
|
|
.mw-mmv-about-links {
|
2014-02-14 00:36:10 +00:00
|
|
|
clear: both;
|
2014-04-01 01:41:57 +00:00
|
|
|
}
|