mirror of
https://github.com/GenZmeY/casper-i18n.git
synced 2024-11-10 02:28:02 +00:00
Add search support
This commit is contained in:
parent
3e7ca9cb36
commit
eff8d360ba
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -413,6 +413,36 @@ body:not(.has-cover) .site-header-content:not(.left-aligned) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/* Search
|
||||||
|
/* ---------------------------------------------------------- */
|
||||||
|
|
||||||
|
.gh-search {
|
||||||
|
display: inline-flex;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: center;
|
||||||
|
width: 32px;
|
||||||
|
height: 32px;
|
||||||
|
padding: 0;
|
||||||
|
cursor: pointer;
|
||||||
|
background-color: transparent;
|
||||||
|
border: 0;
|
||||||
|
outline: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
.gh-search:hover {
|
||||||
|
opacity: 0.9;
|
||||||
|
}
|
||||||
|
|
||||||
|
@media (max-width: 991px) {
|
||||||
|
.gh-search {
|
||||||
|
position: fixed;
|
||||||
|
top: 16px;
|
||||||
|
left: 16px;
|
||||||
|
z-index: 10;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
/* Mobile Menu Trigger
|
/* Mobile Menu Trigger
|
||||||
/* ---------------------------------------------------------- */
|
/* ---------------------------------------------------------- */
|
||||||
|
|
||||||
|
@ -42,6 +42,7 @@
|
|||||||
{{navigation}}
|
{{navigation}}
|
||||||
</div>
|
</div>
|
||||||
<div class="gh-head-actions">
|
<div class="gh-head-actions">
|
||||||
|
<button class="gh-search">{{> "icons/search"}}</button>
|
||||||
<div class="gh-social">
|
<div class="gh-social">
|
||||||
{{#if @site.facebook}}
|
{{#if @site.facebook}}
|
||||||
<a class="gh-social-link gh-social-facebook" href="{{facebook_url @site.facebook}}" title="Facebook" target="_blank" rel="noopener">{{> "icons/facebook"}}</a>
|
<a class="gh-social-link gh-social-facebook" href="{{facebook_url @site.facebook}}" title="Facebook" target="_blank" rel="noopener">{{> "icons/facebook"}}</a>
|
||||||
|
1
partials/icons/search.hbs
Normal file
1
partials/icons/search.hbs
Normal file
@ -0,0 +1 @@
|
|||||||
|
<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2" width="20" height="20"><path stroke-linecap="round" stroke-linejoin="round" d="M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z"></path></svg>
|
After Width: | Height: | Size: 248 B |
Loading…
Reference in New Issue
Block a user