iOS: Center images in bubble, shrink bubble down to image size
This commit is contained in:
parent
5af5bbdb0f
commit
6a4acc813c
1 changed files with 29 additions and 13 deletions
|
@ -286,26 +286,39 @@ $ios-border-color: rgba(0,0,0,0.1);
|
||||||
clear: both;
|
clear: both;
|
||||||
}
|
}
|
||||||
|
|
||||||
.outgoing .with-tail.tail-wrapper {
|
.outgoing .tail-wrapper {
|
||||||
float: right;
|
float: right;
|
||||||
|
|
||||||
.inner-bubble {
|
.inner-bubble {
|
||||||
.attachments {
|
|
||||||
background-color: $blue;
|
|
||||||
}
|
|
||||||
.content {
|
|
||||||
background-color: $blue;
|
|
||||||
}
|
|
||||||
max-width: 100%;
|
max-width: 100%;
|
||||||
&, .body, a {
|
}
|
||||||
@include invert-text-color;
|
}
|
||||||
}
|
|
||||||
|
.incoming .tail-wrapper {
|
||||||
|
float: left;
|
||||||
|
|
||||||
|
.inner-bubble {
|
||||||
|
max-width: 100%;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// We don't add a background to the attachments div unless there's also text. The
|
||||||
|
// browser doesn't always clip the border-radius properly, so we get a partial-pixel
|
||||||
|
// halo effect.
|
||||||
|
.outgoing .with-tail.tail-wrapper {
|
||||||
|
.attachments {
|
||||||
|
background-color: $blue;
|
||||||
|
}
|
||||||
|
.content {
|
||||||
|
background-color: $blue;
|
||||||
|
}
|
||||||
|
|
||||||
|
&, .body, a {
|
||||||
|
@include invert-text-color;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.incoming .with-tail.tail-wrapper {
|
.incoming .with-tail.tail-wrapper {
|
||||||
float: left;
|
|
||||||
|
|
||||||
&:before {
|
&:before {
|
||||||
left: -1px;
|
left: -1px;
|
||||||
background-color: white;
|
background-color: white;
|
||||||
|
@ -317,7 +330,6 @@ $ios-border-color: rgba(0,0,0,0.1);
|
||||||
.inner-bubble {
|
.inner-bubble {
|
||||||
background-color: white;
|
background-color: white;
|
||||||
color: black;
|
color: black;
|
||||||
max-width: 100%;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -338,6 +350,10 @@ $ios-border-color: rgba(0,0,0,0.1);
|
||||||
a {
|
a {
|
||||||
border-radius: 15px;
|
border-radius: 15px;
|
||||||
}
|
}
|
||||||
|
img {
|
||||||
|
margin-right: auto;
|
||||||
|
margin-left: auto;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
.hourglass {
|
.hourglass {
|
||||||
@include hourglass(#999);
|
@include hourglass(#999);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue