index.scss 693 B

12345678910111213141516171819202122232425262728293031323334353637
  1. .collections {
  2. background-color: #f7f6f3;
  3. &-main {
  4. display: flex;
  5. flex-direction: column;
  6. gap: 20px;
  7. padding: 40px;
  8. }
  9. &-card {
  10. position: relative;
  11. border-radius: 10px;
  12. overflow: hidden;
  13. p {
  14. position: absolute;
  15. top: 50%;
  16. left: 50%;
  17. font-size: 48px;
  18. font-weight: bold;
  19. color: white;
  20. white-space: nowrap;
  21. transform: translate(-50%, -50%);
  22. z-index: 2;
  23. }
  24. &::after {
  25. content: "";
  26. position: absolute;
  27. top: 0;
  28. left: 0;
  29. right: 0;
  30. bottom: 0;
  31. background: rgba($color: #000000, $alpha: 0.6);
  32. z-index: 1;
  33. }
  34. }
  35. }