_alerts.scss 1.3 KB

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