tightform.less 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211
  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. .tight-form, .tight-form-item, [type=text].tight-form-input, [type=text].tight-form-clear-input {
  22. border: none;
  23. }
  24. }
  25. .spaced-form {
  26. .tight-form {
  27. margin: 7px 0;
  28. }
  29. }
  30. .borderless {
  31. .tight-form-item,
  32. .tight-form-input {
  33. border: none;
  34. }
  35. }
  36. .tight-form-container {
  37. .tight-form:last-child {
  38. border-bottom: none;
  39. }
  40. &:last-child {
  41. border-bottom: 1px solid @grafanaTargetBorder;
  42. }
  43. }
  44. .tight-form-btn {
  45. padding: 7px 12px;
  46. }
  47. .tight-form-list {
  48. list-style: none;
  49. margin: 0;
  50. >li {
  51. float: left;
  52. }
  53. }
  54. .grafana-metric-options {
  55. margin-top: 35px;
  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. select.tight-form-input {
  137. border: none;
  138. border-right: 1px solid @grafanaTargetSegmentBorder;
  139. margin: 0px;
  140. border-radius: 0;
  141. height: 36px;
  142. padding: 8px 3px;
  143. &.last {
  144. border-right: none;
  145. }
  146. }
  147. .tight-form-func-controls {
  148. display: none;
  149. text-align: center;
  150. .fa-arrow-left {
  151. float: left;
  152. position: relative;
  153. top: 2px;
  154. }
  155. .fa-arrow-right {
  156. float: right;
  157. position: relative;
  158. top: 2px;
  159. }
  160. .fa-remove {
  161. margin-left: 10px;
  162. }
  163. }
  164. .tight-form-radio {
  165. input[type=radio] {
  166. margin: 0;
  167. }
  168. label {
  169. display: inline;
  170. }
  171. }
  172. .tight-form-section {
  173. margin-bottom: 20px;
  174. margin-right: 40px;
  175. vertical-align: top;
  176. display: inline-block;
  177. .tight-form {
  178. margin-left: 20px;
  179. }
  180. }