mirror of
https://github.com/iv-org/invidious.git
synced 2025-04-22 00:09:07 -04:00
Add search bar to channel page.
Closes #1923 (cherry picked from commit e93d8bee22bac4670bf79cfab82ab5e6eebae089)
This commit is contained in:
parent
e0fdf5bcf7
commit
070ccd745f
@ -164,6 +164,13 @@ img.thumbnail {
|
||||
top: -0.7em;
|
||||
}
|
||||
|
||||
.search-button {
|
||||
border: none;
|
||||
color: #3E4446;
|
||||
background: transparent;
|
||||
font-size: 1.1em;
|
||||
}
|
||||
|
||||
/*
|
||||
* Navbar
|
||||
*/
|
||||
@ -442,6 +449,13 @@ body.dark-theme {
|
||||
color: inherit;
|
||||
}
|
||||
|
||||
.dark-theme .search-button {
|
||||
border: none;
|
||||
color: #B0ADA4;
|
||||
background: transparent;
|
||||
font-size: 1.1em;
|
||||
}
|
||||
|
||||
.dark-theme .pure-menu-link:hover, .dark-theme .pure-menu-link:active {
|
||||
background-color: rgb(34, 36, 38)
|
||||
}
|
||||
@ -540,3 +554,8 @@ p,
|
||||
|
||||
/* Center the "invidious" logo on the search page */
|
||||
#logo > h1 { text-align: center; }
|
||||
|
||||
|
||||
#content-navigation {
|
||||
margin-bottom: 0.5em;
|
||||
}
|
||||
|
@ -41,7 +41,7 @@
|
||||
<%= rendered "components/subscribe_widget" %>
|
||||
</div>
|
||||
|
||||
<div class="pure-g h-box">
|
||||
<div class="pure-g h-box" id="content-navigation">
|
||||
<div class="pure-u-1-3">
|
||||
<!-- <a href="https://www.youtube.com/channel/<%= channel.ucid %>"><%= translate(locale, "View channel on YouTube") %></a> -->
|
||||
<!-- <a href="/redirect?referer=<%= env.get?("current_page") %>"><%= translate(locale, "Switch Invidious Instance") %></a> -->
|
||||
@ -70,6 +70,17 @@
|
||||
</a>
|
||||
<% end %>
|
||||
</li>
|
||||
<li class="pure-menu-item navbar" style="margin: 0 0 0 0.5em">
|
||||
<div class="searchbar">
|
||||
<form class="pure-form" action="/search" method="get">
|
||||
<fieldset>
|
||||
<button class="search-button"><i class="icon ion-md-search"></i></button>
|
||||
<input type="search" name="q" placeholder="<%= translate(locale, "search") %>" value="<%= env.get?("search").try {|x| HTML.escape(x.as(String)) } %>">
|
||||
<input type="hidden" name="channel" value="<%= channel.ucid %>">
|
||||
</fieldset>
|
||||
</form>
|
||||
</div>
|
||||
</li>
|
||||
</ui>
|
||||
</div>
|
||||
</div>
|
||||
|
Loading…
x
Reference in New Issue
Block a user