index.wxss 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  1. /* 顶部选项卡 */
  2. .header {
  3. display: flex;
  4. position: fixed;
  5. top: 0;
  6. width: 100%;
  7. height: 88rpx;
  8. color: #333;
  9. font-size: 28rpx;
  10. background: #fff;
  11. border-bottom: 1rpx solid #e4e4e4;
  12. z-index: 100;
  13. overflow: hidden;
  14. white-space: nowrap;
  15. }
  16. .header .cs {
  17. display: inline-block;
  18. padding: 0 15rpx;
  19. text-align: center;
  20. min-width: 20%;
  21. height: 87rpx;
  22. line-height: 88rpx;
  23. box-sizing: border-box;
  24. }
  25. .header .cs text {
  26. display: block;
  27. height: 100%;
  28. }
  29. .header .cs.active text {
  30. color: #fd4a5f;
  31. border-bottom: 2rpx solid #fd4a5f;
  32. }
  33. /* 文章列表 */
  34. .article-list {
  35. margin-top: 108rpx;
  36. line-height: 1;
  37. /* padding: 0 20rpx; */
  38. }
  39. .article-list .article-item {
  40. margin-bottom: 20rpx;
  41. padding: 30rpx;
  42. background: #fff;
  43. }
  44. .article-list .article-item:last-child {
  45. margin-bottom: 0;
  46. }
  47. .article-list .article-item .article-item__title {
  48. line-height: 1.3;
  49. }
  50. .article-list .article-item .article-item__image image {
  51. display: block;
  52. }
  53. /* 小图模式 */
  54. .show-type__10 {
  55. display: flex;
  56. }
  57. .show-type__10 .article-item__left {
  58. padding-right: 20rpx;
  59. }
  60. .show-type__10 .article-item__image image {
  61. width: 240rpx;
  62. }
  63. /* 大图模式 */
  64. .show-type__20 .article-item__image image {
  65. width: 100%;
  66. }