tightform.less 3.7 KB

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