tightform.less 3.7 KB

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