File size: 1,510 Bytes
f2bee8a
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
@import "../../css/colors.css";
@import "../../css/units.css";

.close-button {
    display: flex;
    align-items: center;
    justify-content: center;

    overflow: hidden;  /* Mask the icon animation */
    background-color: $ui-black-transparent;
    border-radius: 50%;
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    user-select: none;
    cursor: pointer;
    transition: all 0.15s ease-out;
}

.close-button.large:hover {
    transform: scale(1.1, 1.1);
    box-shadow: 0 0 0 4px $ui-black-transparent;
}

.close-button.large.orange:hover {
    transform: scale(1.1, 1.1);
    box-shadow: 0px 0px 0px 4px hsla(29, 100%, 54%, 0.2);
}

.small {
    width: 0.825rem;
    height: 0.825rem;
    background-color: $motion-primary;
    color: $ui-white;
}

.large {
    width: 1.75rem;
    height: 1.75rem;
    box-shadow: 0 0 0 2px $ui-black-transparent;
}

 .large.orange {
    background-color: hsla(29, 100%, 54%, 0.2);
    box-shadow: 0px 0px 0px 2px hsla(29, 100%, 54%, 0.2);
}

.close-icon {
    position: relative;
    margin: 0.25rem;
    user-select: none;
    transform-origin: 50%;
    transform: rotate(45deg);
}

.close-icon.orange {
    transform: rotate(45deg);
    transform: scale(1.4);
}

.small .close-icon {
    width: 50%;
}

.large .close-icon {
    width: 0.75rem;
    height: 0.75rem;
}

.back-icon {
  position: relative;
  margin: 0.25rem;
  user-select: none;
}

.small .back-icon {
    width: 50%;
}

.large .back-icon {
    width: 2rem;
    height: 2rem;
}