index.module.less 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106
  1. .subjects {
  2. padding: 15px 0 0;
  3. background: #f6f8f9;
  4. min-height: calc(100vh - 15px);
  5. .subjectContainer {
  6. min-height: calc(100vh - 95px);
  7. }
  8. .subjectMaxLength {
  9. margin: 0 14px 10px;
  10. background: linear-gradient(139deg, #fff6ee 0%, #ffecdd 100%) #ffffff;
  11. border-radius: 10px;
  12. padding: 7px 11px;
  13. background: #ffffff;
  14. font-size: 14px;
  15. color: #ff9e5a;
  16. line-height: 22px;
  17. }
  18. .title {
  19. padding: 12px 0;
  20. margin: 0 15px;
  21. color: #333;
  22. font-size: 16px;
  23. display: flex;
  24. align-items: center;
  25. &::before {
  26. content: ' ';
  27. display: inline-block;
  28. width: 3px;
  29. height: 16px;
  30. background: #2dc7aa;
  31. border-radius: 3px;
  32. margin-right: 8px;
  33. vertical-align: text-bottom;
  34. }
  35. }
  36. .subject-list {
  37. display: flex;
  38. align-items: center;
  39. // justify-content: space-between;
  40. // justify-content: center;
  41. flex-wrap: wrap;
  42. padding: 0 10px;
  43. .subject-item {
  44. position: relative;
  45. width: 108px;
  46. height: 108px;
  47. margin-right: 5px;
  48. margin-left: 5px;
  49. margin-bottom: 10px;
  50. border-radius: 7px;
  51. overflow: hidden;
  52. }
  53. .topBg {
  54. position: absolute;
  55. top: 0;
  56. left: 0;
  57. width: 100%;
  58. height: 100%;
  59. background: linear-gradient(180deg,
  60. rgba(0, 0, 0, 0) 0%,
  61. rgba(0, 0, 0, 0.54) 100%);
  62. }
  63. .checkbox {
  64. position: absolute;
  65. right: 7px;
  66. top: 7px;
  67. }
  68. .name {
  69. position: absolute;
  70. bottom: 7px;
  71. left: 7px;
  72. font-size: 16px;
  73. font-weight: 500;
  74. color: #ffffff;
  75. line-height: 22px;
  76. }
  77. :global {
  78. .van-checkbox__icon,
  79. .van-radio__icon {
  80. height: 22px;
  81. .van-icon {
  82. border: 0;
  83. background-color: transparent;
  84. }
  85. }
  86. .van-checkbox__icon--checked .van-icon,
  87. .van-radio__icon--checked .van-icon {
  88. background-color: transparent;
  89. border: transparent;
  90. }
  91. }
  92. }
  93. }