working on single view
This commit is contained in:
Родитель
c85aaee49e
Коммит
a8faf4ae02
|
@ -86,4 +86,4 @@ function showHits () {
|
|||
|
||||
function hideHits () {
|
||||
document.getElementById('hits').style.display = 'none'
|
||||
}
|
||||
}
|
||||
|
|
|
@ -54,7 +54,7 @@ h2 .faint {
|
|||
|
||||
}
|
||||
|
||||
#search-input{
|
||||
.nav-search{
|
||||
background-color: $main-color;
|
||||
border: none;
|
||||
outline: none;
|
||||
|
@ -65,16 +65,16 @@ h2 .faint {
|
|||
margin-left: 20px;
|
||||
}
|
||||
|
||||
#search-input:focus {
|
||||
.nav-search:focus {
|
||||
background-color: white;
|
||||
color: $jumbo-bg-color;
|
||||
}
|
||||
|
||||
#search-input:focus::-webkit-input-placeholder{
|
||||
.nav-search:focus::-webkit-input-placeholder{
|
||||
color:white;
|
||||
}
|
||||
|
||||
#hits{
|
||||
.home-hits-container{
|
||||
position: absolute;
|
||||
display: none;
|
||||
justify-self: center;
|
||||
|
@ -87,10 +87,10 @@ h2 .faint {
|
|||
margin: 4.5% 1% 0 1%
|
||||
}
|
||||
|
||||
#api-hits,
|
||||
#tutorial-hits,
|
||||
#package-hits,
|
||||
#app-hits {
|
||||
.home-app-hits,
|
||||
.home-api-hits,
|
||||
.home-package-hits,
|
||||
.home-tutorial-hits {
|
||||
margin-left: 20px;
|
||||
margin-right: 20px;
|
||||
}
|
||||
|
@ -140,7 +140,7 @@ h2 .faint {
|
|||
border-top-left-radius: 2px;
|
||||
}
|
||||
|
||||
.ais-hits:first-child > div:first-child > div:first-child > .type-title{
|
||||
#hits > * > .ais-hits:first-child > div:first-child > div:first-child > .type-title{
|
||||
display:flex;
|
||||
margin-bottom: 10px;
|
||||
margin-top: 10px;
|
||||
|
|
|
@ -1,5 +1,7 @@
|
|||
<table class="table table-ruled table-full-width">
|
||||
<tr>
|
||||
<input id="search-input" placeholder="Search an API" class="filterable-list-input"></input>
|
||||
<div id="api-hits" class="api-hits-solo"></div>
|
||||
<!-- <tr>
|
||||
<th>API</th><th>Processes</th><th>Description</th>
|
||||
</tr>
|
||||
{{#each docs}}
|
||||
|
@ -10,5 +12,5 @@
|
|||
<td>{{this.description}}</td>
|
||||
</tr>
|
||||
{{/if}}
|
||||
{{/each}}
|
||||
</table>
|
||||
{{/each}} -->
|
||||
</table>
|
||||
|
|
|
@ -4,15 +4,11 @@
|
|||
<body>
|
||||
{{> header}}
|
||||
{{{body}}}
|
||||
<!-- {{#if isActive}} -->
|
||||
<!-- {{else}}
|
||||
""
|
||||
{{/if}} -->
|
||||
<div id="hits">
|
||||
<div id="app-hits"></div>
|
||||
<div id="api-hits"></div>
|
||||
<div id="package-hits"></div>
|
||||
<div id="tutorial-hits"></div>
|
||||
<div id="hits" class="home-hits-container">
|
||||
<div id="app-hits" class="home-app-hits"></div>
|
||||
<div id="api-hits" class="home-api-hits"></div>
|
||||
<div id="package-hits" class="home-package-hits"></div>
|
||||
<div id="tutorial-hits" clas="home-tutorial-hits"></div>
|
||||
</div>
|
||||
<div id="refinement-list"></div>
|
||||
{{> footer}}
|
||||
|
|
|
@ -24,7 +24,7 @@
|
|||
<a class="site-header-nav-item" href="/community">{{localized.nav.community}}</a>
|
||||
<!-- <a class="site-header-nav-item" href="/userland">{{localized.nav.userland}}</a> -->
|
||||
<a class="site-header-nav-item" href="/releases">{{localized.nav.releases}}</a>
|
||||
<input id="search-input" placeholder="Search" aria-label="search-box"></input>
|
||||
<input id="search-input" class="nav-search" placeholder="Search" aria-label="search-box"></input>
|
||||
<a class="site-header-nav-item octicon" href="https://github.com/electron" title="Github Organization">
|
||||
<span class="mega-octicon octicon-mark-github vertical-middle"></span>
|
||||
</a>
|
||||
|
|
Загрузка…
Ссылка в новой задаче