forms.css 8.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430
  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: #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. }
  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. height:24px;
  178. overflow:hidden;
  179. cursor:pointer;
  180. border:1px solid #ccc;
  181. border:1px solid rgba(64, 64, 64, 0.5);
  182. -moz-border-radius: 15px;
  183. -webkit-border-radius: 15px;
  184. border-radius: 15px;
  185. -webkit-box-shadow: inset 0px 0px 8px rgba(0, 0, 0, 0.5);
  186. -moz-box-shadow: inset 0px 0px 8px rgba(0, 0, 0, 0.5);
  187. box-shadow: inset 0px 0px 8px rgba(0, 0, 0, 0.5);
  188. -webkit-transition: background-color 0.2s linear;
  189. -moz-transition: background-color 0.2s linear;
  190. -ms-transition: background-color 0.2s linear;
  191. -o-transition: background-color 0.2s linear;
  192. }
  193. .bx-switcher-cont input {
  194. position:absolute;
  195. top:-30px;
  196. }
  197. .bx-switcher-canvas {
  198. position:relative;
  199. width:90px;
  200. -webkit-transition: left 0.2s ease-in-out;
  201. -moz-transition: left 0.2s ease-in-out;
  202. -ms-transition: left 0.2s ease-in-out;
  203. -o-transition: left 0.2s ease-in-out;
  204. }
  205. .bx-switcher-cont.on {
  206. background-color: #9c6;
  207. }
  208. .bx-switcher-cont.off {
  209. background-color: #fff;
  210. }
  211. .bx-switcher-cont.on .bx-switcher-canvas {
  212. left:5px;
  213. }
  214. .bx-switcher-cont.off .bx-switcher-canvas {
  215. left:-31px;
  216. }
  217. .bx-switcher-on,
  218. .bx-switcher-off,
  219. .bx-switcher-handler {
  220. position:absolute;
  221. top:-1px;
  222. width:30px;
  223. height:30px;
  224. line-height:28px;
  225. }
  226. .bx-switcher-on {
  227. left:0px;
  228. width:2px;
  229. height:14px;
  230. margin:5px 0 0 15px;
  231. background-color:#050;
  232. border:1px solid #050;
  233. -moz-border-radius: 3px;
  234. -webkit-border-radius: 3px;
  235. border-radius: 3px;
  236. -webkit-box-shadow: 1px 1px 1px rgba(255, 255, 255, 1);
  237. -moz-box-shadow: 1px 1px 1px rgba(255, 255, 255, 1);
  238. box-shadow: 1px 1px 1px rgba(255, 255, 255, 1);
  239. }
  240. .bx-switcher-off {
  241. left:60px;
  242. width:16px;
  243. height:16px;
  244. padding:0 0 0 0;
  245. margin:5px 14px 0 3px;
  246. background-color:#aaa;
  247. -moz-border-radius: 10px;
  248. -webkit-border-radius: 10px;
  249. border-radius: 10px;
  250. -webkit-box-shadow: inset 0px 1px 2px #777;
  251. -moz-box-shadow: inset 0px 1px 2px #777;
  252. box-shadow: inset 0px 1px 2px #777;
  253. }
  254. .bx-switcher-off div {
  255. position:absolute;
  256. top:3px;
  257. left:3px;
  258. width:10px;
  259. height:10px;
  260. background-color:#fff;
  261. -moz-border-radius: 10px;
  262. -webkit-border-radius: 10px;
  263. border-radius: 10px;
  264. -webkit-box-shadow: 0px 1px 2px #777;
  265. -moz-box-shadow: 0px 1px 2px #777;
  266. box-shadow: 0px 1px 2px #777;
  267. }
  268. .bx-switcher-handler {
  269. left:30px;
  270. height:24px;
  271. width:24px;
  272. margin:0px;
  273. background-color: #ececec;
  274. background-image: -webkit-gradient(linear, 0% 0%, 0% 100%, from(#fff), to(#e0e0e0));
  275. background-image: -webkit-linear-gradient(top, #fff, #e0e0e0);
  276. background-image: -moz-linear-gradient(top, #fff, #e0e0e0);
  277. background-image: -ms-linear-gradient(top, #fff, #e0e0e0);
  278. background-image: -o-linear-gradient(top, #fff, #e0e0e0);
  279. background-image: linear-gradient(top, #fff, #e0e0e0);
  280. border:1px solid #ccc;
  281. border:1px solid rgba(64, 64, 64, 0.5);
  282. -moz-border-radius: 15px;
  283. -webkit-border-radius: 15px;
  284. border-radius: 15px;
  285. -webkit-box-shadow: inset 0px -1px 1px rgba(0, 0, 0, 0.3);
  286. -moz-box-shadow: inset 0px -1px 1px rgba(0, 0, 0, 0.3);
  287. box-shadow: inset 0px -1px 1px rgba(0, 0, 0, 0.3);
  288. }
  289. .bx-form-input-btn-cross {
  290. position:absolute;
  291. top:0px;
  292. left:0px;
  293. width:1.2rem;
  294. height:1.2rem;
  295. cursor:pointer;
  296. }
  297. .bx-form-input-btn-cross .sys-icon {
  298. line-height:1.2rem;
  299. font-size:1.2rem;
  300. text-decoration:none;
  301. }
  302. .bx-form-value-oneline,
  303. .bx-form-caption-oneline {
  304. float:left;
  305. }
  306. .bx-form-caption-oneline-switcher {
  307. line-height:26px;
  308. }
  309. .bx-form-input-wrapper-submit .bx-btn {
  310. float:none;
  311. }
  312. .bx-form-input-wrapper-input_set .bx-btn {
  313. float:left;
  314. }
  315. /* extra features */
  316. .bx-form-right-line-aligned {
  317. float:right;
  318. margin-top: 5px;
  319. }
  320. /* view mode */
  321. .bx-form-view-section legend {
  322. padding-left:0;
  323. }
  324. .bx-form-row-view-wrapper > div {
  325. display: inline-block;
  326. /* For IE 7 */
  327. zoom: 1;
  328. *display: inline;
  329. white-space: normal;
  330. }
  331. .bx-form-row-view-wrapper-textarea > div {
  332. display: block;
  333. vertical-align:top;
  334. }
  335. .bx-form-row-view-caption {
  336. font-weight:bold;
  337. }