-
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 #103 from wikimedia/ahmed-arb/search-languages
Add: search input elem in facets
- Loading branch information
Showing
4 changed files
with
45 additions
and
0 deletions.
There are no files selected for viewing
19 changes: 19 additions & 0 deletions
19
edx-platform/wikilearn/lms/static/sass/components/_refine-sidebar.scss
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,19 @@ | ||
.facet-header-container{ | ||
display: flex; | ||
flex-direction: row; | ||
justify-content: space-between; | ||
width: 100%; | ||
border-top: 1px solid $gray-l4; | ||
|
||
.lng-srch-facet-input { | ||
margin: ($baseline/4) !important; | ||
} | ||
} | ||
|
||
.facet-list{ | ||
ul{ | ||
max-height: ($baseline*1.5)*5; | ||
overflow: hidden; | ||
overflow-y:scroll; | ||
} | ||
} |
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
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
23 changes: 23 additions & 0 deletions
23
edx-platform/wikilearn/lms/templates/discovery/facet.underscore
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,23 @@ | ||
<div class=".facet-container"> | ||
<div class="facet-header-container"> | ||
<h3 class="header-facet"> | ||
<%- displayName %> | ||
</h3> | ||
<% if (listIsHuge) { %> | ||
<input type="text" id="lng-srch-facet-input", class="lng-srch-facet-input" placeholder="Search..." /> | ||
<% } %> | ||
</div> | ||
<ul data-facet="<%- name %>" class="facet-list collapse"> | ||
<%= HtmlUtils.ensureHtml(optionsHtml) %> | ||
</ul> | ||
</div> | ||
<% if (listIsHuge) { %> | ||
<div class="toggle "> | ||
<button class="show-more discovery-button"> | ||
<%- gettext("More") %> | ||
</button> | ||
<button class="show-less hidden discovery-button"> | ||
<%- gettext("Less") %> | ||
</button> | ||
</div> | ||
<% } %> |