_ThresholdsEditor.scss 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105
  1. .thresholds {
  2. margin-bottom: 20px;
  3. }
  4. .thresholds-row {
  5. display: flex;
  6. flex-direction: row;
  7. height: 62px;
  8. }
  9. .thresholds-row:first-child > .thresholds-row-color-indicator {
  10. border-top-left-radius: $border-radius;
  11. border-top-right-radius: $border-radius;
  12. overflow: hidden;
  13. }
  14. .thresholds-row:last-child > .thresholds-row-color-indicator {
  15. border-bottom-left-radius: $border-radius;
  16. border-bottom-right-radius: $border-radius;
  17. overflow: hidden;
  18. }
  19. .thresholds-row-add-button {
  20. @include buttonBackground($btn-success-bg, $btn-success-bg-hl, #fff);
  21. align-self: center;
  22. margin-right: 5px;
  23. height: 24px;
  24. width: 24px;
  25. border-radius: 50%;
  26. display: flex;
  27. align-items: center;
  28. justify-content: center;
  29. cursor: pointer;
  30. &:hover {
  31. color: $white;
  32. }
  33. }
  34. .thresholds-row-color-indicator {
  35. width: 10px;
  36. }
  37. .thresholds-row-input {
  38. margin-top: 44px;
  39. margin-left: 2px;
  40. }
  41. .thresholds-row-input-inner {
  42. display: flex;
  43. justify-content: center;
  44. flex-direction: row;
  45. }
  46. .thresholds-row-input-inner > *:last-child {
  47. border-top-right-radius: $border-radius;
  48. border-bottom-right-radius: $border-radius;
  49. }
  50. .thresholds-row-input-inner-arrow {
  51. align-self: center;
  52. width: 0;
  53. height: 0;
  54. border-top: 6px solid transparent;
  55. border-bottom: 6px solid transparent;
  56. border-right: 6px solid $input-label-border-color;
  57. }
  58. .thresholds-row-input-inner-value > input {
  59. height: $gf-form-input-height;
  60. padding: $input-padding-y $input-padding-x;
  61. width: 150px;
  62. border-top: 1px solid $input-label-border-color;
  63. border-bottom: 1px solid $input-label-border-color;
  64. }
  65. .thresholds-row-input-inner-color {
  66. width: 42px;
  67. display: flex;
  68. align-items: center;
  69. justify-content: center;
  70. background-color: $input-bg;
  71. border: 1px solid $input-label-border-color;
  72. }
  73. .thresholds-row-input-inner-color-colorpicker {
  74. border-radius: 10px;
  75. overflow: hidden;
  76. display: flex;
  77. align-items: center;
  78. box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
  79. }
  80. .thresholds-row-input-inner-remove {
  81. display: flex;
  82. align-items: center;
  83. justify-content: center;
  84. height: $gf-form-input-height;
  85. padding: $input-padding-y $input-padding-x;
  86. width: 42px;
  87. background-color: $input-label-bg;
  88. border: 1px solid $input-label-border-color;
  89. cursor: pointer;
  90. }