web.css 9.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488
  1. .diy-page {
  2. position: relative;
  3. }
  4. .diy-phone {
  5. float: left;
  6. width: 328px;
  7. height: auto;
  8. border: 1px solid #ddd;
  9. border-radius: 10px;
  10. background: #fff;
  11. padding: 10px;
  12. overflow: hidden;
  13. margin-bottom: 150px;
  14. }
  15. .diy-phone .phone-head {
  16. height: 44px;
  17. background: #fff;
  18. position: relative;
  19. }
  20. .diy-phone .phone-head:before {
  21. content: "";
  22. position: absolute;
  23. top: 15px;
  24. left: 112px;
  25. height: 8px;
  26. width: 8px;
  27. background: #ddd;
  28. border-radius: 8px;
  29. }
  30. .diy-phone .phone-head:after {
  31. content: "";
  32. position: absolute;
  33. top: 15px;
  34. left: 128px;
  35. height: 8px;
  36. width: 50px;
  37. background: #ddd;
  38. border-radius: 8px;
  39. }
  40. .diy-phone .phone-title {
  41. height: 54px;
  42. background: url("../images/wx-top.png") 0 0 no-repeat;
  43. background-size: 100% auto;
  44. padding: 0 50px;
  45. font-size: 15px;
  46. color: #fff;
  47. text-align: center;
  48. line-height: 68px;
  49. cursor: default;
  50. overflow: hidden;
  51. display:block;
  52. white-space:nowrap;
  53. text-overflow:ellipsis;
  54. }
  55. .diy-phone .phone-main {
  56. min-height: 400px;
  57. border: 1px solid #ddd;
  58. border-top: 0;
  59. -webkit-touch-callout: none;
  60. -webkit-user-select: none;
  61. -khtml-user-select: none;
  62. -moz-user-select: none;
  63. -ms-user-select: none;
  64. user-select: none;
  65. }
  66. .diy-phone .phone-main p {
  67. margin: 0;
  68. padding: 0;
  69. }
  70. .diy-phone .phone-main .highlight {
  71. height: 50px;
  72. border: 2px dashed #999;
  73. text-align: center;
  74. font-size: 16px;
  75. color: #999;
  76. -webkit-touch-callout: none;
  77. -webkit-user-select: none;
  78. -khtml-user-select: none;
  79. -moz-user-select: none;
  80. -ms-user-select: none;
  81. user-select: none;
  82. }
  83. .diy-phone .phone-main .drag {
  84. position: relative;
  85. min-height: 20px;
  86. display: block;
  87. overflow: hidden;
  88. }
  89. .diy-phone .phone-main .drag.selected:before,
  90. .diy-phone .phone-main .drag:hover:before {
  91. content: "";
  92. position: absolute;
  93. top: 0;
  94. left: 0;
  95. right: 0;
  96. bottom: 0;
  97. border: 2px dashed #00a0e9;
  98. cursor: move;
  99. z-index: 10;
  100. }
  101. .diy-phone .phone-main .drag.fixed:before {
  102. cursor: default;
  103. }
  104. .diy-phone .phone-main .drag .btn-edit-del {
  105. height: 16px;
  106. position: absolute;
  107. right: 2px;
  108. bottom: 2px;
  109. display: none;
  110. }
  111. .diy-phone .phone-main .drag .btn-edit-del > div {
  112. width: 32px;
  113. height: 16px;
  114. line-height: 16px;
  115. display: inline-block;
  116. text-align: center;
  117. font-size: 10px;
  118. color: #fff;
  119. background: rgba(0,0,0,.4);
  120. margin-left: 2px;
  121. cursor: pointer;
  122. position: relative;
  123. z-index: 11;
  124. }
  125. .diy-phone .phone-main .drag.selected .btn-edit-del ,
  126. .diy-phone .phone-main .drag:hover .btn-edit-del {
  127. display: block;
  128. }
  129. .diy-phone .phone-main .drag.nodelete .btn-edit-del .btn-del {
  130. display: none;
  131. }
  132. .diy-phone .phone-main a {
  133. color: #337ab7;
  134. }
  135. .diy-phone .phone-foot {
  136. height: 24px;
  137. width: 60px;
  138. margin: 15px auto 5px;
  139. border: 1px solid #ddd;
  140. border-radius: 5px;
  141. }
  142. .diy-editor {
  143. float: left;
  144. width: 494px;
  145. height: auto;
  146. background: #fdfdfd;
  147. padding: 15px 10px;
  148. margin-left: 18px;
  149. border: 1px solid #ddd;
  150. border-radius: 5px;
  151. margin-top: 55px;
  152. display: none;
  153. margin-bottom: 150px;
  154. }
  155. .diy-editor .editor-arrow {
  156. height: 0;
  157. position: relative;
  158. }
  159. .diy-editor .editor-arrow:after,
  160. .diy-editor .editor-arrow:before {
  161. position: absolute;
  162. font-family: simsun;
  163. content: "◆";
  164. top: 8px;
  165. left: -21px;
  166. display: block;
  167. width: 9px;
  168. height: 18px;
  169. font-size: 24px;
  170. color: #fdfdfd;
  171. z-index: 111;
  172. }
  173. .diy-editor .editor-arrow:after {
  174. left: -22px;
  175. color: #ddd;
  176. z-index: 11;
  177. }
  178. .diy-editor .form-group {
  179. margin: 5px 0;
  180. }
  181. .diy-editor .form-group .control-label {
  182. padding: 5px 0;
  183. text-align: right;
  184. }
  185. .diy-editor .form-group .form-control {
  186. padding: 0 5px;
  187. }
  188. .diy-editor .form-group .noblr {
  189. border-left: 0;
  190. border-right: 0;
  191. }
  192. .diy-editor .color {
  193. padding: 0;
  194. cursor: pointer;
  195. }
  196. .diy-editor .form-group .ui-slider {
  197. margin-top: 4px;
  198. }
  199. .diy-editor .form-items {
  200. height: auto;
  201. }
  202. .diy-editor .form-items.indent {
  203. margin: 0 14px;
  204. }
  205. .diy-editor .form-items .inner {
  206. height: auto;
  207. }
  208. .diy-editor .form-items .inner .item {
  209. height: auto;
  210. background: #fff;
  211. padding: 10px;
  212. margin-bottom: 10px;
  213. border: 1px solid #e7eaec;
  214. border-radius: 3px;
  215. overflow: hidden;
  216. }
  217. .diy-editor .form-items .inner .highlight {
  218. border: 2px dashed #e7eaec;
  219. margin-bottom: 10px;
  220. text-align: center;
  221. font-size: 16px;
  222. color: #ccc;
  223. }
  224. .diy-editor .form-items .inner .item .btn-del {
  225. height: 0;
  226. width: 100%;
  227. display: block;
  228. position: relative;
  229. }
  230. .diy-editor .form-items .inner .item .btn-del:before {
  231. content: "×";
  232. position: absolute;
  233. height: 16px;
  234. width: 16px;
  235. text-align: center;
  236. line-height: 14px;
  237. color: #fff;
  238. cursor: pointer;
  239. background: rgba(0,0,0,0.3);
  240. border-radius: 16px;
  241. top: -6px;
  242. right: -6px;
  243. z-index: 10;
  244. }
  245. .diy-editor .form-items .inner .item .item-image {
  246. height: 70px;
  247. width: auto;
  248. min-width: 40px;
  249. max-width: 220px;
  250. background: #eee;
  251. float: left;
  252. margin-right: 10px;
  253. border: 1px solid #e7eaec;
  254. position: relative;
  255. }
  256. .diy-editor .form-items .inner .item .item-image img {
  257. height: 68px;
  258. width: auto;
  259. max-width: 220px;
  260. display: block;
  261. }
  262. .diy-editor .form-items .inner .item .item-image.square {
  263. width: 70px;
  264. height: 70px;
  265. }
  266. .diy-editor .form-items .inner .item .item-image.square img {
  267. width: 68px;
  268. height: 68px;
  269. }
  270. .diy-editor .form-items .inner .item .item-image .text {
  271. height: 20px;
  272. left: 0;
  273. right: 0;
  274. bottom: 0;
  275. background: rgba(0,0,0,0.5);
  276. color: #fff;
  277. text-align: center;
  278. font-size: 12px;
  279. line-height: 20px;
  280. position: absolute;
  281. cursor: pointer;
  282. }
  283. .diy-editor .form-items .inner .item .item-image.drag-btn {
  284. font-size: 14px;
  285. line-height: 68px;
  286. text-align: center;
  287. cursor: move;
  288. }
  289. .diy-editor .form-items .inner .item .item-image .icon-main {
  290. height: 50px;
  291. width: 68px;
  292. line-height: 50px;
  293. text-align: center;
  294. background: #fff;
  295. }
  296. .diy-editor .form-items .inner .item .item-image .icon-main .icon {
  297. font-size: 30px;
  298. }
  299. .diy-editor .form-items .inner .item .item-form {
  300. height: auto;
  301. display: block;
  302. overflow: hidden;
  303. }
  304. .diy-editor .form-items .inner .item .title {
  305. padding-bottom: 10px;
  306. }
  307. .diy-editor .form-items .inner .item .title-child {
  308. padding-bottom: 10px;
  309. padding-top: 10px;
  310. }
  311. .diy-editor .form-items .inner .item .item-body.child {
  312. margin-bottom: 10px;
  313. background: #fff;
  314. }
  315. .diy-editor .line {
  316. height: 10px;
  317. width: 100%;
  318. position: relative;
  319. }
  320. .diy-editor .line:before {
  321. height: 0;
  322. content: '';
  323. position: absolute;
  324. bottom: 5px;
  325. left: 14px;
  326. right: 14px;
  327. border: 1px dashed #eee;
  328. }
  329. .form-control[disabled], .form-control[readonly], fieldset[disabled] .form-control {
  330. background: #f7f7f7;
  331. }
  332. .diy-menu {
  333. width: 840px;
  334. height: auto;
  335. background: #fdfdfd;
  336. margin-right: -455px;
  337. border: 1px solid #ddd;
  338. border-radius: 3px;
  339. position: fixed;
  340. bottom: 0;
  341. right: 50%;
  342. box-shadow: 0 0 8px rgba(0,0,0,0.1);
  343. z-index: 999;
  344. -webkit-transition: all 0.3s;
  345. transition: all 0.3s;
  346. }
  347. .diy-menu .navs,
  348. .diy-menu .action {
  349. height: auto;
  350. }
  351. .diy-menu .navs {
  352. padding: 10px 10px 5px;
  353. border-bottom: 1px dotted #ddd;
  354. display: none;
  355. }
  356. .diy-menu .navs nav {
  357. width: 92px;
  358. padding: 5px 0;
  359. margin: 0 5px 5px 0;
  360. text-align: center;
  361. }
  362. .diy-menu .navs nav.special {
  363. background: #f4f4f4;
  364. }
  365. .diy-menu .navs nav:hover {
  366. background: #fff;
  367. border: 1px solid #ddd;
  368. transition: all 0.4s;
  369. -moz-transition: all 0.4s;
  370. -webkit-transition: all 0.4s;
  371. -o-transition: all 0.4s;
  372. }
  373. .diy-menu .navs nav:active {
  374. -webkit-box-shadow: inset 1px 3px 5px rgba(0,0,0,0.2);
  375. box-shadow: inset 1px 3px 5px rgba(0,0,0,0.2);
  376. }
  377. .diy-menu .action {
  378. padding: 10px;
  379. text-align: right;
  380. position: relative;
  381. }
  382. .diy-menu .action:before {
  383. content: "";
  384. position: absolute;
  385. top: 0;
  386. left: 0;
  387. height: 0;
  388. width: 100%;
  389. }
  390. .diy-menu .action nav {
  391. margin-right: 5px;
  392. }
  393. .wb-container.right-panel .diy-menu {
  394. margin-right: -540px;
  395. }
  396. .wb-nav.fold~.wb-subnav~.wb-container .diy-menu {
  397. margin-right: -420px;
  398. }
  399. .wb-nav.fold~.wb-subnav~.wb-container.right-panel .diy-menu {
  400. margin-right: -505px;
  401. }
  402. .wb-nav~.wb-subnav.fold~.wb-container .diy-menu {
  403. margin-right: -400px;
  404. }
  405. .wb-nav~.wb-subnav.fold~.wb-container.right-panel .diy-menu {
  406. margin-right: -485px;
  407. }
  408. .wb-nav.fold~.wb-subnav.fold~.wb-container .diy-menu {
  409. margin-right: -365px;
  410. }
  411. .wb-nav.fold~.wb-subnav.fold~.wb-container.right-panel .diy-menu {
  412. margin-right: -450px;
  413. }
  414. .form-horizontal .checkbox, .form-horizontal .checkbox-inline, .form-horizontal .radio, .form-horizontal .radio-inline {
  415. padding-top: 6px;
  416. }
  417. .has-error .form-control:focus, .has-error .single-line:focus {
  418. border-color: #ed5565 !important;
  419. }
  420. .w840 {
  421. width: 840px;
  422. margin: auto;
  423. }