tightform.less 3.2 KB

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