diet-card.scss 924 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. /* module/article/components/diet-card/diet-card.wxss */
  2. .list-card-item {
  3. position: relative;
  4. display: flex;
  5. flex-direction: row;
  6. align-items: center;
  7. min-height: 125px;
  8. padding: 12px;
  9. box-sizing: border-box;
  10. .cover {
  11. flex: none;
  12. width: 100px;
  13. height: 100px;
  14. margin-right: 16px;
  15. border-radius: 12px;
  16. }
  17. .content {
  18. flex: auto;
  19. display: flex;
  20. flex-direction: column;
  21. height: 100px;
  22. justify-content: space-evenly;
  23. }
  24. .title {
  25. font-size: 16px;
  26. color: #fff;
  27. }
  28. .description {
  29. font-size: 14px;
  30. color: #A2AFB2;
  31. &-2 {
  32. font-size: 12px;
  33. color: #34A76B;
  34. }
  35. }
  36. .border-gradient {
  37. position: absolute;
  38. top: 0;
  39. left: 0;
  40. width: 100%;
  41. height: 1px;
  42. transform: translateY(-1px);
  43. background: linear-gradient(90deg, rgba(15, 34, 38, 0) 0%, var(--primary-color, #38FF6E) 50%, rgba(15, 34, 38, 0) 100%);
  44. }
  45. }