tightform.less 3.1 KB

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