tightform.less 3.4 KB

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