add css animation loading indicator
This commit is contained in:
parent
29b3d8be88
commit
3d8c7c3d56
|
@ -35,6 +35,7 @@
|
|||
text-align: right
|
||||
|
||||
.sync-spinner
|
||||
display: inline-block
|
||||
vertical-align: middle
|
||||
i
|
||||
position: relative
|
||||
|
|
|
@ -52,11 +52,10 @@ $button-border-color: #d4d4d4
|
|||
border: 1px solid #40454F
|
||||
cursor: pointer
|
||||
|
||||
|
||||
#top #navigation // bad style, we really need to get rid of the ids in the styles
|
||||
.button--signin
|
||||
#top
|
||||
.button--signin,
|
||||
.button--signingin
|
||||
display: inline-block
|
||||
padding: 0.7em 2em 0.65em 0.6em
|
||||
margin-right: 1em
|
||||
color: $white
|
||||
font-size: $font-size-small
|
||||
|
@ -65,21 +64,27 @@ $button-border-color: #d4d4d4
|
|||
border-radius: 4px
|
||||
border: none
|
||||
vertical-align: middle
|
||||
cursor: pointer
|
||||
background:
|
||||
color: $pass-color
|
||||
|
||||
.button--signin
|
||||
padding: 0.6em 2em 0.55em 0.6em
|
||||
cursor: pointer
|
||||
background:
|
||||
image: inline-image('ui/github-signin.svg')
|
||||
repeat: no-repeat
|
||||
position: 95.5% 45%
|
||||
&:hover
|
||||
background-color: #73c78d
|
||||
text-decoration: none
|
||||
&.signing-in
|
||||
background-image: inline-image('ui/spinner.svg')
|
||||
background-position: 92% 47%
|
||||
&:hover
|
||||
background-color: $pass-color
|
||||
|
||||
.button--signingin
|
||||
padding: 0.6em 0.6em 0.45em
|
||||
span
|
||||
display: inline-block
|
||||
padding: 0 .2em
|
||||
position: relative
|
||||
top: -0.2em
|
||||
|
||||
.button
|
||||
border-radius: 4px
|
||||
|
|
|
@ -75,7 +75,7 @@
|
|||
{{#link-to "profile" class="signed-in"}}<img {{bind-attr src="gravatarUrl"}}/>{{userName}}{{/link-to}}
|
||||
{{/if}}
|
||||
{{#if auth.signingIn}}
|
||||
<button class="signing-in button--signin">Signing In</button>
|
||||
<button class="signing-in button--signingin">Signing In <span class="sync-spinner"><i></i><i></i><i></i></span></button>
|
||||
{{/if}}
|
||||
</p>
|
||||
<ul>
|
||||
|
|
Loading…
Reference in New Issue
Block a user