Page Menu
Home
WickedGov Phorge
Search
Configure Global Search
Log In
Files
F5974522
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
);
.mixin-citizen-frosted-glass(
citizen-sticky-header-backdrop,
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-left
:
var
(
--header-size
);
}
}
&
-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
{
opacity
:
1
;
}
.
citizen-sticky-header-page-info
{
transform
:
translateX
(
calc
(
var
(
--size-icon
)
+
var
(
--space-xs
)
)
);
}
}
.
citizen-ui-icon
{
position
:
absolute
;
opacity
:
0
;
transform
:
rotate
(
90
deg
)
!important
;
transition-timing-function
:
var
(
--transition-timing-function-ease
);
transition-duration
:
var
(
--transition-duration-medium
);
transition-property
:
opacity
;
}
}
&
-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, 17:29 (1 d, 20 h)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
ea/58/be6032cb39631711f9e3ef5c301b
Default Alt Text
StickyHeader.less (3 KB)
Attached To
Mode
rMWPROD MediaWiki Production
Attached
Detach File
Event Timeline
Log In to Comment