tightform.less 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212
  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. select.tight-form-input {
  133. border: none;
  134. border-right: 1px solid @grafanaTargetSegmentBorder;
  135. margin: 0px;
  136. border-radius: 0;
  137. height: 36px;
  138. padding: 9px 3px;
  139. &.last {
  140. border-right: none;
  141. }
  142. }
  143. .tight-form-func-controls {
  144. display: none;
  145. text-align: center;
  146. .fa-arrow-left {
  147. float: left;
  148. position: relative;
  149. top: 2px;
  150. }
  151. .fa-arrow-right {
  152. float: right;
  153. position: relative;
  154. top: 2px;
  155. }
  156. .fa-remove {
  157. margin-left: 10px;
  158. }
  159. }
  160. .tight-form-radio {
  161. input[type=radio] {
  162. margin: 0;
  163. }
  164. label {
  165. display: inline;
  166. }
  167. }
  168. .tight-form-section {
  169. margin-bottom: 20px;
  170. margin-right: 40px;
  171. vertical-align: top;
  172. display: inline-block;
  173. .tight-form {
  174. margin-left: 20px;
  175. }
  176. }
  177. .tight-form-align {
  178. padding-left: 66px;
  179. }