workDetail.scss 8.2 KB

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