Files

39 lines
4.3 KiB
CSS

.xlo { position: relative; min-height: calc(100svh - var(--x-top, 60px)); display: flex; align-items: center; justify-content: center; background: var(--bg); color: var(--ink); overflow: hidden; }
.xlo-in { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; text-align: center; width: min(100% - 48px, 600px); margin-inline: auto; padding: clamp(56px, 9vh, 108px) 0 clamp(72px, 11vh, 128px); }
.xlo-pill { display: inline-flex; align-items: center; gap: 10px; min-height: 32px; max-width: 100%; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--x-raised); box-shadow: 0 1px 2px rgba(0, 0, 0, .04); }
.xlo-code { margin: 0; font-size: 12px; font-weight: 600; letter-spacing: .12em; color: var(--ink); flex: none; }
.xlo-sep { width: 1px; height: 12px; background: var(--line); flex: none; }
.xlo-path { margin: 0; font-size: 12.5px; color: var(--soft); max-width: min(320px, 56vw); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.xlo-h1 { margin: 24px 0 0; font-size: clamp(2.75rem, 6vw, 4.75rem); font-weight: 560; letter-spacing: -.045em; line-height: 1.04; color: var(--ink); text-wrap: balance; }
.xlo-lede { margin: 16px 0 0; max-width: 42ch; font-size: clamp(1.05rem, 1.35vw, 1.22rem); line-height: 1.5; color: var(--soft); text-wrap: balance; }
.xlo-acts { display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 28px; flex-wrap: wrap; }
.xlo-find { width: min(100%, 500px); margin-top: 34px; text-align: left; }
.xlo-field { position: relative; display: flex; align-items: center; }
.xlo-mag { position: absolute; left: 16px; color: var(--faint); pointer-events: none; transition: color .2s var(--ease); }
.xlo-field:focus-within .xlo-mag { color: var(--ink); }
.xlo-find input { width: 100%; height: 50px; padding: 0 16px 0 42px; border-radius: 14px; border: 1px solid var(--line); background: var(--x-raised); color: var(--ink); font: 400 15.5px/1 var(--sans); box-shadow: 0 1px 2px rgba(0, 0, 0, .04); outline: none; transition: border-color .22s var(--ease), box-shadow .22s var(--ease); }
.xlo-find input::placeholder { color: var(--faint); }
.xlo-find input:hover { border-color: var(--x-e15); }
.xlo-find input:focus { border-color: var(--ink); box-shadow: 0 0 0 3px color-mix(in oklab, var(--ink) 10%, transparent); }
.xlo-hits { list-style: none; margin: 8px 0 0; padding: 4px; border-radius: 16px; border: 1px solid var(--line); background: var(--x-raised); box-shadow: 0 16px 40px -20px rgba(0, 0, 0, .28); overflow: hidden; }
.xlo-hits:empty { display: none; }
.xlo-hit { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 14px; padding: 11px 12px; border-radius: 11px; color: var(--ink); text-decoration: none; transition: background-color .18s var(--ease); }
.xlo-hit:hover, .xlo-hit:focus-visible { background: var(--x-fill); }
.xlo-hit b { font-size: 14.5px; font-weight: 540; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.xlo-hit span { grid-column: 1; font-size: 13px; color: var(--soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.xlo-hit i { grid-column: 2; grid-row: 1 / 3; align-self: center; font-style: normal; font-size: 12px; padding: 3px 8px; border-radius: 6px; background: var(--x-fill); color: var(--faint); }
.xlo-more { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 26px; flex-wrap: wrap; }
.xlo-more a { display: inline-flex; align-items: center; justify-content: center; height: 34px; padding: 0 14px; border-radius: 999px; border: 1px solid transparent; color: var(--soft); text-decoration: none; font: 500 13.5px/1 var(--sans); transition: color .2s var(--ease), background-color .2s var(--ease), border-color .2s var(--ease); }
.xlo-more a:hover { color: var(--ink); background: var(--x-raised); border-color: var(--line); }
.x-vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (pointer: coarse) {
.xlo-more a { min-height: 44px; }
}
@media (max-width: 700px) {
.xlo-in { width: calc(100% - 36px); padding: 44px 0 64px; }
.xlo-more { gap: 2px; }
.xlo-more a { padding: 0 9px; font-size: 13px; }
.xlo-hit i { display: none; }
.xlo-hit { grid-template-columns: 1fr; min-height: 44px; }
}