CategoryItem.module.scss 849 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. @import "styles/_variables.scss";
  2. .item {
  3. width: 50%;
  4. height: 100%;
  5. display: flex;
  6. flex-wrap: wrap;
  7. padding: 3px;
  8. .sub_a {
  9. width: 100%;
  10. height: 100px;
  11. position: relative;
  12. border-radius: $border-radius;
  13. overflow: hidden;
  14. box-shadow: rgba(0, 0, 0, 0.15) 0px 5px 15px 0px;
  15. > img {
  16. width: 100%;
  17. height: 100%;
  18. object-fit: cover;
  19. object-position: bottom;
  20. filter: grayscale(85%) blur(3px);
  21. transition: all 0.5s;
  22. }
  23. > h3 {
  24. position: absolute;
  25. top: 50%;
  26. left: 50%;
  27. transform: translate(-50%, -50%);
  28. color: $white;
  29. text-transform: uppercase;
  30. font-weight: 500;
  31. letter-spacing: 5px;
  32. text-align: center;
  33. }
  34. &:hover {
  35. > img {
  36. transition: all 0.5s;
  37. filter: grayscale(50%);
  38. }
  39. }
  40. }
  41. }