图书馆小程序
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.

236 lines
4.0 KiB

2 weeks ago
1 week ago
2 weeks ago
1 week ago
2 weeks ago
  1. /**
  2. * 这里是共用样式的定义位置
  3. */
  4. .line-clamp-2 {
  5. overflow: hidden;
  6. text-overflow: ellipsis;
  7. display: -webkit-box;
  8. -webkit-box-orient: vertical;
  9. -webkit-line-clamp: 2;
  10. }
  11. .line-clamp-3 {
  12. overflow: hidden;
  13. text-overflow: ellipsis;
  14. display: -webkit-box;
  15. -webkit-box-orient: vertical;
  16. -webkit-line-clamp: 3;
  17. }
  18. // 卡片视图
  19. .card {
  20. border: 1px solid #f9f9f9;
  21. border-radius: 5px;
  22. margin: 12px;
  23. padding: 12px;
  24. box-shadow: 2px 2px 5px 1px rgba(143, 143, 143, 0.1);
  25. }
  26. // 单行不换行
  27. .nowrap {
  28. white-space: nowrap;
  29. text-overflow: ellipsis;
  30. overflow: hidden;
  31. }
  32. // 头像
  33. .avatar {
  34. width: 32px;
  35. height: 32px;
  36. border-radius: 50%;
  37. border: 2px solid #e5e5e5;
  38. }
  39. // 顶部图书馆头像等
  40. .top-bar{
  41. position: relative;
  42. width: 100%;
  43. height: 150px;
  44. display: flex;
  45. align-items: center;
  46. color: $uni-white;
  47. overflow: hidden;
  48. .top-bar-bg{
  49. position: absolute;
  50. left: 0;
  51. top: 0;
  52. display: block;
  53. width: 100%;
  54. height: 100%;
  55. z-index: 1;
  56. }
  57. .library-info{
  58. width: 100%;
  59. height: 100%;
  60. display: flex;
  61. flex-direction: column;
  62. justify-content: center;
  63. align-items: center;
  64. z-index: 22;
  65. .avatar{
  66. width: 65px;
  67. height: 65px;
  68. border-radius: 50%;
  69. overflow: hidden;
  70. margin-bottom: 10px;
  71. }
  72. .library-name {
  73. font-size: 14px;
  74. text-shadow: 0 2rpx 10rpx rgba(0, 0, 0, 0.2);
  75. }
  76. }
  77. }
  78. // 图书列表
  79. .recommendation-list {
  80. display: flex;
  81. justify-content: space-around;
  82. padding: 0 5px;
  83. }
  84. .book-item {
  85. flex: 0 0 110px;
  86. display: flex;
  87. flex-direction: column;
  88. align-items: center;
  89. }
  90. .book-cover {
  91. width: 160rpx;
  92. height: 110px;
  93. border-radius: 4px;
  94. margin-bottom: 15px;
  95. box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
  96. }
  97. .book-title {
  98. font-size: 12px;
  99. color: #333;
  100. text-align: center;
  101. line-height: 1.3;
  102. display: -webkit-box;
  103. -webkit-line-clamp: 2;
  104. -webkit-box-orient: vertical;
  105. overflow: hidden;
  106. text-overflow: ellipsis;
  107. width: 100%;
  108. }
  109. // 活动列表
  110. .activity-item {
  111. border-radius: 10px;
  112. background-color: #fff;
  113. margin-bottom: 20px;
  114. overflow: hidden;
  115. .activity-img {
  116. width: 100%;
  117. height: 150px;
  118. }
  119. .activity-info {
  120. display: flex;
  121. justify-content: space-between;
  122. align-items: center;
  123. padding: 10px;
  124. .activity-info-left {
  125. display: flex;
  126. flex-direction: column;
  127. justify-content: flex-start;
  128. margin-right: 6px;
  129. .title {
  130. font-size: 16px;
  131. font-weight: bold;
  132. color: #333;
  133. padding-bottom: 10px;
  134. }
  135. .time {
  136. display: flex;
  137. justify-content: flex-start;
  138. align-items: flex-start;
  139. font-size: 12px;
  140. color: #999;
  141. .time-icon{
  142. margin-top: 1px;
  143. margin-right: 2px;
  144. }
  145. // ::v-deep .uni-icons{
  146. // margin-left: 2px;
  147. // }
  148. }
  149. }
  150. .activity-btn {
  151. width: 80px;
  152. height: 32px;
  153. line-height: 32px;
  154. font-size: 14px;
  155. background-color: #01a4fe;
  156. margin: 0 !important;
  157. padding: 0 !important;
  158. border-radius: 16px;
  159. &::after {
  160. border: none !important;
  161. }
  162. &.disabled-btn {
  163. color: #797979;
  164. background-color: #e5e5e5;
  165. }
  166. }
  167. }
  168. }
  169. // 详情底部菜单(活动/图书)
  170. .detail-bottom{
  171. position: fixed;
  172. left: 0;
  173. bottom: 0;
  174. right: 0;
  175. background-color: #fff;
  176. display: flex;
  177. justify-content: space-between;
  178. align-items: center;
  179. padding: 6px 15px;
  180. }
  181. // .detail-bottom-mark{
  182. // height: 60px;
  183. // }
  184. .detail-left{
  185. display: flex;
  186. justify-content: flex;
  187. align-items: center;
  188. }
  189. .handle-btn{
  190. display: flex;
  191. justify-content: flex-start;
  192. align-items: center;
  193. background-color: transparent !important;
  194. margin: 0 !important;
  195. &::after{
  196. border: none !important;
  197. }
  198. .share-text{
  199. margin-left: 10px;
  200. font-size: 14px;
  201. }
  202. }
  203. .join-btn{
  204. font-size: 14px;
  205. color: #fff;
  206. margin: 0 !important;
  207. background-color: #01a4fe !important;
  208. border-radius: 23px;
  209. padding: 0 30px;
  210. &::after{
  211. border: none !important;
  212. }
  213. &.disabled-btn {
  214. color: #797979;
  215. background-color: #e5e5e5 !important;
  216. }
  217. }