_alerting.scss 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  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. animation: alerting-panel 2s 0s infinite;
  44. opacity: 1;
  45. .panel-alert-icon:before {
  46. color: $critical;
  47. content: "\e610";
  48. }
  49. }
  50. &--ok {
  51. box-shadow: 0 0 5px rgba(0,200,0,10.8);
  52. .panel-alert-icon:before {
  53. color: $online;
  54. content: "\e611";
  55. }
  56. }
  57. }
  58. @keyframes alerting-panel {
  59. 0% {
  60. box-shadow: none;
  61. }
  62. 50% {
  63. box-shadow: 0 0 10px $critical;
  64. }
  65. 100% {
  66. box-shadow: none;
  67. }
  68. }