Skip to content
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

ARXIVNG-1901 apply layout fixes for search results display #229

Merged
merged 1 commit into from
Feb 26, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Pipfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ name = "pypi"

[packages]
arxiv-auth = "==0.2.7"
arxiv-base = "==0.12.1"
arxiv-base = "==0.14.3"
boto = "==2.48.0"
"boto3" = "==1.6.6"
botocore = "==1.9.6"
Expand Down
47 changes: 8 additions & 39 deletions Pipfile.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

11 changes: 5 additions & 6 deletions search/static/css/search.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion search/static/css/search.css.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

11 changes: 5 additions & 6 deletions search/static/sass/search.sass
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,11 @@

.pagination-list
margin: 0 !important
li
list-style: none
margin-bottom: 0
li + li // fixes override from content li + li
margin: 0

.breathe-vertical
margin-top: 4rem
Expand All @@ -44,12 +49,6 @@
margin-left: 10rem !important
margin-right: 10rem !important

.pagination-list li
list-style: none

.pagination-list li + li // fixes override from content li + li
margin: 0

.fieldset
border: 1px solid #DBDBDB // $grey-lighter
border-radius: 2px // $radius-small
Expand Down
4 changes: 2 additions & 2 deletions search/templates/search/base.html
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ <h1 class="title is-clearfix">{% block title %}Search{% endblock title %}</h1>
<button class="button is-small" id="feedback-button">Feedback?</button>
</div>
</div>
<content>
<div class="content">
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

sad to see HTML5 rejected the semantic elements: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/content

Learned from a PR though! 🎉

{% block within_content %}
Specific results here
{% endblock within_content %}
Expand All @@ -56,5 +56,5 @@ <h1 class="title is-clearfix">{% block title %}Search{% endblock title %}</h1>
<span class="help" style="display: inline-block;"><a href="{{ config.RELEASE_NOTES_URL }}">{{ config.RELEASE_NOTES_TEXT }}</a>&nbsp;&nbsp;</span>
<button class="button is-small" id="feedback-button">Feedback?</button>
</div>
</content>
</div>
{% endblock content %}