_alerting.scss 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175
  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. &--pending {
  59. .panel-alert-icon:before {
  60. color: $warn;
  61. content: '\e611';
  62. }
  63. }
  64. }
  65. @keyframes alerting-panel {
  66. 100% {
  67. opacity: 1;
  68. }
  69. }
  70. // Alert List
  71. // Alert List
  72. .alert-rule-list {
  73. display: flex;
  74. flex-direction: row;
  75. flex-wrap: wrap;
  76. justify-content: space-between;
  77. list-style-type: none;
  78. }
  79. .alert-rule-item {
  80. display: flex;
  81. width: 100%;
  82. height: 100%;
  83. background: $card-background;
  84. box-shadow: $card-shadow;
  85. padding: 4px 8px;
  86. border-radius: 4px;
  87. margin-bottom: 4px;
  88. }
  89. .alert-rule-item__body {
  90. display: flex;
  91. flex-direction: column;
  92. flex-grow: 1;
  93. justify-content: center;
  94. overflow: hidden;
  95. }
  96. .alert-rule-item__icon {
  97. display: flex;
  98. justify-content: center;
  99. align-items: center;
  100. width: 40px;
  101. //margin-right: 8px;
  102. padding: 0 4px 0 2px;
  103. .icon-gf,
  104. .fa {
  105. font-size: 200%;
  106. position: relative;
  107. top: 2px;
  108. }
  109. }
  110. .alert-rule-item__header {
  111. display: flex;
  112. flex-direction: column;
  113. justify-content: space-between;
  114. }
  115. .alert-rule-item__name {
  116. font-size: $font-size-base;
  117. margin: 0;
  118. font-weight: $font-weight-semi-bold;
  119. }
  120. .alert-list__btn {
  121. margin: 0 2px;
  122. display: flex;
  123. align-items: center;
  124. justify-content: center;
  125. }
  126. .alert-rule-item__text {
  127. font-weight: bold;
  128. font-size: $font-size-sm;
  129. margin: 0;
  130. }
  131. .alert-rule-item__time {
  132. color: $text-color-weak;
  133. font-weight: normal;
  134. white-space: nowrap;
  135. }
  136. .alert-rule-item__info {
  137. //color: $text-color;
  138. font-weight: normal;
  139. flex-grow: 2;
  140. display: flex;
  141. align-items: flex-end;
  142. }
  143. .alert-rule-item__actions {
  144. display: flex;
  145. align-items: center;
  146. }
  147. .alert-tesint {
  148. display: flex;
  149. }