_alerts.scss 1.2 KB

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