1
0

forms.css 9.0 KB

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