blob: f3a5f77e0d6b1ebb3302ef09ea189d98a7aad3fa (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
|
@import 'mediawiki.mixins';
@import '../mmv.globals';
@import '../mmv.mixins';
.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;
}
.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;
border-radius: @border-radius;
background-size: contain;
background-position: center center;
background-repeat: no-repeat;
/* @embed */
background-image: url( img/ellipsis_lightgray.svg );
.box-shadow( -4px 6px 0 0 #fff );
// 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
// TruncatableTextField, setting it is the caller's responsibility.
.mw-mmv-ttf-ellipsis-container:hover & {
background-color: #eaecf0;
/* @embed */
background-image: url( img/ellipsis_gray.svg );
}
// second rule + ordering needed for specificity
&:hover,
.mw-mmv-ttf-ellipsis-container &:hover {
background-color: #c8ccd1;
/* @embed */
background-image: url( img/ellipsis_darkgray.svg );
}
&:before {
@fade-length: 2em;
display: block;
content: '';
height: 1.6em; // 1em would not cover high glyphs
width: @fade-length;
margin-left: -@fade-length;
.fade-out-horizontal();
}
}
}
|