-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathchrome.css
87 lines (63 loc) · 1.71 KB
/
chrome.css
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
@-moz-document url-prefix("chrome:") {
findbar {
display: flex !important;
border-radius: var(--zen-border-radius) !important;
margin: 0px !important;
width: 90% !important;
max-width: 800px;
height: auto !important;
position: absolute !important;
top: 15px;
left: 50%;
transform: translateX(-50%);
overflow: unset !important;
box-shadow: var(--box-shadow-10);
background: var(--zen-colors-tertiary) !important;
border: 1px solid var(--zen-colors-border) !important;
transition: top 0.35s ease, bottom 0.35s ease !important;
visibility: visible !important;
opacity: 1 !important;
& .findbar-container {
flex-wrap: wrap;
overflow-x: auto !important;
height: auto !important;
row-gap: 10px;
& > :first-child {
width: 100% !important;
}
& .findbar-textbox {
flex-grow: 1;
}
}
&[hidden="true"] {
top: -150px;
}
@starting-style {
top: -150px;
}
}
/* Horizontal Position */
body:has(#theme-Better-Find-Bar[theme-better_find_bar-horizontal_position="left"]) {
findbar {
left: 15px;
transform: translateX(0%);
}
}
body:has(#theme-Better-Find-Bar[theme-better_find_bar-horizontal_position="right"]) {
findbar {
left: unset !important;
right: 15px;
transform: translateX(0%);
}
}
/* Background blur */
@media (-moz-bool-pref: "theme.better_find_bar.transparent_background") {
findbar, findbar .findbar-textbox:not([status="notfound"]) {
backdrop-filter: blur(15px);
background: color-mix(in hsl, var(--zen-colors-tertiary), transparent 50%) !important;
}
findbar .findbar-textbox:not([status="notfound"]) {
background: color-mix(in hsl, var(--zen-colors-tertiary), transparent 20%) !important;
}
}
}