配合周总做查询机新增的图书列表查询改版需求
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

497 lines
9.5 KiB

7 months ago
  1. /* 1080*1920 */
  2. /**滚动条的宽度*/
  3. ::-webkit-scrollbar {
  4. width: 8px;
  5. height: 8px;
  6. }
  7. /**滚动条的滑块*/
  8. ::-webkit-scrollbar-thumb {
  9. background-color: rgba(0,0,0,.3);
  10. border-radius: 4px;
  11. }
  12. /**只需要加上这一行*/
  13. ::-webkit-scrollbar-corner {
  14. background-color: transparent;
  15. }
  16. @font-face {
  17. font-family: "DOUYU-Regular";
  18. src: url('../fonts/斗鱼追光体.ttf');
  19. font-weight: normal;
  20. font-style: normal;
  21. }
  22. .lib-wrapper{
  23. width: 100vw;
  24. height: 100vh;
  25. overflow: hidden;
  26. }
  27. .lib-header{
  28. width: calc(100% - 40px);
  29. padding: 20px;
  30. background-color: #fff;
  31. box-shadow: 0px 0px 20px 1px rgba(0,0,0,.2);
  32. }
  33. .lib-search{
  34. display: flex;
  35. justify-content: space-between;
  36. align-items: center;
  37. width: calc(100%);
  38. height: 60px;
  39. border: 1px solid #C6C6E2;
  40. border-radius: 5px;
  41. overflow: hidden;
  42. }
  43. .lib-search input{
  44. display: block;
  45. flex: 1;
  46. height: 60px;
  47. padding: 0 20px;
  48. font-size: 30px;
  49. border: none;
  50. }
  51. .lib-search button{
  52. position: relative;
  53. display: block;
  54. font-size: 30px;
  55. width: 130px;
  56. height: 60px;
  57. background-color: #5A86F4;
  58. color: #fff;
  59. text-align: center;
  60. padding-left: 30px;
  61. cursor: pointer;
  62. }
  63. .lib-search button::before{
  64. content: "";
  65. position: absolute;
  66. left: 14px;
  67. top: 50%;
  68. width: 30px;
  69. height: 30px;
  70. background: url("../images/icon1.png") no-repeat left center;
  71. background-size: cover;
  72. transform: translateY(-50%)
  73. }
  74. .lending-btn{
  75. position: fixed;
  76. right: 60px;
  77. top: 50%;
  78. text-align: center;
  79. border-radius: 50%;
  80. transform: translateY(-50%);
  81. z-index: 9999;
  82. }
  83. .lending-btn img{
  84. display: block;
  85. width: 80px;
  86. height: 80px;
  87. }
  88. .lending-btn span{
  89. display: block;
  90. font-size: 30px;
  91. padding-top: 20px;
  92. font-family: "DOUYU-Regular";
  93. }
  94. .lib-search-result {
  95. display: none;
  96. font-size: 28px;
  97. padding: 0 20px 10px 20px;
  98. }
  99. .lib-search-result span{
  100. display: inline-block;
  101. padding-right: 4px;
  102. color: #5A86F4;
  103. }
  104. .lib-book{
  105. display: flex;
  106. justify-content: flex-start;
  107. width: calc(100vw);
  108. height: calc(100vh - 102px);
  109. margin-top: 20px;
  110. overflow: hidden;
  111. }
  112. .lib-book-left{
  113. width: 180px;
  114. padding: 20px 0 20px 20px;
  115. background-color: #fff;
  116. /* border-radius: 14px; */
  117. }
  118. .left-item {
  119. height: calc(50% - 40px);
  120. padding-bottom: 40px;
  121. }
  122. .left-item h4{
  123. position: relative;
  124. font-size: 34px;
  125. padding-left: 16px;
  126. margin-bottom: 10px;
  127. line-height: 46px;
  128. font-weight: bold;
  129. color: #191A1A;
  130. }
  131. .left-item h4::before{
  132. content: "";
  133. position: absolute;
  134. left: 0;
  135. top: 50%;
  136. width: 7px;
  137. height: 30px;
  138. background: #5A86F4;
  139. margin-top: -15px;
  140. }
  141. .left-filter{
  142. font-size: 28px;
  143. line-height: 56px;
  144. height: calc(100% - 46px);
  145. overflow: hidden;
  146. overflow-y: scroll;
  147. }
  148. .left-filter li{
  149. padding-left: 16px;
  150. color: #191A1A;
  151. cursor: pointer;
  152. text-overflow: -o-ellipsis-lastline;
  153. overflow: hidden;
  154. text-overflow: ellipsis;
  155. display: -webkit-box;
  156. -webkit-line-clamp: 1;
  157. line-clamp: 1;
  158. -webkit-box-orient: vertical;
  159. }
  160. .left-filter li:hover,
  161. .left-filter li.active{
  162. font-weight: bold;
  163. background-color: #F1F4FE;
  164. border-radius: 7px 0 0 7px;
  165. }
  166. .lib-book-right{
  167. flex: 1;
  168. height: calc(100% - 40px);
  169. padding: 20px 0;
  170. background-color: #F1F4FE;
  171. }
  172. .book-list-wrapper{
  173. padding-left: 10px;
  174. width: calc(100% - 10px);
  175. height: calc(100% - 30px);
  176. overflow: hidden;
  177. overflow-y: scroll;
  178. }
  179. .book-list {
  180. display: flex;
  181. justify-content: flex-start;
  182. flex-wrap: wrap;
  183. width: calc(100%);
  184. }
  185. .book-list li{
  186. display: flex;
  187. justify-content: flex-start;
  188. flex-direction: column;
  189. width: calc(100% / 4 - 50px);
  190. padding: 14px;
  191. margin: 0 10px 20px 10px;
  192. border: 1px solid #C6C6E2;
  193. border-radius: 10px;
  194. background-color: #fff;
  195. overflow: hidden;
  196. }
  197. .book-list li.active{
  198. position: relative;
  199. border-color: #5A86F4;
  200. }
  201. .book-list li.active::after{
  202. content: "";
  203. position: absolute;
  204. right: -1px;
  205. bottom: 0;
  206. width: 48px;
  207. height: 48px;
  208. background: url("../images/icon2.png") no-repeat;
  209. background-size: 100% 100%;
  210. }
  211. .book-list li a{
  212. display: block;
  213. }
  214. .book-list-img{
  215. height: 140px;
  216. margin: 0 auto;
  217. overflow: hidden;
  218. }
  219. .book-list-img img{
  220. display: block;
  221. height: 100%;
  222. margin: 0 auto;
  223. }
  224. .book-list li h4{
  225. font-size: 30px;
  226. height: 64px;
  227. line-height: 32px;
  228. margin: 14px 0;
  229. text-overflow: -o-ellipsis-lastline;
  230. overflow: hidden;
  231. text-overflow: ellipsis;
  232. display: -webkit-box;
  233. -webkit-line-clamp: 2;
  234. line-clamp: 2;
  235. -webkit-box-orient: vertical;
  236. }
  237. .book-list li span{
  238. display: block;
  239. font-size: 24px;
  240. }
  241. .rack-box{
  242. padding-top: 10px;
  243. width: 100%;
  244. height: calc(100%);
  245. }
  246. .rack-content{
  247. position: relative;
  248. height: calc(100% - 40px);
  249. overflow: hidden;
  250. overflow-y: scroll;
  251. }
  252. .rack-box-list{
  253. display: flex;
  254. justify-content: flex-start;
  255. flex-wrap: wrap;
  256. height: 314px;
  257. padding: 0 40px;
  258. width: calc(100vw - 280px);
  259. background: url('../images/list-rack.png') no-repeat 0 212px;
  260. background-size: contain;
  261. overflow: hidden;
  262. white-space: nowrap;
  263. }
  264. .rack-box-list .list-item{
  265. /* margin-right: 2px; */
  266. display: inline-block;
  267. border: none;
  268. height: 254px;
  269. width: 65px;
  270. position: relative;
  271. background-size: contain;
  272. }
  273. .rack-box-list .list-item.active{
  274. position: relative;
  275. /* border:2px solid#5A86F4; */
  276. }
  277. .rack-box-list .list-item.active::after{
  278. content: "";
  279. position: absolute;
  280. right: -1px;
  281. bottom: 0;
  282. width: 32px;
  283. height: 32px;
  284. background: url("../images/icon2.png") no-repeat;
  285. background-size: 100% 100%;
  286. }
  287. .box-txt{
  288. position: absolute;
  289. top: 12%;
  290. left: 50%;
  291. transform: translateX(-40%);
  292. pointer-events: none;
  293. }
  294. .book-name,
  295. .book-writer{
  296. writing-mode:vertical-rl;
  297. height: 235px;
  298. overflow: hidden;
  299. white-space: nowrap;
  300. text-overflow: ellipsis;
  301. }
  302. .book-name{
  303. font-size: 20px;
  304. }
  305. .book-writer{
  306. font-size: 16px;
  307. }
  308. .rack-box-list .list-item:nth-child(12n+1){
  309. background: url('../images/1.png') no-repeat 0 0;
  310. }
  311. .rack-box-list .list-item:nth-child(12n+2){
  312. background: url('../images/2.png') no-repeat 0 0;
  313. }
  314. .rack-box-list .list-item:nth-child(12n+3){
  315. background: url('../images/3.png') no-repeat 0 0;
  316. }
  317. .rack-box-list .list-item:nth-child(12n+4){
  318. background: url('../images/4.png') no-repeat 0 0;
  319. }
  320. .rack-box-list .list-item:nth-child(12n+5){
  321. background: url('../images/6.png') no-repeat 0 0;
  322. }
  323. .rack-box-list .list-item:nth-child(12n+6){
  324. background: url('../images/7.png') no-repeat 0 0;
  325. }
  326. .rack-box-list .list-item:nth-child(12n+7){
  327. background: url('../images/10.png') no-repeat 0 0;
  328. }
  329. .rack-box-list .list-item:nth-child(12n+8){
  330. background: url('../images/11.png') no-repeat 0 0;
  331. }
  332. .rack-box-list .list-item:nth-child(12n+9){
  333. background: url('../images/12.png') no-repeat 0 0;
  334. }
  335. .rack-box-list .list-item:nth-child(12n+10){
  336. background: url('../images/13.png') no-repeat 0 0;
  337. }
  338. .rack-box-list .list-item:nth-child(12n+11){
  339. background: url('../images/14.png') no-repeat 0 0;
  340. }
  341. .rack-box-list .list-item:nth-child(12n+12){
  342. background: url('../images/15.png') no-repeat 0 0;
  343. }
  344. .lib-dialog{
  345. position: fixed;
  346. left: 0;
  347. top: 0;
  348. bottom: 0;
  349. right: 0;
  350. }
  351. .lib-dialog-mask{
  352. width: 100%;
  353. height: 100%;
  354. background-color: rgba(0,0,0,.3);
  355. }
  356. .lib-dialog-main{
  357. position: absolute;
  358. left: 50%;
  359. top: 20%;
  360. width: 860px;
  361. background-color: #fff;
  362. border-radius: 24px;
  363. margin-left: -430px;
  364. }
  365. .lib-dialog-header{
  366. padding-bottom: 30px;
  367. }
  368. .lib-dialog-title{
  369. width: 494px;
  370. height: 76px;
  371. line-height: 76px;
  372. background: url('../images/list-title.png') no-repeat;
  373. background-size: contain;
  374. font-size: 40px;
  375. font-weight: bold;
  376. text-align: center;
  377. margin: 0 auto;
  378. }
  379. .lib-lending-list{
  380. height: 490px;
  381. margin: 0 40px;
  382. overflow: hidden;
  383. overflow-y: scroll;
  384. }
  385. .lib-lending-item{
  386. display: flex;
  387. justify-content: flex-start;
  388. flex-wrap: nowrap;
  389. align-items: center;
  390. font-size: 26px;
  391. padding: 16px 0;
  392. border-bottom: 1px solid #C6C6E2;
  393. }
  394. .lending-num{
  395. display: block;
  396. width: 40px;
  397. }
  398. .lending-img{
  399. width: 60px;
  400. margin-right: 10px;
  401. /* height: 60px; */
  402. overflow: hidden;
  403. }
  404. .lending-img img{
  405. display: block;
  406. width: 100%;
  407. }
  408. .lib-lending-item h4{
  409. flex: 1;
  410. padding-left: 10px;
  411. }
  412. .lib-lending-item h4,
  413. .lib-lending-item span.lending-author{
  414. text-overflow: -o-ellipsis-lastline;
  415. overflow: hidden;
  416. text-overflow: ellipsis;
  417. display: -webkit-box;
  418. -webkit-line-clamp: 1;
  419. line-clamp: 1;
  420. -webkit-box-orient: vertical;
  421. }
  422. .lib-lending-item .lending-author{
  423. flex: 1;
  424. }
  425. .lib-dialog-bottom{
  426. display: flex;
  427. justify-content: space-around;
  428. padding: 40px 220px;
  429. }
  430. .lib-dialog-bottom span{
  431. display: block;
  432. padding: 0 40px;
  433. font-size: 26px;
  434. height: 56px;
  435. line-height: 56px;
  436. border: 1px solid #C6C6E2;
  437. border-radius: 7px;
  438. cursor: pointer;
  439. }
  440. .confirm-btn{
  441. color: #fff;
  442. background-color: #5A86F4;
  443. border-color: #5A86F4;
  444. }
  445. .empty-book-list{
  446. width: 300px;
  447. margin: 100px auto 0 auto;
  448. text-align: center;
  449. }
  450. .empty-book-list img{
  451. display: block;
  452. width: 100%;
  453. }
  454. .empty-book-list span{
  455. display: block;
  456. padding-top: 20px;
  457. font-size: 30px;
  458. font-weight: bold;
  459. }
  460. .book-noData{
  461. color: #a3a3a3;
  462. font-size: 30px;
  463. text-align: center;
  464. padding: 10px 0 0 0;
  465. margin-bottom: 30px;
  466. }