2023-04-03 20:44:15 +00:00
|
|
|
@import 'mediawiki.skin.variables.less';
|
2020-04-18 04:13:01 +00:00
|
|
|
@import 'mediawiki.mixins.less';
|
|
|
|
@import '../mmv.variables.less';
|
|
|
|
@import '../mmv.mixins.less';
|
2014-03-27 06:05:47 +00:00
|
|
|
|
2014-10-29 19:50:53 +00:00
|
|
|
.mw-mmv-ttf-container {
|
|
|
|
position: relative;
|
|
|
|
overflow: hidden; // need to create a block formatting context, otherwise adjacent floats would be problematic
|
|
|
|
|
|
|
|
&.mw-mmv-ttf-small {
|
|
|
|
font-size: 90%;
|
|
|
|
}
|
|
|
|
|
|
|
|
&.mw-mmv-ttf-smaller {
|
|
|
|
font-size: 80%;
|
|
|
|
}
|
|
|
|
|
|
|
|
&.mw-mmv-ttf-smallest {
|
|
|
|
font-size: 65%;
|
|
|
|
}
|
|
|
|
|
|
|
|
// used on containers which have been shortened and can be expanded
|
|
|
|
&.mw-mmv-ttf-truncated {
|
|
|
|
cursor: pointer;
|
|
|
|
}
|
|
|
|
|
|
|
|
// used on containers which have been expanded
|
|
|
|
&.mw-mmv-ttf-untruncated {
|
|
|
|
height: auto;
|
2014-03-27 06:05:47 +00:00
|
|
|
}
|
2014-07-03 19:12:59 +00:00
|
|
|
|
2014-10-29 19:50:53 +00:00
|
|
|
.mw-mmv-ttf-ellipsis {
|
|
|
|
display: block;
|
|
|
|
position: absolute;
|
|
|
|
right: 0;
|
|
|
|
bottom: 0;
|
|
|
|
height: 1em; // make it scale with the font
|
|
|
|
width: 1.5em; // SVG image has ~1.5 aspect ratio
|
|
|
|
text-indent: -9999px;
|
2023-04-03 20:44:15 +00:00
|
|
|
border-radius: @border-radius-base;
|
2014-10-29 19:50:53 +00:00
|
|
|
background-size: contain;
|
|
|
|
background-position: center center;
|
|
|
|
background-repeat: no-repeat;
|
|
|
|
/* @embed */
|
2016-07-18 14:24:02 +00:00
|
|
|
background-image: url( img/ellipsis_lightgray.svg );
|
2021-09-11 09:31:19 +00:00
|
|
|
box-shadow: -4px 6px 0 0 #fff;
|
2014-10-29 19:50:53 +00:00
|
|
|
|
|
|
|
// Hovering over .mw-mmv-ttf-ellipsis-container will make the ellipsis more visible to attract
|
|
|
|
// attention to it. Since it has to be set on a parent element which is not under control of
|
2016-09-09 16:54:56 +00:00
|
|
|
// TruncatableTextField, setting it is the caller's responsibility.
|
2014-10-29 19:50:53 +00:00
|
|
|
.mw-mmv-ttf-ellipsis-container:hover & {
|
2017-03-02 23:45:42 +00:00
|
|
|
background-color: #eaecf0;
|
2014-10-29 19:50:53 +00:00
|
|
|
/* @embed */
|
2016-07-18 14:24:02 +00:00
|
|
|
background-image: url( img/ellipsis_gray.svg );
|
2014-10-29 19:50:53 +00:00
|
|
|
}
|
2018-11-29 05:13:08 +00:00
|
|
|
|
2014-10-29 19:50:53 +00:00
|
|
|
// second rule + ordering needed for specificity
|
2016-07-18 14:24:02 +00:00
|
|
|
&:hover,
|
|
|
|
.mw-mmv-ttf-ellipsis-container &:hover {
|
2017-03-02 23:45:42 +00:00
|
|
|
background-color: #c8ccd1;
|
2014-10-29 19:50:53 +00:00
|
|
|
/* @embed */
|
2016-07-18 14:24:02 +00:00
|
|
|
background-image: url( img/ellipsis_darkgray.svg );
|
2014-10-29 19:50:53 +00:00
|
|
|
}
|
|
|
|
|
2023-04-04 06:18:59 +00:00
|
|
|
&::before {
|
2014-10-29 19:50:53 +00:00
|
|
|
@fade-length: 2em;
|
|
|
|
display: block;
|
|
|
|
content: '';
|
2014-11-15 08:38:27 +00:00
|
|
|
height: 1.6em; // 1em would not cover high glyphs
|
2014-10-29 19:50:53 +00:00
|
|
|
width: @fade-length;
|
|
|
|
margin-left: -@fade-length;
|
|
|
|
.fade-out-horizontal();
|
|
|
|
}
|
|
|
|
}
|
2014-11-17 22:18:23 +00:00
|
|
|
}
|