Skip to content

Commit

Permalink
Reader: Fix Photo Card titles getting cut off (Automattic#12891)
Browse files Browse the repository at this point in the history
* Reader: Fix Photo Card titles getting cut off

* Tweak height and bottom margin for photo card caption

* Fix spacing inconsistencies

* Fix Photo card wide in Safari
  • Loading branch information
jancavan authored Apr 12, 2017
1 parent ac7c77a commit bb77a4c
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions client/blocks/reader-post-card/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -92,28 +92,28 @@ $reader-post-card-breakpoint-small: "( max-width: 550px )";
.reader-post-card__post-details {
flex: 0 auto; // IE11 Photo card actions hidden
margin: 0;
padding-top: 11px;
padding-top: 8px;
}

.reader-post-card__title {
color: $white;
font-family: $sans;
font-size: 10px;
position: relative;
bottom: 30px;
left: 20px;
text-shadow: 0 1px rgba(0, 0, 0, 0.3);
white-space: nowrap;
width: calc( 100% - 44px );
text-overflow: ellipsis;
overflow: hidden;
z-index: z-index( 'root', '.reader-post-card__title' );
margin-bottom: -15px; // relative elements need a negative margin so they don't create bottom padding
height: 15px;
height: 19px;
white-space: nowrap;
}

.reader-post-card__title .reader-post-card__title-link {
color: $white;
display: inline;
font-size: 12px;
letter-spacing: 0.01em;
}
Expand Down Expand Up @@ -160,7 +160,7 @@ $reader-post-card-breakpoint-small: "( max-width: 550px )";
&.is-photo {

.reader-post-card__post {
margin-top: 17px;
margin-top: 16px;
}
}

Expand Down Expand Up @@ -355,7 +355,6 @@ $reader-post-card-breakpoint-small: "( max-width: 550px )";
.reader-post-card__post {
clear: both;
display: flex;
flex-wrap: wrap;
flex-direction: row;
margin-top: 14px;

Expand Down

0 comments on commit bb77a4c

Please sign in to comment.