living.wxss 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  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. page,
  17. .content {
  18. min-height: 100%;
  19. height: auto;
  20. }
  21. .main-item {
  22. margin: 20rpx auto 0;
  23. width: 690rpx;
  24. background: #ffffff;
  25. border-radius: 30rpx;
  26. position: relative;
  27. }
  28. .main-item image {
  29. width: 100%;
  30. height: 100%;
  31. }
  32. .main-item .type {
  33. top: 50rpx;
  34. left: 50rpx;
  35. position: absolute;
  36. z-index: 2;
  37. border-radius: 50rpx;
  38. width: 100rpx;
  39. height: 50rpx;
  40. display: flex;
  41. justify-content: center;
  42. align-items: center;
  43. background: #7f7f7f;
  44. color: #ffffff;
  45. }
  46. .main-item .main-image {
  47. width: 100%;
  48. height: 500rpx;
  49. }
  50. .main-item .info {
  51. padding: 10rpx 10rpx 20rpx;
  52. display: flex;
  53. justify-content: space-between;
  54. align-items: center;
  55. }
  56. .main-item .info .info-left {
  57. line-height: 1;
  58. }
  59. .main-item .info .info-left .main-title {
  60. font-size: 28rpx;
  61. font-family: PingFang SC;
  62. font-weight: 500;
  63. color: #333333;
  64. }
  65. .main-item .info .info-left .main-time {
  66. margin-top: 8rpx;
  67. font-size: 24rpx;
  68. font-family: PingFang SC;
  69. font-weight: 500;
  70. color: #666666;
  71. }
  72. .main-item .info .info-right {
  73. border-radius: 50rpx;
  74. width: 100rpx;
  75. height: 50rpx;
  76. display: flex;
  77. justify-content: center;
  78. align-items: center;
  79. color: #e56969;
  80. border: 1px solid #e56969;
  81. }