_alerting.scss 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166
  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. .panel-has-alert {
  25. .panel-alert-icon:before {
  26. content: '\e611';
  27. position: relative;
  28. top: 1px;
  29. left: -3px;
  30. }
  31. }
  32. .panel-alert-state {
  33. &--alerting {
  34. box-shadow: 0 0 10px rgba($critical, 0.5);
  35. position: relative;
  36. .panel-alert-icon:before {
  37. color: $critical;
  38. content: '\e610';
  39. }
  40. }
  41. &--alerting::after {
  42. content: '';
  43. position: absolute;
  44. top: 0;
  45. z-index: -1;
  46. width: 100%;
  47. height: 100%;
  48. box-shadow: 0 0 10px rgba($critical, 1);
  49. opacity: 0;
  50. animation: alerting-panel 1.6s cubic-bezier(1, 0.1, 0.73, 1) 0s infinite alternate;
  51. }
  52. &--ok {
  53. .panel-alert-icon:before {
  54. color: $online;
  55. content: '\e611';
  56. }
  57. }
  58. }
  59. @keyframes alerting-panel {
  60. 100% {
  61. opacity: 1;
  62. }
  63. }
  64. // Alert List
  65. // Alert List
  66. .alert-rule-list {
  67. display: flex;
  68. flex-direction: row;
  69. flex-wrap: wrap;
  70. justify-content: space-between;
  71. list-style-type: none;
  72. }
  73. .alert-rule-item {
  74. display: flex;
  75. width: 100%;
  76. height: 100%;
  77. background: $card-background;
  78. box-shadow: $card-shadow;
  79. padding: 4px 8px;
  80. border-radius: 4px;
  81. margin-bottom: 4px;
  82. }
  83. .alert-rule-item__body {
  84. display: flex;
  85. flex-direction: column;
  86. flex-grow: 1;
  87. overflow: hidden;
  88. }
  89. .alert-rule-item__icon {
  90. display: flex;
  91. justify-content: center;
  92. align-items: center;
  93. width: 40px;
  94. padding: 0 28px 0 16px;
  95. .icon-gf,
  96. .fa {
  97. font-size: 200%;
  98. position: relative;
  99. top: 2px;
  100. }
  101. }
  102. .alert-rule-item__header {
  103. display: flex;
  104. flex-direction: column;
  105. justify-content: space-between;
  106. }
  107. .alert-rule-item__name {
  108. font-size: $font-size-base;
  109. margin: 0;
  110. font-weight: $font-weight-semi-bold;
  111. }
  112. .alert-list__btn {
  113. margin: 0 2px;
  114. display: flex;
  115. align-items: center;
  116. justify-content: center;
  117. }
  118. .alert-rule-item__text {
  119. font-weight: bold;
  120. font-size: $font-size-sm;
  121. margin: 0;
  122. }
  123. .alert-rule-item__time {
  124. color: $text-color-weak;
  125. font-weight: normal;
  126. white-space: nowrap;
  127. }
  128. .alert-rule-item__info {
  129. //color: $text-color;
  130. font-weight: normal;
  131. flex-grow: 2;
  132. display: flex;
  133. align-items: flex-end;
  134. }
  135. .alert-rule-item__actions {
  136. display: flex;
  137. align-items: center;
  138. }
  139. .alert-tesint {
  140. display: flex;
  141. }