No Description
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

_category.scss 1.7KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  1. /*--------------------------------------------------------------
  2. 18. Category
  3. ----------------------------------------------------------------*/
  4. .cs_grid_list {
  5. display: grid;
  6. grid-template-columns: repeat(3, 1fr);
  7. column-gap: 7.5%;
  8. @media (max-width: 1400px) {
  9. column-gap: 24px;
  10. }
  11. @media (max-width: 1199px) {
  12. column-gap: 24px;
  13. }
  14. @media (max-width: 767px) {
  15. grid-template-columns: repeat(1, 1fr);
  16. gap: 30px;
  17. }
  18. }
  19. .cs_category.cs_style_1 {
  20. .cs_category_thumb {
  21. display: block;
  22. }
  23. .cs_category_btn {
  24. display: inline-flex;
  25. align-items: center;
  26. position: absolute;
  27. top: 50%;
  28. left: 50%;
  29. transform: translate(-50%, -50%);
  30. background-color: $primary;
  31. padding: 10px 25px;
  32. color: $white;
  33. text-align: center;
  34. transition: all 0.3s ease;
  35. span:last-child {
  36. width: 0;
  37. transform: scale(0);
  38. display: inline-block;
  39. margin-bottom: -2px;
  40. transition: all 0.3s ease;
  41. }
  42. }
  43. &:hover {
  44. .cs_category_btn {
  45. background-color: $accent;
  46. span:last-child {
  47. width: 16px;
  48. margin-left: 10px;
  49. transform: scale(1);
  50. }
  51. }
  52. }
  53. }
  54. .cs_category.cs_style_2 {
  55. margin-left: auto;
  56. margin-right: auto;
  57. overflow: hidden;
  58. display: block;
  59. max-width: 312px;
  60. .cs_category_thumb {
  61. padding-top: 100%;
  62. img {
  63. border-radius: 50%;
  64. border-radius: inherit;
  65. object-fit: cover;
  66. position: absolute;
  67. height: 100%;
  68. width: 100%;
  69. left: 0;
  70. top: 0;
  71. }
  72. }
  73. .cs_category_btn {
  74. min-width: 140px;
  75. padding: 10px 20px;
  76. background: rgba($primary, 0.1);
  77. backdrop-filter: blur(5px);
  78. text-align: center;
  79. position: absolute;
  80. top: 50%;
  81. left: 50%;
  82. transform: translate(-50%, -50%);
  83. }
  84. }