@kawapress/plugin-search 0.0.1 → 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +17 -5
- package/README.zh-CN.md +17 -5
- package/package.json +3 -3
- package/src/frontmatter.ts +12 -0
- package/src/index.ts +2 -0
- package/src/runtime-plugin.ts +1 -0
- package/src/search-index-plugin.ts +8 -20
- package/src/search.css +341 -420
package/README.md
CHANGED
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
</p>
|
|
17
17
|
|
|
18
18
|
<p align="center">
|
|
19
|
-
<a href="https://www.npmjs.com/package/kawapress"><img src="https://img.shields.io/npm/v/kawapress
|
|
19
|
+
<a href="https://www.npmjs.com/package/kawapress"><img src="https://img.shields.io/npm/v/kawapress?label=npm&color=42b883" alt="npm version"></a>
|
|
20
20
|
<a href="https://github.com/ShenQingchuan/kawapress/actions/workflows/deploy-pages.yml"><img src="https://github.com/ShenQingchuan/kawapress/actions/workflows/deploy-pages.yml/badge.svg" alt="documentation build"></a>
|
|
21
21
|
<a href="https://github.com/ShenQingchuan/kawapress/blob/main/LICENSE"><img src="https://img.shields.io/github/license/ShenQingchuan/kawapress" alt="MIT license"></a>
|
|
22
22
|
<img src="https://img.shields.io/badge/Node.js-%E2%89%A522.12-339933?logo=nodedotjs&logoColor=white" alt="Node.js 22.12 or newer">
|
|
@@ -28,8 +28,7 @@
|
|
|
28
28
|
<a href="https://github.com/ShenQingchuan/kawapress/blob/main/README.zh-CN.md">简体中文</a>
|
|
29
29
|
</p>
|
|
30
30
|
|
|
31
|
-
|
|
32
|
-
> KawaPress is in beta. It is ready for testing and early projects, but APIs may change before 0.1.0. Please pin the version when adopting it today.
|
|
31
|
+
If you run into any problems while using KawaPress, please [open an issue](https://github.com/ShenQingchuan/kawapress/issues). Your feedback helps shape the project during its early development.
|
|
33
32
|
|
|
34
33
|
## Why KawaPress?
|
|
35
34
|
|
|
@@ -47,6 +46,18 @@ KawaPress is an independent project. It is not a VitePress fork or a drop-in rep
|
|
|
47
46
|
|
|
48
47
|
You need [Node.js](https://nodejs.org/) 22.12 or newer.
|
|
49
48
|
|
|
49
|
+
Create a new site with the scaffolder:
|
|
50
|
+
|
|
51
|
+
```sh
|
|
52
|
+
npm create kawapress@latest my-kawapress-site
|
|
53
|
+
cd my-kawapress-site
|
|
54
|
+
npm run dev
|
|
55
|
+
```
|
|
56
|
+
|
|
57
|
+
`pnpm create kawapress my-kawapress-site` and `yarn create kawapress my-kawapress-site` do the same thing. The scaffolder asks for a site title and a default language, and can install dependencies for you.
|
|
58
|
+
|
|
59
|
+
If you would rather see every file from the start, set the site up by hand:
|
|
60
|
+
|
|
50
61
|
```sh
|
|
51
62
|
mkdir my-kawapress-site
|
|
52
63
|
cd my-kawapress-site
|
|
@@ -115,7 +126,7 @@ KawaPress keeps extension boundaries explicit:
|
|
|
115
126
|
- a **Runtime Plugin** extends the real Vue App and Vue Router in both SSR and the browser;
|
|
116
127
|
- a **Preset** combines configuration and plugins into a ready-to-use experience such as nagi.
|
|
117
128
|
|
|
118
|
-
A logical plugin is installed once and can provide both generator and runtime behavior. Learn more in the [Plugin System guide](https://shenqingchuan.github.io/kawapress/en/
|
|
129
|
+
A logical plugin is installed once and can provide both generator and runtime behavior. Learn more in the [Plugin System guide](https://shenqingchuan.github.io/kawapress/en/plugins/plugin-system).
|
|
119
130
|
|
|
120
131
|
## Documentation
|
|
121
132
|
|
|
@@ -123,7 +134,8 @@ A logical plugin is installed once and can provide both generator and runtime be
|
|
|
123
134
|
- [What is KawaPress?](https://shenqingchuan.github.io/kawapress/en/guide/what-is-kawapress)
|
|
124
135
|
- [Markdown Extensions](https://shenqingchuan.github.io/kawapress/en/guide/markdown-extensions)
|
|
125
136
|
- [Internationalization](https://shenqingchuan.github.io/kawapress/en/guide/internationalization)
|
|
126
|
-
- [Plugin System](https://shenqingchuan.github.io/kawapress/en/
|
|
137
|
+
- [Plugin System](https://shenqingchuan.github.io/kawapress/en/plugins/plugin-system)
|
|
138
|
+
- [Official Plugins](https://shenqingchuan.github.io/kawapress/en/plugins/overview)
|
|
127
139
|
- [Theme Customization](https://shenqingchuan.github.io/kawapress/en/guide/theme-customization)
|
|
128
140
|
|
|
129
141
|
## Contributing
|
package/README.zh-CN.md
CHANGED
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
</p>
|
|
17
17
|
|
|
18
18
|
<p align="center">
|
|
19
|
-
<a href="https://www.npmjs.com/package/kawapress"><img src="https://img.shields.io/npm/v/kawapress
|
|
19
|
+
<a href="https://www.npmjs.com/package/kawapress"><img src="https://img.shields.io/npm/v/kawapress?label=npm&color=42b883" alt="npm 版本"></a>
|
|
20
20
|
<a href="https://github.com/ShenQingchuan/kawapress/actions/workflows/deploy-pages.yml"><img src="https://github.com/ShenQingchuan/kawapress/actions/workflows/deploy-pages.yml/badge.svg" alt="文档构建状态"></a>
|
|
21
21
|
<a href="https://github.com/ShenQingchuan/kawapress/blob/main/LICENSE"><img src="https://img.shields.io/github/license/ShenQingchuan/kawapress" alt="MIT 许可"></a>
|
|
22
22
|
<img src="https://img.shields.io/badge/Node.js-%E2%89%A522.12-339933?logo=nodedotjs&logoColor=white" alt="Node.js 22.12 或更高版本">
|
|
@@ -28,8 +28,7 @@
|
|
|
28
28
|
<a href="https://github.com/ShenQingchuan/kawapress/blob/main/README.md">English</a>
|
|
29
29
|
</p>
|
|
30
30
|
|
|
31
|
-
|
|
32
|
-
> KawaPress 目前处于 beta 阶段,适合试用和早期项目。0.1.0 之前,公开 API 仍可能调整;现阶段使用时请固定具体版本。
|
|
31
|
+
使用 KawaPress 时遇到任何问题,欢迎到 [提交 Issue](https://github.com/ShenQingchuan/kawapress/issues) 反馈,一起参与本项目的早期建设。
|
|
33
32
|
|
|
34
33
|
## 为什么选择 KawaPress?
|
|
35
34
|
|
|
@@ -47,6 +46,18 @@ KawaPress 是一个独立项目,不是 VitePress 的分支或配置兼容层
|
|
|
47
46
|
|
|
48
47
|
请先准备 [Node.js](https://nodejs.org/) 22.12 或更高版本。
|
|
49
48
|
|
|
49
|
+
用脚手架创建新站点:
|
|
50
|
+
|
|
51
|
+
```sh
|
|
52
|
+
npm create kawapress@latest my-kawapress-site
|
|
53
|
+
cd my-kawapress-site
|
|
54
|
+
npm run dev
|
|
55
|
+
```
|
|
56
|
+
|
|
57
|
+
`pnpm create kawapress my-kawapress-site` 和 `yarn create kawapress my-kawapress-site` 的作用完全一样。脚手架会询问站点标题和默认语言,也可以顺便帮你安装依赖。
|
|
58
|
+
|
|
59
|
+
如果你更想从零看清每个文件,可以手动创建:
|
|
60
|
+
|
|
50
61
|
```sh
|
|
51
62
|
mkdir my-kawapress-site
|
|
52
63
|
cd my-kawapress-site
|
|
@@ -115,7 +126,7 @@ KawaPress 把扩展边界分得很清楚:
|
|
|
115
126
|
- **Runtime Plugin** 在 SSR 和浏览器中扩展真实的 Vue App 与 Vue Router;
|
|
116
127
|
- **Preset** 把配置和一组插件组合成可以直接使用的产品体验,例如 nagi。
|
|
117
128
|
|
|
118
|
-
一个逻辑插件只需要安装一次,同时可以提供生成侧和运行侧能力。更多内容请查看[插件体系](https://shenqingchuan.github.io/kawapress/
|
|
129
|
+
一个逻辑插件只需要安装一次,同时可以提供生成侧和运行侧能力。更多内容请查看[插件体系](https://shenqingchuan.github.io/kawapress/plugins/plugin-system)。
|
|
119
130
|
|
|
120
131
|
## 文档
|
|
121
132
|
|
|
@@ -123,7 +134,8 @@ KawaPress 把扩展边界分得很清楚:
|
|
|
123
134
|
- [KawaPress 是什么?](https://shenqingchuan.github.io/kawapress/guide/what-is-kawapress)
|
|
124
135
|
- [Markdown 语法扩展](https://shenqingchuan.github.io/kawapress/guide/markdown-extensions)
|
|
125
136
|
- [国际化](https://shenqingchuan.github.io/kawapress/guide/internationalization)
|
|
126
|
-
- [插件体系](https://shenqingchuan.github.io/kawapress/
|
|
137
|
+
- [插件体系](https://shenqingchuan.github.io/kawapress/plugins/plugin-system)
|
|
138
|
+
- [官方插件总览](https://shenqingchuan.github.io/kawapress/plugins/overview)
|
|
127
139
|
- [主题定制](https://shenqingchuan.github.io/kawapress/guide/theme-customization)
|
|
128
140
|
|
|
129
141
|
## 参与贡献
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kawapress/plugin-search",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.0
|
|
4
|
+
"version": "0.2.0",
|
|
5
5
|
"description": "Lazy local full-text search plugin for KawaPress",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"homepage": "https://shenqingchuan.github.io/kawapress/",
|
|
@@ -43,7 +43,7 @@
|
|
|
43
43
|
},
|
|
44
44
|
"peerDependencies": {
|
|
45
45
|
"vue": "^3.5.41",
|
|
46
|
-
"kawapress": "0.0
|
|
46
|
+
"kawapress": "0.2.0"
|
|
47
47
|
},
|
|
48
48
|
"dependencies": {
|
|
49
49
|
"@mdit-vue/plugin-frontmatter": "^3.0.2",
|
|
@@ -59,6 +59,6 @@
|
|
|
59
59
|
"typescript": "^6.0.3",
|
|
60
60
|
"vite": "^8.2.2",
|
|
61
61
|
"vue": "^3.5.41",
|
|
62
|
-
"kawapress": "0.0
|
|
62
|
+
"kawapress": "0.2.0"
|
|
63
63
|
}
|
|
64
64
|
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Frontmatter keys this plugin reads. Every reader of `PageFrontmatter` sees
|
|
3
|
+
* them while the plugin is imported.
|
|
4
|
+
*/
|
|
5
|
+
declare module 'kawapress' {
|
|
6
|
+
interface PageFrontmatter {
|
|
7
|
+
/** `false` keeps this page out of the search index. */
|
|
8
|
+
search?: boolean
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
export {}
|
package/src/index.ts
CHANGED
package/src/runtime-plugin.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { MarkdownItContainerOptions } from '@mdit/plugin-container'
|
|
2
|
+
import type { PageFrontmatter } from 'kawapress'
|
|
2
3
|
import type { MarkdownExit, Token } from 'markdown-exit'
|
|
3
4
|
import type { Dirent } from 'node:fs'
|
|
4
5
|
import type { Plugin } from 'vite'
|
|
@@ -12,6 +13,8 @@ import { container as containerPlugin } from '@mdit/plugin-container'
|
|
|
12
13
|
import {
|
|
13
14
|
markdownPagePathToRoutePath,
|
|
14
15
|
normalizeFrontmatterSource,
|
|
16
|
+
resolveHeadingTitle,
|
|
17
|
+
resolveLocaleIndex,
|
|
15
18
|
resolvePageMetadata,
|
|
16
19
|
stringifyJson,
|
|
17
20
|
useMarkdownItPlugin,
|
|
@@ -50,7 +53,7 @@ interface SearchIndexPluginOptions {
|
|
|
50
53
|
}
|
|
51
54
|
|
|
52
55
|
interface SearchMarkdownEnv {
|
|
53
|
-
frontmatter?:
|
|
56
|
+
frontmatter?: PageFrontmatter
|
|
54
57
|
references?: Record<string, { title: string, href: string }>
|
|
55
58
|
}
|
|
56
59
|
|
|
@@ -230,7 +233,7 @@ export async function loadSearchIndexes(
|
|
|
230
233
|
for (const file of files) {
|
|
231
234
|
const source = await readFile(file, 'utf8')
|
|
232
235
|
const route = markdownPagePathToRoutePath(relative(sourceRoot, file))
|
|
233
|
-
const locale =
|
|
236
|
+
const locale = resolveLocaleIndex(route, locales)
|
|
234
237
|
const index = localeIndexes[locale]
|
|
235
238
|
if (index) {
|
|
236
239
|
index.addAll(createSearchDocuments(
|
|
@@ -307,7 +310,7 @@ export function createSearchDocuments(
|
|
|
307
310
|
if (token.type === 'heading_open') {
|
|
308
311
|
finishSection()
|
|
309
312
|
const inline = tokens[index + 1]
|
|
310
|
-
const title = inline ?
|
|
313
|
+
const title = inline ? resolveHeadingTitle(inline) : ''
|
|
311
314
|
const level = Number.parseInt(token.tag.slice(1), 10)
|
|
312
315
|
if (!title || !Number.isInteger(level)) {
|
|
313
316
|
continue
|
|
@@ -357,7 +360,7 @@ function getSearchPageHeaders(tokens: Token[]): Array<{
|
|
|
357
360
|
continue
|
|
358
361
|
}
|
|
359
362
|
const level = Number.parseInt(token.tag.slice(1), 10)
|
|
360
|
-
const title = tokens[index + 1] ?
|
|
363
|
+
const title = tokens[index + 1] ? resolveHeadingTitle(tokens[index + 1]) : ''
|
|
361
364
|
if (title && Number.isInteger(level)) {
|
|
362
365
|
headers.push({ level, title })
|
|
363
366
|
}
|
|
@@ -365,10 +368,6 @@ function getSearchPageHeaders(tokens: Token[]): Array<{
|
|
|
365
368
|
return headers
|
|
366
369
|
}
|
|
367
370
|
|
|
368
|
-
function getInlineText(token: Token): string {
|
|
369
|
-
return normalizeText(getInlineRawText(token))
|
|
370
|
-
}
|
|
371
|
-
|
|
372
371
|
function getInlineRawText(token: Token): string {
|
|
373
372
|
return (token.children ?? [])
|
|
374
373
|
.filter(child => child.type === 'text'
|
|
@@ -412,7 +411,7 @@ function getInlineSourceText(
|
|
|
412
411
|
const inline = markdown.parseInline(source, {
|
|
413
412
|
references: env.references,
|
|
414
413
|
})[0]
|
|
415
|
-
return inline ?
|
|
414
|
+
return inline ? normalizeText(getInlineRawText(inline)) : ''
|
|
416
415
|
}
|
|
417
416
|
|
|
418
417
|
function resolveGitHubAlertLabels(
|
|
@@ -455,17 +454,6 @@ async function findMarkdownFiles(directory: string): Promise<string[]> {
|
|
|
455
454
|
return files.flat()
|
|
456
455
|
}
|
|
457
456
|
|
|
458
|
-
function getLocaleIndex(route: string, locales: string[]): string {
|
|
459
|
-
const locale = locales
|
|
460
|
-
.filter(item => item !== 'root')
|
|
461
|
-
.sort((left, right) => right.length - left.length)
|
|
462
|
-
.find((item) => {
|
|
463
|
-
const prefix = `/${item}`
|
|
464
|
-
return route === prefix || route.startsWith(`${prefix}/`)
|
|
465
|
-
})
|
|
466
|
-
return locale ?? 'root'
|
|
467
|
-
}
|
|
468
|
-
|
|
469
457
|
function isMarkdownFile(file: string, sourceRoot: string): boolean {
|
|
470
458
|
const relativePath = relative(sourceRoot, file)
|
|
471
459
|
return file.endsWith('.md')
|
package/src/search.css
CHANGED
|
@@ -1,476 +1,397 @@
|
|
|
1
|
-
.
|
|
2
|
-
|
|
3
|
-
.
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
width: 2.25rem;
|
|
12
|
-
height: 2.25rem;
|
|
13
|
-
padding: 0;
|
|
14
|
-
color: var(--kawa-search-c-text-2, light-dark(
|
|
15
|
-
oklch(0.5 0.012 286),
|
|
16
|
-
oklch(0.68 0.012 286)
|
|
17
|
-
));
|
|
18
|
-
font: inherit;
|
|
19
|
-
background: transparent;
|
|
20
|
-
border: 0;
|
|
21
|
-
border-radius: 0.5rem;
|
|
22
|
-
cursor: pointer;
|
|
23
|
-
transition:
|
|
24
|
-
color 180ms cubic-bezier(0.22, 1, 0.36, 1),
|
|
25
|
-
background-color 180ms cubic-bezier(0.22, 1, 0.36, 1);
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
.kawa-search-button:hover {
|
|
29
|
-
color: var(--kawa-search-c-text-1, light-dark(
|
|
30
|
-
oklch(0.32 0.012 286),
|
|
31
|
-
oklch(0.9 0.01 286)
|
|
32
|
-
));
|
|
33
|
-
background: var(--kawa-search-c-bg-soft, light-dark(
|
|
34
|
-
oklch(0.965 0.005 286),
|
|
35
|
-
oklch(0.26 0.01 286)
|
|
36
|
-
));
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
.kawa-search-button:focus-visible,
|
|
40
|
-
.kawa-search :where(button, a):focus-visible {
|
|
41
|
-
outline: 2px solid var(--kawa-search-c-brand, light-dark(
|
|
42
|
-
oklch(0.48 0.18 275),
|
|
43
|
-
oklch(0.78 0.13 275)
|
|
44
|
-
));
|
|
45
|
-
outline-offset: 2px;
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
.kawa-search-button svg,
|
|
49
|
-
.kawa-search__icon,
|
|
50
|
-
.kawa-search__close svg {
|
|
51
|
-
width: 1.125rem;
|
|
52
|
-
height: 1.125rem;
|
|
53
|
-
fill: none;
|
|
54
|
-
stroke: currentcolor;
|
|
55
|
-
stroke-linecap: round;
|
|
56
|
-
stroke-linejoin: round;
|
|
57
|
-
stroke-width: 1.75;
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
.kawa-search-button__text,
|
|
61
|
-
.kawa-search-button__keys {
|
|
62
|
-
display: none;
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
.kawa-search {
|
|
66
|
-
position: fixed;
|
|
67
|
-
inset: 8vh auto auto 50%;
|
|
68
|
-
width: min(calc(100vw - 2rem), 42rem);
|
|
69
|
-
max-width: none;
|
|
70
|
-
max-height: none;
|
|
71
|
-
margin: 0;
|
|
72
|
-
padding: 0;
|
|
73
|
-
color: var(--kawa-search-c-text-1, light-dark(
|
|
74
|
-
oklch(0.32 0.012 286),
|
|
75
|
-
oklch(0.9 0.01 286)
|
|
76
|
-
));
|
|
77
|
-
font-family: var(--kawa-search-font-family, system-ui, sans-serif);
|
|
78
|
-
background: transparent;
|
|
79
|
-
border: 0;
|
|
80
|
-
overflow: visible;
|
|
81
|
-
transform: translateX(-50%);
|
|
82
|
-
animation: kawa-search-enter 180ms cubic-bezier(0.22, 1, 0.36, 1);
|
|
83
|
-
}
|
|
1
|
+
@layer kawa.plugin {
|
|
2
|
+
:root {
|
|
3
|
+
/* Private to this plugin: a modal scrim has no shared token. */
|
|
4
|
+
--kawa-search-backdrop: light-dark(
|
|
5
|
+
oklch(0.12 0.01 286 / 58%),
|
|
6
|
+
oklch(0.02 0 0 / 72%)
|
|
7
|
+
);
|
|
8
|
+
/* Private to this plugin: the panel never grows past a readable width. */
|
|
9
|
+
--kawa-search-panel-width: 42rem;
|
|
10
|
+
}
|
|
84
11
|
|
|
85
|
-
.kawa-search
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
12
|
+
.kawa-search-button,
|
|
13
|
+
.kawa-search,
|
|
14
|
+
.kawa-search * {
|
|
15
|
+
box-sizing: border-box;
|
|
16
|
+
}
|
|
89
17
|
|
|
90
|
-
.kawa-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
18
|
+
.kawa-search-button {
|
|
19
|
+
display: grid;
|
|
20
|
+
flex: none;
|
|
21
|
+
place-items: center;
|
|
22
|
+
width: 2.25rem;
|
|
23
|
+
height: 2.25rem;
|
|
24
|
+
padding: 0;
|
|
25
|
+
color: var(--kawa-c-text-2);
|
|
26
|
+
font: inherit;
|
|
27
|
+
background: transparent;
|
|
28
|
+
border: 0;
|
|
29
|
+
border-radius: 0.5rem;
|
|
30
|
+
cursor: pointer;
|
|
31
|
+
transition:
|
|
32
|
+
color 180ms cubic-bezier(0.22, 1, 0.36, 1),
|
|
33
|
+
background-color 180ms cubic-bezier(0.22, 1, 0.36, 1);
|
|
34
|
+
}
|
|
106
35
|
|
|
107
|
-
.kawa-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
gap: 0.75rem;
|
|
112
|
-
min-height: 3.75rem;
|
|
113
|
-
margin: 0.75rem;
|
|
114
|
-
padding: 0 0.875rem;
|
|
115
|
-
background: var(--kawa-search-c-bg-soft, light-dark(
|
|
116
|
-
oklch(0.965 0.005 286),
|
|
117
|
-
oklch(0.26 0.01 286)
|
|
118
|
-
));
|
|
119
|
-
border: 1px solid var(--kawa-search-c-divider, light-dark(
|
|
120
|
-
oklch(0.9 0.006 286),
|
|
121
|
-
oklch(0.29 0.01 286)
|
|
122
|
-
));
|
|
123
|
-
border-radius: 0.625rem;
|
|
124
|
-
}
|
|
36
|
+
.kawa-search-button:hover {
|
|
37
|
+
color: var(--kawa-c-text-1);
|
|
38
|
+
background: var(--kawa-c-bg-soft);
|
|
39
|
+
}
|
|
125
40
|
|
|
126
|
-
.kawa-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
}
|
|
41
|
+
.kawa-search-button:focus-visible,
|
|
42
|
+
.kawa-search :where(button, a):focus-visible {
|
|
43
|
+
outline: 2px solid var(--kawa-c-brand);
|
|
44
|
+
outline-offset: 2px;
|
|
45
|
+
}
|
|
132
46
|
|
|
133
|
-
.kawa-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
47
|
+
.kawa-search-button svg,
|
|
48
|
+
.kawa-search__icon,
|
|
49
|
+
.kawa-search__close svg {
|
|
50
|
+
width: 1.125rem;
|
|
51
|
+
height: 1.125rem;
|
|
52
|
+
fill: none;
|
|
53
|
+
stroke: currentcolor;
|
|
54
|
+
stroke-linecap: round;
|
|
55
|
+
stroke-linejoin: round;
|
|
56
|
+
stroke-width: 1.75;
|
|
57
|
+
}
|
|
140
58
|
|
|
141
|
-
.kawa-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
padding: 0;
|
|
146
|
-
margin: -1px;
|
|
147
|
-
overflow: hidden;
|
|
148
|
-
clip: rect(0, 0, 0, 0);
|
|
149
|
-
white-space: nowrap;
|
|
150
|
-
}
|
|
59
|
+
.kawa-search-button__text,
|
|
60
|
+
.kawa-search-button__keys {
|
|
61
|
+
display: none;
|
|
62
|
+
}
|
|
151
63
|
|
|
152
|
-
.kawa-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
64
|
+
.kawa-search {
|
|
65
|
+
position: fixed;
|
|
66
|
+
inset: 8vh auto auto 50%;
|
|
67
|
+
width: min(calc(100vw - 2rem), var(--kawa-search-panel-width));
|
|
68
|
+
max-width: none;
|
|
69
|
+
max-height: none;
|
|
70
|
+
margin: 0;
|
|
71
|
+
padding: 0;
|
|
72
|
+
color: var(--kawa-c-text-1);
|
|
73
|
+
font-family: var(--kawa-font-sans);
|
|
74
|
+
background: transparent;
|
|
75
|
+
border: 0;
|
|
76
|
+
overflow: visible;
|
|
77
|
+
transform: translateX(-50%);
|
|
78
|
+
animation: kawa-search-enter 180ms cubic-bezier(0.22, 1, 0.36, 1);
|
|
79
|
+
}
|
|
163
80
|
|
|
164
|
-
.kawa-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
));
|
|
169
|
-
}
|
|
81
|
+
.kawa-search::backdrop {
|
|
82
|
+
background: var(--kawa-search-backdrop);
|
|
83
|
+
animation: kawa-search-backdrop-enter 150ms ease-out;
|
|
84
|
+
}
|
|
170
85
|
|
|
171
|
-
.kawa-
|
|
172
|
-
|
|
173
|
-
|
|
86
|
+
.kawa-search__panel {
|
|
87
|
+
display: flex;
|
|
88
|
+
flex-direction: column;
|
|
89
|
+
max-height: min(84dvh, 42rem);
|
|
90
|
+
overflow: hidden;
|
|
91
|
+
background: var(--kawa-c-bg-elv);
|
|
92
|
+
border: 1px solid var(--kawa-c-border);
|
|
93
|
+
border-radius: 0.875rem;
|
|
94
|
+
box-shadow: var(--kawa-shadow-overlay);
|
|
95
|
+
}
|
|
174
96
|
|
|
175
|
-
.kawa-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
border: 0;
|
|
188
|
-
border-radius: 0.375rem;
|
|
189
|
-
cursor: pointer;
|
|
190
|
-
}
|
|
97
|
+
.kawa-search__form {
|
|
98
|
+
display: flex;
|
|
99
|
+
flex: none;
|
|
100
|
+
align-items: center;
|
|
101
|
+
gap: 0.75rem;
|
|
102
|
+
min-height: 3.75rem;
|
|
103
|
+
margin: 0.75rem;
|
|
104
|
+
padding: 0 0.875rem;
|
|
105
|
+
background: var(--kawa-c-bg-soft);
|
|
106
|
+
border: 1px solid var(--kawa-c-divider);
|
|
107
|
+
border-radius: 0.625rem;
|
|
108
|
+
}
|
|
191
109
|
|
|
192
|
-
.kawa-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
oklch(0.9 0.01 286)
|
|
196
|
-
));
|
|
197
|
-
background: color-mix(in oklab, currentcolor 8%, transparent);
|
|
198
|
-
}
|
|
110
|
+
.kawa-search__form:focus-within {
|
|
111
|
+
border-color: var(--kawa-c-border);
|
|
112
|
+
}
|
|
199
113
|
|
|
200
|
-
.kawa-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
overflow: hidden;
|
|
205
|
-
border-top: 1px solid var(--kawa-search-c-divider, light-dark(
|
|
206
|
-
oklch(0.9 0.006 286),
|
|
207
|
-
oklch(0.29 0.01 286)
|
|
208
|
-
));
|
|
209
|
-
}
|
|
114
|
+
.kawa-search__icon {
|
|
115
|
+
flex: none;
|
|
116
|
+
color: var(--kawa-c-brand);
|
|
117
|
+
}
|
|
210
118
|
|
|
211
|
-
.kawa-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
oklch(0.68 0.012 286)
|
|
222
|
-
));
|
|
223
|
-
font-size: 0.875rem;
|
|
224
|
-
text-align: center;
|
|
225
|
-
}
|
|
119
|
+
.kawa-search__label {
|
|
120
|
+
position: absolute;
|
|
121
|
+
width: 1px;
|
|
122
|
+
height: 1px;
|
|
123
|
+
padding: 0;
|
|
124
|
+
margin: -1px;
|
|
125
|
+
overflow: hidden;
|
|
126
|
+
clip: rect(0, 0, 0, 0);
|
|
127
|
+
white-space: nowrap;
|
|
128
|
+
}
|
|
226
129
|
|
|
227
|
-
.kawa-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
border-radius: 50%;
|
|
239
|
-
animation: kawa-search-spin 700ms linear infinite;
|
|
240
|
-
}
|
|
130
|
+
.kawa-search__input {
|
|
131
|
+
min-width: 0;
|
|
132
|
+
width: 100%;
|
|
133
|
+
padding: 0.75rem 0;
|
|
134
|
+
color: inherit;
|
|
135
|
+
font: inherit;
|
|
136
|
+
font-size: 1rem;
|
|
137
|
+
background: transparent;
|
|
138
|
+
border: 0;
|
|
139
|
+
outline: none;
|
|
140
|
+
}
|
|
241
141
|
|
|
242
|
-
.kawa-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
oklch(0.48 0.18 275),
|
|
246
|
-
oklch(0.78 0.13 275)
|
|
247
|
-
));
|
|
248
|
-
font: inherit;
|
|
249
|
-
font-weight: 600;
|
|
250
|
-
background: transparent;
|
|
251
|
-
border: 1px solid currentcolor;
|
|
252
|
-
border-radius: 0.375rem;
|
|
253
|
-
cursor: pointer;
|
|
254
|
-
}
|
|
142
|
+
.kawa-search__input::placeholder {
|
|
143
|
+
color: var(--kawa-c-text-3);
|
|
144
|
+
}
|
|
255
145
|
|
|
256
|
-
.kawa-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
padding: 0.5rem;
|
|
260
|
-
overflow: auto;
|
|
261
|
-
overscroll-behavior: contain;
|
|
262
|
-
}
|
|
146
|
+
.kawa-search__input::-webkit-search-cancel-button {
|
|
147
|
+
display: none;
|
|
148
|
+
}
|
|
263
149
|
|
|
264
|
-
.kawa-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
150
|
+
.kawa-search__close {
|
|
151
|
+
display: grid;
|
|
152
|
+
flex: none;
|
|
153
|
+
place-items: center;
|
|
154
|
+
width: 2rem;
|
|
155
|
+
height: 2rem;
|
|
156
|
+
padding: 0;
|
|
157
|
+
color: var(--kawa-c-text-2);
|
|
158
|
+
background: transparent;
|
|
159
|
+
border: 0;
|
|
160
|
+
border-radius: 0.375rem;
|
|
161
|
+
cursor: pointer;
|
|
162
|
+
}
|
|
272
163
|
|
|
273
|
-
.kawa-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
padding: 0.75rem 0.875rem;
|
|
278
|
-
color: inherit;
|
|
279
|
-
text-decoration: none;
|
|
280
|
-
border-radius: 0.5rem;
|
|
281
|
-
outline: none;
|
|
282
|
-
}
|
|
164
|
+
.kawa-search__close:hover {
|
|
165
|
+
color: var(--kawa-c-text-1);
|
|
166
|
+
background: color-mix(in oklab, currentcolor 8%, transparent);
|
|
167
|
+
}
|
|
283
168
|
|
|
284
|
-
.kawa-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
}
|
|
169
|
+
.kawa-search__body {
|
|
170
|
+
display: flex;
|
|
171
|
+
min-height: 12rem;
|
|
172
|
+
min-width: 0;
|
|
173
|
+
overflow: hidden;
|
|
174
|
+
border-top: 1px solid var(--kawa-c-divider);
|
|
175
|
+
}
|
|
291
176
|
|
|
292
|
-
.kawa-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
177
|
+
.kawa-search__state {
|
|
178
|
+
display: flex;
|
|
179
|
+
flex: 1;
|
|
180
|
+
align-items: center;
|
|
181
|
+
justify-content: center;
|
|
182
|
+
gap: 0.75rem;
|
|
183
|
+
min-height: 12rem;
|
|
184
|
+
padding: 2rem;
|
|
185
|
+
color: var(--kawa-c-text-2);
|
|
186
|
+
font-size: 0.875rem;
|
|
187
|
+
text-align: center;
|
|
188
|
+
}
|
|
298
189
|
|
|
299
|
-
.kawa-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
}
|
|
190
|
+
.kawa-search__loader {
|
|
191
|
+
width: 1rem;
|
|
192
|
+
height: 1rem;
|
|
193
|
+
border: 2px solid var(--kawa-c-divider);
|
|
194
|
+
border-top-color: var(--kawa-c-brand);
|
|
195
|
+
border-radius: 50%;
|
|
196
|
+
animation: kawa-search-spin 700ms linear infinite;
|
|
197
|
+
}
|
|
307
198
|
|
|
308
|
-
.kawa-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
199
|
+
.kawa-search__retry {
|
|
200
|
+
padding: 0.375rem 0.75rem;
|
|
201
|
+
color: var(--kawa-c-brand);
|
|
202
|
+
font: inherit;
|
|
203
|
+
font-weight: 600;
|
|
204
|
+
background: transparent;
|
|
205
|
+
border: 1px solid currentcolor;
|
|
206
|
+
border-radius: 0.375rem;
|
|
207
|
+
cursor: pointer;
|
|
208
|
+
}
|
|
317
209
|
|
|
318
|
-
.kawa-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
font-size: 0.8125rem;
|
|
326
|
-
line-height: 1.55;
|
|
327
|
-
-webkit-box-orient: vertical;
|
|
328
|
-
-webkit-line-clamp: 2;
|
|
329
|
-
}
|
|
210
|
+
.kawa-search__results-scroll {
|
|
211
|
+
width: 100%;
|
|
212
|
+
max-height: min(62dvh, 32rem);
|
|
213
|
+
padding: 0.5rem;
|
|
214
|
+
overflow: auto;
|
|
215
|
+
overscroll-behavior: contain;
|
|
216
|
+
}
|
|
330
217
|
|
|
331
|
-
.kawa-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
border-radius: 0.15rem;
|
|
340
|
-
}
|
|
218
|
+
.kawa-search__results {
|
|
219
|
+
display: flex;
|
|
220
|
+
flex-direction: column;
|
|
221
|
+
gap: 0.125rem;
|
|
222
|
+
margin: 0;
|
|
223
|
+
padding: 0;
|
|
224
|
+
list-style: none;
|
|
225
|
+
}
|
|
341
226
|
|
|
342
|
-
.kawa-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
));
|
|
353
|
-
font-size: 0.75rem;
|
|
354
|
-
border-top: 1px solid var(--kawa-search-c-divider, light-dark(
|
|
355
|
-
oklch(0.9 0.006 286),
|
|
356
|
-
oklch(0.29 0.01 286)
|
|
357
|
-
));
|
|
358
|
-
}
|
|
227
|
+
.kawa-search-result {
|
|
228
|
+
display: flex;
|
|
229
|
+
flex-direction: column;
|
|
230
|
+
gap: 0.25rem;
|
|
231
|
+
padding: 0.75rem 0.875rem;
|
|
232
|
+
color: inherit;
|
|
233
|
+
text-decoration: none;
|
|
234
|
+
border-radius: 0.5rem;
|
|
235
|
+
outline: none;
|
|
236
|
+
}
|
|
359
237
|
|
|
360
|
-
.kawa-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
}
|
|
238
|
+
.kawa-search-result:hover,
|
|
239
|
+
.kawa-search-result.is-selected {
|
|
240
|
+
background: var(--kawa-c-bg-soft);
|
|
241
|
+
}
|
|
365
242
|
|
|
366
|
-
.kawa-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
min-width: 1.25rem;
|
|
370
|
-
min-height: 1.25rem;
|
|
371
|
-
place-items: center;
|
|
372
|
-
padding: 0 0.25rem;
|
|
373
|
-
color: inherit;
|
|
374
|
-
font: inherit;
|
|
375
|
-
line-height: 1;
|
|
376
|
-
background: color-mix(in oklab, currentcolor 8%, transparent);
|
|
377
|
-
border: 1px solid var(--kawa-search-c-divider, light-dark(
|
|
378
|
-
oklch(0.9 0.006 286),
|
|
379
|
-
oklch(0.29 0.01 286)
|
|
380
|
-
));
|
|
381
|
-
border-radius: 0.25rem;
|
|
382
|
-
}
|
|
243
|
+
.kawa-search-result.is-selected {
|
|
244
|
+
box-shadow: inset 0 0 0 1px var(--kawa-c-divider);
|
|
245
|
+
}
|
|
383
246
|
|
|
384
|
-
.kawa-search-
|
|
385
|
-
|
|
386
|
-
|
|
247
|
+
.kawa-search-result__path {
|
|
248
|
+
color: var(--kawa-c-text-3);
|
|
249
|
+
font-size: 0.75rem;
|
|
250
|
+
line-height: 1.4;
|
|
251
|
+
}
|
|
387
252
|
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
253
|
+
.kawa-search-result__title {
|
|
254
|
+
color: var(--kawa-c-text-1);
|
|
255
|
+
font-size: 0.9375rem;
|
|
256
|
+
font-weight: 650;
|
|
257
|
+
line-height: 1.5;
|
|
258
|
+
}
|
|
391
259
|
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
260
|
+
.kawa-search-result__excerpt {
|
|
261
|
+
display: -webkit-box;
|
|
262
|
+
overflow: hidden;
|
|
263
|
+
color: var(--kawa-c-text-2);
|
|
264
|
+
font-size: 0.8125rem;
|
|
265
|
+
line-height: 1.55;
|
|
266
|
+
-webkit-box-orient: vertical;
|
|
267
|
+
-webkit-line-clamp: 2;
|
|
268
|
+
}
|
|
395
269
|
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
padding: 0 0.625rem;
|
|
402
|
-
background: var(--kawa-search-c-bg-soft, light-dark(
|
|
403
|
-
oklch(0.965 0.005 286),
|
|
404
|
-
oklch(0.26 0.01 286)
|
|
405
|
-
));
|
|
270
|
+
.kawa-search-result mark {
|
|
271
|
+
padding: 0 0.1em;
|
|
272
|
+
color: inherit;
|
|
273
|
+
background: color-mix(in oklab, var(--kawa-c-brand) 20%, transparent);
|
|
274
|
+
border-radius: 0.15rem;
|
|
406
275
|
}
|
|
407
276
|
|
|
408
|
-
.kawa-
|
|
409
|
-
display:
|
|
410
|
-
|
|
411
|
-
|
|
277
|
+
.kawa-search__shortcuts {
|
|
278
|
+
display: flex;
|
|
279
|
+
flex: none;
|
|
280
|
+
align-items: center;
|
|
281
|
+
gap: 1rem;
|
|
282
|
+
min-height: 2.75rem;
|
|
283
|
+
padding: 0 1rem;
|
|
284
|
+
color: var(--kawa-c-text-3);
|
|
285
|
+
font-size: 0.75rem;
|
|
286
|
+
border-top: 1px solid var(--kawa-c-divider);
|
|
412
287
|
}
|
|
413
288
|
|
|
414
|
-
.kawa-
|
|
289
|
+
.kawa-search__shortcuts span {
|
|
415
290
|
display: flex;
|
|
416
291
|
align-items: center;
|
|
417
|
-
gap: 0.
|
|
418
|
-
color: var(--kawa-search-c-text-3, light-dark(
|
|
419
|
-
oklch(0.64 0.01 286),
|
|
420
|
-
oklch(0.52 0.012 286)
|
|
421
|
-
));
|
|
292
|
+
gap: 0.25rem;
|
|
422
293
|
}
|
|
423
|
-
}
|
|
424
294
|
|
|
425
|
-
|
|
426
|
-
.kawa-search {
|
|
427
|
-
|
|
428
|
-
width:
|
|
429
|
-
|
|
430
|
-
|
|
295
|
+
.kawa-search__shortcuts kbd,
|
|
296
|
+
.kawa-search-button__keys kbd {
|
|
297
|
+
display: inline-grid;
|
|
298
|
+
min-width: 1.25rem;
|
|
299
|
+
min-height: 1.25rem;
|
|
300
|
+
place-items: center;
|
|
301
|
+
padding: 0 0.25rem;
|
|
302
|
+
color: inherit;
|
|
303
|
+
font: inherit;
|
|
304
|
+
line-height: 1;
|
|
305
|
+
background: color-mix(in oklab, currentcolor 8%, transparent);
|
|
306
|
+
border: 1px solid var(--kawa-c-divider);
|
|
307
|
+
border-radius: 0.25rem;
|
|
431
308
|
}
|
|
432
309
|
|
|
433
|
-
.kawa-
|
|
434
|
-
|
|
435
|
-
max-height: none;
|
|
436
|
-
border: 0;
|
|
437
|
-
border-radius: 0;
|
|
310
|
+
.kawa-search-button__command {
|
|
311
|
+
display: none;
|
|
438
312
|
}
|
|
439
313
|
|
|
440
|
-
.kawa-
|
|
441
|
-
|
|
442
|
-
flex: 1;
|
|
443
|
-
max-height: none;
|
|
314
|
+
:root[data-kawa-platform='apple'] .kawa-search-button__command {
|
|
315
|
+
display: inline;
|
|
444
316
|
}
|
|
445
317
|
|
|
446
|
-
.kawa-
|
|
318
|
+
:root[data-kawa-platform='apple'] .kawa-search-button__control {
|
|
447
319
|
display: none;
|
|
448
320
|
}
|
|
449
|
-
}
|
|
450
321
|
|
|
451
|
-
@media (
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
322
|
+
@media (min-width: 48rem) {
|
|
323
|
+
.kawa-search-button {
|
|
324
|
+
display: flex;
|
|
325
|
+
width: auto;
|
|
326
|
+
gap: 0.625rem;
|
|
327
|
+
padding: 0 0.625rem;
|
|
328
|
+
background: var(--kawa-c-bg-soft);
|
|
329
|
+
}
|
|
330
|
+
|
|
331
|
+
.kawa-search-button__text {
|
|
332
|
+
display: inline;
|
|
333
|
+
font-size: 0.8125rem;
|
|
334
|
+
font-weight: 500;
|
|
335
|
+
}
|
|
336
|
+
|
|
337
|
+
.kawa-search-button__keys {
|
|
338
|
+
display: flex;
|
|
339
|
+
align-items: center;
|
|
340
|
+
gap: 0.125rem;
|
|
341
|
+
color: var(--kawa-c-text-3);
|
|
342
|
+
}
|
|
456
343
|
}
|
|
457
|
-
}
|
|
458
344
|
|
|
459
|
-
@
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
345
|
+
@media (max-width: 39.999rem) {
|
|
346
|
+
.kawa-search {
|
|
347
|
+
inset: 0;
|
|
348
|
+
width: 100%;
|
|
349
|
+
transform: none;
|
|
350
|
+
height: 100dvh;
|
|
351
|
+
}
|
|
352
|
+
|
|
353
|
+
.kawa-search__panel {
|
|
354
|
+
height: 100dvh;
|
|
355
|
+
max-height: none;
|
|
356
|
+
border: 0;
|
|
357
|
+
border-radius: 0;
|
|
358
|
+
}
|
|
359
|
+
|
|
360
|
+
.kawa-search__body,
|
|
361
|
+
.kawa-search__results-scroll {
|
|
362
|
+
flex: 1;
|
|
363
|
+
max-height: none;
|
|
364
|
+
}
|
|
365
|
+
|
|
366
|
+
.kawa-search__shortcuts {
|
|
367
|
+
display: none;
|
|
368
|
+
}
|
|
463
369
|
}
|
|
464
|
-
}
|
|
465
370
|
|
|
466
|
-
@
|
|
467
|
-
|
|
468
|
-
|
|
371
|
+
@media (prefers-reduced-motion: reduce) {
|
|
372
|
+
.kawa-search,
|
|
373
|
+
.kawa-search::backdrop,
|
|
374
|
+
.kawa-search__loader {
|
|
375
|
+
animation: none;
|
|
376
|
+
}
|
|
377
|
+
}
|
|
378
|
+
|
|
379
|
+
@keyframes kawa-search-enter {
|
|
380
|
+
from {
|
|
381
|
+
opacity: 0;
|
|
382
|
+
transform: translateX(-50%) translateY(-0.5rem) scale(0.985);
|
|
383
|
+
}
|
|
384
|
+
}
|
|
385
|
+
|
|
386
|
+
@keyframes kawa-search-backdrop-enter {
|
|
387
|
+
from {
|
|
388
|
+
opacity: 0;
|
|
389
|
+
}
|
|
469
390
|
}
|
|
470
|
-
}
|
|
471
391
|
|
|
472
|
-
@keyframes kawa-search-spin {
|
|
473
|
-
|
|
474
|
-
|
|
392
|
+
@keyframes kawa-search-spin {
|
|
393
|
+
to {
|
|
394
|
+
transform: rotate(360deg);
|
|
395
|
+
}
|
|
475
396
|
}
|
|
476
397
|
}
|