1<!doctype html>
2<html>
3 <head>
4 <meta charset="utf-8" />
5 <title>Inputs</title>
6 <link rel="stylesheet" href="_card.css" />
7 <style>
8 .row {
9 display: grid;
10 grid-template-columns: 1fr 1fr;
11 gap: 14px;
12 }
13 .field {
14 display: flex;
15 flex-direction: column;
16 gap: 6px;
17 }
18 label {
19 font-family: var(--alc-font-sans);
20 font-size: 12px;
21 color: var(--alc-fg-3);
22 }
23 input,
24 select {
25 background: var(--alc-bg-elev-2);
26 border: 1px solid var(--alc-hairline-2);
27 color: var(--alc-fg-1);
28 border-radius: 6px;
29 padding: 8px 12px;
30 font-family: var(--alc-font-mono);
31 font-size: 13px;
32 outline: none;
33 }
34 input:focus {
35 border-color: var(--alc-accent);
36 box-shadow: 0 0 0 2px rgba(92, 122, 62, 0.22);
37 }
38 .kbd {
39 background: var(--alc-bg-sunk);
40 border: 1px solid var(--alc-hairline-2);
41 border-radius: 4px;
42 padding: 2px 6px;
43 font-family: var(--alc-font-mono);
44 font-size: 11px;
45 color: var(--alc-fg-2);
46 }
47 .search {
48 position: relative;
49 }
50 .search input {
51 padding-left: 32px;
52 padding-right: 56px;
53 width: 100%;
54 box-sizing: border-box;
55 }
56 .search::before {
57 content: "⌕";
58 position: absolute;
59 left: 10px;
60 top: 50%;
61 transform: translateY(-50%);
62 color: var(--alc-fg-4);
63 font-size: 14px;
64 }
65 .search .keys {
66 position: absolute;
67 right: 8px;
68 top: 50%;
69 transform: translateY(-50%);
70 display: flex;
71 gap: 3px;
72 }
73 </style>
74 </head>
75 <body>
76 <div class="card">
77 <div class="row">
78 <div class="field">
79 <label>Stage name</label>
80 <input type="text" value="prod" />
81 </div>
82 <div class="field">
83 <label>Cloudflare account</label>
84 <input type="text" value="a1b2c3d4e5" placeholder="account id" />
85 </div>
86 </div>
87 <div class="field" style="margin-top: 14px">
88 <label>Search docs</label>
89 <div class="search">
90 <input value="R2Bucket" />
91 <span class="keys"
92 ><span class="kbd">⌘</span><span class="kbd">K</span></span
93 >
94 </div>
95 </div>
96 </div>
97 </body>
98</html>