render () {
const { media, intl, sensitive, letterbox, fullwidth } = this.props;
const { visible } = this.state;
+ const size = media.take(4).size;
let children;
</button>
);
} else {
- const size = media.take(4).size;
-
if (this.isStandaloneEligible()) {
children = <Item standalone onClick={this.handleClick} attachment={media.get(0)} />;
} else {
}
return (
- <div className={`media-gallery ${fullwidth ? 'full-width' : ''}`}>
+ <div className={`media-gallery size-${size} ${fullwidth ? 'full-width' : ''}`}>
<div className={classNames('spoiler-button', { 'spoiler-button--visible': visible })}>
<IconButton title={intl.formatMessage(messages.toggle_visible)} icon={visible ? 'eye' : 'eye-slash'} overlay onClick={this.handleOpen} />
</div>
@import 'variables';
-@mixin fullwidth-gallery {
- &.full-width {
- margin-left: -22px;
- margin-right: -22px;
- width: inherit;
- }
-}
-
.app-body {
-webkit-overflow-scrolling: touch;
-ms-overflow-style: -ms-autohiding-scrollbar;
.getting-started {
box-sizing: border-box;
padding-bottom: 235px;
- background: url('../images/mastodon-getting-started.png') no-repeat 0 100%;
+ background: url('~images/mastodon-getting-started.png') no-repeat 0 100%;
flex: 1 0 auto;
p {
justify-content: center;
& > div {
- background: url('../images/mastodon-not-found.png') no-repeat center -50px;
+ background: url('~images/mastodon-not-found.png') no-repeat center -50px;
padding-top: 210px;
width: 100%;
}
z-index: 100;
display: flex;
flex-direction: column;
+ align-items: stretch;
.status__content > & {
margin-top: 15px; // Add margin when used bare for NSFW video player
img,
canvas {
display: block;
- background: url('../images/void.png') repeat;
+ background: url('~images/void.png') repeat;
object-fit: contain;
}
}
.onboarding-modal__page-one__elephant-friend {
- background: url('../images/elephant-friend-1.png') no-repeat center center / contain;
+ background: url('~images/elephant-friend-1.png') no-repeat center center / contain;
width: 155px;
height: 193px;
margin-right: 15px;
position: relative;
background: $base-shadow-color;
width: 100%;
+ height: 110px;
.detailed-status & {
- margin-left:-10px;
- width: calc(100% + 22px);
+ margin-left: -12px;
+ width: calc(100% + 24px);
+ height: 250px;
}
@include fullwidth-gallery;
overflow: hidden;
position: relative;
background: $base-shadow-color;
+ width: 100%;
max-width: 100%;
+ height: 110px;
+
+ .detailed-status & {
+ margin-left: -12px;
+ width: calc(100% + 24px);
+ height: 250px;
+ }
+
+ @include fullwidth-gallery;
video {
height: 100%;
@import 'mixins';
@import 'variables';
-@import 'fonts/roboto';
-@import 'fonts/roboto-mono';
-@import 'fonts/montserrat';
+@import 'styles/fonts/roboto';
+@import 'styles/fonts/roboto-mono';
+@import 'styles/fonts/montserrat';
@import 'reset';
@import 'basics';