Skip to content
This repository has been archived by the owner on Sep 5, 2019. It is now read-only.

Commit

Permalink
Improves person portrait display on mobile devices
Browse files Browse the repository at this point in the history
  • Loading branch information
Denis Krienbühl committed Apr 2, 2019
1 parent d841ed1 commit 2a03a7e
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 6 deletions.
3 changes: 3 additions & 0 deletions HISTORY.rst
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
Changelog
---------

- Improves person portrait display on mobile devices.
[href]

- Fixes date-error when returning to a datetime-picker on Safari.
[href]

Expand Down
19 changes: 13 additions & 6 deletions onegov/org/theme/styles/org.scss
Original file line number Diff line number Diff line change
Expand Up @@ -2188,6 +2188,8 @@ $person-email-icon: '\f003';
.person-card-portrait {
float: none;
margin-bottom: 1em;
width: calc(100vw - 3rem);
height: calc(100vw - 3rem);
}
}
}
Expand All @@ -2197,10 +2199,10 @@ $person-email-icon: '\f003';
*/

.person-list-card {
.person-card-portrait {
@include circle;
display: flex;

height: 5rem; // enough to show three lines of text
.person-card-portrait {
height: 5rem;
text-align: center;
width: 5rem;

Expand All @@ -2210,15 +2212,15 @@ $person-email-icon: '\f003';
}

> a {
float: left;
margin-right: 1em;
}

ul {
float: left;

> li {
font-size: .875rem;
max-width: calc(100vw - 7.5rem);
overflow: hidden;
text-overflow: ellipsis;
}
}

Expand Down Expand Up @@ -3351,6 +3353,11 @@ ul.search-results {
h2 {
border-bottom: 1px solid $gray-pastel;
}

ul {
margin-left: 0;
list-style: none;
}
}

@media #{$large-only} {
Expand Down

0 comments on commit 2a03a7e

Please sign in to comment.