Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
gpt
large_projects
gitlabhq1
Commits
5ef05e95
Commit
5ef05e95
authored
7 years ago
by
Filipa Lacerda
Browse files
Options
Download
Email Patches
Plain Diff
Adds spinner scss
parent
fbfddd99
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
58 additions
and
0 deletions
+58
-0
app/assets/stylesheets/framework.scss
app/assets/stylesheets/framework.scss
+1
-0
app/assets/stylesheets/framework/spinner.scss
app/assets/stylesheets/framework/spinner.scss
+57
-0
No files found.
app/assets/stylesheets/framework.scss
View file @
5ef05e95
...
...
@@ -50,3 +50,4 @@
@import
"framework/snippets.scss"
;
@import
"framework/memory_graph.scss"
;
@import
"framework/responsive-tables.scss"
;
@import
"framework/spinner.scss"
;
This diff is collapsed.
Click to expand it.
app/assets/stylesheets/framework/spinner.scss
0 → 100644
View file @
5ef05e95
@mixin
spinner-color
(
$color
)
{
border-color
:
rgba
(
$color
,
.25
);
border-top-color
:
$color
;
}
@mixin
spinner
(
$size
,
$animation-duration
,
$border-width
)
{
width
:
$size
;
height
:
$size
;
border-radius
:
50%
;
position
:
relative
;
margin
:
0
auto
;
animation-name
:
spinner-rotate
;
animation-duration
:
$animation-duration
;
animation-timing-function
:
linear
;
animation-iteration-count
:
infinite
;
border-style
:
solid
;
border-width
:
$border-width
;
display
:
block
;
}
@keyframes
spinner-rotate
{
0
%
{
transform
:
rotate
(
0
);
}
100
%
{
transform
:
rotate
(
360deg
);
}
}
.spinner-sm
,
.spinner-md
,
.spinner-lg
{
&
.black
{
@include
spinner-color
(
$black
);
}
&
.orange
{
@include
spinner-color
(
$orange-600
);
}
&
.white
{
@include
spinner-color
(
$white-light
);
}
}
.spinner-sm
{
@include
spinner
(
15px
,
1s
,
2px
);
}
.spinner-md
{
@include
spinner
(
30px
,
1
.5s
,
4px
);
}
.spinner-lg
{
@include
spinner
(
60px
,
2
.25s
,
4px
);
}
This diff is collapsed.
Click to expand it.
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