This repository has been archived by the owner on Jul 16, 2019. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
10 changed files
with
335 additions
and
236 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
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,6 @@ | ||
.message(ng-repeat="message in $ctrl.messages", ng-class="{error: message.error, congrats: message.congrats, visible: message.visible}", id="{{::message.id}}") | ||
i.msg-type.fa.fa-exclamation-triangle(ng-if="message.error") | ||
i.msg-type.fa.fa-info-circle(ng-if="message.information") | ||
i.msg-type.fa.fa-check-circle-o(ng-if="message.congrats") | ||
i.fa.fa-times(ng-click="$ctrl.remove(message)") | ||
span {{::message.msg}} |
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,42 @@ | ||
server-message | ||
position absolute | ||
right 10px | ||
bottom 10px | ||
|
||
.message | ||
color #fff | ||
text-align center | ||
padding 0 | ||
animation max-height 1s linear | ||
min-width 200px | ||
max-height 0 | ||
position relative | ||
overflow hidden | ||
background #00a3ff | ||
|
||
.msg-type | ||
position absolute | ||
top 10px | ||
left 10px | ||
|
||
i.fa-times | ||
position absolute | ||
top 1px | ||
right 1px | ||
border 1px solid transparent | ||
padding 1px 2px | ||
border-radius 3px | ||
&:hover | ||
cursor pointer | ||
background rgba(204, 204, 204, 0.4) | ||
|
||
span | ||
display block | ||
padding 10px 25px 10px 35px | ||
|
||
& + .message | ||
margin-top 5px | ||
&.error | ||
background #e44949 | ||
&.congrats | ||
background #00dc65 |
Oops, something went wrong.