12.cab {3 display: block;4 width: 216px;5 padding: 0;6 border: 0;7 background: transparent;8 cursor: pointer;9 -webkit-tap-highlight-color: transparent;10}11.cab__stick {12 display: block;13 height: 20px;14 border-radius: 3px 3px 0 0;15 background: repeating-linear-gradient(-58deg, #f4efe5 0 13px, #1a1917 13px 26px);16 box-shadow: inset 0 0 0 2px #1a1917;17 transform-origin: 6px 100%;18 transform: rotate(-14deg);19 transition: transform 300ms cubic-bezier(0.34, 1.56, 0.64, 1);20}21.cab__slate {22 position: relative;23 display: flex;24 flex-direction: column;25 gap: 10px;26 margin-top: 2px;27 padding: 28px 14px 14px;28 border-radius: 0 0 6px 6px;29 background: radial-gradient(ellipse at 30% 40%, rgba(255, 255, 255, 0.05), transparent 60%), #1d1c1a;30 box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06), 0 18px 26px -12px #000;31}32.cab__slate::before {33 content: "";34 position: absolute;35 left: 0;36 right: 0;37 top: 0;38 height: 16px;39 background: repeating-linear-gradient(58deg, #f4efe5 0 13px, #1a1917 13px 26px);40 box-shadow: inset 0 0 0 2px #1a1917;41}42.cab__slate::after {43 content: "";44 position: absolute;45 left: 2px;46 top: -6px;47 width: 9px;48 height: 9px;49 border-radius: 50%;50 background: radial-gradient(circle at 35% 35%, #d9d4ca, #6d6960);51}52.cab__row {53 display: grid;54 grid-template-columns: 1fr 1fr;55 border: 1px solid rgba(236, 232, 223, 0.28);56}57.cab__row span {58 padding: 6px 8px;59 font: 600 9px/1 ui-monospace, SFMono-Regular, Menlo, monospace;60 letter-spacing: 0.18em;61 text-transform: uppercase;62 color: #c9c2b4;63}64.cab__row span + span {65 border-left: 1px solid rgba(236, 232, 223, 0.28);66}67.cab__go {68 font: 800 26px/1 Inter, system-ui, sans-serif;69 letter-spacing: 0.14em;70 text-transform: uppercase;71 color: #f4efe5;72 transition: color 120ms;73}74.cab:hover .cab__stick, .cab:focus-visible .cab__stick {75 transform: rotate(-24deg);76}77.cab:active .cab__stick {78 transform: rotate(0deg);79 transition: transform 70ms cubic-bezier(0.5, 0, 1, 1);80}81.cab:active .cab__go {82 color: #ff6a13;83}84.cab:focus-visible {85 outline: 2px solid #ff6a13;86 outline-offset: 6px;87 border-radius: 6px;88}89@media (prefers-reduced-motion: reduce) {90 .cab__stick {91 transition: none !important;92 }93}
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
.cab {
display: block;
width: 216px;
padding: 0;
border: 0;
background: transparent;
cursor: pointer;
-webkit-tap-highlight-color: transparent;
}
.cab__stick {
display: block;
height: 20px;
border-radius: 3px 3px 0 0;
background: repeating-linear-gradient(-58deg, #f4efe5 0 13px, #1a1917 13px 26px);
box-shadow: inset 0 0 0 2px #1a1917;
transform-origin: 6px 100%;
transform: rotate(-14deg);
transition: transform 300ms cubic-bezier(0.34, 1.56, 0.64, 1);
}
.cab__slate {
position: relative;
display: flex;
flex-direction: column;
gap: 10px;
margin-top: 2px;
padding: 28px 14px 14px;
border-radius: 0 0 6px 6px;
background: radial-gradient(ellipse at 30% 40%, rgba(255, 255, 255, 0.05), transparent 60%), #1d1c1a;
box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06), 0 18px 26px -12px #000;
}
.cab__slate::before {
content: "";
position: absolute;
left: 0;
right: 0;
top: 0;
height: 16px;
background: repeating-linear-gradient(58deg, #f4efe5 0 13px, #1a1917 13px 26px);
box-shadow: inset 0 0 0 2px #1a1917;
}
.cab__slate::after {
content: "";
position: absolute;
left: 2px;
top: -6px;
width: 9px;
height: 9px;
border-radius: 50%;
background: radial-gradient(circle at 35% 35%, #d9d4ca, #6d6960);
}
.cab__row {
display: grid;
grid-template-columns: 1fr 1fr;
border: 1px solid rgba(236, 232, 223, 0.28);
}
.cab__row span {
padding: 6px 8px;
font: 600 9px/1 ui-monospace, SFMono-Regular, Menlo, monospace;
letter-spacing: 0.18em;
text-transform: uppercase;
color: #c9c2b4;
}
.cab__row span + span {
border-left: 1px solid rgba(236, 232, 223, 0.28);
}
.cab__go {
font: 800 26px/1 Inter, system-ui, sans-serif;
letter-spacing: 0.14em;
text-transform: uppercase;
color: #f4efe5;
transition: color 120ms;
}
.cab:hover .cab__stick, .cab:focus-visible .cab__stick {
transform: rotate(-24deg);
}
.cab:active .cab__stick {
transform: rotate(0deg);
transition: transform 70ms cubic-bezier(0.5, 0, 1, 1);
}
.cab:active .cab__go {
color: #ff6a13;
}
.cab:focus-visible {
outline: 2px solid #ff6a13;
outline-offset: 6px;
border-radius: 6px;
}
@media (prefers-reduced-motion: reduce) {
.cab__stick {
transition: none !important;
}
}
You need to sign in before you can write a comment.