-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'mediabeastnz/master'
- Loading branch information
Showing
9 changed files
with
120 additions
and
17 deletions.
There are no files selected for viewing
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
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 |
---|---|---|
@@ -1,24 +1,115 @@ | ||
/** | ||
* Default styles for the fancy dev build button. | ||
* This contains both variables and layout for both cms/frontend. | ||
*/ | ||
#devbuild-trigger { | ||
* Default styles for the fancy dev build button. | ||
* This contains both variables and layout for both cms/frontend. | ||
*/ | ||
|
||
.icon { | ||
background-image: url(../images/icon.png); | ||
background-size: 16px 16px; | ||
// colors | ||
$standard-color: #303538;// #303538 | ||
$loading-color: #303538; | ||
$error-color: #dd0000; | ||
$success-color: #208c20; | ||
|
||
.devbuild-trigger{ | ||
color: $standard-color; | ||
&.loading{ | ||
color: $loading-color; | ||
} | ||
&.error{ | ||
color: $error-color; | ||
} | ||
&.success{ | ||
color: $success-color; | ||
} | ||
} | ||
|
||
&.loading .icon { | ||
background-image: url(../images/loading.gif); | ||
// default state | ||
.devbuild-trigger{ | ||
overflow: hidden; | ||
.icon.icon-16{ | ||
background: none; | ||
border: 3px solid; | ||
border-radius: 50%; | ||
transform: scale(0.7); | ||
margin-left: 0; | ||
margin-top: -11px; | ||
transition: all 0.5s ease; | ||
&:after{ | ||
content: ""; | ||
border-radius: 50%; | ||
position: absolute; | ||
top: -3px; | ||
right: -3px; | ||
bottom: -3px; | ||
left: -3px; | ||
} | ||
} | ||
} | ||
|
||
&.error .icon { | ||
background-image: url(../images/error.png); | ||
// success state | ||
.devbuild-trigger{ | ||
&.success .icon{ | ||
&:after{ | ||
opacity: 0; | ||
border: 1px solid; | ||
animation: pulse 1s linear infinite; | ||
} | ||
} | ||
} | ||
|
||
&.error .text { | ||
color: #EF4836; | ||
// error state | ||
.devbuild-trigger{ | ||
&.error .icon{ | ||
&:after{ | ||
opacity: 0; | ||
border: 1px solid; | ||
animation: pulse 1s linear infinite; | ||
} | ||
} | ||
} | ||
|
||
@keyframes pulse { | ||
0% { | ||
transform: scale(1); | ||
opacity: 0; | ||
} | ||
8% { | ||
transform: scale(1); | ||
opacity: 0.3; | ||
} | ||
15% { | ||
transform: scale(1.1); | ||
opacity: 1; | ||
} | ||
30% { | ||
transform: scale(1.2); | ||
opacity: 1; | ||
} | ||
100% { | ||
transform: scale(1.5); | ||
opacity: 0; | ||
} | ||
} | ||
|
||
// loading state | ||
.devbuild-trigger{ | ||
&.loading .icon{ | ||
color: $loading-color; | ||
border-top-color: transparent; | ||
border-right-color: transparent; | ||
border-bottom-color: transparent; | ||
animation: loader 1.4s infinite linear; | ||
&:after{ | ||
opacity: 0.5; | ||
border: 3px solid; | ||
} | ||
} | ||
} | ||
|
||
@keyframes loader { | ||
0% { | ||
transform: rotate(0deg) scale(0.7); | ||
} | ||
100% { | ||
transform: rotate(360deg) scale(0.7); | ||
} | ||
} |