You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

notification.scss 1.2KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. @mixin base-notification($primaryStyleName : v-Notification) {
  2. .#{$primaryStyleName} {
  3. background: #999;
  4. color: #fff;
  5. cursor: pointer;
  6. overflow: hidden;
  7. padding: 1em;
  8. max-width:85%;
  9. opacity: .9;
  10. filter: alpha(opacity=90);
  11. }
  12. .#{$primaryStyleName}-caption,
  13. .#{$primaryStyleName}-description,
  14. .#{$primaryStyleName}-details {
  15. display: inline;
  16. margin: 0 0.5em 0 0;
  17. }
  18. .#{$primaryStyleName}-warning {
  19. background: orange;
  20. }
  21. .#{$primaryStyleName}-error {
  22. background: red;
  23. }
  24. .#{$primaryStyleName}-tray {
  25. .#{$primaryStyleName}-caption,
  26. .#{$primaryStyleName}-description {
  27. display: block;
  28. }
  29. }
  30. .#{$primaryStyleName}-system {
  31. background-color: red;
  32. }
  33. .#{$primaryStyleName}-system .#{$primaryStyleName}-caption {
  34. display: block;
  35. margin: 0;
  36. }
  37. .#{$primaryStyleName}-animate-out {
  38. @include animation(v-notification-animate-out 400ms);
  39. }
  40. .#{$primaryStyleName} {
  41. &.v-position-top {
  42. top: 0;
  43. }
  44. &.v-position-right {
  45. right: 0;
  46. }
  47. &.v-position-bottom {
  48. bottom: 0;
  49. }
  50. &.v-position-left {
  51. left: 0;
  52. }
  53. &.v-position-assistive {
  54. top: -9999px;
  55. left: -9999px;
  56. }
  57. }
  58. }
  59. @include keyframes(v-notification-animate-out) {
  60. 100% {
  61. opacity: 0;
  62. }
  63. }