-
-
Notifications
You must be signed in to change notification settings - Fork 3.8k
Feature/4.0 dev a11y com finder refactor search result #30550
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
wilsonge
merged 29 commits into
joomla:4.0-dev
from
hans2103:feature/4.0-dev-a11y--com_finder-refactor-search-result
Sep 15, 2020
Merged
Changes from all commits
Commits
Show all changes
29 commits
Select commit
Hold shift + click to select a range
53c3728
reduce if-else construction
hans2103 89edb19
move mime to span element using font-awesome instead of image
hans2103 a7088c9
rename className of li to result__item
hans2103 068820e
replace header block by paragraph. No heading element needed
hans2103 b9fd201
adjust className result__url
hans2103 aab0999
adjust className result__date and add datetime attribute
hans2103 fd9a1dc
rename className result__description
hans2103 9a7389b
put result taxonomy in a ul
hans2103 965e725
set className to taxonomy list item
hans2103 67e9cf6
remove badge styling and put type in a span.
hans2103 3d07fa4
if all is wrapped in <?php ?> why not this part
hans2103 11ffa0a
codestyle indent
hans2103 33dc2b3
change UL into OL
hans2103 98454b0
apply className uniform with the rest on default_results.php
hans2103 be77a6f
add attribute start on OL to ensure multi page search results start w…
hans2103 78a2219
search result description directly after search result title
hans2103 4106787
:wastebasket: #advanced-search not used in Joomla 4
hans2103 2d11929
replace #search-query-explained by .com-finder__explained
hans2103 31557cc
:wastebasket: awesomeplete replaces autocomplete. This css is obsolete
hans2103 c809e93
:recycle: replace highlight styling. No more ugly gap around highligh…
hans2103 3509016
:wastebasket: removal obsolete css
hans2103 be4c2c8
:lipstick: styling search result item
hans2103 5b9a18d
:lipstick: styling search result page
hans2103 b2fec88
:lipstick: styling taxonomy-item
hans2103 03cac53
:recycle: refactor a search result to make it look more like Google S…
hans2103 95adf9c
fix id reference
hans2103 89c6f72
Merge branch '4.0-dev' into feature/4.0-dev-a11y--com_finder-refactor…
hans2103 22f2574
Update components/com_finder/tmpl/search/default_result.php
hans2103 0791571
equalize spacing between elements of result__item.
hans2103 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 |
|---|---|---|
| @@ -1,139 +1,127 @@ | ||
| #advanced-search { | ||
| text-align:l eft; | ||
| width: 100%; | ||
| padding: 5px 0 15px; | ||
| /** | ||
| * Styling search results page | ||
| */ | ||
| .com-finder * { | ||
| margin-bottom: 0; | ||
| } | ||
|
|
||
| #advanced-search-toggle { | ||
| cursor: pointer; | ||
| .com-finder > * + *, | ||
| .com-finder__results > * + * { | ||
| margin-top: 1.5em; | ||
| } | ||
|
|
||
| #search-query-explained { | ||
| padding: 10px 0; | ||
| /** | ||
| * Styling search explained | ||
| */ | ||
| .com-finder__explained span.term, | ||
| .com-finder__explained span.date, | ||
| .com-finder__explained span.when, | ||
| .com-finder__explained span.branch, | ||
| .com-finder__explained span.node, | ||
| .com-finder__explained span.op { | ||
| font-weight: 800; | ||
| } | ||
|
|
||
| #search-query-explained span.term, | ||
| #search-query-explained span.date, | ||
| #search-query-explained span.when, | ||
| #search-query-explained span.branch, | ||
| #search-query-explained span.node, | ||
| #search-query-explained span.op { | ||
| font-weight: bold; | ||
| .com-finder__explained span.op { | ||
| text-transform: uppercase; | ||
| } | ||
|
|
||
| #search-query-explained span.op { | ||
| text-transform: uppercase; | ||
| /** | ||
| * Styling search result items list | ||
| */ | ||
| .com-finder__results-list { | ||
| list-style: none; | ||
| padding: 0; | ||
| } | ||
|
|
||
| #search-results li.search-result .mime-pdf { | ||
| padding-left: 20px; | ||
| background: url(../../system/images/pdf_button.png) no-repeat; | ||
| /** | ||
| * Styling search result item | ||
| */ | ||
| .result__item + .result__item { | ||
| margin-top: 1.5em; | ||
| padding-top: 1.5em; | ||
| border-top: 1px solid currentColor; | ||
| } | ||
|
|
||
| #search-results .search-pagination, | ||
| #search-results .pagination, | ||
| #search-results .search-pages-counter { | ||
| clear: both; | ||
| margin: 0 auto; | ||
| .result__item > * { | ||
| margin-bottom: 0; | ||
| } | ||
|
|
||
| #highlighter-start, #highlighter-end { | ||
| display: none; | ||
| height: 0; | ||
| opacity: 0; | ||
| .result__item > * + * { | ||
| margin-top: .25em; | ||
| } | ||
|
|
||
| span.highlight { | ||
| background-color: #ffffcc; | ||
| font-weight: 900; | ||
| padding: 1px 4px; | ||
| color: #343a40; | ||
| .result__title-link { | ||
| display: flex; | ||
| flex-direction: column; | ||
| } | ||
|
|
||
| .result-taxonomy .badge { | ||
| padding: 0.45em 0.8em; | ||
| font-size: 85%; | ||
| .result__title-text { | ||
| font-size: 1.3rem; | ||
| } | ||
|
|
||
| ul.autocompleter-choices { | ||
| position: absolute; | ||
| margin: 0; | ||
| padding: 0; | ||
| list-style: none; | ||
| border: 1px solid #eee; | ||
| background-color: #fff; | ||
| border-right-color: #ddd; | ||
| border-bottom-color: #ddd; | ||
| text-align: left; | ||
| font-family: Verdana, Geneva, Arial, Helvetica, sans-serif; | ||
| z-index: 50; | ||
| .result__title-url { | ||
| order: -1; | ||
| margin-bottom: .25em; | ||
| color: hsl(0, 0%, 34%); | ||
| font-style: normal; | ||
| } | ||
|
|
||
| ul.autocompleter-choices li { | ||
| background: none; | ||
| position: relative; | ||
| padding: .1em 1.5em .1em 1em; | ||
| cursor: pointer; | ||
| font-weight: normal; | ||
| font-size: 1em; | ||
| .result__title-link:focus, | ||
| .result__title-link:hover { | ||
| text-decoration: none; | ||
| } | ||
|
|
||
| ul.autocompleter-choices li.autocompleter-selected { | ||
| background-color: #444; | ||
| color: #fff; | ||
| .result__title-link:focus .result__title-text, | ||
| .result__title-link:hover .result__title-text { | ||
| text-decoration: underline; | ||
| } | ||
|
|
||
| ul.autocompleter-choices span.autocompleter-queried { | ||
| font-weight: bold; | ||
| .result__date { | ||
| color: hsl(0, 0%, 34%); | ||
| } | ||
|
|
||
| ul.autocompleter-choices li.autocompleter-selected span.autocompleter-queried { | ||
| color: #9fcfff; | ||
| .result__date:after { | ||
| content: "-"; | ||
| } | ||
|
|
||
| .autocomplete-suggestions { | ||
| border: 1px solid #999; | ||
| background: #fff; | ||
| cursor: default; | ||
| overflow: auto; | ||
| box-shadow: 1px 4px 3px rgba(50, 50, 50, .64); | ||
| .result__taxonomy { | ||
| padding: 0; | ||
| list-style: none; | ||
| } | ||
|
|
||
| .autocomplete-suggestion { | ||
| padding: 2px 5px; | ||
| white-space: nowrap; | ||
| overflow: hidden; | ||
| .result__taxonomy-item { | ||
| display: inline-block; | ||
| } | ||
|
|
||
| .autocomplete-no-suggestion { | ||
| padding: 2px 5px; | ||
| .result__taxonomy-item + .result__taxonomy-item { | ||
| margin-left: .5em; | ||
| } | ||
|
|
||
| .autocomplete-selected { | ||
| background: #f0f0f0; | ||
| .result__taxonomy-item + .result__taxonomy-item:before { | ||
| content: "|"; | ||
| padding-right: .5em; | ||
| } | ||
|
|
||
| .autocomplete-suggestions strong { | ||
| font-weight: bold; | ||
| color: #000; | ||
| /** | ||
| * Styling search word highlight | ||
| */ | ||
| .result__item .highlight { | ||
| position: relative; | ||
| } | ||
|
|
||
| .autocomplete-group { | ||
| padding: 2px 5px; | ||
| } | ||
|
|
||
| .autocomplete-group strong { | ||
| font-weight: bold; | ||
| font-size: 16px; | ||
| color: #000; | ||
| display: block; | ||
| border-bottom: 1px solid #000; | ||
| } | ||
|
|
||
| ul#finder-filter-select-list { | ||
| top: 4em !important; | ||
| } | ||
|
|
||
| .finder-selects .inputbox { | ||
| width: 180px; | ||
| .result__item .highlight:before { | ||
| content: ''; | ||
| position: absolute; | ||
| z-index: -1; | ||
| top: 50%; | ||
| left: 50%; | ||
| -webkit-transform: translate(-50%, -50%); | ||
| -ms-transform: translate(-50%, -50%); | ||
| transform: translate(-50%, -50%); | ||
| width: calc(100% + 6px); | ||
| height: calc(100% + 2px); | ||
| background: hsla(60, 100%, 50%, .5); | ||
| pointer-events: none; | ||
| border-radius: 3px; | ||
| } |
This file contains hidden or 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 hidden or 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
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.