_alerting.scss 2.1 KB

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