-
Notifications
You must be signed in to change notification settings - Fork 433
Expand file tree
/
Copy pathbutton.css
More file actions
99 lines (86 loc) · 2 KB
/
button.css
File metadata and controls
99 lines (86 loc) · 2 KB
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
94
95
96
97
98
99
.DocSearch-Button {
align-items: center;
border: 1px solid var(--docsearch-subtle-color);
border-radius: .5rem;
background-color: var(--docsearch-search-button-background);
color: var(--docsearch-search-button-text-color);
cursor: pointer;
display: flex;
all: unset;
height: 36px;
justify-content: space-between;
padding: 0 8px;
user-select: none;
}
.DocSearch-Button-Container {
height: 100%;
align-items: center;
display: flex;
}
.DocSearch-Button-Container svg {
color: currentColor;
}
.DocSearch-Search-Icon {
color: var(--docsearch-highlight-color);
stroke-width: 1.6;
}
.DocSearch-Back-Icon {
color: var(--docsearch-highlight-color);
stroke-width: 1.6;
}
.DocSearch-Button-Placeholder {
font-size: 1rem;
padding-block: 0;
padding-inline: 8px 12px;
color: currentColor;
display: inline-block;
line-height: normal;
}
.DocSearch-Button-Keys {
display: flex;
min-width: calc(2 * 20px + 2 * 0.4em);
}
.DocSearch-Button-Key {
align-items: center;
background: var(--docsearch-key-background);
color: var(--docsearch-key-color);
box-shadow: none !important;
display: flex;
height: 24px;
width: 24px;
justify-content: center;
position: relative;
border: 0;
font-size: 14px;
font-family: system-ui, -apple-system, sans-serif;
transition-property: all;
transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
transition-duration: 100ms;
border: 1px solid
color-mix(in srgb, var(--docsearch-subtle-color) 20%, transparent);
border-radius: 4px;
}
@media (prefers-reduced-motion: reduce) {
.DocSearch-Button-Key {
transition-duration: 0;
}
}
.DocSearch-Button-Key--ctrl {
width: 33px;
}
.DocSearch-Button-Key:first-child {
margin-inline-end: 0.4em;
}
.DocSearch-Button-Key--pressed {
transform: translateY(1px);
box-shadow: var(--docsearch-key-pressed-shadow) !important;
}
@media (max-width: 768px) {
.DocSearch-Button {
width: auto;
}
.DocSearch-Button-Keys,
.DocSearch-Button-Placeholder {
display: none;
}
}