forms.css 9.1 KB

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