12.abg {3 --abg-c: #e5482f;4 position: relative;5 display: inline-flex;6 align-items: center;7 gap: 12px;8 width: 236px;9 height: 56px;10 padding: 0 18px 0 12px;11 overflow: hidden;12 isolation: isolate;13 border: 0;14 border-radius: 4px;15 background: var(--abg-c);16 color: #f6efe2;17 font: 600 15px/1 "Helvetica Neue", Arial, sans-serif;18 letter-spacing: 0.01em;19 cursor: pointer;20 box-shadow: 0 1px 0 rgba(0, 0, 0, 0.08), 0 12px 20px -12px rgba(140, 30, 10, 0.7);21 transition: transform 180ms cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 180ms ease;22}23.abg::before {24 content: "";25 position: absolute;26 inset: 0;27 z-index: -1;28 background: color-mix(in oklab, var(--abg-c), #2a0d06 24%);29 clip-path: circle(0 at 28px 50%);30 transition: clip-path 440ms cubic-bezier(0.2, 0.8, 0.2, 1);31}32.abg:hover::before, .abg:focus-visible::before {33 clip-path: circle(160% at 28px 50%);34}35.abg:focus-visible {36 outline: 2px solid var(--abg-c);37 outline-offset: 3px;38}39.abg:active {40 transform: scale(0.97);41 box-shadow: 0 1px 0 rgba(0, 0, 0, 0.08), 0 4px 8px -6px rgba(140, 30, 10, 0.7);42}43.abg__bag {44 display: grid;45 place-items: center;46 width: 32px;47 height: 32px;48 border-radius: 50%;49 background: rgba(246, 239, 226, 0.16);50 transition: transform 320ms cubic-bezier(0.34, 1.56, 0.64, 1);51}52.abg__bag svg {53 width: 18px;54 height: 18px;55 overflow: visible;56 fill: none;57 stroke: currentColor;58 stroke-width: 1.8;59 stroke-linecap: round;60 stroke-linejoin: round;61}62.abg__handle {63 transform-box: fill-box;64 transform-origin: 50% 100%;65 transition: transform 340ms cubic-bezier(0.34, 1.56, 0.64, 1);66}67.abg:hover .abg__bag {68 transform: translateY(-2px) rotate(-6deg);69}70.abg:hover .abg__handle {71 transform: rotate(16deg);72}73.abg:active .abg__bag {74 transform: translateY(3px) scale(1.12, 0.86);75 transition-duration: 90ms;76}77.abg__label {78 flex: 1;79 text-align: left;80}81.abg__price {82 padding-left: 14px;83 border-left: 1px dashed rgba(246, 239, 226, 0.5);84 font: 500 14px/1 ui-monospace, SFMono-Regular, Menlo, monospace;85}
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
.abg {
--abg-c: #e5482f;
position: relative;
display: inline-flex;
align-items: center;
gap: 12px;
width: 236px;
height: 56px;
padding: 0 18px 0 12px;
overflow: hidden;
isolation: isolate;
border: 0;
border-radius: 4px;
background: var(--abg-c);
color: #f6efe2;
font: 600 15px/1 "Helvetica Neue", Arial, sans-serif;
letter-spacing: 0.01em;
cursor: pointer;
box-shadow: 0 1px 0 rgba(0, 0, 0, 0.08), 0 12px 20px -12px rgba(140, 30, 10, 0.7);
transition: transform 180ms cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 180ms ease;
}
.abg::before {
content: "";
position: absolute;
inset: 0;
z-index: -1;
background: color-mix(in oklab, var(--abg-c), #2a0d06 24%);
clip-path: circle(0 at 28px 50%);
transition: clip-path 440ms cubic-bezier(0.2, 0.8, 0.2, 1);
}
.abg:hover::before, .abg:focus-visible::before {
clip-path: circle(160% at 28px 50%);
}
.abg:focus-visible {
outline: 2px solid var(--abg-c);
outline-offset: 3px;
}
.abg:active {
transform: scale(0.97);
box-shadow: 0 1px 0 rgba(0, 0, 0, 0.08), 0 4px 8px -6px rgba(140, 30, 10, 0.7);
}
.abg__bag {
display: grid;
place-items: center;
width: 32px;
height: 32px;
border-radius: 50%;
background: rgba(246, 239, 226, 0.16);
transition: transform 320ms cubic-bezier(0.34, 1.56, 0.64, 1);
}
.abg__bag svg {
width: 18px;
height: 18px;
overflow: visible;
fill: none;
stroke: currentColor;
stroke-width: 1.8;
stroke-linecap: round;
stroke-linejoin: round;
}
.abg__handle {
transform-box: fill-box;
transform-origin: 50% 100%;
transition: transform 340ms cubic-bezier(0.34, 1.56, 0.64, 1);
}
.abg:hover .abg__bag {
transform: translateY(-2px) rotate(-6deg);
}
.abg:hover .abg__handle {
transform: rotate(16deg);
}
.abg:active .abg__bag {
transform: translateY(3px) scale(1.12, 0.86);
transition-duration: 90ms;
}
.abg__label {
flex: 1;
text-align: left;
}
.abg__price {
padding-left: 14px;
border-left: 1px dashed rgba(246, 239, 226, 0.5);
font: 500 14px/1 ui-monospace, SFMono-Regular, Menlo, monospace;
}
You need to sign in before you can write a comment.