File size: 2,351 Bytes
f5071ca
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
.collection-preview {
  display: flex;
  flex-direction: column;
  margin-bottom: 20px;
  height: 270px;
  overflow: hidden;

  @media screen and (max-width: 800px) {
    height: 210px;
  }

  &__title {
    font-size: 1.4rem;
    margin-left: 3px;

    @media screen and (max-width: 800px) {
      font-size: 1rem;
    }
  }

  &__collection-item {
    display: flex;
    height: 100%;
    flex-direction: row;
    position: relative;
  }

  &__left-arrow,
  &__right-arrow {
    height: 168.4px;
    display: flex;
    align-items: center;
    font-size: 2.5rem;
    z-index: 1;
    opacity: 1;
    color: white;

    @media screen and (max-width: 800px) {
      height: 129.44px;
      -webkit-visibility: hidden;
    }
  }

  &__left-arrow {
    position: absolute;
  }

  &__right-arrow {
    position: absolute;
    right: 0%;
  }

  &__left-arrow-icon,
  &__right-arrow-icon {
    cursor: pointer;

    &:hover {
      font-size: 3rem;
      color: white;
      transition: all 0.2s ease;
    }
  }

  &__inner {
    display: flex;
    cursor: pointer;
    height: 168.4px;

    @media screen and (max-width: 800px) {
      overflow-x: scroll;
      overflow-y: hidden;
      white-space: nowrap;
      -webkit-overflow-scrolling: touch;
      &::-webkit-scrollbar {
        display: none;
      }
    }

    @media screen and (min-width: 800px) {
      &:hover {
        .collection-item {
          transform: translateX(-25%);
        }
      }

      .collection-item:hover ~ .collection-item {
        transform: translateX(25%);
      }

      .collection-item:first-child:hover ~ .collection-item {
        transform: translateX(50%);
      }

      .collection-item:last-child:hover ~ .collection-item {
        transform: translateX(-50%);
      }

      .collection-item {
        & {
          transition: transform 300ms ease 100ms;
        }

        &:first-child {
          transform-origin: left;
        }

        &:last-child {
          transform-origin: right;
        }

        &:hover {
          transform: scale(1.5);
        }
        &:hover:first-child {
          transform: scale(1.5);
        }
        &:hover:last-child {
          transform: scale(1.25);
        }
      }
    }
  }
}