info.wxss 2.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394
  1. @charset "UTF-8";
  2. /**
  3. * 这里是uni-app内置的常用样式变量
  4. *
  5. * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量
  6. * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App
  7. *
  8. */
  9. /**
  10. * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能
  11. *
  12. * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件
  13. */
  14. /* 颜色变量 */
  15. /* 行为相关颜色 */
  16. /* 文字基本颜色 */
  17. /* 背景颜色 */
  18. /* 边框颜色 */
  19. /* 尺寸变量 */
  20. /* 文字尺寸 */
  21. /* 图片尺寸 */
  22. /* Border Radius */
  23. /* 水平间距 */
  24. /* 垂直间距 */
  25. /* 透明度 */
  26. /* 文章场景相关 */
  27. .infoBox {
  28. width: 96%;
  29. background-color: #fff;
  30. padding: 20rpx;
  31. height: 260rpx;
  32. margin: 0 auto;
  33. margin-top: 20rpx;
  34. border-radius: 24rpx;
  35. box-shadow: 0 0 10rpx 6rpx rgba(0, 0, 0, 0.1);
  36. color: #666;
  37. }
  38. .infoBox .title {
  39. font-size: 32rpx;
  40. font-weight: 600;
  41. white-space: nowrap;
  42. overflow: hidden;
  43. text-overflow: ellipsis;
  44. height: 26%;
  45. }
  46. .infoBox .info {
  47. width: 100%;
  48. height: 74%;
  49. display: flex;
  50. }
  51. .infoBox .info image {
  52. width: 160rpx;
  53. height: 160rpx;
  54. border-radius: 10rpx;
  55. }
  56. .infoBox .info .leftBox {
  57. flex: 1;
  58. display: flex;
  59. flex-direction: column;
  60. justify-content: space-between;
  61. }
  62. .infoBox .info .leftBox .content {
  63. overflow: hidden;
  64. text-overflow: ellipsis;
  65. display: -webkit-box;
  66. -webkit-line-clamp: 3;
  67. -webkit-box-orient: vertical;
  68. }
  69. .infoBox .info .leftBox .attentionSituation {
  70. font-size: 24rpx;
  71. display: flex;
  72. align-items: center;
  73. }
  74. .infoBox .info .leftBox .attentionSituation .collectCount,
  75. .infoBox .info .leftBox .attentionSituation .commentCount {
  76. display: flex;
  77. align-items: center;
  78. }
  79. .infoBox .info .leftBox .attentionSituation .custom-icon {
  80. margin-right: 10rpx;
  81. }
  82. .infoBox .info .leftBox .attentionSituation .custom-icon::before {
  83. background: -webkit-linear-gradient(left, #f84a1a, #ffa53e);
  84. -webkit-background-clip: text;
  85. -webkit-text-fill-color: transparent;
  86. font-weight: bold;
  87. }
  88. .infoBox .info .leftBox .attentionSituation .commentCount {
  89. margin: 0 30rpx;
  90. }
  91. .infoBox .info .leftBox .attentionSituation .time {
  92. color: #aaa;
  93. }