-
Notifications
You must be signed in to change notification settings - Fork 13.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(icons): svg loaders and ionicons v2.0.1
- Loading branch information
1 parent
bf40b22
commit 6f50c87
Showing
20 changed files
with
2,903 additions
and
1,768 deletions.
There are no files selected for viewing
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Binary file not shown.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
/** | ||
* @ngdoc directive | ||
* @name ionLoader | ||
* @module ionic | ||
* @restrict E | ||
* @description | ||
*/ | ||
IonicModule | ||
.directive('ionLoader', function() { | ||
return { | ||
restrict: 'E', | ||
controller: '$ionicLoader', | ||
link: function($scope, $element, $attrs, ctrl) { | ||
ctrl.init(); | ||
} | ||
}; | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
/** | ||
* Loaders (Spinners) | ||
* -------------------------------------------------- | ||
*/ | ||
|
||
svg.loader { | ||
width: 28px; | ||
height: 28px; | ||
stroke: #333; | ||
fill: #333; | ||
} | ||
|
||
.loader-ios, | ||
.loader-ios-small { | ||
|
||
line { | ||
stroke: #69717d; | ||
} | ||
|
||
} | ||
|
||
.loader-android { | ||
|
||
circle { | ||
stroke: #4b8bf4; | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,102 @@ | ||
|
||
// Scroll refresher (for pull to refresh) | ||
.scroll-refresher { | ||
position: absolute; | ||
top: -60px; | ||
right: 0; | ||
left: 0; | ||
overflow: hidden; | ||
margin: auto; | ||
height: 60px; | ||
|
||
.ionic-refresher-content { | ||
position: absolute; | ||
bottom: 15px; | ||
left: 0; | ||
width: 100%; | ||
color: $scroll-refresh-icon-color; | ||
text-align: center; | ||
|
||
font-size: 30px; | ||
|
||
.text-refreshing, | ||
.text-pulling { | ||
font-size: 16px; | ||
line-height: 16px; | ||
} | ||
&.ionic-refresher-with-text { | ||
bottom: 10px; | ||
} | ||
} | ||
|
||
.icon-refreshing, | ||
.icon-pulling { | ||
width: 100%; | ||
-webkit-backface-visibility: hidden; | ||
backface-visibility: hidden; | ||
-webkit-transform-style: preserve-3d; | ||
transform-style: preserve-3d; | ||
} | ||
.icon-pulling { | ||
@include animation-name(refresh-spin-back); | ||
@include animation-duration(200ms); | ||
@include animation-timing-function(linear); | ||
@include animation-fill-mode(none); | ||
-webkit-transform: translate3d(0,0,0) rotate(0deg); | ||
transform: translate3d(0,0,0) rotate(0deg); | ||
} | ||
.icon-refreshing, | ||
.text-refreshing { | ||
display: none; | ||
} | ||
.icon-refreshing { | ||
@include animation-duration(1.5s); | ||
} | ||
|
||
&.active { | ||
.icon-pulling:not(.pulling-rotation-disabled) { | ||
@include animation-name(refresh-spin); | ||
-webkit-transform: translate3d(0,0,0) rotate(-180deg); | ||
transform: translate3d(0,0,0) rotate(-180deg); | ||
} | ||
&.refreshing { | ||
@include transition(-webkit-transform .2s); | ||
@include transition(transform .2s); | ||
-webkit-transform: scale(1,1); | ||
transform: scale(1,1); | ||
|
||
.icon-pulling, | ||
.text-pulling { | ||
display: none; | ||
} | ||
.icon-refreshing, | ||
.text-refreshing { | ||
display: block; | ||
} | ||
&.refreshing-tail { | ||
-webkit-transform: scale(0,0); | ||
transform: scale(0,0); | ||
} | ||
} | ||
} | ||
} | ||
|
||
@-webkit-keyframes refresh-spin { | ||
0% { -webkit-transform: translate3d(0,0,0) rotate(0); } | ||
100% { -webkit-transform: translate3d(0,0,0) rotate(180deg); } | ||
} | ||
|
||
@keyframes refresh-spin { | ||
0% { transform: translate3d(0,0,0) rotate(0); } | ||
100% { transform: translate3d(0,0,0) rotate(180deg); } | ||
} | ||
|
||
@-webkit-keyframes refresh-spin-back { | ||
0% { -webkit-transform: translate3d(0,0,0) rotate(180deg); } | ||
100% { -webkit-transform: translate3d(0,0,0) rotate(0); } | ||
} | ||
|
||
@keyframes refresh-spin-back { | ||
0% { transform: translate3d(0,0,0) rotate(180deg); } | ||
100% { transform: translate3d(0,0,0) rotate(0); } | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.