Skip to content

Commit db43c8d

Browse files
committed
delete images, inline svg for search icon
1 parent 7a0b48b commit db43c8d

28 files changed

+18
-9
lines changed

lib/rdoc/generator/template/rorvswild/_dialog_search.rhtml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
<dialog id="search-dialog" role="search" class="search-dialog initially-hidden">
22
<form action="#" method="get" accept-charset="utf-8">
33
<div id="search-field-wrapper">
4+
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-search"><circle cx="11" cy="11" r="8"></circle><line x1="21" y1="21" x2="16.65" y2="16.65"></line></svg>
45
<input id="search-field" role="combobox" aria-label="Search"
56
aria-autocomplete="list" aria-controls="search-results"
67
type="text" name="search" placeholder="Search (/) for a class, method, ..." spellcheck="false"

lib/rdoc/generator/template/rorvswild/_topbar.rhtml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@
22
<%= render '_sidebar_toggle.rhtml' %>
33
<a href="<%= rel_prefix %>/index.html" rel="home"><%= @options.title %></a>
44
<button type="button" aria-label="Search" class="search-button">
5-
search
5+
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-search"><circle cx="11" cy="11" r="8"></circle><line x1="21" y1="21" x2="16.65" y2="16.65"></line></svg>
6+
<span>search</span>
67
</button>
78
</header>
89

lib/rdoc/generator/template/rorvswild/css/rdoc.css

Lines changed: 15 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -455,7 +455,16 @@ nav.contextual {
455455
border: none;
456456
border-radius: 4px;
457457
color:var(--color-text-light);
458-
box-shadow: none;
458+
box-shadow: 0 0 0 1px var(--color-border);
459+
display: flex;
460+
gap: 4px;
461+
align-items: center;
462+
}
463+
464+
.search-button svg {
465+
width: 12px;
466+
height: 12px;
467+
opacity: 0.8;
459468
}
460469

461470
.search-button:hover,
@@ -513,14 +522,12 @@ nav.contextual {
513522
opacity: 0.6;
514523
}
515524

516-
#search-field-wrapper::before {
517-
content: "\1F50D"; /* Unicode for magnifying glass */
525+
#search-field-wrapper svg {
518526
position: absolute;
519-
left: 0.75em;
520-
top: 50%;
521-
transform: translateY(-50%);
522-
font-size: 14px;
523-
color: var(--color-text);
527+
stroke: var(--color-text-light);
528+
width: 16px;
529+
height: 16px;
530+
left: 8px;
524531
opacity: 0.6;
525532
}
526533

-733 Bytes
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
-774 Bytes
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.

0 commit comments

Comments
 (0)