tightform.less 3.4 KB

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