Page Menu
Home
WickedGov Phorge
Search
Configure Global Search
Log In
Files
F4108527
progressbar.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
progressbar.less
View Options
/**
* Loading indicator
* Based on Vector
*
* By adding a class on the parent search form
* <div class=".citizen-loading"></div>
* A pseudo element is added via ':after' that adds the loading indicator.
*
* After appearing for more than a second, a progress-bar animation appears
* above the loading indicator.
*
**/
.
citizen-loading
::
after
{
//
Delay
animation
by
500ms
after
loading
--delay-progress-bar
:
500
ms
;
--height-progress-bar
:
2
px
;
z-index
:
@
z-index
-
top
;
//
Ensure
it
doesn't
extend
beyond
the
input.
box-sizing
:
border-box
;
display
:
block
;
width
:
100
%
;
height
:
var
(
--height-progress-bar
);
content
:
''
;
//
Add
a
progress-bar
to
the
loading
indicator
background
:
linear-gradient
(
90
deg
,
var
(
--color-progressive
)
0
%
,
var
(
--color-progressive
)
100
%
)
-10
%
0
~
'/'
0
var
(
--height-progress-bar
)
no-repeat
,
transparent
;
//
Align
style
with
the
form
border-radius
:
0
0
var
(
--border-radius-large
)
var
(
--border-radius-large
);
//
Fancy
shadow
under
progress
filter
:
drop-shadow
(
0
0
16
px
var
(
--color-progressive
)
)
drop-shadow
(
0
0
24
px
var
(
--color-progressive
)
);
//
Animates
the
progress-bar.
animation
:
progressbar
1200
ms
linear
var
(
--delay-progress-bar
)
infinite
alternate
;
}
@
keyframes
progressbar
{
0
%
{
background-position
:
-10
%
0
;
background-size
:
0
var
(
--height-progress-bar
);
}
30
%
{
background-position
:
-10
%
0
;
background-size
:
30
%
var
(
--height-progress-bar
);
}
70
%
{
/* @noflip */
background-position
:
110
%
0
;
background-size
:
30
%
var
(
--height-progress-bar
);
}
100
%
{
/* @noflip */
background-position
:
110
%
0
;
background-size
:
0
var
(
--height-progress-bar
);
}
}
//
On
page
unload
html
.
citizen-loading
::
after
{
position
:
fixed
;
top
:
0
;
//
Standalone
PWA
has
no
loading
affordance
//
So
we
provide
one
//
stylelint-disable-next-line
plugin/use-baseline
@media
(
display-mode
:
standalone
)
{
--
delay-progress-bar
:
0
ms
;
}
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Tue, Aug 18, 20:36 (2 w, 2 d ago)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
52/35/f794bcdbf9c6596d0a355bfbca1b
Default Alt Text
progressbar.less (1 KB)
Attached To
Mode
rMWPROD MediaWiki Production
Attached
Detach File
Event Timeline
Log In to Comment