mirror of
https://github.com/reddit-archive/reddit.git
synced 2026-04-27 03:00:12 -04:00
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:
@@ -84,6 +84,11 @@
|
||||
display: flex;
|
||||
}
|
||||
|
||||
.align-items(@props) {
|
||||
-webkit-align-items: @props;
|
||||
align-items: @props;
|
||||
}
|
||||
|
||||
.clearfix() {
|
||||
&:before,
|
||||
&:after {
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user