style.css 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122
  1. html,
  2. body {
  3. font-size: 0.28rem;
  4. font-weight: 500;
  5. height: 100%;
  6. background: #ffffff;
  7. font-family: Microsoft YaHei, Arial;
  8. -webkit-overflow-scrolling: touch;
  9. }
  10. input,
  11. button,
  12. select,
  13. textarea {
  14. outline: none;
  15. }
  16. @font-face{
  17. font-family: 'Medium';
  18. /*src: url('../font/字体名称.eot');*/
  19. src: url('./DINOT-Medium.ttf') format('truetype');
  20. }
  21. .topbar {
  22. position: fixed;
  23. top: 0;
  24. z-index: 99;
  25. background: #ffffff;
  26. width: 100%;
  27. }
  28. .weui-loading {
  29. background-image: url(../image/loading.svg);
  30. }
  31. textarea {
  32. resize: none;
  33. }
  34. .weui_tab_bd_item {
  35. display: none;
  36. }
  37. .weui_tab_bd_item.weui_tab_bd_item_active {
  38. display: block;
  39. }
  40. .hover {
  41. opacity: .8;
  42. }
  43. .flex-wrap {
  44. display: -webkit-box;
  45. display: -webkit-flex;
  46. display: flex;
  47. }
  48. .flex-con {
  49. -webkit-box-flex: 1;
  50. -webkit-flex: 1;
  51. flex: 1;
  52. }
  53. .flex-vertical {
  54. -webkit-box-orient: vertical;
  55. -webkit-flex-flow: column;
  56. flex-flow: column;
  57. }
  58. .border-t,
  59. .border-b {
  60. position: relative;
  61. }
  62. .border-t:before,
  63. .border-b:after {
  64. content: '';
  65. position: absolute;
  66. left: 0;
  67. top: 0;
  68. background: #ddd;
  69. right: 0;
  70. height: 1px;
  71. -webkit-transform: scaleY(0.5);
  72. transform: scaleY(0.5);
  73. -webkit-transform-origin: 0 0;
  74. transform-origin: 0 0;
  75. }
  76. .border-b:after {
  77. top: auto;
  78. bottom: 0;
  79. }
  80. #wrap {
  81. height: 100%;
  82. }
  83. body {
  84. box-sizing: border-box;
  85. }
  86. input {
  87. border: none;
  88. outline: none;
  89. font: inherit;
  90. }
  91. div,
  92. ul,
  93. li,
  94. span,
  95. input {
  96. margin: 0px;
  97. padding: 0px;
  98. color: #606266;
  99. list-style: none;
  100. }
  101. .msg-total {
  102. background-color: #f56c6c;
  103. border-radius: 1em;
  104. color: #fff;
  105. display: inline-block;
  106. font-size: 0.2rem;
  107. height: 0.18rem;
  108. line-height: 0.18rem;
  109. padding: 0.05rem 0.1rem;
  110. text-align: center;
  111. white-space: nowrap;
  112. }
  113. .font-rem11 {
  114. font-size: 0.28rem;
  115. }
  116. .h2 {
  117. width: 100%;
  118. clear: both;
  119. height: 0.15rem;
  120. }
  121. .h5 {
  122. width: 100%;
  123. clear: both;
  124. height: 0.4rem;
  125. }
  126. .new-list {
  127. padding-top: 1rem;
  128. }
  129. .h10 {
  130. width: 100%;
  131. clear: both;
  132. height: 0.3rem;
  133. }
  134. .back-h10 {
  135. width: 100%;
  136. clear: both;
  137. height: 1.2rem;
  138. background: #f2f2f2;
  139. }
  140. .border:after {
  141. content: ' ';
  142. position: absolute;
  143. pointer-events: none;
  144. box-sizing: border-box;
  145. top: -50%;
  146. left: -50%;
  147. right: -50%;
  148. bottom: -50%;
  149. -webkit-transform: scale(0.5);
  150. transform: scale(0.5);
  151. border-bottom: 1px solid #d9251c;
  152. }
  153. .h20 {
  154. width: 100%;
  155. clear: both;
  156. height: 0.17rem;
  157. }
  158. .back-h50 {
  159. width: 100%;
  160. clear: both;
  161. height: 0.2rem;
  162. background: #f2f2f2;
  163. }
  164. .h50 {
  165. width: 100%;
  166. clear: both;
  167. height: 0.2rem;
  168. }
  169. .h70 {
  170. width: 100%;
  171. clear: both;
  172. height: 2rem;
  173. }
  174. .white-back {
  175. background: #ffffff !important;
  176. }
  177. .right-tag {
  178. float: right;
  179. font-weight: 600;
  180. }
  181. .bot-input {
  182. color: #999999;
  183. border-bottom: 1px solid #e8e8e8;
  184. width: 100%;
  185. padding: 0.25rem 0 0.25rem 0.3rem;
  186. border-radius: 0px;
  187. font-size: 0.35rem;
  188. }
  189. .border-t {
  190. background-color: #fff;
  191. height: 1rem;
  192. /*margin-top: 0.3rem;*/
  193. }
  194. #footer ul li {
  195. color: #909399;
  196. padding-top: 0.55rem;
  197. padding-bottom: 0px;
  198. background: url() no-repeat center 2px;
  199. background-size: auto 0.5rem;
  200. text-align: center;
  201. }
  202. .m-bottom {
  203. width: 100%;
  204. height: 1rem;
  205. line-height: 1rem;
  206. background: #D9251C;
  207. color: #ffffff;
  208. border-radius: 0.05rem;
  209. text-align: center;
  210. font-size: 0.33rem;
  211. }
  212. .back-header {
  213. width: 100%;
  214. /*height: 1rem;*/
  215. position: fixed;
  216. left: 0px;
  217. right: 0px;
  218. padding-left: 0.32rem;
  219. padding-right: 0.32rem;
  220. box-sizing: border-box;
  221. z-index: 2;
  222. background: #ffffff;
  223. }
  224. .back-header li div {
  225. margin: 0.125rem 0;
  226. }
  227. #keyword {
  228. font-size: 0.3rem;
  229. }
  230. .back-header-bottom {
  231. border-bottom: 1px solid #e8e8e8;
  232. }
  233. .back-header-ico {
  234. width: 0.25rem;
  235. padding-bottom: 0.3em;
  236. vertical-align: middle;
  237. }
  238. .back-header-title {
  239. text-align: center;
  240. font-size: 0.28rem;
  241. color: #666666;
  242. }
  243. .back-header li.back-btn {
  244. width: 0.42rem;
  245. }
  246. .back-header li.more-btn {
  247. text-align: right;
  248. font-size: 0.28rem;
  249. color: #666666;
  250. width: 0.6rem;
  251. float: right;
  252. }
  253. .back-header li {
  254. width: 5.66rem;
  255. float: left;
  256. height: 0.85rem;
  257. line-height: 0.85rem;
  258. font-size: 0.35rem;
  259. }
  260. .back-header li.padding-20 {
  261. width: 0.6rem;
  262. }
  263. .padding-08 {
  264. padding-left: 0.32rem;
  265. padding-right: 0.32rem;
  266. box-sizing: border-box;
  267. }
  268. section {
  269. padding-left: 0.32rem;
  270. padding-right: 0.32rem;
  271. box-sizing: border-box;
  272. }
  273. .mask {
  274. position: absolute;
  275. top: 0px;
  276. left: 0px;
  277. right: 0px;
  278. bottom: 0px;
  279. background: rgba(0, 0, 0, 0.5);
  280. z-index: 999;
  281. }
  282. .mask-hidden {
  283. display: none;
  284. }
  285. .bottom-none {
  286. border-bottom: none;
  287. }
  288. .data-null {
  289. width: 100%;
  290. margin-top: 0.2rem;
  291. text-align: center;
  292. color: #DDDDDD;
  293. clear: both;
  294. }
  295. .no_overflow {
  296. height: 100%;
  297. overflow: hidden;
  298. }
  299. .back-top {
  300. position: fixed;
  301. width: 40px;
  302. height: 40px;
  303. right: 10px;
  304. bottom: 20px;
  305. border: 1px solid #e8e8e8;
  306. border-radius: 50%;
  307. z-index: 999;
  308. background-image: url('../image/back_top.png');
  309. background-size: 100% 100%;
  310. }
  311. /*******login**********/
  312. .login-logo {
  313. margin-top: 1rem;
  314. width: 100%;
  315. text-align: center;
  316. }
  317. .login-logo img {
  318. width: 1.8rem;
  319. }
  320. .find-pad {
  321. float: left;
  322. font-size: 0.28rem;
  323. }
  324. .code-login {
  325. float: right;
  326. font-size: 0.28rem;
  327. }
  328. .pad-login {
  329. margin: auto;
  330. width: 100%;
  331. text-align: center;
  332. }
  333. .get-code {
  334. position: absolute;
  335. right: 0px;
  336. top: 1.3rem;
  337. height: 0.5rem;
  338. line-height: 0.5rem;
  339. width: 2rem;
  340. text-align: center;
  341. border-left: 1px solid #e8e8e8;
  342. }
  343. .more-landing {
  344. text-align: center;
  345. margin: auto;
  346. width: 100%;
  347. position: fixed;
  348. bottom: 0.2rem;
  349. }
  350. .more-landing li {
  351. float: left;
  352. width: 15%;
  353. }
  354. .more-landing img {
  355. width: 0.75rem;
  356. }
  357. .color-red {
  358. color: #A13532;
  359. }
  360. .msg-totalx {
  361. background-color: #f56c6c;
  362. border-radius: 0.2rem;
  363. color: #fff;
  364. display: inline-block;
  365. font-size: 0.12rem;
  366. height: 0.18rem;
  367. line-height: 0.18rem;
  368. padding: 0 0.6em;
  369. text-align: center;
  370. white-space: nowrap;
  371. border: 1px solid #fff;
  372. }
  373. /********home**********/
  374. .home-top {
  375. height: 0.6rem;
  376. padding: 0.15rem 0;
  377. }
  378. .home-top div {
  379. /*float: left;*/
  380. }
  381. .home-top-left {
  382. /*height: 30px;*/
  383. width: 4.5rem;
  384. font-size: 0.28rem;
  385. /*margin-top: 8px;*/
  386. }
  387. .home-top-local {
  388. width: 0.37rem;
  389. vertical-align: middle;
  390. padding-bottom: 0.4em;
  391. }
  392. .local-name {
  393. white-space: nowrap;
  394. overflow: hidden;
  395. text-overflow: ellipsis;
  396. width: 3.67rem;
  397. height: 0.3rem;
  398. line-height: 0.33rem;
  399. }
  400. .home-top-right {
  401. /*width: 40%;
  402. position: relative;*/
  403. }
  404. .home-top-right span {
  405. text-align: center;
  406. float: right;
  407. }
  408. .home-top-right p {
  409. font-size: 0.2rem;
  410. line-height: 0.2rem;
  411. color: #999;
  412. }
  413. .home-search {
  414. width: 100%;
  415. text-align: center;
  416. background: #f5f5f5;
  417. /*border: 1px solid #e8e8e8;*/
  418. /*height: 0.57rem;*/
  419. line-height: 0.57rem;
  420. border-radius: 0.5rem;
  421. font-size: 0.28rem;
  422. color: #999999;
  423. }
  424. .home-search img {
  425. width: 0.32rem;
  426. margin-bottom: 0.07rem;
  427. vertical-align: middle;
  428. }
  429. .home-ads {
  430. width: 100%;
  431. height: 3.3rem;
  432. background: #e8e8e8;
  433. }
  434. .home-nearby {
  435. position: relative;
  436. font-size: 0.3rem;
  437. }
  438. .home-hotel-list {
  439. vertical-align: middle;
  440. margin-bottom: 0.1rem;
  441. overflow: hidden;
  442. display: -webkit-box;
  443. display: -ms-flexbox;
  444. display: flex;
  445. }
  446. .home-hotel-left {
  447. float: left;
  448. width: 2.15rem;
  449. height: 1.5rem;
  450. border-radius: 0.2em;
  451. margin-top: 0.2em;
  452. }
  453. .home-hotel-left img {
  454. width: 100%;
  455. height: 100%;
  456. border-radius: 0.2em;
  457. }
  458. .home-hotel-right {
  459. padding-left: 0.3rem;
  460. -webkit-box-flex: 1;
  461. -ms-flex: 1;
  462. flex: 1;
  463. min-width: 0;
  464. }
  465. .home-hotel-title {
  466. width: 100%;
  467. text-align: left;
  468. overflow: hidden;
  469. color: #333;
  470. }
  471. .home-hotel-dtl {
  472. width: 100%;
  473. font-size: 0.24rem;
  474. }
  475. .home-hotel-dtl li {
  476. float: left;
  477. padding: 0.1rem 0;
  478. }
  479. .home-hotel-dtl img {
  480. width: 0.27rem;
  481. vertical-align: middle;
  482. margin-bottom: 0.1rem;
  483. }
  484. .home-hotel-dsc {
  485. width: 100%;
  486. overflow: hidden;
  487. font-size: 0.24rem;
  488. line-height: 0.34rem;
  489. display: -webkit-box;
  490. -webkit-line-clamp: 2;
  491. -webkit-box-orient: vertical;
  492. word-break: break-all;
  493. }
  494. .error-k {
  495. border: 1px solid #f40 !important;
  496. border-radius: 0.1rem;
  497. }
  498. /*************发现***************/
  499. .find-list-time {
  500. color: #999999;
  501. font-size: 0.24rem;
  502. }
  503. .find-dtl-title {
  504. width: 100%;
  505. padding-top: 0.5rem;
  506. padding-bottom: 0.5rem;
  507. font-weight: 600;
  508. font-size: 0.33rem;
  509. }
  510. .find-dtl-content {
  511. width: 100%;
  512. /*font-size: 1rem;*/
  513. overflow: hidden;
  514. padding-bottom: 1rem;
  515. }
  516. .find-dtl-content img {
  517. width: 100% !important;
  518. height: 100% !important;
  519. }
  520. .find-list-dsc {
  521. overflow: hidden;
  522. display: -webkit-box;
  523. -webkit-line-clamp: 2;
  524. -webkit-box-orient: vertical;
  525. word-break: break-all;
  526. /*width: 3.7rem;*/
  527. margin-bottom: 0.23rem;
  528. height: 0.77rem;
  529. line-height: 0.37rem;
  530. color: #333;
  531. }
  532. .search-item {
  533. width: 100%;
  534. background: #f5f5f5;
  535. position: relative;
  536. text-align: left;
  537. padding-left: 0.32rem;
  538. padding-right: 0.32rem;
  539. box-sizing: border-box;
  540. /*height: 0.55rem;*/
  541. line-height: 0.55rem;
  542. border-radius: 0.5rem;
  543. margin: 0.15rem 0;
  544. }
  545. .search-item img {
  546. width: 0.33rem;
  547. vertical-align: middle;
  548. }
  549. .el-button {
  550. display: inline-block;
  551. line-height: 1;
  552. white-space: nowrap;
  553. cursor: pointer;
  554. background: #fff;
  555. /*border: 1px solid #dcdfe6;*/
  556. color: #606266;
  557. -webkit-appearance: none;
  558. text-align: center;
  559. box-sizing: border-box;
  560. outline: none;
  561. margin: 0;
  562. transition: .1s;
  563. font-weight: 500;
  564. -moz-user-select: none;
  565. -webkit-user-select: none;
  566. -ms-user-select: none;
  567. padding: 0.12rem 0.2rem;
  568. /*font-size: 0.14rem;*/
  569. border-radius: 0.05rem;
  570. }
  571. .el-button.is-round {
  572. padding: 0.12rem 0.2rem;
  573. }
  574. .el-button.is-round {
  575. border-radius: 0.2rem;
  576. padding: 0.12rem 0.23rem;
  577. }
  578. /*****************我的*****************/
  579. .my-head {
  580. width: 100%;
  581. height: 2.62rem;
  582. background: #d9251c;
  583. }
  584. .my-msg {
  585. width: 100%;
  586. text-align: right;
  587. }
  588. .my-msg img {
  589. width: 0.37rem;
  590. }
  591. .padding-top {
  592. padding-top: 1rem;
  593. }
  594. .my-header {
  595. width: 100%;
  596. height: 1.3rem;
  597. vertical-align: middle;
  598. color: #ffffff;
  599. }
  600. .my-header li {
  601. float: left;
  602. }
  603. .my-header-img {
  604. width: 1.3rem;
  605. height: 1.3rem;
  606. border-radius: 50%;
  607. }
  608. .my-head-name {
  609. color: #ffffff;
  610. padding-top: 0.2rem;
  611. box-sizing: border-box;
  612. font-size: 0.33rem;
  613. }
  614. .my-head-name p {
  615. font-size: 0.15rem;
  616. }
  617. .my-head-sign {
  618. border-radius: 0.5rem;
  619. padding: 0.1rem 0.15rem;
  620. border: 1px solid #ffffff;
  621. color: #ffffff;
  622. margin-top: 0.37rem;
  623. box-sizing: border-box;
  624. background: rgba(212, 189, 189, 0.37);
  625. }
  626. .my-order {
  627. width: 100%;
  628. height: 1rem;
  629. line-height: 1rem;
  630. border-bottom: 1px solid #e8e8e8;
  631. font-size: 0.28rem;
  632. }
  633. .my-order span {
  634. color: #737272;
  635. }
  636. .my-order-btn {
  637. width: 100%;
  638. margin: 1em 0;
  639. height: 0.9rem;
  640. }
  641. .my-order-btn li {
  642. width: 20%;
  643. float: left;
  644. text-align: center;
  645. font-size: 0.22rem;
  646. }
  647. .my-order-btn img {
  648. width: 0.5rem;
  649. }
  650. .my-appy-in {
  651. width: 100%;
  652. }
  653. .my-appy-in li {
  654. float: left;
  655. width: 50%;
  656. padding-top: 10px;
  657. padding-bottom: 5px;
  658. }
  659. .my-appy-in img {
  660. width: 3.02rem;
  661. height: 1.72rem;
  662. border-radius: 0.2em;
  663. }
  664. .my-btn-list img {
  665. width: 0.33rem;
  666. height: 0.33rem;
  667. vertical-align: middle;
  668. margin-bottom: 0.05rem;
  669. }
  670. .jq-star {
  671. width: 0.23rem !important;
  672. height: 0.23rem !important;
  673. }
  674. /***************订单*******************/
  675. .order-list-title {
  676. padding: 0.15rem 0;
  677. border-bottom: 1px solid #f5f5f5;
  678. }
  679. .order-list-title img {
  680. width: 0.31rem;
  681. height: 0.31rem;
  682. vertical-align: middle;
  683. border-radius: 50%;
  684. margin-bottom: 0.1em;
  685. }
  686. .order-list-goods {
  687. padding-top: 0.2rem;
  688. }
  689. .order-list-goods li {
  690. float: left;
  691. overflow: hidden;
  692. }
  693. .order-list-right {
  694. padding-left: 0.3rem;
  695. width: 3.7rem;
  696. }
  697. .order-list-goods img {
  698. width: 1.73rem;
  699. height: 1.73rem;
  700. /*margin-right: 0.1rem;*/
  701. border-radius: 0.2em;
  702. }
  703. .order-list-status {
  704. float: right;
  705. color: #D9251C;
  706. }
  707. .order-list-action {
  708. float: right;
  709. border: 1px solid #9a8b8b;
  710. padding: 0.02rem 0.08rem;
  711. border-radius: 0.2em;
  712. }
  713. .font-size-18 {
  714. font-size: 18px;
  715. }
  716. .iconfont {
  717. font-size: 0.28rem;
  718. }
  719. /******************商品***********************/
  720. .goods-list {
  721. width: 100%;
  722. }
  723. .goods-list-item {
  724. width: 50%;
  725. float: left;
  726. padding: 0.05rem;
  727. box-sizing: border-box;
  728. }
  729. .goods-image {
  730. width: 3.3rem;
  731. height: 3.3rem;
  732. object-fit: cover;
  733. }
  734. .goods-title {
  735. height: 0.32rem;
  736. line-height: 0.32rem;
  737. overflow: hidden;
  738. }
  739. .goods-price {
  740. color: #d9251c;
  741. font-size: 0.29rem;
  742. }
  743. .sort-img {
  744. width: 18px;
  745. vertical-align: middle;
  746. }
  747. .add-num {
  748. float: right;
  749. /*width: 120px;*/
  750. border: 0.02rem solid #e8e8e8;
  751. border-radius: 0.2em;
  752. }
  753. .add-num li {
  754. float: left;
  755. width: 0.7rem;
  756. text-align: center;
  757. border-right: 1px solid #e8e8e8;
  758. box-sizing: border-box;
  759. height: 0.6rem;
  760. line-height: 0.6rem;
  761. font-size: 0.28rem;
  762. }
  763. .add-num input {
  764. text-align: center;
  765. width: 100%;
  766. color: #666666;
  767. }
  768. .line-through {
  769. text-decoration: line-through;
  770. color: #cccccc;
  771. font-size: 0.2rem;
  772. }
  773. .hotel-top-back {
  774. opacity: 0.35;
  775. width: 100%;
  776. height: auto;
  777. line-height: 0.6rem;
  778. border-radius: 50%;
  779. background: #000000;
  780. text-align: center;
  781. }
  782. .hotel-top-back img {
  783. width: 0.3rem;
  784. vertical-align: middle;
  785. }
  786. .hotel-top-search {
  787. width: 100%;
  788. opacity: 0.35;
  789. height: 0.6rem;
  790. line-height: 0.6rem;
  791. background: #000000;
  792. border-radius: 0.5rem;
  793. color: #ffffff;
  794. padding-left: 0.2rem;
  795. box-sizing: border-box;
  796. font-size: 0.28rem;
  797. }
  798. .weui-gallery {
  799. width: 100%;
  800. }
  801. .weui-gallery__img {
  802. top: 0;
  803. bottom: 0;
  804. }
  805. .weui-gallery__opr {
  806. bottom: 0;
  807. }
  808. .weui-gallery__img, .weui-gallery__opr {
  809. right: 0;
  810. left: 0;
  811. }
  812. .hotel-top-search img {
  813. width: 0.35rem;
  814. vertical-align: middle;
  815. margin-bottom: 0.05rem;
  816. }
  817. @keyframes bounceOut {
  818. 20% {
  819. -webkit-transform: scale3d(.9, .9, .9);
  820. transform: scale3d(.9, .9, .9);
  821. }
  822. 50%, 55% {
  823. opacity: 1;
  824. -webkit-transform: scale3d(1.1, 1.1, 1.1);
  825. transform: scale3d(1.1, 1.1, 1.1);
  826. }
  827. 100% {
  828. opacity: 0;
  829. -webkit-transform: scale3d(.3, .3, .3);
  830. transform: scale3d(.3, .3, .3);
  831. }
  832. }
  833. .bounceOut {
  834. -webkit-animation-name: bounceOut;
  835. animation-name: bounceOut;
  836. }
  837. .wordwrap {
  838. position: absolute;
  839. right: 0;
  840. }
  841. .wordwrap .word{
  842. padding: 0 0.1rem;
  843. }
  844. /* 盒子模型 */
  845. .flex-box {
  846. display: -webkit-box;
  847. display: -moz-box;
  848. display: -ms-flexbox;
  849. display: -webkit-flex;
  850. display: flex;
  851. }
  852. /*盒子模型,竖向自适应,垂直排列 */
  853. .flex-box-v {
  854. display: -webkit-box;
  855. display: -webkit-flex;
  856. display: flex;
  857. -webkit-box-orient: vertical;
  858. -webkit-flex-flow: column;
  859. flex-flow: column !important;
  860. }
  861. /* 水平等列排版(容器左右没缝隙,子元素左右两边自适应) */
  862. .flex-d-center {
  863. justify-content: space-between;
  864. -webkit-justify-content: space-between;
  865. }
  866. /* 水平等列排版(子元素两边有缝隙自己适应) */
  867. .flex-dv-center {
  868. justify-content: space-around;
  869. -webkit-justify-content: space-around;
  870. }
  871. /*通过一起使用 box-align 和 box-pack 属性,对 view 框的子元素进行居中,目前没有浏览器支持box-align 和 box-pack 属性,所以需要加上浏览器内核-webkit,-moz等的简写 */
  872. .flex-center-center {
  873. justify-content: center;
  874. -webkit-justify-content: center;
  875. -moz-justify-content: center;
  876. align-items: center;
  877. -webkit-align-items: center;
  878. -webkit-box-pack: center;
  879. -webkit-box-align: center;
  880. -moz-align-items: center;
  881. -moz-box-pack: center;
  882. -moz-box-align: center;
  883. }
  884. /*对view中的子元素进行居中,并且位于容器的中间位置(flex-box水平;flex-box-v垂直) */
  885. .flex-v-zhu,
  886. .flex-h-zhu {
  887. justify-content: center;
  888. -webkit-justify-content: center;
  889. -webkit-box-pack: center;
  890. }
  891. /*对view中的子元素进行居中,并且位于容器的中间位置(flex-box垂直;flex-box-v水平) */
  892. .flex-v-ce,
  893. .flex-h-ce {
  894. align-items: center;
  895. -webkit-align-items: center;
  896. -webkit-box-align: center;
  897. }
  898. /*让所有弹性盒模型对象的子元素都有相同的长度,且忽略它们内部的内容: */
  899. .flex-1 {
  900. -webkit-box-flex: 1;
  901. -moz-box-flex: 1;
  902. -webkit-flex: 1;
  903. -ms-flex: 1;
  904. flex: 1;
  905. }
  906. .flex-2 {
  907. -webkit-box-flex: 2;
  908. box-flex: 2;
  909. -moz-box-flex: 2;
  910. -webkit-flex: 2;
  911. -ms-flex: 2;
  912. flex: 2;
  913. }
  914. .flex-3 {
  915. -webkit-box-flex: 3;
  916. box-flex: 3;
  917. -moz-box-flex: 3;
  918. -webkit-flex: 3;
  919. -ms-flex: 3;
  920. flex: 3;
  921. }
  922. .flex-4 {
  923. -webkit-box-flex: 4;
  924. box-flex: 4;
  925. -moz-box-flex: 4;
  926. -webkit-flex: 4;
  927. -ms-flex: 4;
  928. flex: 4;
  929. }
  930. .flex-5 {
  931. -webkit-box-flex: 5;
  932. box-flex: 5;
  933. -moz-box-flex: 5;
  934. -webkit-flex: 5;
  935. -ms-flex: 5;
  936. flex: 5;
  937. }
  938. .flex-direction-row-reverse {
  939. flex-direction: row-reverse;
  940. -webkit-flex-direction: row-reverse;
  941. }
  942. /*超出部分用....表示的公用样式 */
  943. .font-flex-word {
  944. overflow: hidden;
  945. text-overflow: ellipsis;
  946. white-space: nowrap;
  947. }
  948. /* 内容超出部分自动换行 */
  949. .flex-d-wrap {
  950. flex-wrap: wrap;
  951. }
  952. /* 内容超出部分不换行 */
  953. .flex-no-wrap {
  954. flex-wrap: nowrap;
  955. }
  956. /* 从右边开始排列 */
  957. .flex-box-end {
  958. display: -webkit-box;
  959. display: -moz-box;
  960. display: -ms-flexbox;
  961. display: -webkit-flex;
  962. display: flex;
  963. justify-content: flex-end;
  964. }