Spaces:
Runtime error
Runtime error
Леонтий Вартанян
neon_arch
commited on
Commit
•
33846ce
1
Parent(s):
3a97a6f
💄 style: replace the search button with a magnifying glass (#483)
Browse files
public/images/magnifying_glass.svg
ADDED
public/static/themes/simple.css
CHANGED
@@ -95,6 +95,14 @@ button {
|
|
95 |
color: var(--background-color);
|
96 |
font-weight: 600;
|
97 |
letter-spacing: 0.1rem;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
98 |
}
|
99 |
|
100 |
.search_bar button:active {
|
|
|
95 |
color: var(--background-color);
|
96 |
font-weight: 600;
|
97 |
letter-spacing: 0.1rem;
|
98 |
+
position: relative;
|
99 |
+
}
|
100 |
+
|
101 |
+
.search_bar button img {
|
102 |
+
position:absolute;
|
103 |
+
left:50%;
|
104 |
+
top:50%;
|
105 |
+
transform:translate(-50%, -50%);
|
106 |
}
|
107 |
|
108 |
.search_bar button:active {
|
src/templates/partials/bar.rs
CHANGED
@@ -16,6 +16,8 @@ pub fn bar(query: &str) -> Markup {
|
|
16 |
html!(
|
17 |
(PreEscaped("<div class=\"search_bar\">"))
|
18 |
input type="search" name="search-box" value=(query) placeholder="Type to search";
|
19 |
-
button type="submit" onclick="searchWeb()"{
|
|
|
|
|
20 |
)
|
21 |
}
|
|
|
16 |
html!(
|
17 |
(PreEscaped("<div class=\"search_bar\">"))
|
18 |
input type="search" name="search-box" value=(query) placeholder="Type to search";
|
19 |
+
button type="submit" onclick="searchWeb()" {
|
20 |
+
img src="./images/magnifying_glass.svg" alt="Info icon for error box";
|
21 |
+
}
|
22 |
)
|
23 |
}
|