tightform.less 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173
  1. .tight-form {
  2. border-top: 1px solid @grafanaTargetBorder;
  3. border-left: 1px solid @grafanaTargetBorder;
  4. border-right: 1px solid @grafanaTargetBorder;
  5. background: @grafanaTargetBackground;
  6. width: 100%;
  7. .dropdown {
  8. padding: 0; margin: 0;
  9. }
  10. &:last-child {
  11. border-bottom: 1px solid @grafanaTargetBorder;
  12. }
  13. }
  14. .tight-form-container {
  15. .tight-form:last-child {
  16. border-bottom: none;
  17. }
  18. &:last-child {
  19. border-bottom: 1px solid @grafanaTargetBorder;
  20. }
  21. }
  22. // old graphite-segment-list
  23. .tight-form-list {
  24. list-style: none;
  25. margin: 0;
  26. >li {
  27. float: left;
  28. }
  29. }
  30. .grafana-metric-options {
  31. margin-top: 35px;
  32. }
  33. // old grafana-target-segment {
  34. .tight-form-item {
  35. padding: 8px 7px;
  36. display: inline-block;
  37. font-weight: normal;
  38. border-right: 1px solid @grafanaTargetSegmentBorder;
  39. color: @grafanaTargetColor;
  40. display: inline-block;
  41. .has-open-function & {
  42. padding-top: 25px;
  43. }
  44. // old .grafana-target-hidden & {
  45. .tight-form-disabled & {
  46. color: @grafanaTargetColorHide;
  47. }
  48. &:hover, &:focus {
  49. text-decoration: none;
  50. }
  51. &a:hover {
  52. background: @grafanaTargetFuncBackground;
  53. }
  54. &.template-param-name {
  55. border-right: none;
  56. padding-right: 3px;
  57. }
  58. &.annotation-segment {
  59. padding: 8px 15px;
  60. }
  61. &.last {
  62. border-right: none;
  63. }
  64. }
  65. //.grafana-target-segment-icon {
  66. .tight-form-item-icon {
  67. i {
  68. width: 15px;
  69. text-align: center;
  70. display: inline-block;
  71. }
  72. }
  73. //.grafana-target-function {
  74. .tight-form-func {
  75. background: @grafanaTargetFuncBackground;
  76. > a {
  77. color: @grafanaTargetColor;
  78. }
  79. > a:hover {
  80. color: @linkColor;
  81. }
  82. &.show-function-controls {
  83. padding-top: 5px;
  84. min-width: 100px;
  85. text-align: center;
  86. }
  87. }
  88. //input[type=text].grafana-function-param-input {
  89. input[type=text].tight-form-func-param {
  90. background: transparent;
  91. border: none;
  92. margin: 0;
  93. padding: 0;
  94. }
  95. //input[type=text].grafana-target-text-input {
  96. input[type=text].tight-form-clear-input {
  97. padding: 8px 7px;
  98. border: none;
  99. margin: 0px;
  100. background: transparent;
  101. float: left;
  102. color: @grafanaTargetColor;
  103. border-radius: 0;
  104. border-right: 1px solid @grafanaTargetSegmentBorder;
  105. }
  106. //[type=text].grafana-target-segment-input, [type=number].grafana-target-segment-input {
  107. [type=text].tight-form-input, [type=number].tight-form-input {
  108. border: none;
  109. border-right: 1px solid @grafanaTargetSegmentBorder;
  110. margin: 0px;
  111. border-radius: 0;
  112. padding: 8px 4px;
  113. &.last {
  114. border-right: none;
  115. }
  116. }
  117. //input[type=checkbox].grafana-target-option-checkbox {
  118. input[type=checkbox].tight-form-checkbox {
  119. margin: 0;
  120. }
  121. select.tight-form-input {
  122. border: none;
  123. border-right: 1px solid @grafanaTargetSegmentBorder;
  124. margin: 0px;
  125. border-radius: 0;
  126. height: 36px;
  127. padding: 8px 5px;
  128. &.last {
  129. border-right: none;
  130. }
  131. }
  132. //.graphite-func-controls {
  133. .tight-form-func-controls {
  134. display: none;
  135. text-align: center;
  136. .fa-arrow-left {
  137. float: left;
  138. position: relative;
  139. top: 2px;
  140. }
  141. .fa-arrow-right {
  142. float: right;
  143. position: relative;
  144. top: 2px;
  145. }
  146. .fa-remove {
  147. margin-left: 10px;
  148. }
  149. }