-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(search): Add layout to filter sidebar #287
* create scss component _filters.scss and move filter styles from search.scss to it
- Loading branch information
1 parent
c6bfcb9
commit c373eaa
Showing
4 changed files
with
61 additions
and
45 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
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,46 @@ | ||
/* Filters -------------- */ | ||
|
||
.hsg-search-inputs-vertical { | ||
@extend .c-inputs-stacked; | ||
margin: 1rem 0; | ||
.hsg-search-input-label { | ||
@extend .c-input; | ||
} | ||
} | ||
|
||
.hsg-search-inputs-horizontal { | ||
margin-bottom: 1em; | ||
|
||
.hsg-search-input { | ||
cursor: pointer; | ||
display: inline-block; | ||
margin-right: $margin-horizontal-base; | ||
} | ||
|
||
input[type="checkbox"] { | ||
cursor: pointer; | ||
margin: 0; | ||
width: 12px; | ||
height: 14px; | ||
position: relative; | ||
left: 0; | ||
vertical-align: middle; | ||
} | ||
|
||
label{ | ||
width: auto; | ||
margin: 0 0 0 5px; | ||
position: relative; | ||
left: 0; | ||
display: inline-block; | ||
vertical-align: middle; | ||
} | ||
} | ||
|
||
// Elements in sidebar on search result page | ||
.filter { | ||
&-sidebar { | ||
border-bottom: $default-border-style; | ||
margin-bottom: 2rem; | ||
} | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -30,5 +30,6 @@ | |
|
||
@import "tei-overrides"; | ||
@import "toc"; | ||
@import "filters"; | ||
@import "tei"; | ||
@import "miscellaneous"; |