mirror of
https://github.com/discourse/discourse.git
synced 2025-02-08 04:20:27 +08:00
adjust img width to auto ONLY ON REPLY EXPANSIONS
This commit is contained in:
parent
d13d42f3f6
commit
04682335d4
|
@ -255,13 +255,28 @@ nav.post-controls {
|
||||||
&.bottom .arrow {float: right; margin: 0 0 0 0;}
|
&.bottom .arrow {float: right; margin: 0 0 0 0;}
|
||||||
&.bottom {
|
&.bottom {
|
||||||
margin-top: -11px;
|
margin-top: -11px;
|
||||||
|
// WARNING *ONLY* DO THIS ON REPLY EXPANSIONS!
|
||||||
|
// auto-sizing of images causes massive havoc with regular post stream
|
||||||
|
// but we have to do this on reply expansions because the width is
|
||||||
|
// unavoidably narrower than a regular post
|
||||||
|
.lightbox-wrapper img {
|
||||||
|
width: 100%;
|
||||||
|
height: auto;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// top means "in reply to expansion" above a post
|
// top means "in reply to expansion" above a post
|
||||||
&.top {
|
&.top {
|
||||||
margin-left: 56px;
|
margin-left: 56px;
|
||||||
width: 701px;
|
width: 701px;
|
||||||
|
// WARNING *ONLY* DO THIS ON REPLY EXPANSIONS!
|
||||||
|
// auto-sizing of images causes massive havoc with regular post stream
|
||||||
|
// but we have to do this on reply expansions because the width is
|
||||||
|
// unavoidably narrower than a regular post
|
||||||
|
.lightbox-wrapper img {
|
||||||
|
width: 100%;
|
||||||
|
height: auto;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
&.top.topic-body {padding-left: 0; padding-right: 0;}
|
&.top.topic-body {padding-left: 0; padding-right: 0;}
|
||||||
.post-date {color: scale-color($primary, $lightness: 50%);}
|
.post-date {color: scale-color($primary, $lightness: 50%);}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user