-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Redesigned UI of sort options into dropdown menu in /search * Reimplemented dropdown menu closer to cta-btn and added CSS component * Create sort-dropper.less * Added i18n internationalization support for dropdown text and CSS changes * Added CSS style revisions to better understand sort option selection * Swapped dropdown menu caret icons to stay consistent with Want to Read dropdown --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: rebecca shoptaw <[email protected]> Co-authored-by: Mek <[email protected]>
- Loading branch information
1 parent
77c16d5
commit 8bc0338
Showing
6 changed files
with
197 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -99,7 +99,7 @@ | |
}, | ||
{ | ||
"path": "static/build/page-user.css", | ||
"maxSize": "28KB" | ||
"maxSize": "30KB" | ||
} | ||
] | ||
} |
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
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,118 @@ | ||
.sort-dropper { | ||
display: inline-flex; | ||
} | ||
|
||
.sort-content { | ||
display: flex; | ||
background: @white; | ||
} | ||
|
||
.sort-content-inner { | ||
display: flex; | ||
flex-direction: column; | ||
position: absolute; | ||
margin-top: 10px; | ||
background-color: @lightest-grey; | ||
border: 1px solid; | ||
border-radius: 5px; | ||
border-color: @light-grey; | ||
z-index: @z-index-level-1; | ||
|
||
a { | ||
text-decoration: none; | ||
color: @grey; | ||
padding-right: 25px; | ||
border: 2px solid transparent; | ||
|
||
&:link, | ||
&:visited { | ||
color: @black; | ||
} | ||
|
||
&:hover { | ||
color: @grey; | ||
border-color: @primary-blue; | ||
} | ||
|
||
&.sort-selected::before { | ||
color: @grey; | ||
padding-right: 5px; | ||
} | ||
|
||
&.sort-subsort-selected::before { | ||
color: @grey; | ||
padding-right: 5px; | ||
} | ||
} | ||
|
||
a::before { | ||
content: "✓"; | ||
margin: 5px 10px; | ||
color: transparent; | ||
} | ||
|
||
a.sort-subsort { | ||
padding-left: 20px; | ||
|
||
&::before { | ||
content: "✓"; | ||
margin: 5px 10px; | ||
color: transparent; | ||
} | ||
|
||
&-selected { | ||
padding-left: 20px; | ||
padding-right: 10px; | ||
color: @grey; | ||
} | ||
} | ||
|
||
} | ||
|
||
.sort details { | ||
border-radius: 5px; | ||
background: @lightest-grey; | ||
border: 1px solid; | ||
border-color: @mid-grey; | ||
|
||
summary { | ||
font-size: 1rem; | ||
color: @black; | ||
display: inline-flex; | ||
list-style-type: none; | ||
cursor: pointer; | ||
align-items: center; | ||
justify-content: center; | ||
text-align: center; | ||
} | ||
|
||
summary p { | ||
padding: 2px 10px; | ||
margin: 0; | ||
border-right: 1px solid; | ||
border-color: @gray-d1cfd0; | ||
} | ||
|
||
&[open] { | ||
background: @lighter-grey; | ||
} | ||
} | ||
|
||
.sort details summary img { | ||
margin-left: 10px; | ||
} | ||
|
||
.sort details summary::after { | ||
content: "▾"; | ||
color: @dark-grey; | ||
padding: 2px 10px; | ||
} | ||
|
||
.sort details[open] summary::after { | ||
content: "▴"; | ||
} | ||
|
||
.sort-random-shuffle { | ||
display: inline-flex; | ||
padding: 5px; | ||
} |
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