_tightform.scss 3.7 KB

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