hexo-theme-amane/layout/search/swiftype.ejs

26 lines
1.1 KiB
Plaintext

<script type="text/javascript">
(function(w,d,t,u,n,s,e) {w['SwiftypeObject']=n;w[n]=w[n]||function() {
(w[n].q=w[n].q||[]).push(arguments);};s=d.createElement(t);
e=d.getElementsByTagName(t)[0];s.async=1;s.src=u;e.parentNode.insertBefore(s,e);
})(window,document,'script','//s.swiftypecdn.com/install/v2/st.js','_st');
_st('install','<%= theme.search.swiftype %>','2.0.0');
</script>
<style>
.st-ui-injected-overlay-container,
.st-ui-injected-overlay-container *:not(select) {
font-family: inherit !important;
}
section.st-ui-content.st-search-results a.st-ui-result .st-ui-type-heading {
color: <%= theme.customize.theme_color %> !important;
}
.st-ui-injected-overlay-container .st-ui-header input[type="text"]:focus {
border-bottom: 2px solid <%= theme.customize.theme_color %>;
}
.st-ui-injected-overlay-container .st-ui-footer a.st-ui-pagination-link {
color: <%= theme.customize.theme_color %>;
}
.st-ui-injected-overlay-container .st-ui-footer a.st-ui-pagination-link span.st-ui-arrow {
border-color: <%= theme.customize.theme_color %>;
}
</style>