tightform.less 3.2 KB

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