Page Menu
Home
WickedGov Phorge
Search
Configure Global Search
Log In
Files
F4118387
mixins.less
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
2 KB
Referenced Files
None
Subscribers
None
mixins.less
View Options
/**
* Less mixins.
*/
@
import
'mediawiki.skin.variables.less'
;
@
import
'mediawiki.mixins.less'
;
.
mixin-vector-page-container-sizing
()
{
//
Set
a
min-width
to
make
explicit
we
do
not
support
anything
below
this
threshold.
//
For
devices
too
small,
they
should
be
more
useable
with
horizontal
scrolling.
//
e.g.
Portrait
on
an
iPad
min-width
:
@
min-width
-
supported
;
max-width
:
@
max-width
-
page
-
container
;
padding-left
:
@
padding
-
horizontal
-
page
-
container
;
padding-right
:
@
padding
-
horizontal
-
page
-
container
;
box-sizing
:
border-box
;
}
.
mixin-vector-arrowed-dropdown-toggle
()
{
display
:
inline-flex
;
align-items
:
center
;
&::after
{
content
:
''
;
.cdx-mixin-css-icon(
@cdx-icon-expand,
@
param-size-icon
:
@
size-icon-x-small
);
width
:
unit
(
12
/
@
font
-size-browser
,
rem
);
height
:
unit
(
12
/
@
font
-size-browser
,
rem
);
//
https
:
//
phabricator
.
wikimedia
.
org
/
T319070
#828427
2
margin-left
:
7
px
;
}
}
.
mixin-vector-content-box
()
{
background-color
:
@
background-color
-
base
;
}
.
mixin-vector-dropdown-menu
()
{
.mixin-vector-content-box()
;
padding
:
@
padding
-
horizontal
-
dropdown-menu
@
padding
-
vertical
-
dropdown-menu
;
font-size
:
@
font-size
-
dropdown
;
box-shadow
:
0
2
px
6
px
-1
px
rgba
(
0
,
0
,
0
,
0.2
);
transition-property
:
opacity
;
transition-duration
:
@
transition-duration
-
base
;
//
TODO
Add
consistent
min/max
values
for
dropdowns
in
T316055
width
:
max-content
;
max-width
:
200
px
;
}
//
Base
links
without
a
visited
state
.
mixin-vector-unvisited-link-base
()
{
&:visited
{
color
:
@
color
-
progressive
;
}
&
:
visited
:
hover
{
color
:
@
color
-
progressive--hover
;
}
}
//
Red
links
without
a
visited
state
.
mixin-vector-unvisited-link-red
()
{
&:visited
{
color
:
@
color
-
link-red
;
}
&
:
visited
:
hover
{
color
:
@
color
-
link-red--hover
;
}
}
//
Used
for
"selected"
links
inside
tabs
and
dropdowns
.
mixin-vector-selected-link
()
{
//
Override
all
link
states
to
style
it
as
text
color
:
@
color
-
base
!important
;
/* stylelint-disable-line declaration-no-important */
}
.
mixin-vector-dropdown-menu-item
()
{
display
:
flex
;
align-items
:
center
;
padding
:
@
padding
-
vertical
-
dropdown-menu-item
0
;
.vector-icon
{
margin-right
:
@
spacing-35
;
}
&
:
not
(
.
mw-selflink
)
{
.mixin-vector-unvisited-link-base()
;
}
&
.
selected
a
{
.mixin-vector-selected-link()
;
}
}
.
mixin-vector-scrollable-with-fade
()
{
overflow
:
hidden
auto
;
&::after
{
content
:
''
;
display
:
block
;
position
:
sticky
;
bottom
:
0
;
left
:
0
;
right
:
0
;
height
:
@
padding
-
vertical
-
dropdown-menu
;
background
:
linear-gradient
(
rgba
(
255
,
255
,
255
,
0
),
@
background
-color-page-container
);
background-repeat
:
no-repeat
;
pointer-events
:
none
;
//
Make
the
link
below
the
fade
clickable
}
}
.
mixin-vector-dropdown-content-flip
()
{
left
:
auto
;
right
:
0
;
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Wed, Aug 19, 02:45 (2 w, 2 d ago)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
ba/64/c3007ab1f0a942ed6c9d19ecc99c
Default Alt Text
mixins.less (2 KB)
Attached To
Mode
rMWPROD MediaWiki Production
Attached
Detach File
Event Timeline
Log In to Comment