tightform.less 3.1 KB

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