Page Menu
Home
WickedGov Phorge
Search
Configure Global Search
Log In
Files
F5991378
mmv.ui.truncatableTextField.less
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
mmv.ui.truncatableTextField.less
View Options
@
import
'mediawiki.skin.variables.less'
;
@
import
'mediawiki.mixins.less'
;
@
import
'../mmv.variables.less'
;
@
import
'../mmv.mixins.less'
;
.
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
:
1
em
;
//
make
it
scale
with
the
font
width
:
1.5
em
;
//
SVG
image
has
~1.5
aspect
ratio
text-indent
:
-9999
px
;
border-radius
:
@
border-radius
-
base
;
background-size
:
contain
;
background-position
:
center
center
;
background-repeat
:
no-repeat
;
.cdx-mixin-css-icon(
@cdx-icon-ellipsis,
@
param-fill-color
:
@
color
-
base
);
box-shadow
:
-4
px
6
px
0
0
@
box-shadow
-
color
-
inverted
;
opacity
:
0.5
;
//
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
&
{
opacity
:
0.75
;
}
//
second
rule
+
ordering
needed
for
specificity
&
:
hover
,
.
mw-mmv-ttf-ellipsis-container
&
:
hover
{
opacity
:
1
;
}
&
::
before
{
@
fade-length
:
2
em
;
display
:
block
;
content
:
''
;
height
:
1.6
em
;
//
1em
would
not
cover
high
glyphs
width
:
@
fade-length
;
margin-left
:
-@
fade-length
;
.fade-out-horizontal()
;
}
}
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, Oct 4, 01:52 (4 w, 1 d ago)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
65/93/d45b81d84c83e29f44c72e657612
Default Alt Text
mmv.ui.truncatableTextField.less (1 KB)
Attached To
Mode
rMWPROD MediaWiki Production
Attached
Detach File
Event Timeline
Log In to Comment