tightform.less 3.7 KB

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