-
Notifications
You must be signed in to change notification settings - Fork 79
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
Center and size officer profile pictures #974
Changes from all commits
5d1e9e2
519a9c3
a51f3aa
bb91c3d
67b5120
d40676f
a8b17ed
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -585,10 +585,42 @@ tr:hover .row-actions { | |
} | ||
|
||
.officer-face { | ||
border: none; | ||
height: 300px; | ||
margin: auto; | ||
} | ||
|
||
.officer-face.officer-profile { | ||
display: block; | ||
} | ||
Comment on lines
+593
to
+595
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. this looks as a great way to show the problem in a way that the "before" screenshot didn't above. |
||
|
||
@media (min-width: 992px) { | ||
.officer-face.officer-profile { | ||
height: 510px; | ||
} | ||
} | ||
Comment on lines
+597
to
+601
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
||
|
||
@media (min-width: 768px) and (max-width: 991px) { | ||
.officer-face.officer-profile { | ||
height: 590px; | ||
} | ||
} | ||
Comment on lines
+603
to
+607
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
||
|
||
@media (max-width: 767px) { | ||
.officer-face.officer-profile { | ||
height: 460px; | ||
padding-bottom: 10px; | ||
} | ||
} | ||
Comment on lines
+609
to
+614
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
||
|
||
#face-img { | ||
border: none; | ||
display: block; | ||
margin: auto; | ||
max-height: 500px; | ||
padding-bottom: 10px; | ||
} | ||
Comment on lines
+616
to
+622
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
||
|
||
.face-wrap { | ||
margin: auto; | ||
position: relative; | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,8 @@ | ||
{% for path in paths %} | ||
{# Don't try to link if only image is the placeholder #} | ||
{% if faces %}<a href="{{ url_for('main.display_tag', tag_id=faces[loop.index - 1].id) }}">{% endif %} | ||
<img class="officer-face" src="{{ path }}" alt="Submission"> | ||
<img class="officer-face officer-profile" | ||
src="{{ path }}" | ||
alt="Submission"> | ||
{% if faces %}</a>{% endif %} | ||
{% endfor %} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Before:
After: