diy.scss 30 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367
  1. @charset "utf-8";
  2. @mixin transition($transition) {
  3. -webkit-transition: $transition;
  4. -moz-transition: $transition;
  5. -o-transition: $transition;
  6. transition: $transition;
  7. }
  8. // 主页面
  9. .row-content {
  10. .widget {
  11. min-width: 1130px;
  12. }
  13. .widget-body {
  14. padding: 0;
  15. }
  16. .iconfont {
  17. font-size: inherit;
  18. }
  19. p {
  20. margin: 0;
  21. }
  22. .btn-resetColor {
  23. padding: .4em 1em;
  24. color: #444;
  25. background: #fdfdfd;
  26. border-color: #efefef;
  27. outline: none;
  28. margin-left: -4px;
  29. &:focus, &:hover {
  30. background: #f9f9f9;
  31. }
  32. }
  33. }
  34. // diy工作区
  35. .work-diy {
  36. padding: 20px 0;
  37. align-items: flex-start;
  38. // diy-工具栏
  39. .diy-menu {
  40. width: 285px;
  41. height: auto;
  42. background: #fdfdfd;
  43. border: 1px solid #ddd;
  44. padding: 15px 10px;
  45. -webkit-transition: all 0.3s;
  46. transition: all 0.3s;
  47. user-select: none;
  48. .navs,
  49. .action {
  50. height: auto;
  51. }
  52. // 组件库标题
  53. .menu-title {
  54. position: relative;
  55. padding: 0 22px;
  56. height: 30px;
  57. border-bottom: 1px solid #eef1f5;
  58. span {
  59. font-size: 1.3rem;
  60. }
  61. &::before {
  62. content: '';
  63. position: absolute;
  64. width: 4px;
  65. height: 13px;
  66. background: #00aeff;
  67. top: 8px;
  68. left: 9px;
  69. }
  70. }
  71. .navs {
  72. padding: 10px 5px;
  73. border-bottom: 1px dotted #ddd;
  74. position: relative;
  75. display: -webkit-box;
  76. display: -webkit-flex;
  77. display: -ms-flexbox;
  78. display: flex;
  79. .title {
  80. font-size: 1.24rem;
  81. color: #999;
  82. margin: 10px 0;
  83. }
  84. .btns-global {
  85. width: 96px;
  86. nav {
  87. height: 40px;
  88. line-height: 38px;
  89. }
  90. }
  91. nav {
  92. width: 74px;
  93. float: left;
  94. padding: 3px 0;
  95. margin: 5px;
  96. border: 1px solid #dddddd;
  97. text-align: center;
  98. font-size: 12px;
  99. cursor: pointer;
  100. @include transition(All 0.3s ease-in-out);
  101. p {
  102. color: #424242;
  103. &.item-icon .iconfont {
  104. font-size: 1.8rem;
  105. }
  106. }
  107. &.page-setup {
  108. width: auto;
  109. padding: 0;
  110. margin: 0;
  111. position: absolute;
  112. top: 12px;
  113. right: 12px;
  114. border-color: #fff;
  115. line-height: 12px;
  116. &:hover {
  117. border-color: #fff;
  118. }
  119. }
  120. &.special {
  121. background: #f4f4f4;
  122. }
  123. &:hover {
  124. background: #fff;
  125. border: 1px solid #00aeff;
  126. color: #00aeff;
  127. @include transition(All 0.4s);
  128. }
  129. &:active {
  130. -webkit-box-shadow: inset 1px 3px 5px rgba(0, 0, 0, 0.2);
  131. box-shadow: inset 1px 3px 5px rgba(0, 0, 0, 0.2);
  132. }
  133. }
  134. }
  135. .action {
  136. margin-top: 15px;
  137. text-align: right;
  138. position: relative;
  139. &:before {
  140. content: "";
  141. position: absolute;
  142. top: 0;
  143. left: 0;
  144. height: 0;
  145. width: 100%;
  146. }
  147. nav {
  148. margin-right: 5px;
  149. }
  150. }
  151. }
  152. // diy手机
  153. .diy-phone {
  154. width: 377px;
  155. border-radius: 3px;
  156. box-shadow: 0 3px 10px #dcdcdc;
  157. border: 1px solid #ddd;
  158. .phone-top {
  159. width: 100%;
  160. height: 66px;
  161. text-align: center;
  162. h4 {
  163. margin: 0;
  164. font-size: 1.4rem;
  165. font-weight: normal;
  166. white-space: nowrap;
  167. line-height: 88px;
  168. }
  169. }
  170. // diy元素容器
  171. .phone-main {
  172. position: relative;
  173. border-top: 0;
  174. user-select: none;
  175. line-height: normal;
  176. .dragArea {
  177. overflow-y: auto;
  178. height: 580px;
  179. }
  180. .drag {
  181. display: block;
  182. overflow: hidden;
  183. font-size: 1.3rem;
  184. .btn-edit-del {
  185. height: 16px;
  186. position: absolute;
  187. right: 2px;
  188. bottom: 2px;
  189. display: none;
  190. z-index: 90;
  191. & > div {
  192. width: 32px;
  193. height: 16px;
  194. line-height: 16px;
  195. display: inline-block;
  196. text-align: center;
  197. font-size: 10px;
  198. color: #fff;
  199. background: rgba(0, 0, 0, .4);
  200. margin-left: 2px;
  201. cursor: pointer;
  202. position: relative;
  203. z-index: 11;
  204. }
  205. }
  206. // 选中状态
  207. &.selected, &:hover {
  208. // 显示删除按钮
  209. .btn-edit-del {
  210. display: block;
  211. }
  212. }
  213. }
  214. a {
  215. color: #337ab7;
  216. }
  217. // diy-搜索
  218. .diy-search {
  219. background: #f1f1f2;
  220. padding: 10px 10px;
  221. .inner {
  222. height: 30px;
  223. background: #fff;
  224. overflow: hidden;
  225. &.radius {
  226. border-radius: 5px;
  227. }
  228. &.round {
  229. border-radius: 30px;
  230. }
  231. .search-input {
  232. height: 30px;
  233. //width: 100%;
  234. line-height: 30px;
  235. color: #999999;
  236. padding: 0 10px;
  237. }
  238. }
  239. }
  240. // diy-banner
  241. .diy-banner {
  242. display: block;
  243. margin: 0;
  244. padding: 0;
  245. height: auto;
  246. overflow: hidden;
  247. //position: relative;
  248. img {
  249. display: none;
  250. width: 100%;
  251. &:first-child {
  252. display: block;
  253. }
  254. }
  255. .dots {
  256. height: 14px;
  257. padding: 0 10px;
  258. position: absolute;
  259. left: 0;
  260. right: 0;
  261. bottom: 10px;
  262. opacity: 0.8;
  263. text-align: center;
  264. span {
  265. display: inline-block;
  266. margin-left: 3px;
  267. }
  268. &.rectangle {
  269. span {
  270. height: 10px;
  271. width: 16px;
  272. }
  273. }
  274. &.square {
  275. span {
  276. height: 10px;
  277. width: 10px;
  278. }
  279. }
  280. &.round {
  281. span {
  282. height: 10px;
  283. width: 10px;
  284. border-radius: 10px;
  285. }
  286. }
  287. }
  288. }
  289. // diy-单图组
  290. .diy-imageSingle {
  291. display: block;
  292. margin: 0;
  293. padding: 0;
  294. height: auto;
  295. overflow: hidden;
  296. img {
  297. display: block;
  298. width: 100%;
  299. }
  300. }
  301. // diy-按钮组
  302. .diy-navBar {
  303. li {
  304. margin: 10px 0;
  305. .item-image {
  306. text-align: center;
  307. margin-bottom: 4px;
  308. img {
  309. height: 44px;
  310. width: 44px;
  311. }
  312. }
  313. .item-text {
  314. text-align: center;
  315. }
  316. }
  317. }
  318. // diy-辅助线
  319. .diy-guide {
  320. .line {
  321. height: 0;
  322. width: 100%;
  323. }
  324. }
  325. // diy-视频组
  326. .diy-video {
  327. video {
  328. display: block;
  329. width: 100%;
  330. height: 100%;
  331. }
  332. }
  333. // diy-文章组
  334. .diy-article {
  335. background: #f7f7f7;
  336. .article-item {
  337. margin-bottom: 10px;
  338. padding: 15px;
  339. background: #fff;
  340. &:last-child {
  341. margin-bottom: 0;
  342. }
  343. .article-item__image image {
  344. display: block;
  345. }
  346. .article-item__footer {
  347. margin-top: 5px;
  348. .article-views {
  349. font-size: 12px;
  350. color: #888;
  351. }
  352. }
  353. // 小图模式
  354. &.show-type__10 {
  355. display: flex;
  356. .article-item__left {
  357. padding-right: 10px;
  358. }
  359. .article-item__title {
  360. min-height: 36px;
  361. }
  362. .article-item__image img {
  363. display: block;
  364. width: 120px;
  365. }
  366. }
  367. // 大图模式
  368. &.show-type__20 {
  369. .article-item__image {
  370. margin-top: 12.5px;
  371. img {
  372. display: block;
  373. width: 100%;
  374. }
  375. }
  376. }
  377. }
  378. }
  379. // diy-专题组
  380. .diy-special {
  381. line-height: normal;
  382. .special-left {
  383. padding: 5px 10px;
  384. img {
  385. display: block;
  386. width: 70px;
  387. }
  388. }
  389. .special-content {
  390. //width: 250px;
  391. overflow: hidden;
  392. .content-item {
  393. padding: 2px 0;
  394. font-size: 13px;
  395. color: #141414;
  396. }
  397. &.display_1 {
  398. height: 22px;
  399. }
  400. &.display_2 {
  401. height: 44px;
  402. }
  403. }
  404. .special-more {
  405. padding: 12px 10px;
  406. font-size: 12px;
  407. }
  408. }
  409. // diy-图片橱窗
  410. .diy-window {
  411. .item-image {
  412. img {
  413. width: 100%;
  414. }
  415. }
  416. // 橱窗样式
  417. .display {
  418. height: 0;
  419. width: 100%;
  420. margin: 0;
  421. padding-bottom: 50%;
  422. position: relative;
  423. img {
  424. width: 100%;
  425. height: 100%;
  426. }
  427. .display-left {
  428. width: 50%;
  429. height: 100%;
  430. position: absolute;
  431. top: 0;
  432. left: 0;
  433. }
  434. .display-right {
  435. width: 50%;
  436. height: 100%;
  437. position: absolute;
  438. top: 0;
  439. left: 50%;
  440. }
  441. .display-right1 {
  442. width: 100%;
  443. height: 50%;
  444. position: absolute;
  445. top: 0;
  446. left: 0;
  447. }
  448. .display-right2 {
  449. width: 100%;
  450. height: 50%;
  451. position: absolute;
  452. top: 50%;
  453. left: 0;
  454. .left {
  455. width: 50%;
  456. height: 100%;
  457. position: absolute;
  458. top: 0;
  459. left: 0;
  460. }
  461. .right {
  462. width: 50%;
  463. height: 100%;
  464. position: absolute;
  465. top: 0;
  466. left: 50%;
  467. }
  468. }
  469. }
  470. }
  471. // diy-商品组
  472. .diy-goods {
  473. .goods-list {
  474. padding: 2px;
  475. &.display__slide {
  476. //overflow-x: scroll;
  477. //overflow-y: hidden;
  478. overflow-x: hidden;
  479. white-space: nowrap;
  480. font-size: 0;
  481. &::-webkit-scrollbar {
  482. display: none;
  483. }
  484. .goods-item {
  485. display: inline-block;
  486. //float: unset;
  487. }
  488. }
  489. &.display__list {
  490. .goods-item {
  491. float: left;
  492. }
  493. }
  494. &.column__1 {
  495. .goods-item {
  496. width: 100%;
  497. height: 140px;
  498. margin-bottom: 6px;
  499. padding: 10px;
  500. box-sizing: border-box;
  501. background: #fff;
  502. }
  503. .goods-item:last-child {
  504. margin-bottom: 0;
  505. }
  506. /* 商品图片 */
  507. .goods-item_left {
  508. display: flex;
  509. width: 40%;
  510. background: #fff;
  511. align-items: center;
  512. }
  513. .goods-item_left img {
  514. display: block;
  515. width: 120px;
  516. height: 120px;
  517. }
  518. .goods-item_right {
  519. position: relative;
  520. width: 60%;
  521. }
  522. /* 商品名称 */
  523. .goods-item_right .goods-item_title {
  524. height: 36px;
  525. margin-top: 10px;
  526. font-size: 14px;
  527. line-height: 1.3;
  528. color: #333;
  529. }
  530. .goods-item_desc {
  531. margin-top: 4px;
  532. }
  533. /* 商品卖点 */
  534. .desc-selling_point {
  535. width: 200px;
  536. height: 20px;
  537. font-size: 12px;
  538. color: #ff495e;
  539. }
  540. .desc-goods_sales {
  541. color: #999;
  542. font-size: 12px;
  543. }
  544. /* 商品价格 */
  545. .desc_footer {
  546. //margin-top: 6px;
  547. font-size: 12px;
  548. }
  549. .desc_footer .price_x {
  550. margin-right: 8px;
  551. color: rgb(240, 60, 60);
  552. font-size: 15px;
  553. }
  554. .desc_footer .price_y {
  555. text-decoration: line-through;
  556. }
  557. }
  558. &.column__2 {
  559. .goods-item {
  560. width: 50%;
  561. }
  562. }
  563. &.column__3 {
  564. .goods-item {
  565. width: 33.33333%;
  566. }
  567. }
  568. .goods-item {
  569. padding: 3px;
  570. .goods-image {
  571. position: relative;
  572. width: 100%;
  573. height: 0;
  574. padding-bottom: 100%;
  575. overflow: hidden;
  576. background: #fff;
  577. &:after {
  578. content: '';
  579. display: block;
  580. margin-top: 100%; /* margin 百分比相对父元素宽度计算 */
  581. }
  582. img {
  583. position: absolute;
  584. width: 100%;
  585. height: 100%;
  586. top: 0;
  587. left: 0;
  588. -o-object-fit: cover;
  589. object-fit: cover;
  590. }
  591. }
  592. .detail {
  593. padding: 4px;
  594. background: #fff;
  595. font-size: 1.3rem;
  596. .goods-name {
  597. height: 40px;
  598. overflow: hidden;
  599. }
  600. .goods-price {
  601. font-size: 15px;
  602. }
  603. .line-price {
  604. font-size: 12px;
  605. text-decoration: line-through;
  606. color: #999;
  607. }
  608. .selling-point {
  609. font-size: 12px;
  610. color: #f20c59
  611. }
  612. }
  613. }
  614. }
  615. }
  616. // diy-秒杀商品组
  617. .diy-sharpGoods {
  618. .sharp-top {
  619. .sharp-modular {
  620. font-size: 15px;
  621. color: #fff;
  622. background: #FB571D;
  623. padding: 5px 15px 5px 12px;
  624. border-bottom-right-radius: 15px;
  625. border-top-right-radius: 15px;
  626. .modular-name {
  627. margin-left: 5px;
  628. }
  629. }
  630. .sharp-active-status {
  631. color: #616161;
  632. font-size: 14px;
  633. margin-left: 10px;
  634. }
  635. /* 倒计时 */
  636. .active-count-down {
  637. font-size: 13px;
  638. height: 20px;
  639. margin-left: 8px;
  640. .clock-text {
  641. margin-right: 5px;
  642. }
  643. .clock-time {
  644. background: #252525;
  645. color: #fff;
  646. padding: 0 3px;
  647. line-height: 20px;
  648. border-radius: 4px;
  649. }
  650. .clock-symbol {
  651. padding: 0 4px;
  652. }
  653. }
  654. /* 更多 */
  655. .sharp-more {
  656. padding-right: 12px;
  657. color: #616161;
  658. font-size: 14px;
  659. .sharp-more-arrow {
  660. font-size: 12px;
  661. }
  662. }
  663. }
  664. .goods-list {
  665. padding: 2px;
  666. &.display__list {
  667. .goods-item {
  668. float: left;
  669. }
  670. }
  671. &.column__2 {
  672. .goods-item {
  673. width: 50%;
  674. }
  675. }
  676. &.column__3 {
  677. .goods-item {
  678. width: 33.33333%;
  679. }
  680. }
  681. .goods-item {
  682. padding: 3px;
  683. .goods-image {
  684. position: relative;
  685. width: 100%;
  686. height: 0;
  687. padding-bottom: 100%;
  688. overflow: hidden;
  689. background: #fff;
  690. &:after {
  691. content: '';
  692. display: block;
  693. margin-top: 100%; /* margin 百分比相对父元素宽度计算 */
  694. }
  695. img {
  696. position: absolute;
  697. width: 100%;
  698. height: 100%;
  699. top: 0;
  700. left: 0;
  701. -o-object-fit: cover;
  702. object-fit: cover;
  703. }
  704. }
  705. .detail {
  706. padding: 2px;
  707. background: #fff;
  708. .goods-name {
  709. font-size: 14px;
  710. height: 38px;
  711. line-height: 1.3;
  712. overflow: hidden;
  713. }
  714. .detail-price {
  715. line-height: 20px;
  716. .goods-price {
  717. font-size: 15px;
  718. }
  719. .line-price {
  720. font-size: 12px;
  721. text-decoration: line-through;
  722. color: #999;
  723. }
  724. }
  725. }
  726. }
  727. }
  728. }
  729. // diy-优惠券组
  730. .diy-coupon {
  731. padding: 10px 0;
  732. .coupon-item {
  733. width: 150px;
  734. height: 60px;
  735. position: relative;
  736. color: #fff;
  737. overflow: hidden;
  738. box-sizing: border-box;
  739. i.before {
  740. content: "";
  741. position: absolute;
  742. z-index: 1;
  743. width: 1.6rem;
  744. height: 1.6rem;
  745. top: 50%;
  746. left: -.8rem;
  747. -webkit-transform: translateY(-50%);
  748. transform: translateY(-50%);
  749. -webkit-border-radius: 80%;
  750. border-radius: 80%;
  751. background-color: #fff;
  752. }
  753. .left-content {
  754. position: relative;
  755. float: left;
  756. width: 70%;
  757. height: 100%;
  758. background-color: #E5004F;
  759. font-size: 12px;
  760. .content-top {
  761. .price {
  762. font-size: 2rem;
  763. }
  764. }
  765. &.color__blue {
  766. background: linear-gradient(-125deg, #57bdbf, #2f9de2);
  767. }
  768. &.color__red {
  769. background: linear-gradient(-128deg, #ff6d6d, #ff3636);
  770. }
  771. &.color__violet {
  772. background: linear-gradient(-113deg, #ef86ff, #b66ff5);
  773. }
  774. &.color__yellow {
  775. background: linear-gradient(-141deg, #f7d059, #fdb054);
  776. }
  777. }
  778. .right-receive {
  779. float: right;
  780. width: 30%;
  781. height: 100%;
  782. background-color: #4e4e4e;
  783. text-align: center;
  784. span {
  785. font-size: 1.3rem;
  786. }
  787. }
  788. }
  789. }
  790. // diy-拼团商品组
  791. .diy-sharingGoods {
  792. padding: 10px;
  793. .goods-item {
  794. height: 160px;
  795. margin-bottom: 10px;
  796. padding: 10px;
  797. box-sizing: border-box;
  798. background: #fff;
  799. }
  800. .goods-item:last-child {
  801. margin-bottom: 0;
  802. }
  803. /* 商品图片 */
  804. .goods-item_left {
  805. display: flex;
  806. width: 40%;
  807. background: #fff;
  808. align-items: center;
  809. }
  810. .goods-item_left img {
  811. display: block;
  812. width: 120px;
  813. height: 120px;
  814. }
  815. .goods-item_right {
  816. position: relative;
  817. width: 60%;
  818. }
  819. /* 商品名称 */
  820. .goods-item_right .goods-item_title {
  821. height: 36px;
  822. margin-top: 10px;
  823. font-size: 14px;
  824. line-height: 1.3;
  825. color: #333;
  826. }
  827. .goods-item_desc {
  828. margin-top: 8px;
  829. }
  830. /* 商品卖点 */
  831. .desc-selling_point {
  832. width: 200px;
  833. height: 16px;
  834. font-size: 12px;
  835. line-height: 1.4;
  836. color: #ff495e;
  837. }
  838. /* 拼团信息 */
  839. .desc-situation {
  840. margin-top: 6px;
  841. font-size: 12px;
  842. line-height: 1.3;
  843. color: rgb(240, 60, 60);
  844. }
  845. .desc-situation .people {
  846. margin: 0 3px;
  847. }
  848. /* 商品价格 */
  849. .desc_footer {
  850. margin-top: 6px;
  851. font-size: 12px;
  852. }
  853. .desc_footer .price_x {
  854. margin-right: 8px;
  855. color: rgb(240, 60, 60);
  856. font-size: 14px;
  857. }
  858. .desc_footer .price_y {
  859. text-decoration: line-through;
  860. }
  861. /* 去拼团按钮 */
  862. .goods-item .btn-settlement {
  863. position: absolute;
  864. right: 0;
  865. bottom: 0;
  866. padding: 0 14px;
  867. border-radius: 20px;
  868. background: linear-gradient(to right, rgb(235, 53, 107) 0%, rgb(240, 60, 60) 100%);
  869. box-shadow: 0 2px 10px -2px rgb(235, 53, 107);
  870. font-size: 12px;
  871. line-height: 27px;
  872. text-align: center;
  873. color: #fff;
  874. }
  875. }
  876. // diy-砍价商品组
  877. .diy-bargainGoods {
  878. .goods-item {
  879. margin-bottom: 10px;
  880. background: #fff;
  881. padding: 10px 8px;
  882. }
  883. .goods-item:last-child {
  884. margin-bottom: 0;
  885. }
  886. .goods-item .goods-image img {
  887. display: block;
  888. width: 110px;
  889. height: 110px;
  890. }
  891. .goods-item .goods-info {
  892. width: 249px;
  893. padding-top: 2px;
  894. margin-left: 7px;
  895. position: relative;
  896. }
  897. .goods-item .goods-info .goods-name {
  898. font-size: 14px;
  899. min-height: 30px;
  900. }
  901. /* 正在参与的用户 */
  902. .goods-item .goods-info .peoples {
  903. margin-top: 7px;
  904. }
  905. .goods-item .goods-info .peoples .user-list {
  906. margin-right: 5px;
  907. }
  908. .goods-item .goods-info .peoples .user-list .user-item-avatar {
  909. margin-left: -4px;
  910. }
  911. .goods-item .goods-info .peoples .user-list .user-item-avatar:first-child {
  912. margin-left: 0;
  913. }
  914. .goods-item .goods-info .peoples .user-list .user-item-avatar img {
  915. display: block;
  916. width: 18px;
  917. height: 18px;
  918. border-radius: 50%;
  919. }
  920. .goods-item .goods-info .peoples .people__text {
  921. font-size: 12px;
  922. color: #818181;
  923. }
  924. /* 商品原价 */
  925. .goods-item .goods-info .goods-price {
  926. margin-top: 7px;
  927. color: #818181;
  928. font-size: 12px;
  929. text-decoration: line-through;
  930. }
  931. /* 砍价底价 */
  932. .goods-item .goods-info .floor-price {
  933. color: #fc1e56;
  934. }
  935. .goods-item .goods-info .floor-price .small {
  936. font-size: 12px;
  937. }
  938. .goods-item .goods-info .floor-price .big {
  939. font-size: 16px;
  940. }
  941. /* 立即参加按钮 */
  942. .opt-touch {
  943. position: absolute;
  944. bottom: 0;
  945. right: 5px;
  946. }
  947. .touch-btn {
  948. color: #fff;
  949. font-size: 14px;
  950. background: #d3a975;
  951. border-radius: 15px;
  952. padding: 5px 14px;
  953. }
  954. }
  955. // 公告组
  956. .diy-notice {
  957. padding: 4px 10px;
  958. line-height: 26px;
  959. .notice__icon {
  960. font-size: 0;
  961. img {
  962. width: 16px;
  963. height: 16px;
  964. }
  965. }
  966. .notice__text {
  967. padding-left: 5px;
  968. }
  969. }
  970. // 富文本
  971. .diy-richText {
  972. font-size: 14px;
  973. line-height: normal;
  974. p {
  975. padding: 0 4px;
  976. }
  977. img {
  978. display: block;
  979. width: 375px;
  980. margin-left: -4px;
  981. }
  982. video {
  983. width: 100%;
  984. }
  985. p {
  986. //margin: 5px 0;
  987. }
  988. hr {
  989. margin: 5px 0;
  990. }
  991. * + h1, * + h2, * + h3, * + h4, * + h5, * + h6 {
  992. margin: 1.6rem 0;
  993. }
  994. }
  995. // 在线客服
  996. .diy-service {
  997. position: absolute;
  998. z-index: 999;
  999. .service-icon {
  1000. padding: 5px;
  1001. img {
  1002. display: block;
  1003. width: 45px;
  1004. height: 45px;
  1005. }
  1006. }
  1007. }
  1008. // 线下门店
  1009. .diy-shop {
  1010. .shop-item {
  1011. padding: 8px 15px;
  1012. min-height: 90px;
  1013. font-size: 13px;
  1014. line-height: 1.5;
  1015. border-bottom: 1px solid #eee;
  1016. }
  1017. .shop-item__logo {
  1018. margin-right: 15px;
  1019. img {
  1020. display: block;
  1021. width: 65px;
  1022. height: 65px;
  1023. border-radius: 50%;
  1024. border: 1px solid #ececec;
  1025. }
  1026. }
  1027. .shop-item__title {
  1028. font-size: 14px;
  1029. color: #fd4a5f;
  1030. margin-bottom: 5px;
  1031. }
  1032. .shop-item__address, .shop-item__phone {
  1033. color: #919396;
  1034. }
  1035. .shop-item__address {
  1036. width: 260px;
  1037. }
  1038. .shop-item__distance {
  1039. margin-top: 5px;
  1040. color: #c1c1c1;
  1041. height: 20px;
  1042. }
  1043. .shop-item__distance .iconfont {
  1044. color: #81838e;
  1045. margin-right: 3px;
  1046. }
  1047. }
  1048. // 关注公众号
  1049. .diy-officialAccount {
  1050. width: 100%;
  1051. height: 75px;
  1052. padding: 0 8px;
  1053. .item-top {
  1054. padding: 5px 0;
  1055. font-size: 12px;
  1056. color: #c0bdc0;
  1057. }
  1058. .item-content {
  1059. height: 46px;
  1060. .item-cont-avatar {
  1061. margin-right: 10px;
  1062. img {
  1063. display: block;
  1064. width: 42px;
  1065. height: 42px;
  1066. }
  1067. }
  1068. .item-cont-public {
  1069. width: 235px;
  1070. margin-right: 15px;
  1071. .public-name {
  1072. font-size: 14px;
  1073. }
  1074. .public-describe {
  1075. margin-top: 2px;
  1076. font-size: 12px;
  1077. color: #9E9B9F;
  1078. }
  1079. }
  1080. .item-cont-active {
  1081. .active-btn {
  1082. width: 46px;
  1083. height: 24px;
  1084. line-height: 22px;
  1085. border: 1px solid rgb(26, 173, 25);
  1086. border-radius: 3px;
  1087. font-size: 12px;
  1088. color: rgb(26, 173, 25);
  1089. text-align: center;
  1090. }
  1091. }
  1092. }
  1093. }
  1094. }
  1095. .optional {
  1096. position: relative;
  1097. &:before {
  1098. content: "";
  1099. }
  1100. &.__z10:before {
  1101. z-index: 10;
  1102. }
  1103. &.__no-move:before {
  1104. cursor: pointer !important;
  1105. }
  1106. &.selected:before,
  1107. &:hover:before {
  1108. position: absolute;
  1109. top: 0;
  1110. left: 0;
  1111. right: 0;
  1112. bottom: 0;
  1113. border: 2px dashed #00a0e9;
  1114. cursor: move;
  1115. }
  1116. }
  1117. }
  1118. // 编辑器
  1119. .diy-editor {
  1120. width: 400px;
  1121. height: auto;
  1122. min-height: 100px;
  1123. padding: 15px 10px;
  1124. border: 1px solid #ddd;
  1125. // form 样式
  1126. .tpl-form-line-form {
  1127. font-size: 1.3rem !important;
  1128. color: #656565;
  1129. .am-form-group {
  1130. margin: 1rem 0;
  1131. }
  1132. .am-form-label {
  1133. padding-top: 0;
  1134. line-height: 28px;
  1135. font-size: 1.3rem;
  1136. }
  1137. .am-radio-inline, .am-checkbox-inline {
  1138. padding-top: 0;
  1139. font-size: 1.3rem;
  1140. line-height: 28px;
  1141. margin: 0 10px 0 0;
  1142. .am-ucheck-icons {
  1143. line-height: 28px;
  1144. }
  1145. }
  1146. input[type=text] {
  1147. line-height: 28px;
  1148. font-size: 1.3rem;
  1149. padding: 0 5px;
  1150. color: #656565;
  1151. }
  1152. input[type=color] {
  1153. display: inline-block;
  1154. -webkit-appearance: square-button;
  1155. width: 65px;
  1156. height: 26px;
  1157. background-color: #ffffff;
  1158. border: 1px solid #efefef;
  1159. padding: 0 4px;
  1160. margin: 1px 0;
  1161. cursor: pointer;
  1162. }
  1163. }
  1164. // 图片
  1165. .data-image {
  1166. display: inline-block;
  1167. width: auto;
  1168. min-width: 40px;
  1169. max-width: 220px;
  1170. //height: 50px;
  1171. text-align: center;
  1172. cursor: pointer;
  1173. img {
  1174. display: block;
  1175. max-width: 100%;
  1176. height: 50px;
  1177. }
  1178. }
  1179. .editor-title {
  1180. position: relative;
  1181. padding: 0 22px;
  1182. height: 34px;
  1183. border-bottom: 1px solid #eef1f5;
  1184. margin-bottom: 20px;
  1185. &::before {
  1186. content: '';
  1187. position: absolute;
  1188. width: 4px;
  1189. height: 13px;
  1190. background: #00aeff;
  1191. top: 8px;
  1192. left: 9px;
  1193. }
  1194. span {
  1195. font-size: 1.3rem;
  1196. }
  1197. }
  1198. .editor-centent {
  1199. padding: 0 22px;
  1200. font-size: 13px;
  1201. p {
  1202. line-height: 24px;
  1203. }
  1204. }
  1205. // form items
  1206. .form-items {
  1207. height: auto;
  1208. padding: 5px 6px;
  1209. .form-item {
  1210. background: #f7fafc;
  1211. margin-bottom: .6rem;
  1212. position: relative;
  1213. border-radius: 3px;
  1214. cursor: move;
  1215. input {
  1216. background: #f7fafc;
  1217. }
  1218. // 删除元素
  1219. .item-delete {
  1220. position: absolute;
  1221. top: -6px;
  1222. right: -6px;
  1223. height: 16px;
  1224. width: 16px;
  1225. line-height: 16px;
  1226. background: rgba(153, 153, 153, 0.7);
  1227. color: #fff;
  1228. border-radius: 50%;
  1229. text-align: center;
  1230. cursor: pointer;
  1231. font-size: 12px;
  1232. -webkit-transition: background-color .3s ease-out, border-color .3s ease-out;
  1233. transition: background-color .3s ease-out, border-color .3s ease-out;
  1234. &:hover {
  1235. background: #000;
  1236. }
  1237. }
  1238. .item-inner {
  1239. padding: 10px;
  1240. background: #f7fafc;
  1241. .help-block {
  1242. margin-top: 10px;
  1243. }
  1244. }
  1245. }
  1246. // 商品元素
  1247. &.__goods {
  1248. .form-item {
  1249. float: left;
  1250. margin: 10px;
  1251. height: 70px;
  1252. width: 70px;
  1253. }
  1254. .data-image {
  1255. cursor: unset;
  1256. }
  1257. }
  1258. }
  1259. // 添加新元素
  1260. .form-item-add {
  1261. width: 100%;
  1262. background: #fdfdfd;
  1263. color: #6b6b6b;
  1264. border: 1px solid #efefef;
  1265. outline: none;
  1266. padding: 10px 16px;
  1267. border-radius: 2px;
  1268. font-size: 12px;
  1269. line-height: 1;
  1270. text-align: center;
  1271. vertical-align: middle;
  1272. cursor: pointer;
  1273. user-select: none;
  1274. @include transition(All 0.2s ease-in-out);
  1275. &:hover {
  1276. background: #f9f9f9;
  1277. }
  1278. }
  1279. }
  1280. }