_tightform.scss 3.7 KB

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