_alerting.scss 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687
  1. .alert-state-paused,
  2. .alert-state-pending {
  3. color: $text-muted;
  4. }
  5. .alert-state-ok {
  6. color: $online;
  7. }
  8. .alert-state-warning {
  9. color: $warn;
  10. }
  11. .alert-state-critical {
  12. color: $critical;
  13. }
  14. .alert-notify-emails {
  15. width: 400px;
  16. border-right: 1px solid $black;
  17. }
  18. .alert-notify-emails .bootstrap-tagsinput {
  19. width: 394px; // offset for 8px left padding and border width
  20. }
  21. .alert-notify-emails .bootstrap-tagsinput input {
  22. border: 0;
  23. }
  24. // Alert List
  25. .alert-list-item-state {
  26. font-weight: bold;
  27. .icon-gf, .fa {
  28. font-size: 120%;
  29. position: relative;
  30. top: 2px;
  31. }
  32. }
  33. .panel-has-alert {
  34. .panel-alert-icon:before {
  35. content: "\e611";
  36. position: relative;
  37. top: 1px;
  38. left: -3px;
  39. }
  40. }
  41. .panel-alert-state {
  42. &--alerting {
  43. box-shadow: 0 0 10px rgba($critical,0.5);
  44. position: relative;
  45. .panel-alert-icon:before {
  46. color: $critical;
  47. content: "\e610";
  48. }
  49. }
  50. &--alerting::after {
  51. content: '';
  52. position: absolute;
  53. top: 0;
  54. z-index: -1;
  55. width: 100%;
  56. height: 100%;
  57. box-shadow: 0 0 10px rgba($critical,1);
  58. opacity: 0;
  59. animation: alerting-panel 1.6s cubic-bezier(1,.1,.73,1) 0s infinite alternate;
  60. }
  61. &--ok {
  62. .panel-alert-icon:before {
  63. color: $online;
  64. content: "\e611";
  65. }
  66. }
  67. }
  68. @keyframes alerting-panel {
  69. 100% {
  70. opacity: 1;
  71. }
  72. }