Page Menu
Home
WickedGov Phorge
Search
Configure Global Search
Log In
Files
F5969952
StickyHeader.less
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
3 KB
Referenced Files
None
Subscribers
None
StickyHeader.less
View Options
#
citizen-page-header-sticky-sentinel
{
visibility
:
hidden
;
height
:
1
px
;
margin-top
:
-1
px
;
contain
:
strict
;
}
.
ve-activated
,
.
action-edit
{
//
HACK
:
So
sticky
header
will
never
trigger
in
edit
action
#citize
n-page-header-sticky-sentinel
{
display
:
none
;
}
}
.
citizen-sticky-header
{
padding-inline
:
var
(
--padding-page
);
border-bottom
:
var
(
--border-base
);
//
Need
a
separate
background
because
backdrop-filter
//
will
apply
to
all
elements
inside
the
sticky
header
&-background
{
position
:
absolute
;
inset
:
0
;
z-index
:
@
z-index
-
bottom
;
.mixin-citizen-frosted-glass(
0
)
;
}
&
-container
{
position
:
fixed
;
top
:
0
;
right
:
0
;
left
:
0
;
z-index
:
@
z-index
-
sticky
;
visibility
:
hidden
;
transform
:
translateY
(
-100
%
);
transition-timing-function
:
var
(
--transition-timing-function-ease-out
);
transition-duration
:
var
(
--transition-duration-medium
);
transition-property
:
transform
,
visibility
;
@media
(
min-width
:
@
min-width
-
breakpoint-desktop
)
{
margin-top
:
var
(
--header-size-block-start
);
margin-right
:
var
(
--header-size-inline-end
);
margin-left
:
var
(
--header-size-inline-start
);
}
}
&
-inner
{
display
:
flex
;
gap
:
var
(
--space-md
);
align-items
:
center
;
justify-content
:
space-between
;
max-width
:
var
(
--width-page
);
min-height
:
3.25
rem
;
padding-block
:
var
(
--space-xxs
);
margin-inline
:
auto
;
}
&
-start
{
display
:
flex
;
flex-grow
:
1
;
align-items
:
center
;
margin-inline-start
:
-16
px
;
//
Compensate
for
the
cdx
button
padding
overflow
:
hidden
;
}
&
-end
{
display
:
flex
;
align-items
:
center
;
//
Already
have
fixed
page
tools
in
narrow
screen
@media
(
max-width
:
@
max-width
-
breakpoint-tablet
)
{
display
:
none
;
}
}
&
-backtotop
{
flex-grow
:
1
;
&.cdx-button
{
gap
:
var
(
--space-xs
);
justify-content
:
flex-start
;
max-width
:
none
;
}
&
:
hover
{
.citizen-ui-icon.mw-ui-icon-wikimedia-arrowUp
{
opacity
:
1
;
transform
:
none
;
}
.
citizen-sticky-header-page-info
{
transform
:
translateX
(
calc
(
var
(
--size-icon
)
+
var
(
--space-xs
)
)
);
}
}
.
citizen-ui-icon
{
position
:
absolute
;
opacity
:
0
;
transform
:
translateX
(
-25
%
);
transition-timing-function
:
var
(
--transition-timing-function-ease
);
transition-duration
:
var
(
--transition-duration-medium
);
transition-property
:
opacity
,
transform
;
}
}
&
-page-info
{
overflow
:
hidden
;
transition-timing-function
:
var
(
--transition-timing-function-ease
);
transition-duration
:
var
(
--transition-duration-base
);
transition-property
:
transform
;
}
&
-page-title
,
&
-page-tagline
{
overflow
:
hidden
;
text-overflow
:
ellipsis
;
white-space
:
nowrap
;
}
&
-page-title
{
font-size
:
var
(
--font-size-large
);
font-weight
:
var
(
--font-weight-semi-bold
);
color
:
var
(
--color-emphasized
);
}
&
-page-tagline
{
display
:
none
;
font-size
:
var
(
--font-size-x-small
);
color
:
var
(
--color-subtle
);
}
&
-dropdown-container
{
.citizen-dropdown-details
{
&[
open
]
{
.citizen-dropdown-summary
{
background-color
:
var
(
--background-color-button-quiet--active
);
}
}
}
.
citizen-dropdown
{
position
:
relative
;
}
.
citizen-menu__card
{
top
:
calc
(
100
%
+
var
(
--space-xs
)
);
right
:
calc
(
var
(
--space-xs
)
*
-1
);
max-width
:
80
vw
;
max-height
:
60
vh
;
transform-origin
:
var
(
--transform-origin-offset-end
)
var
(
--transform-origin-offset-start
);
&-content
{
padding-block
:
var
(
--space-xs
);
}
}
}
//
The
buttons
are
not
supposed
to
be
focusable
.
cdx-button
{
&:focus
{
border-color
:
transparent
!important
;
box-shadow
:
none
!important
;
}
}
}
.
citizen-sticky-header-visible
{
.citizen-sticky-header
{
&-container
{
visibility
:
visible
;
transform
:
none
;
}
}
}
//
T289817
`
.
mw-sticky-header-element
`
provides
an
API
for
template
developers
//
to
make
their
templates
compatible
with
the
Citizen
sticky
header
.
.
mw-sticky-header-element
{
.mixin-citizen-sticky-header-element
;
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Oct 3, 14:07 (21 h, 50 m ago)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
d2/e6/2b30561be4d87ccedad3bbbdc255
Default Alt Text
StickyHeader.less (3 KB)
Attached To
Mode
rMWPROD MediaWiki Production
Attached
Detach File
Event Timeline
Log In to Comment