forms.css 7.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386
  1. .bx-form-advanced-wrapper .bx-form-section-wrapper:first-child {
  2. margin-top:0;
  3. }
  4. .bx-form-advanced-wrapper .bx-form-section-divider:first-child {
  5. border-top:none;
  6. padding-top:0;
  7. }
  8. .bx-form-advanced-wrapper .bx-form-section-divider:first-child .bx-form-section-content {
  9. padding-top:0;
  10. }
  11. .bx-form-advanced-wrapper .bx-form-section-wrapper:last-child .bx-form-section-content {
  12. padding-bottom:0;
  13. }
  14. .bx-form-advanced-wrapper .bx-form-section-wrapper:first-child .bx-form-row-view-wrapper:first-child {
  15. padding-top:0;
  16. }
  17. .bx-form-section-wrapper {
  18. position:relative;
  19. }
  20. .bx-form-section {
  21. padding:0px;
  22. }
  23. .bx-form-section {
  24. margin:0;
  25. border-width:2px;
  26. border-width:0.15rem;
  27. border-bottom:none;
  28. border-left:none;
  29. border-right:none;
  30. }
  31. .bx-form-section-header legend {
  32. position:relative;
  33. text-transform:uppercase;
  34. }
  35. .bx-form-section-header legend u {
  36. cursor:pointer;
  37. }
  38. .bx-form-section-hidden .bx-form-section-content {
  39. display:none;
  40. }
  41. .bx-form-element-wrapper:first-child {
  42. margin-top:0px;
  43. }
  44. .bx-form-caption {
  45. margin-bottom:5px;
  46. }
  47. .bx-form-required {
  48. color:red;
  49. }
  50. .bx-form-warn {
  51. color:red;
  52. font-style:italic;
  53. }
  54. .bx-form-info {
  55. }
  56. /* section toggler */
  57. .bx-form-collapsable .bx-form-section-toggler {
  58. position:absolute;
  59. left:-2px;
  60. top:3px;
  61. width:16px;
  62. height:16px;
  63. text-decoration:none;
  64. -moz-transform: rotate(90deg);
  65. -webkit-transform: rotate(90deg);
  66. -ms-transform: rotate(90deg);
  67. -o-transform: rotate(90deg);
  68. -webkit-transition: all 0.5s ease;
  69. -moz-transition: all 0.5s ease;
  70. -ms-transition: all 0.5s ease;
  71. -o-transition: all 0.5s ease;
  72. }
  73. .bx-form-collapsed .bx-form-section-toggler {
  74. -moz-transform: rotate(0deg);
  75. -webkit-transform: rotate(0deg);
  76. -ms-transform: rotate(0deg);
  77. -o-transform: rotate(0deg);
  78. }
  79. .bx-form-section-toggler .sys-icon {
  80. margin:5px 0 0 5px;
  81. font-size:1.2rem;
  82. line-height:1.2rem;
  83. }
  84. /* form inputs */
  85. .bx-form-input-slider,
  86. .bx-form-input-doublerange,
  87. .bx-form-input-select_multiple,
  88. .bx-form-input-select,
  89. .bx-form-input-radio_set,
  90. .bx-form-input-checkbox_set,
  91. .bx-form-input-number,
  92. .bx-form-input-datepicker,
  93. .bx-form-input-datetime,
  94. .bx-form-input-textarea,
  95. .bx-form-input-password,
  96. .bx-form-input-text {
  97. height:36px;
  98. height:2.2rem;
  99. width:100%;
  100. -moz-box-sizing: border-box;
  101. -ms-box-sizing: border-box;
  102. -webkit-box-sizing: border-box;
  103. box-sizing: border-box;
  104. padding:7px 3px 7px 3px;
  105. padding:0.2rem 0.4rem;
  106. vertical-align:middle;
  107. border:2px solid #79bd9a;
  108. border:0.15rem solid #79bd9a;
  109. -webkit-border-radius:0.3rem;
  110. -moz-border-radius:0.3rem;
  111. border-radius:0.3rem;
  112. outline:none;
  113. background-color: #fff;
  114. -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=90)";
  115. filter: alpha(opacity=90);
  116. -moz-opacity: 0.9;
  117. -khtml-opacity: 0.9;
  118. opacity: 0.9;
  119. }
  120. .bx-form-input-slider:focus,
  121. .bx-form-input-doublerange:focus,
  122. .bx-form-input-number:focus,
  123. .bx-form-input-datepicker:focus,
  124. .bx-form-input-datetime:focus,
  125. .bx-form-input-textarea:focus,
  126. .bx-form-input-password:focus,
  127. .bx-form-input-text:focus {
  128. border-color:#6caa8a;
  129. -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=100)";
  130. filter: alpha(opacity=100);
  131. -moz-opacity: 1.0;
  132. -khtml-opacity: 1.0;
  133. opacity: 1.0;
  134. -webkit-transition: all 0.2s linear;
  135. -moz-transition: all 0.2s linear;
  136. -o-transition: all 0.2s linear;
  137. transition: all 0.2s linear;
  138. }
  139. .bx-form-input-select_multiple,
  140. .bx-form-input-radio_set,
  141. .bx-form-input-checkbox_set {
  142. height:auto;
  143. }
  144. .bx-form-input-textarea {
  145. padding:0.5rem;
  146. height:150px;
  147. height:10rem;
  148. line-height:normal;
  149. }
  150. .bx-form-input-datepicker {
  151. width:7.5rem;
  152. }
  153. .bx-form-input-datetime {
  154. width:10.2rem;
  155. }
  156. .bx-form-input-number {
  157. width:6rem;
  158. }
  159. .bx-form-input-wrapper-slider,
  160. .bx-form-input-wrapper-doublerange {
  161. position:relative;
  162. }
  163. .bx-form-input-wrapper-slider .ui-slider,
  164. .bx-form-input-wrapper-doublerange .ui-slider {
  165. position:absolute;
  166. top:0px;
  167. right:0px;
  168. }
  169. .bx-form-input-wrapper-slider .ui-slider .ui-slider-handle,
  170. .bx-form-input-wrapper-doublerange .ui-slider .ui-slider-handle {
  171. z-index: 1;
  172. }
  173. /* switcher */
  174. .bx-switcher-cont {
  175. position:relative;
  176. width:60px;
  177. width:3.8rem;
  178. height:24px;
  179. height:1.5rem;
  180. overflow:hidden;
  181. cursor:pointer;
  182. background-color:#fff;
  183. border:2px solid #79bd9a;
  184. border:0.15rem solid #79bd9a;
  185. -moz-border-radius: 1rem;
  186. -webkit-border-radius: 1rem;
  187. border-radius: 1rem;
  188. }
  189. .bx-switcher-cont input {
  190. position:absolute;
  191. top:-32px;
  192. top:-2rem;
  193. }
  194. .bx-switcher-canvas {
  195. position:relative;
  196. width:90px;
  197. width:5.7rem;
  198. -webkit-transition: left 0.2s ease-in-out;
  199. -moz-transition: left 0.2s ease-in-out;
  200. -ms-transition: left 0.2s ease-in-out;
  201. -o-transition: left 0.2s ease-in-out;
  202. }
  203. .bx-switcher-cont.on .bx-switcher-canvas {
  204. left:3px;
  205. left:0.2rem;
  206. }
  207. .bx-switcher-cont.off .bx-switcher-canvas {
  208. left:-34px;
  209. left:-2.1rem;
  210. }
  211. .bx-switcher-on,
  212. .bx-switcher-off,
  213. .bx-switcher-handler {
  214. position:absolute;
  215. top:0rem;
  216. line-height:24px;
  217. line-height:1.5rem;
  218. color:#999;
  219. }
  220. .bx-switcher-on {
  221. left:0rem;
  222. width:34px;
  223. width:2.1rem;
  224. height:24px;
  225. height:1.5rem;
  226. margin-left:8px;
  227. margin-left:0.5rem;
  228. }
  229. .bx-switcher-off {
  230. left:65px;
  231. left:4.05rem;
  232. width:34px;
  233. width:2.1rem;
  234. height:24px;
  235. height:1.5rem;
  236. margin-left:3px;
  237. margin-left:0.2rem;
  238. }
  239. .bx-switcher-handler {
  240. left:36px;
  241. left:2.23rem;
  242. top:2px;
  243. top:0.13rem;
  244. width:20px;
  245. width:1.25rem;
  246. height:20px;
  247. height:1.25rem;
  248. margin:0rem;
  249. -moz-border-radius: 1rem;
  250. -webkit-border-radius: 1rem;
  251. border-radius: 1rem;
  252. -webkit-transition: background-color 0.2s ease-in-out;
  253. -moz-transition: background-color 0.2s ease-in-out;
  254. -ms-transition: background-color 0.2s ease-in-out;
  255. -o-transition: background-color 0.2s ease-in-out;
  256. transition: background-color 0.2s ease-in-out;
  257. }
  258. .bx-switcher-cont.on .bx-switcher-handler {
  259. background-color:#d0efa2;
  260. }
  261. .bx-switcher-cont.off .bx-switcher-handler {
  262. background-color:#e7938a;
  263. }
  264. .bx-form-input-btn-cross {
  265. position:absolute;
  266. top:0px;
  267. left:0px;
  268. width:1.2rem;
  269. height:1.2rem;
  270. cursor:pointer;
  271. }
  272. .bx-form-input-btn-cross .sys-icon {
  273. line-height:1.2rem;
  274. font-size:1.2rem;
  275. text-decoration:none;
  276. }
  277. .bx-form-value-oneline,
  278. .bx-form-caption-oneline {
  279. float:left;
  280. }
  281. .bx-form-caption-oneline-switcher {
  282. line-height:26px;
  283. }
  284. .bx-form-input-wrapper-submit .bx-btn {
  285. float:none;
  286. }
  287. .bx-form-input-wrapper-input_set .bx-btn {
  288. float:left;
  289. }
  290. /* extra features */
  291. .bx-form-right-line-aligned {
  292. float:right;
  293. margin-top: 5px;
  294. }
  295. /* view mode */
  296. .bx-form-view-section legend {
  297. padding-left:0;
  298. }
  299. .bx-form-row-view-wrapper > div {
  300. display: inline-block;
  301. /* For IE 7 */
  302. zoom: 1;
  303. *display: inline;
  304. white-space: normal;
  305. }
  306. .bx-form-row-view-wrapper-textarea > div {
  307. display: block;
  308. vertical-align:top;
  309. }
  310. .bx-form-row-view-caption {
  311. font-weight:bold;
  312. }