-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #19 from OP-TED/searchEnabled
Search enabled
- Loading branch information
Showing
2 changed files
with
173 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,172 @@ | ||
.navbar-brand .navbar-item + .navbar-item { | ||
/* flex-grow: 1; */ | ||
justify-content: flex-end; | ||
} | ||
|
||
@media screen and (min-width: 1024px) { | ||
.navbar-brand { | ||
flex-grow: 0; | ||
} | ||
|
||
.navbar-menu { | ||
flex-grow: 0; | ||
} | ||
} | ||
|
||
#search-input { | ||
color: #333; | ||
font-family: inherit; | ||
font-size: 0.95rem; | ||
width: 150px; | ||
border: 1px solid #dbdbdb; | ||
border-radius: 0.1em; | ||
line-height: 1.5; | ||
padding: 0 0.25em; | ||
height: 38px; | ||
margin-right: 25px; | ||
} | ||
|
||
@media screen and (min-width: 769px) { | ||
#search-input { | ||
width: 400px; | ||
} | ||
} | ||
|
||
.search-result-frame { | ||
display: flex; | ||
flex-direction: column; | ||
overflow: hidden; | ||
height: calc(100vh - 4rem); | ||
border-radius: 0 0 6px 6px; | ||
border: 1px solid #d9d9d9; | ||
} | ||
|
||
.search-result-dropdown-menu { | ||
position: absolute; | ||
z-index: 100; | ||
display: block; | ||
right: 0.5rem; | ||
left: inherit; | ||
top: 100%; | ||
border-radius: 4px; | ||
margin: 6px 0 0; | ||
padding: 0; | ||
text-align: left; | ||
height: auto; | ||
background: transparent; | ||
border: none; | ||
max-width: 600px; | ||
min-width: 500px; | ||
box-shadow: 0 1px 0 0 rgba(0, 0, 0, 0.2), 0 2px 3px 0 rgba(0, 0, 0, 0.1); | ||
} | ||
|
||
@media screen and (max-width: 768px) { | ||
.navbar-brand .navbar-item + .navbar-item { | ||
padding-left: 0; | ||
padding-right: 0; | ||
} | ||
|
||
.search-result-dropdown-menu { | ||
min-width: calc(100vw - 3.75rem); | ||
} | ||
} | ||
|
||
.search-result-dataset { | ||
position: relative; | ||
border-top: 1px solid #d9d9d9; | ||
background: #fff; | ||
overflow: auto; | ||
padding: 0 8px 8px; | ||
color: #333; | ||
flex-grow: 1; | ||
} | ||
|
||
.search-filter { | ||
position: relative; | ||
background: #fafafa; | ||
padding: 0 8px 8px; | ||
font-size: 0.8em; | ||
color: #02060c; | ||
font-weight: normal; | ||
} | ||
|
||
.search-filter span { | ||
display: inline-block; | ||
} | ||
|
||
.search-filter-component { | ||
margin: 2px 8px 2px 4px; | ||
white-space: nowrap; | ||
display: inline-block; | ||
vertical-align: middle; | ||
} | ||
|
||
.search-filter-component input { | ||
vertical-align: middle; | ||
} | ||
|
||
.search-result-highlight { | ||
color: #174d8c; | ||
background: rgba(143, 187, 237, 0.1); | ||
padding: 0.1em 0.05em; | ||
} | ||
|
||
.search-result-item { | ||
display: flex; | ||
font-size: 1rem; | ||
margin-bottom: 0.5rem; | ||
margin-top: 0.5rem; | ||
} | ||
|
||
.search-result-group { | ||
width: auto; | ||
clear: both; | ||
color: #a4a7ae; | ||
font-size: 1rem; | ||
padding: 0.25rem 0.5rem 0.25rem 0; | ||
font-weight: bold; | ||
text-align: left; | ||
position: relative; | ||
word-wrap: break-word; | ||
border-bottom: 1px solid #ddd; | ||
} | ||
|
||
.search-result-document-title { | ||
width: 33%; | ||
border-right: 1px solid #ddd; | ||
color: #a4a7ae; | ||
font-size: 0.8rem; | ||
padding: 0.25rem 0.5rem 0.25rem 0; | ||
text-align: right; | ||
position: relative; | ||
word-wrap: break-word; | ||
} | ||
|
||
.search-result-document-hit { | ||
flex: 1; | ||
font-size: 0.75em; | ||
color: #02060c; | ||
font-weight: normal; | ||
} | ||
|
||
.search-result-document-hit-section { | ||
font-weight: bold; | ||
} | ||
|
||
.search-result-document-hit > a { | ||
color: inherit; | ||
display: block; | ||
padding: 0.5rem 0 0.5rem 1rem; | ||
margin-bottom: 0.25rem; | ||
} | ||
|
||
.search-result-document-hit > a:hover { | ||
background-color: rgba(69, 142, 225, 0.05); | ||
} | ||
|
||
.sticky { | ||
position: sticky; | ||
top: 0; | ||
background-color: #fff; | ||
z-index: 1000; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,3 +15,4 @@ | |
@import "footer.css"; | ||
@import "highlight.css"; | ||
@import "print.css"; | ||
@import "search.css"; |