Sharing: Handle narrow screens better.

When screens get narrow, the 'Share with:' label starts to wrap to two lines.
Since this is a translated string, we can't really just set a minimum width on
it and expect it to always work, but we can handle the wrapping case better.

This reduces the line-height to look less terrible, and keeps the labels
centered with the rest of the content when they need to wrap.
This commit is contained in:
Matt Lee
2015-06-10 11:44:27 -07:00
parent 82fac18ec3
commit 2e0292af16
2 changed files with 6 additions and 1 deletions

View File

@@ -84,6 +84,11 @@
display: flex;
}
.align-items(@props) {
-webkit-align-items: @props;
align-items: @props;
}
.clearfix() {
&:before,
&:after {

View File

@@ -49,6 +49,7 @@
display: block;
.c-form-group {
.align-items(center);
.display-flex();
> * {
@@ -57,7 +58,6 @@
> .post-sharing-label {
.flex(0 0 20%);
line-height: @post-sharing-icon-size + (@margin-small * 1px);
padding-right: @margin-small * 1px;
text-align: right;
}