Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
coopwire-hypothesis
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
孙灵跃 Leon Sun
coopwire-hypothesis
Commits
81b0eccd
Commit
81b0eccd
authored
Jul 14, 2014
by
Aron Carroll
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add CSS only loading spinner
parent
5e946b78
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
84 additions
and
0 deletions
+84
-0
spinner.scss
h/static/styles/spinner.scss
+84
-0
No files found.
h/static/styles/spinner.scss
0 → 100644
View file @
81b0eccd
// CSS Spinner modified from http://dabblet.com/gist/7615212
// Works in modern browsers & IE10, IE9 gets stationary spinner.
//
// Examples
//
// <!-- Three nested spans -->
// <span class="spinner"><span><span></span></span></span>
@-webkit-keyframes
spin
{
to
{
@include
transform
(
rotate
(
1turn
));
}
}
@-moz-keyframes
spin
{
to
{
@include
transform
(
rotate
(
1turn
));
}
}
@-o-keyframes
spin
{
to
{
@include
transform
(
rotate
(
1turn
));
}
}
@keyframes
spin
{
to
{
@include
transform
(
rotate
(
1turn
));
}
}
.spinner
{
position
:
relative
;
display
:
inline-block
;
width
:
2em
;
height
:
2em
;
font-size
:
10px
;
text-indent
:
999em
;
overflow
:
hidden
;
-webkit-animation
:
spin
1
.25s
infinite
steps
(
12
);
/* Safari 4+ */
-moz-animation
:
spin
1
.25s
infinite
steps
(
12
);
/* Fx 5+ */
-o-animation
:
spin
1
.25s
infinite
steps
(
12
);
/* Opera 12+ */
animation
:
spin
1
.25s
infinite
steps
(
12
);
/* IE 10+, Fx 29+ */
}
.spinner
:before
,
.spinner
:after
,
.spinner
>
span
:before
,
.spinner
>
span
:after
,
.spinner
>
span
>
span
:before
,
.spinner
>
span
>
span
:after
{
content
:
''
;
position
:
absolute
;
top
:
0
;
left
:
0
.9em
;
/* (container width - part width)/2 */
width
:
0
.2em
;
height
:
0
.6em
;
border-radius
:
0
.1em
;
background
:
#eee
;
@include
box-shadow
(
0
1
.4em
rgba
(
0
,
0
,
0
,
0
.15
));
/* container height - part height */
@include
transform-origin
(
50%
,
1em
);
/* container height / 2 */
}
.spinner
:before
{
background
:
rgba
(
0
,
0
,
0
,
0
.65
);
}
.spinner
:after
{
@include
transform
(
rotate
(
-30deg
));
background
:
rgba
(
0
,
0
,
0
,
0
.6
);
}
.spinner
>
span
:before
{
@include
transform
(
rotate
(
-60deg
));
background
:
rgba
(
0
,
0
,
0
,
0
.5
);
}
.spinner
>
span
:after
{
@include
transform
(
rotate
(
-90deg
));
background
:
rgba
(
0
,
0
,
0
,
0
.4
);
}
.spinner
>
span
>
span
:before
{
@include
transform
(
rotate
(
-120deg
));
background
:
rgba
(
0
,
0
,
0
,
0
.3
);
}
.spinner
>
span
>
span
:after
{
@include
transform
(
rotate
(
-150deg
));
background
:
rgba
(
0
,
0
,
0
,
0
.2
);
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment