Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
37a02a6b
Commit
37a02a6b
authored
Feb 28, 2019
by
GitLab Bot
Browse files
Options
Browse Files
Download
Plain Diff
Automatic merge of gitlab-org/gitlab-ce master
parents
6abfc790
a235e602
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
57 additions
and
0 deletions
+57
-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
+51
-0
changelogs/unreleased/20084-update-the-spinner-component.yml
changelogs/unreleased/20084-update-the-spinner-component.yml
+5
-0
No files found.
app/assets/stylesheets/framework.scss
View file @
37a02a6b
...
...
@@ -67,3 +67,4 @@
@import
'framework/read_more'
;
@import
'framework/flex_grid'
;
@import
'framework/system_messages'
;
@import
"framework/spinner"
;
app/assets/stylesheets/framework/spinner.scss
0 → 100644
View file @
37a02a6b
@mixin
spinner-color
(
$color
)
{
border-color
:
rgba
(
$color
,
.25
);
border-top-color
:
$color
;
}
@mixin
spinner-size
(
$size
,
$border-width
)
{
width
:
$size
;
height
:
$size
;
border-width
:
$border-width
;
@include
webkit-prefix
(
transform-origin
,
50%
50%
calc
((
#{
$size
}
/
2
)
+
#{
$border-width
}
));
}
@keyframes
spinner-rotate
{
0
%
{
transform
:
rotate
(
0
);
}
100
%
{
transform
:
rotate
(
360deg
);
}
}
.spinner
{
border-radius
:
50%
;
position
:
relative
;
margin
:
0
auto
;
animation-name
:
spinner-rotate
;
animation-duration
:
.6s
;
animation-timing-function
:
linear
;
animation-iteration-count
:
infinite
;
border-style
:
solid
;
display
:
inline-flex
;
@include
spinner-size
(
16px
,
2px
);
@include
spinner-color
(
$orange-600
);
&
.spinner-md
{
@include
spinner-size
(
32px
,
3px
);
}
&
.spinner-lg
{
@include
spinner-size
(
64px
,
4px
);
}
&
.spinner-dark
{
@include
spinner-color
(
$gray-700
);
}
&
.spinner-light
{
@include
spinner-color
(
$white
);
}
}
changelogs/unreleased/20084-update-the-spinner-component.yml
0 → 100644
View file @
37a02a6b
---
title
:
Add a spinner icon which is rendered using pure css
merge_request
:
25186
author
:
type
:
changed
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