component.css 6.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384
  1. .x-book--multi {
  2. display: -webkit-box;
  3. display: -ms-flexbox;
  4. display: flex;
  5. -webkit-box-align: center;
  6. -ms-flex-align: center;
  7. align-items: center;
  8. -webkit-box-orient: horizontal;
  9. -webkit-box-direction: normal;
  10. -ms-flex-direction: row;
  11. flex-direction: row;
  12. -webkit-box-pack: justify;
  13. -ms-flex-pack: justify;
  14. justify-content: space-between;
  15. }
  16. .x-book__coverbox {
  17. position: relative;
  18. }
  19. .x-book__cover {
  20. box-shadow: 0 0 0.16rem rgba(0, 0, 0, 0.08);
  21. border-radius: 0.06rem;
  22. display: block;
  23. }
  24. .x-book__text--multi {
  25. box-sizing: border-box;
  26. padding-left: 0.4rem;
  27. position: relative;
  28. }
  29. .x-book__text--normal {
  30. color: #999;
  31. margin-top: 0.12rem;
  32. text-align: center;
  33. overflow: hidden;
  34. text-overflow: ellipsis;
  35. white-space: nowrap;
  36. line-height: 1.5;
  37. height: 1.5em;
  38. }
  39. .x-book__title {
  40. color: #333;
  41. font-size: 0.3rem;
  42. overflow: hidden;
  43. text-overflow: ellipsis;
  44. white-space: nowrap;
  45. line-height: inherit;
  46. margin-bottom: 0.5em;
  47. }
  48. .x-book__intro {
  49. color: #666;
  50. font-size: 0.24rem;
  51. line-height: 1.8;
  52. -webkit-line-clamp: 3;
  53. display: -webkit-box;
  54. -webkit-box-orient: vertical;
  55. overflow: hidden;
  56. }
  57. .x-book-info{
  58. line-height: .6rem;
  59. font-size: .26rem;
  60. }
  61. .x-book-info__name {
  62. color: #333;
  63. font-size: .3rem;
  64. overflow: hidden;
  65. text-overflow: ellipsis;
  66. white-space: nowrap;
  67. line-height: inherit;
  68. }
  69. .x-book-info__flex {
  70. display: -webkit-box;
  71. display: -ms-flexbox;
  72. display: flex;
  73. -webkit-box-align: center;
  74. -ms-flex-align: center;
  75. align-items: center;
  76. -webkit-box-orient: horizontal;
  77. -webkit-box-direction: normal;
  78. -ms-flex-direction: row;
  79. flex-direction: row;
  80. -webkit-box-pack: start;
  81. -ms-flex-pack: start;
  82. justify-content: flex-start;
  83. }
  84. .x-book-info__author {
  85. color: #999;
  86. max-width: calc(100% - 5em);
  87. overflow: hidden;
  88. text-overflow: ellipsis;
  89. white-space: nowrap;
  90. line-height: inherit;
  91. margin-right: 2em;
  92. }
  93. .x-book-info__finish {
  94. color: #999;
  95. }
  96. .x-book-info__count {
  97. color: #999;
  98. }
  99. .x-book-info__flex {
  100. display: -webkit-box;
  101. display: -ms-flexbox;
  102. display: flex;
  103. -webkit-box-align: center;
  104. -ms-flex-align: center;
  105. align-items: center;
  106. -webkit-box-orient: horizontal;
  107. -webkit-box-direction: normal;
  108. -ms-flex-direction: row;
  109. flex-direction: row;
  110. -webkit-box-pack: start;
  111. -ms-flex-pack: start;
  112. justify-content: flex-start;
  113. }
  114. .x-book-info__lastest {
  115. color: #666;
  116. max-width: calc(100% - 3em);
  117. overflow: hidden;
  118. text-overflow: ellipsis;
  119. white-space: nowrap;
  120. line-height: inherit;
  121. margin-right: .5em;
  122. }
  123. .red {
  124. color: #ff6060;
  125. }
  126. .x-book-info__vip {
  127. width: 1.2em;
  128. }
  129. header {
  130. padding: 0 .24rem;
  131. display: -webkit-box;
  132. display: -ms-flexbox;
  133. display: flex;
  134. -webkit-box-align: center;
  135. -ms-flex-align: center;
  136. align-items: center;
  137. -webkit-box-orient: horizontal;
  138. -webkit-box-direction: normal;
  139. -ms-flex-direction: row;
  140. flex-direction: row;
  141. -webkit-box-pack: justify;
  142. -ms-flex-pack: justify;
  143. justify-content: space-between;
  144. height: 1rem;
  145. font-size: .3rem;
  146. }
  147. header img {
  148. height: .35rem;
  149. display: block;
  150. }
  151. .book-shelf-head {
  152. overflow: hidden;
  153. border-radius: .3rem;
  154. background-color: #f7f7f7;
  155. display: -webkit-box;
  156. display: -ms-flexbox;
  157. display: flex;
  158. -webkit-box-align: center;
  159. -ms-flex-align: center;
  160. align-items: center;
  161. -webkit-box-orient: horizontal;
  162. -webkit-box-direction: normal;
  163. -ms-flex-direction: row;
  164. flex-direction: row;
  165. -webkit-box-pack: justify;
  166. -ms-flex-pack: justify;
  167. justify-content: space-between;
  168. }
  169. .book-shelf-head__item {
  170. height: .6rem;
  171. width: 1.6rem;
  172. border-radius: .3rem;
  173. line-height: .6rem;
  174. text-align: center;
  175. font-size: .24rem;
  176. color: #999;
  177. }
  178. .book-shelf-head__item.is-active {
  179. background-color: #32a1ff;
  180. color: #fff;
  181. }
  182. .book-shelf-bar {
  183. font-size: .26rem;
  184. padding: .24rem .24rem 0;
  185. display: -webkit-box;
  186. display: -ms-flexbox;
  187. display: flex;
  188. -webkit-box-align: center;
  189. -ms-flex-align: center;
  190. align-items: center;
  191. -webkit-box-orient: horizontal;
  192. -webkit-box-direction: normal;
  193. -ms-flex-direction: row;
  194. flex-direction: row;
  195. -webkit-box-pack: justify;
  196. -ms-flex-pack: justify;
  197. justify-content: space-between;
  198. }
  199. .catalog-item {
  200. line-height: .9rem;
  201. color: #4c4c4c;
  202. font-size: .28rem;
  203. display: -webkit-box;
  204. display: -ms-flexbox;
  205. display: flex;
  206. -webkit-box-align: center;
  207. -ms-flex-align: center;
  208. align-items: center;
  209. -webkit-box-orient: horizontal;
  210. -webkit-box-direction: normal;
  211. -ms-flex-direction: row;
  212. flex-direction: row;
  213. -webkit-box-pack: justify;
  214. -ms-flex-pack: justify;
  215. justify-content: space-between;
  216. }
  217. .x-input--button {
  218. background-color: #32a1ff;
  219. border-radius: .06rem;
  220. height: .6rem;
  221. line-height: .6rem;
  222. padding: 0 .4rem;
  223. border: none;
  224. font-size: .26rem;
  225. color: #fff;
  226. }
  227. .promptBox {
  228. position: fixed;
  229. top: 0;
  230. left: 0;
  231. right: 0;
  232. bottom: 0;
  233. background-color: rgba(0,0,0,.3);
  234. display: -webkit-box;
  235. display: -ms-flexbox;
  236. display: flex;
  237. }
  238. .promptBox .wrap {
  239. margin: auto;
  240. background-color: #fff;
  241. width: 6.6rem;
  242. text-align: center;
  243. padding-bottom: .3rem;
  244. border-radius: .08rem;
  245. overflow: hidden;
  246. }
  247. .promptBox .head {
  248. height: 1rem;
  249. line-height: 1rem;
  250. font-size: .32rem;
  251. border-bottom: 1px solid #e5e5e5;
  252. }
  253. .promptBox .body {
  254. font-size: .32rem;
  255. padding: .3rem;
  256. }
  257. .d-none {
  258. display: none;
  259. }
  260. /* prompt ani */
  261. .show {
  262. animation: show 0.3s linear forwards;
  263. }
  264. .hide {
  265. animation: hide 0.3s linear forwards;
  266. }
  267. @keyframes show {
  268. from {
  269. opacity: 0;
  270. }
  271. to {
  272. opacity: 1;
  273. }
  274. }
  275. @keyframes hide {
  276. from {
  277. opacity: 1;
  278. }
  279. to {
  280. opacity: 0;
  281. }
  282. }
  283. .record-item {
  284. position: relative;
  285. margin: .24rem;
  286. border-bottom: 1px solid #f6f6f6;
  287. color: #999;
  288. line-height: .5rem;
  289. padding-right: 2rem;
  290. }
  291. .x-page {
  292. color: #32a1ff;
  293. font-size: .3rem;
  294. text-align: center;
  295. margin: .35rem 0 .3rem;
  296. border-bottom: 0!important;
  297. display: -webkit-box;
  298. display: -ms-flexbox;
  299. display: flex;
  300. -webkit-box-align: center;
  301. -ms-flex-align: center;
  302. align-items: center;
  303. -webkit-box-orient: horizontal;
  304. -webkit-box-direction: normal;
  305. -ms-flex-direction: row;
  306. flex-direction: row;
  307. -ms-flex-pack: distribute;
  308. justify-content: space-around;
  309. }
  310. .x-page div {
  311. border-radius: .06rem;
  312. width: 1.65rem;
  313. height: .55rem;
  314. background-color: #f7f7f7;
  315. line-height: .55rem;
  316. }
  317. .book-catalog-list {
  318. padding: 0 .24rem;
  319. }
  320. .book-catalog-item {
  321. line-height: .9rem;
  322. color: #4c4c4c;
  323. font-size: .28rem;
  324. display: -webkit-box;
  325. display: -ms-flexbox;
  326. display: flex;
  327. -webkit-box-align: center;
  328. -ms-flex-align: center;
  329. align-items: center;
  330. -webkit-box-orient: horizontal;
  331. -webkit-box-direction: normal;
  332. -ms-flex-direction: row;
  333. flex-direction: row;
  334. -webkit-box-pack: justify;
  335. -ms-flex-pack: justify;
  336. justify-content: space-between;
  337. }
  338. .book-catalog-item__name {
  339. overflow: hidden;
  340. text-overflow: ellipsis;
  341. white-space: nowrap;
  342. line-height: inherit;
  343. max-width: calc(100% - .5rem);
  344. }
  345. .book-catalog-item__vip {
  346. width: .3rem;
  347. }