_alerting.scss 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139
  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 {
  26. display: flex;
  27. flex-direction: row;
  28. justify-content: space-between;
  29. }
  30. .alert-list-icon {
  31. font-weight: bold;
  32. display: flex;
  33. justify-content: center;
  34. align-items: center;
  35. .icon-gf, .fa {
  36. font-size: 200%;
  37. position: relative;
  38. top: 2px;
  39. }
  40. }
  41. .alert-list-body {
  42. display: flex;
  43. }
  44. .alert-list-main {
  45. padding: 0 2rem;
  46. display: flex;
  47. flex-direction: column;
  48. justify-content: center;
  49. }
  50. .alert-list-title {
  51. font-size: $font-size-base;
  52. margin: 0;
  53. font-weight: 600;
  54. }
  55. .alert-list-state {
  56. font-weight: bold;
  57. }
  58. .alert-list-text {
  59. font-size: $font-size-sm;
  60. margin: 0;
  61. line-height: 1.5rem;
  62. color: $text-color-weak;
  63. }
  64. .alert-list-info {
  65. color: $text-color;
  66. }
  67. .alert-list-info-left {
  68. padding-left: 2rem;
  69. }
  70. .alert-list-footer {
  71. display: flex;
  72. justify-content: space-between;
  73. flex-direction: column;
  74. align-items: flex-end;
  75. }
  76. .panel-has-alert {
  77. .panel-alert-icon:before {
  78. content: "\e611";
  79. position: relative;
  80. top: 1px;
  81. left: -3px;
  82. }
  83. }
  84. .panel-alert-state {
  85. &--alerting {
  86. box-shadow: 0 0 10px rgba($critical,0.5);
  87. position: relative;
  88. .panel-alert-icon:before {
  89. color: $critical;
  90. content: "\e610";
  91. }
  92. }
  93. &--alerting::after {
  94. content: '';
  95. position: absolute;
  96. top: 0;
  97. z-index: -1;
  98. width: 100%;
  99. height: 100%;
  100. box-shadow: 0 0 10px rgba($critical,1);
  101. opacity: 0;
  102. animation: alerting-panel 1.6s cubic-bezier(1,.1,.73,1) 0s infinite alternate;
  103. }
  104. &--ok {
  105. .panel-alert-icon:before {
  106. color: $online;
  107. content: "\e611";
  108. }
  109. }
  110. }
  111. @keyframes alerting-panel {
  112. 100% {
  113. opacity: 1;
  114. }
  115. }