MCPcopy Create free account
hub / github.com/docsifyjs/docsify / style

Function style

src/plugins/search/component.js:7–111  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

5let options;
6
7function style() {
8 const code = `
9.sidebar {
10 padding-top: 0;
11}
12
13.search {
14 margin-bottom: 20px;
15 padding: 6px;
16 border-bottom: 1px solid #eee;
17}
18
19.search .input-wrap {
20 display: flex;
21 align-items: center;
22}
23
24.search .results-panel {
25 display: none;
26}
27
28.search .results-panel.show {
29 display: block;
30}
31
32.search input {
33 outline: none;
34 border: none;
35 width: 100%;
36 padding: 0.6em 7px;
37 font-size: inherit;
38 border: 1px solid transparent;
39}
40
41.search input:focus {
42 box-shadow: 0 0 5px var(--theme-color, #42b983);
43 border: 1px solid var(--theme-color, #42b983);
44}
45
46.search input::-webkit-search-decoration,
47.search input::-webkit-search-cancel-button,
48.search input {
49 -webkit-appearance: none;
50 -moz-appearance: none;
51 appearance: none;
52}
53
54.search input::-ms-clear {
55 display: none;
56 height: 0;
57 width: 0;
58}
59
60.search .clear-button {
61 cursor: pointer;
62 width: 36px;
63 text-align: right;
64 display: none;

Callers 1

initFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…