* Core
*/
/* line 9, /Users/philippebarbosa/Sites/ircam-manifeste/app/festival/static/scss/components/_messages.scss */
-.message {
+.notification {
display: inline-block;
*display: inline;
*zoom: 1;
}
/* line 30, /Users/philippebarbosa/Sites/ircam-manifeste/app/festival/static/scss/components/_messages.scss */
-.message__remove {
+.notification__remove {
-webkit-animation-name: slideOutRight;
animation-name: slideOutRight;
-webkit-animation-duration: 0.8s;
animation-name: slideOutRight;
}
-/**
- * Colors
- */
-/* line 90, /Users/philippebarbosa/Sites/ircam-manifeste/app/festival/static/scss/components/_messages.scss */
-.message-success {
- background: #d1f5e0;
- border: 1px solid #2ecc71;
- color: #1b7943;
-}
-
-/* line 96, /Users/philippebarbosa/Sites/ircam-manifeste/app/festival/static/scss/components/_messages.scss */
-.message-error {
- background: #fdf3f2;
- border: 1px solid #e74c3c;
- color: #a82315;
-}
-
-/* line 102, /Users/philippebarbosa/Sites/ircam-manifeste/app/festival/static/scss/components/_messages.scss */
-.message-warning {
- background: #fdedd4;
- border: 1px solid #f39c12;
- color: #976008;
-}
-
-/* line 108, /Users/philippebarbosa/Sites/ircam-manifeste/app/festival/static/scss/components/_messages.scss */
-.message-info {
- background: #e1f0fa;
- border: 1px solid #3498db;
- color: #196090;
-}
-
-/**
- * Fit message width to parent
- */
-/* line 118, /Users/philippebarbosa/Sites/ircam-manifeste/app/festival/static/scss/components/_messages.scss */
-.message-block {
- width: 100%;
-}
-
/**
* Core
*/
* Close message
*/
- var zeMessage = $('#js-messageContainer');
+ var notification = $('#js-notificationContainer');
- $('.js-messageClose').on('click', function(event) {
- zeMessage.addClass('message__remove');
+ $('.js-notificationClose').on('click', function(event) {
+ notification.addClass('notification__remove');
setTimeout(function () {
- zeMessage.remove();
+ notification.remove();
}, 4000);
});
});
\ No newline at end of file
/**
* Core
*/
-.message {
+.notification {
display: inline-block;
*display: inline;
*zoom: 1;
color: $base_link_color;
}
-.message__remove {
+.notification__remove {
animation-name: slideOutRight;
animation-duration: 0.8s;
animation-fill-mode: both;
.slideOutRight {
animation-name: slideOutRight;
-}
-
-/**
- * Colors
- */
-.message-success {
- background: lighten($success, 40);
- border: 1px solid $success;
- color: darken($success, 20);
-}
-
-.message-error {
- background: lighten($error, 40);
- border: 1px solid $error;
- color: darken($error, 20);
-}
-
-.message-warning {
- background: lighten($warning, 40);
- border: 1px solid $warning;
- color: darken($warning, 20);
-}
-
-.message-info {
- background: lighten($info, 40);
- border: 1px solid $info;
- color: darken($info, 20);
-}
-
-
-/**
- * Fit message width to parent
- */
-.message-block {
- width: 100%;
}
\ No newline at end of file
{% nevercache %}
{% if messages %}
{% for message in messages %}
- <div class="message" id="js-messageContainer">
- <button type="button" class="btn btn-small js-messageClose">X</button>
+ <div class="notification" id="js-notificationContainer">
+ <button type="button" class="btn btn-small js-notificationClose">X</button>
{{ message }}
</div>
{% endfor %}