_alerts.scss 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  1. //
  2. // Alerts
  3. // --------------------------------------------------
  4. // Base styles
  5. // -------------------------
  6. .alert-state-online {
  7. //background-image: url('/img/online.svg');
  8. color: $online;
  9. }
  10. .alert-state-warn {
  11. //background-image: url('/img/warn-tiny.svg');
  12. color: $warn;
  13. }
  14. .alert-state-critical {
  15. //background-image: url('/img/critical.svg');
  16. color: $critical;
  17. }
  18. .alert {
  19. padding: 8px 35px 13px 14px;
  20. margin-bottom: $line-height-base;
  21. text-shadow: 0 1px 0 rgba(255,255,255,.5);
  22. background-color: $state-warning-bg;
  23. position: relative;
  24. color: $white;
  25. text-shadow: 0 1px 0 rgba(0,0,0,.5);
  26. border-radius: 2px;
  27. }
  28. // Alternate styles
  29. // -------------------------
  30. .alert-success {
  31. background-color: $successBackground;
  32. }
  33. .alert-danger,
  34. .alert-error {
  35. background-color: $errorBackground;
  36. }
  37. .alert-info {
  38. background-color: $infoBackground;
  39. }
  40. .alert-warning {
  41. background-color: $state-warning-bg;
  42. }
  43. .page-alert-list {
  44. z-index: 8000;
  45. min-width: 300px;
  46. max-width: 300px;
  47. position: fixed;
  48. right: 20px;
  49. top: 56px;
  50. }
  51. .alert-close {
  52. position: absolute;
  53. top: -4px;
  54. right: -2px;
  55. width: 16px;
  56. height: 16px;
  57. padding: 0;
  58. background: $white;
  59. border-radius: 50%;
  60. border: none;
  61. font-size: 1.1rem;
  62. color: $dark-4;
  63. .fa {
  64. position: relative;
  65. top: -2px;
  66. }
  67. }
  68. .alert-title {
  69. font-weight: $font-weight-semi-bold;
  70. padding-bottom: 2px;
  71. }