_tightform.scss 3.7 KB

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