2014-10-30 16:07:11 +00:00
|
|
|
|
/*
|
|
|
|
|
* Toastr
|
|
|
|
|
* Copyright 2012-2014 John Papa and Hans Fjällemark.
|
|
|
|
|
* All Rights Reserved.
|
|
|
|
|
* Use, reproduction, distribution, and modification of this code is subject to the terms and
|
|
|
|
|
* conditions of the MIT license, available at http://www.opensource.org/licenses/mit-license.php
|
|
|
|
|
*
|
|
|
|
|
* Author: John Papa and Hans Fjällemark
|
|
|
|
|
* Project: https://github.com/CodeSeven/toastr
|
2016-11-02 11:09:18 +00:00
|
|
|
|
*
|
2016-10-13 18:19:42 +00:00
|
|
|
|
* Last updated: October 13, 2016
|
2014-10-30 16:07:11 +00:00
|
|
|
|
*/
|
2016-10-13 18:19:42 +00:00
|
|
|
|
|
|
|
|
|
.toast-title,
|
|
|
|
|
.toast-message .nickname {
|
2014-10-30 16:07:11 +00:00
|
|
|
|
font-weight: bold;
|
2016-10-13 18:19:42 +00:00
|
|
|
|
margin: 0 0 3px;
|
|
|
|
|
@include text-truncate;
|
2014-10-30 16:07:11 +00:00
|
|
|
|
}
|
2016-10-13 18:19:42 +00:00
|
|
|
|
|
2014-10-30 16:07:11 +00:00
|
|
|
|
.toast-message {
|
|
|
|
|
-ms-word-wrap: break-word;
|
|
|
|
|
word-wrap: break-word;
|
|
|
|
|
}
|
2016-10-13 18:19:42 +00:00
|
|
|
|
|
2014-10-30 16:07:11 +00:00
|
|
|
|
.toast-message a,
|
2016-10-13 18:19:42 +00:00
|
|
|
|
.toast-message label,
|
|
|
|
|
.toast-message .connected,
|
|
|
|
|
.toast-message .disconnected {
|
|
|
|
|
color: $notificationLinkColor;
|
|
|
|
|
text-decoration: none;
|
2014-10-30 16:07:11 +00:00
|
|
|
|
}
|
2016-09-11 21:54:32 +00:00
|
|
|
|
|
2016-10-13 18:19:42 +00:00
|
|
|
|
.toast-message a:hover {
|
|
|
|
|
text-decoration: underline;
|
2016-09-11 21:54:32 +00:00
|
|
|
|
}
|
|
|
|
|
|
2016-10-13 18:19:42 +00:00
|
|
|
|
.toast-message br {
|
|
|
|
|
display: none;
|
2014-10-30 16:07:11 +00:00
|
|
|
|
}
|
2016-09-11 21:54:32 +00:00
|
|
|
|
|
2016-10-13 18:19:42 +00:00
|
|
|
|
// close button
|
2014-10-30 16:07:11 +00:00
|
|
|
|
.toast-close-button {
|
2016-10-13 18:19:42 +00:00
|
|
|
|
color: $notificationColor;
|
|
|
|
|
background: transparent;
|
|
|
|
|
|
2016-09-11 21:54:32 +00:00
|
|
|
|
font-size: 15px;
|
2016-10-13 18:19:42 +00:00
|
|
|
|
line-height: 1.2;
|
2016-09-11 21:54:32 +00:00
|
|
|
|
|
2016-10-13 18:19:42 +00:00
|
|
|
|
height: 20px;
|
|
|
|
|
width: 20px;
|
2014-10-30 16:07:11 +00:00
|
|
|
|
padding: 0;
|
|
|
|
|
border: 0;
|
2016-10-13 18:19:42 +00:00
|
|
|
|
margin: -6px -10px 0 0;
|
|
|
|
|
float: right;
|
2014-10-30 16:07:11 +00:00
|
|
|
|
|
|
|
|
|
cursor: pointer;
|
2016-10-13 18:19:42 +00:00
|
|
|
|
@include opacity(0.4);
|
|
|
|
|
/* Additional properties for button version
|
|
|
|
|
iOS requires the button element instead of an anchor tag.
|
|
|
|
|
If you want the anchor version, it requires `href="#"`. */
|
|
|
|
|
-webkit-appearance: none;
|
2014-10-30 16:07:11 +00:00
|
|
|
|
}
|
2016-06-23 19:48:38 +00:00
|
|
|
|
|
2016-10-13 18:19:42 +00:00
|
|
|
|
.toast-close-button:hover,
|
|
|
|
|
.toast-close-button:focus {
|
|
|
|
|
@include opacity(1);
|
2014-10-30 16:07:11 +00:00
|
|
|
|
}
|
2016-10-13 18:19:42 +00:00
|
|
|
|
|
|
|
|
|
|
2014-10-30 16:07:11 +00:00
|
|
|
|
.toast {
|
2016-10-13 18:19:42 +00:00
|
|
|
|
color: $notificationColor;
|
|
|
|
|
background-color: $notificationBackground;
|
|
|
|
|
|
|
|
|
|
font-size: $notificationFontSize;
|
|
|
|
|
|
|
|
|
|
padding: $notificationPadding;
|
|
|
|
|
border: 1px solid lighten($notificationBackground, 10%);
|
|
|
|
|
|
2016-11-02 11:09:18 +00:00
|
|
|
|
@include border-radius($notificationBorderRadius);
|
2016-10-13 18:19:42 +00:00
|
|
|
|
@include box-shadow(1px, 1px, 2px, rgba(0,0,0,0.3));
|
2016-10-17 12:10:08 +00:00
|
|
|
|
@include opacity($notificationOpacity);
|
2016-09-11 21:54:32 +00:00
|
|
|
|
}
|
|
|
|
|
|
2016-10-13 18:19:42 +00:00
|
|
|
|
.toast:hover {
|
|
|
|
|
@include opacity(1);
|
2016-09-11 21:54:32 +00:00
|
|
|
|
}
|
|
|
|
|
|
2016-10-13 18:19:42 +00:00
|
|
|
|
#toast-container {
|
|
|
|
|
position: fixed;
|
|
|
|
|
z-index: $notificationZ;
|
2016-09-11 21:54:32 +00:00
|
|
|
|
}
|
|
|
|
|
|
2016-10-13 18:19:42 +00:00
|
|
|
|
#toast-container.notification-bottom-right {
|
2016-11-11 16:52:36 +00:00
|
|
|
|
$videoOffset: 2 * ($thumbnailVideoMargin + $thumbnailsBorder) + $thumbnailVideoBorder;
|
2016-10-13 18:19:42 +00:00
|
|
|
|
bottom: 135px;
|
2017-04-06 18:09:05 +00:00
|
|
|
|
right: $filmstripToggleButtonWidth + $videoOffset;
|
2016-09-11 21:54:32 +00:00
|
|
|
|
}
|
|
|
|
|
|
2016-10-13 18:19:42 +00:00
|
|
|
|
#toast-container * {
|
|
|
|
|
@include box-sizing(border-box);
|
2016-09-11 21:54:32 +00:00
|
|
|
|
}
|
|
|
|
|
|
2016-10-13 18:19:42 +00:00
|
|
|
|
#toast-container .toast {
|
2016-11-02 11:09:18 +00:00
|
|
|
|
width: $notificationWidth;
|
2016-10-13 18:19:42 +00:00
|
|
|
|
margin: 0 0 8px;
|
2016-06-23 19:48:38 +00:00
|
|
|
|
}
|