workDetail.scss 8.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419
  1. // 导入FontAwesome
  2. @import url("https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css");
  3. page {
  4. background: #f2f6f2;
  5. width: 100%;
  6. color: #333;
  7. font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica,
  8. Arial, sans-serif;
  9. }
  10. .page {
  11. background: #f2f6f2;
  12. width: 100%;
  13. }
  14. /* 自定义导航栏样式 */
  15. .custom-navbar {
  16. display: flex;
  17. flex-direction: row;
  18. align-items: center;
  19. justify-content: space-between;
  20. width: 100%;
  21. height: calc( 90rpx + var(--status-bar-height));
  22. padding: 0 20rpx;
  23. padding-top: var(--status-bar-height);
  24. background-color: #ffffff;
  25. position: sticky;
  26. top: 0;
  27. z-index: 100;
  28. .navbar-left {
  29. width: 80rpx;
  30. height: 80rpx;
  31. display: flex;
  32. align-items: center;
  33. justify-content: center;
  34. .fa-angle-left {
  35. font-size: 48rpx;
  36. color: #333;
  37. }
  38. }
  39. .navbar-center {
  40. flex: 1;
  41. display: flex;
  42. justify-content: flex-start;
  43. align-items: center;
  44. margin-left: 10rpx;
  45. .navbar-title {
  46. display: flex;
  47. align-items: center;
  48. .navbar-avatar {
  49. width: 50rpx;
  50. height: 50rpx;
  51. border-radius: 25rpx;
  52. margin-right: 10rpx;
  53. }
  54. .navbar-text {
  55. font-size: 32rpx;
  56. font-weight: bold;
  57. color: #333;
  58. margin-right: 10rpx;
  59. }
  60. .navbar-badge {
  61. font-size: 22rpx;
  62. color: #f0ad4e;
  63. background-color: rgba(240, 173, 78, 0.1);
  64. padding: 2rpx 10rpx;
  65. border-radius: 10rpx;
  66. border: 1rpx solid #f0ad4e;
  67. }
  68. }
  69. }
  70. .navbar-right {
  71. min-width: 80rpx;
  72. height: 80rpx;
  73. display: flex;
  74. justify-content: center;
  75. align-items: center;
  76. .fa-ellipsis-h {
  77. font-size: 36rpx;
  78. color: #333;
  79. }
  80. image {
  81. width: 64rpx;
  82. height: 64rpx;
  83. }
  84. .followTheAuthor {
  85. padding: 6rpx 20rpx 8rpx 15rpx;
  86. border-radius: 26rpx;
  87. margin-right: 16rpx;
  88. transition: all 0.6s;
  89. border: 2rpx solid transparent;
  90. &.followTheAuthor1 {
  91. color: #acf934;
  92. background: #1f1f1f;
  93. }
  94. &.followTheAuthor0 {
  95. border: 2rpx solid #1f1f1f;
  96. background: #fff;
  97. }
  98. }
  99. }
  100. }
  101. // 评论区域样式
  102. .comment-section {
  103. background-color: #f8f8f8;
  104. padding: 30rpx 0;
  105. margin-top: 20rpx;
  106. border-radius: 30rpx 30rpx 0 0;
  107. .section-header {
  108. display: flex;
  109. align-items: center;
  110. padding: 0 30rpx 20rpx;
  111. border-bottom: 1rpx solid #eee;
  112. margin-bottom: 20rpx;
  113. .fa {
  114. font-size: 36rpx;
  115. color: #2979ff;
  116. }
  117. .section-title {
  118. font-size: 32rpx;
  119. font-weight: bold;
  120. margin: 0 10rpx;
  121. color: #333;
  122. }
  123. .comment-count {
  124. font-size: 28rpx;
  125. color: #999;
  126. }
  127. }
  128. .comment-button {
  129. display: flex;
  130. align-items: center;
  131. justify-content: center;
  132. width: 650rpx;
  133. height: 90rpx;
  134. background-color: #2979ff;
  135. color: #fff;
  136. border-radius: 45rpx;
  137. margin: 40rpx auto 20rpx;
  138. font-size: 30rpx;
  139. box-shadow: 0 4rpx 12rpx rgba(41, 121, 255, 0.3);
  140. transition: all 0.3s ease;
  141. .fa {
  142. margin-right: 10rpx;
  143. }
  144. &:active {
  145. transform: scale(0.97);
  146. background-color: #2567db;
  147. }
  148. }
  149. }
  150. /* 确保评论按钮样式 */
  151. .comment-button {
  152. display: flex;
  153. align-items: center;
  154. justify-content: center;
  155. width: 650rpx;
  156. height: 90rpx;
  157. background-color: #2979ff;
  158. color: #fff;
  159. border-radius: 45rpx;
  160. margin: 40rpx auto 20rpx;
  161. font-size: 30rpx;
  162. box-shadow: 0 4rpx 12rpx rgba(41, 121, 255, 0.3);
  163. }
  164. .inspiration-content {
  165. width: 700rpx;
  166. min-height: 1000rpx;
  167. padding: 0;
  168. margin: 0 auto;
  169. // background: url("../../static/makedetail/cz_img_zhanshi.png") top center/100% no-repeat;
  170. box-sizing: border-box;
  171. overflow: hidden;
  172. display: flex;
  173. align-items: center;
  174. justify-content: center;
  175. flex-direction: column;
  176. image {
  177. width: 100%;
  178. height: auto;
  179. margin: 0;
  180. }
  181. .inspirationPictures {
  182. border-radius: 0px 0px 32rpx 32rpx;
  183. border: 2rpx solid #000000;
  184. }
  185. }
  186. // 音乐模式样式
  187. .musicContentBox {
  188. padding-top: 20rpx;
  189. .headCard {
  190. background: #fff;
  191. width: 694rpx;
  192. height: 172rpx;
  193. border-radius: 20rpx;
  194. box-sizing: border-box;
  195. padding: 20rpx 24rpx 28rpx 20rpx;
  196. margin: 0rpx auto;
  197. display: flex;
  198. justify-content: space-between;
  199. align-items: center;
  200. .songCover {
  201. width: 124rpx;
  202. height: 124rpx;
  203. border-radius: 16rpx;
  204. }
  205. .songInfo {
  206. width: 400rpx;
  207. .songTitle {
  208. font-family: PingFang SC;
  209. font-weight: 400;
  210. font-size: 34rpx;
  211. color: #1f1f1f;
  212. padding-bottom: 4rpx;
  213. }
  214. .songTag {
  215. display: flex;
  216. flex-wrap: wrap;
  217. max-height: 88rpx;
  218. overflow: hidden;
  219. .tag {
  220. padding: 2rpx 6rpx;
  221. font-family: PingFang SC;
  222. font-weight: 400;
  223. font-size: 20rpx;
  224. color: #1f1f1f;
  225. border-radius: 8rpx;
  226. border: 2rpx solid #e6e6e6;
  227. margin-right: 8rpx;
  228. margin-bottom: 5rpx;
  229. }
  230. }
  231. }
  232. .playerButton {
  233. width: 76rpx;
  234. height: 76rpx;
  235. }
  236. }
  237. .contentHeader {
  238. position: relative;
  239. left: 0;
  240. top: 0;
  241. padding-bottom: 40rpx;
  242. .musicContent {
  243. width: calc(100% - 76rpx);
  244. height: 620rpx;
  245. margin: 38rpx auto;
  246. margin-right: 0;
  247. overflow: hidden;
  248. overflow-y: auto;
  249. background: url("../../static/makedetail/cz_img_cd.png") center right/auto
  250. 100% no-repeat;
  251. background-position-x: 530%;
  252. box-sizing: border-box;
  253. padding: 200rpx 0;
  254. .roll {
  255. position: absolute;
  256. left: 28rpx;
  257. top: 50%;
  258. transform: translateY(-50%);
  259. width: 26rpx;
  260. height: 120rpx;
  261. }
  262. }
  263. .maskLayer {
  264. width: 60%;
  265. height: 100%;
  266. position: absolute;
  267. left: 0;
  268. top: 0;
  269. background: linear-gradient(
  270. to bottom,
  271. rgba(242, 246, 242, 0.8) 0,
  272. rgba(242, 246, 242, 0) 45%,
  273. rgba(242, 246, 242, 0) 55%,
  274. rgba(242, 246, 242, 0.8) 100%
  275. );
  276. pointer-events: none;
  277. }
  278. }
  279. }
  280. // 作品描述
  281. .workDescription {
  282. margin: 20rpx 28rpx 30rpx 28rpx;
  283. background: #fff;
  284. border-radius: 20rpx;
  285. padding: 22rpx 28rpx 32rpx 28rpx;
  286. .workDescription-title {
  287. font-weight: 400;
  288. font-family: "PingFang SC-Bold";
  289. font-size: 36rpx;
  290. display: flex;
  291. align-content: center;
  292. padding-bottom: 24rpx;
  293. .pen {
  294. width: 36rpx;
  295. height: 36rpx;
  296. margin-top: 10rpx;
  297. margin-left: 5rpx;
  298. }
  299. }
  300. .workDescription-content {
  301. font-size: 28rpx;
  302. color: #1f1f1f;
  303. }
  304. }
  305. // 去创作
  306. .goCreate {
  307. width: 694rpx;
  308. height: 70rpx;
  309. background: #1f1f1f;
  310. border-radius: 58rpx;
  311. display: flex;
  312. align-items: center;
  313. justify-content: center;
  314. font-size: 32rpx;
  315. font-family: 'PingFang SC-Bold';
  316. color: #fff;
  317. margin: 0 auto;
  318. // margin-bottom: 20rpx;
  319. }
  320. .floating-bar {
  321. background: #ffffff;
  322. border-radius: 20rpx;
  323. color: #1f1f1f;
  324. }
  325. /* 底部漂浮栏样式 */
  326. .floating-bar {
  327. position: fixed;
  328. bottom: 0;
  329. left: 0;
  330. right: 0;
  331. background-color: #fff;
  332. box-shadow: 0 -2rpx 10rpx rgba(0, 0, 0, 0.1);
  333. padding: 20rpx 30rpx;
  334. padding-bottom: calc(20rpx + env(safe-area-inset-bottom));
  335. z-index: 100;
  336. .floating-bar-content {
  337. display: flex;
  338. align-items: center;
  339. .add-note-btn {
  340. border-radius: 58rpx;
  341. border: 4rpx solid #000000;
  342. display: flex;
  343. justify-content: center;
  344. align-items: center;
  345. width: 220rpx;
  346. height: 80rpx;
  347. &:active {
  348. background-color: #e5e5e5;
  349. }
  350. }
  351. text {
  352. font-family: PingFang SC, PingFang SC;
  353. font-weight: 400;
  354. font-size: 16px;
  355. color: #1f1f1f;
  356. }
  357. .publish-btn {
  358. flex: 3;
  359. height: 80rpx;
  360. background: #1f1f1f;
  361. margin-left: 20rpx;
  362. border-radius: 40rpx;
  363. display: flex;
  364. justify-content: center;
  365. align-items: center;
  366. text {
  367. color: #fff;
  368. }
  369. &:active {
  370. opacity: 0.9;
  371. }
  372. }
  373. }
  374. }
  375. /* 弹窗样式 */
  376. .popup-mask {
  377. position: fixed;
  378. top: 0;
  379. left: 0;
  380. right: 0;
  381. bottom: 0;
  382. background-color: rgba(0, 0, 0, 0.5);
  383. z-index: 998;
  384. }
  385. .comment-button .fa {
  386. margin-right: 10rpx;
  387. }
  388. .comment-button:active {
  389. opacity: 0.9;
  390. transform: scale(0.98);
  391. }