_alerting.scss 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163
  1. .alert-state-paused,
  2. .alert-state-pending {
  3. color: $text-muted;
  4. font-weight: $font-weight-semi-bold;
  5. }
  6. .alert-state-ok {
  7. color: $online;
  8. font-weight: $font-weight-semi-bold;
  9. }
  10. .alert-state-warning {
  11. color: $warn;
  12. font-weight: $font-weight-semi-bold;
  13. }
  14. .alert-state-critical {
  15. color: $critical;
  16. font-weight: $font-weight-semi-bold;
  17. }
  18. .alert-notify-emails {
  19. width: 400px;
  20. border-right: 1px solid $black;
  21. }
  22. .alert-notify-emails .bootstrap-tagsinput {
  23. width: 394px; // offset for 8px left padding and border width
  24. }
  25. .alert-notify-emails .bootstrap-tagsinput input {
  26. border: 0;
  27. }
  28. .panel-alert-icon {
  29. display: none;
  30. }
  31. .panel-has-alert {
  32. .panel-alert-icon {
  33. display: inline-block;
  34. }
  35. }
  36. .panel-alert-state {
  37. &--alerting {
  38. svg.panel-alert-icon {
  39. color: $critical;
  40. animation: alerting-panel 1s cubic-bezier(1, 0.1, 0.73, 1) 0s infinite alternate;
  41. }
  42. }
  43. &--ok {
  44. svg.panel-alert-icon {
  45. color: $online;
  46. }
  47. }
  48. &--pending {
  49. svg.panel-alert-icon {
  50. color: $warn;
  51. }
  52. }
  53. }
  54. @keyframes alerting-panel {
  55. 100% {
  56. transform: scale(1.2);
  57. }
  58. }
  59. // Alert List
  60. // Alert List
  61. .alert-rule-list {
  62. display: flex;
  63. flex-direction: row;
  64. flex-wrap: wrap;
  65. justify-content: space-between;
  66. list-style-type: none;
  67. }
  68. .alert-rule-item {
  69. display: flex;
  70. align-items: center;
  71. width: 100%;
  72. height: 100%;
  73. background: $card-background;
  74. box-shadow: $card-shadow;
  75. padding: 4px 8px;
  76. border-radius: 4px;
  77. margin-bottom: 4px;
  78. }
  79. .alert-rule-item__body {
  80. display: flex;
  81. flex-direction: column;
  82. flex-grow: 1;
  83. justify-content: center;
  84. overflow: hidden;
  85. }
  86. .alert-rule-item__icon {
  87. display: flex;
  88. justify-content: center;
  89. align-items: center;
  90. width: 40px;
  91. //margin-right: 8px;
  92. padding: 0 4px 0 2px;
  93. .icon-gf,
  94. .fa {
  95. font-size: 200%;
  96. position: relative;
  97. top: 2px;
  98. }
  99. }
  100. .alert-rule-item__header {
  101. display: flex;
  102. flex-direction: column;
  103. justify-content: space-between;
  104. }
  105. .alert-rule-item__name {
  106. font-size: $font-size-base;
  107. margin: 0;
  108. font-weight: $font-weight-semi-bold;
  109. }
  110. .alert-list__btn {
  111. margin: 0 2px;
  112. display: flex;
  113. align-items: center;
  114. justify-content: center;
  115. }
  116. .alert-rule-item__text {
  117. font-weight: bold;
  118. font-size: $font-size-sm;
  119. margin: 0;
  120. }
  121. .alert-rule-item__time {
  122. color: $text-color-weak;
  123. font-weight: normal;
  124. white-space: nowrap;
  125. }
  126. .alert-rule-item__info {
  127. //color: $text-color;
  128. font-weight: normal;
  129. flex-grow: 2;
  130. display: flex;
  131. align-items: flex-end;
  132. }
  133. .alert-rule-item__actions {
  134. display: flex;
  135. align-items: center;
  136. }
  137. .alert-tesint {
  138. display: flex;
  139. }