normform.less 3.3 KB

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