tightform.less 3.3 KB

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