File size: 1,459 Bytes
32dba06
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
.scroll-snap {
  scroll-padding-inline: var(--space-neutral);
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.scroll-snap__item {
  scroll-snap-align: start;
}

.scroll-snap-controls {
  background: var(--color-white);
  border-radius: 0.15em;
  box-shadow: var(--box-shadow);
  display: none;
  position: absolute;
  user-select: none;
  -webkit-user-select: none;
}

.scroll-snap-control {
  background-repeat: no-repeat;
  background-size: 0.4375em auto;
  cursor: pointer;
  height: 1.1em;
  transition:
    opacity var(--transition),
    transform var(--transition)
  ;
  width: 1.1em;
}

.scroll-snap-control:disabled {
  opacity: 0.2;
  pointer-events: none;
}

.scroll-snap-control--previous {
  background-image: url('/assets/images/general/icon-previous.svg');
  background-position: left 0.375em center;
}

.scroll-snap-control--next {
  background-image: url('/assets/images/general/icon-next.svg');
  background-position: right 0.375em center;
}



@media(hover: hover) {

  .scroll-snap-controls {
    transition: box-shadow var(--transition);
  }

  .scroll-snap-controls:hover {
    box-shadow: var(--box-shadow-strong);
  }

  .scroll-snap-control {
    will-change: transform;
  }

  .scroll-snap-control--previous:active {
    transform: translateX(-0.03em);
  }

  .scroll-snap-control--next:active {
    transform: translateX(0.03em);
  }

}



@media(min-width: 64em) {

  .scroll-snap-controls {
    display: flex;
  }

}