12.hts {3 position: relative;4 display: inline-flex;5 align-items: center;6 justify-content: space-between;7 gap: 12px;8 width: 272px;9 height: 58px;10 padding: 0 20px;11 overflow: hidden;12 isolation: isolate;13 border: 2px solid #e3b23c;14 border-radius: 0;15 background: #1b1b1b;16 color: #e3b23c;17 font: 600 19px/1 ui-serif, Georgia, serif;18 cursor: pointer;19 transition: color 200ms ease 100ms, transform 120ms ease;20}21.hts__ink {22 position: absolute;23 inset: -2px;24 z-index: -1;25 background: #e3b23c;26 opacity: 0.35;27 -webkit-mask: radial-gradient(circle at center, #000 2.6px, transparent 3.2px) center / 12px 12px;28 mask: radial-gradient(circle at center, #000 2.6px, transparent 3.2px) center / 12px 12px;29 transition: -webkit-mask-size 440ms cubic-bezier(0.5, 0, 0.2, 1), mask-size 440ms cubic-bezier(0.5, 0, 0.2, 1), opacity 200ms ease;30}31.hts:hover, .hts:focus-visible {32 color: #1b1b1b;33}34.hts:hover .hts__ink, .hts:focus-visible .hts__ink {35 -webkit-mask-size: 3.4px 3.4px;36 mask-size: 3.4px 3.4px;37 opacity: 1;38}39.hts:active {40 transform: translateY(1px);41}42.hts:focus-visible {43 outline: 2px solid #e3b23c;44 outline-offset: 4px;45}46.hts__price {47 font: 500 14px/1 ui-monospace, SFMono-Regular, Menlo, monospace;48 opacity: 0.8;49}50.hts__arrow {51 width: 20px;52 height: 20px;53 fill: none;54 stroke: currentColor;55 stroke-width: 2;56 stroke-linecap: square;57 transition: transform 280ms cubic-bezier(0.34, 1.56, 0.64, 1);58}59.hts:hover .hts__arrow {60 transform: translateX(4px);61}
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
.hts {
position: relative;
display: inline-flex;
align-items: center;
justify-content: space-between;
gap: 12px;
width: 272px;
height: 58px;
padding: 0 20px;
overflow: hidden;
isolation: isolate;
border: 2px solid #e3b23c;
border-radius: 0;
background: #1b1b1b;
color: #e3b23c;
font: 600 19px/1 ui-serif, Georgia, serif;
cursor: pointer;
transition: color 200ms ease 100ms, transform 120ms ease;
}
.hts__ink {
position: absolute;
inset: -2px;
z-index: -1;
background: #e3b23c;
opacity: 0.35;
-webkit-mask: radial-gradient(circle at center, #000 2.6px, transparent 3.2px) center / 12px 12px;
mask: radial-gradient(circle at center, #000 2.6px, transparent 3.2px) center / 12px 12px;
transition: -webkit-mask-size 440ms cubic-bezier(0.5, 0, 0.2, 1), mask-size 440ms cubic-bezier(0.5, 0, 0.2, 1), opacity 200ms ease;
}
.hts:hover, .hts:focus-visible {
color: #1b1b1b;
}
.hts:hover .hts__ink, .hts:focus-visible .hts__ink {
-webkit-mask-size: 3.4px 3.4px;
mask-size: 3.4px 3.4px;
opacity: 1;
}
.hts:active {
transform: translateY(1px);
}
.hts:focus-visible {
outline: 2px solid #e3b23c;
outline-offset: 4px;
}
.hts__price {
font: 500 14px/1 ui-monospace, SFMono-Regular, Menlo, monospace;
opacity: 0.8;
}
.hts__arrow {
width: 20px;
height: 20px;
fill: none;
stroke: currentColor;
stroke-width: 2;
stroke-linecap: square;
transition: transform 280ms cubic-bezier(0.34, 1.56, 0.64, 1);
}
.hts:hover .hts__arrow {
transform: translateX(4px);
}
You need to sign in before you can write a comment.