layout 'modal'
before_action :authenticate_user!
+ before_action :set_body_classes
def show
@account = located_account || render(:error)
def acct_params
params.fetch(:acct, '')
end
+
+ def set_body_classes
+ @body_classes = 'modal-layout'
+ end
end
def suspended_account?
@account.suspended?
end
+
+ def set_body_classes
+ @body_classes = 'modal-layout'
+ end
end
end
def set_body_classes
- @body_classes = 'compose-standalone'
+ @body_classes = 'modal-layout compose-standalone'
end
end
@import 'mastodon/reset';
@import 'mastodon/basics';
+@import 'mastodon/modal';
@import 'mastodon/containers';
@import 'mastodon/lists';
@import 'mastodon/footer';
}
> .mastodon {
- background: url('../images/mastodon-drawer.png') no-repeat left bottom / contain;
+ background: url('../images/mastodon-ui.png') no-repeat left bottom / contain;
flex: 1;
}
}
--- /dev/null
+.modal-layout {
+ background: $ui-base-color url('../images/wave-modal.png') repeat-x bottom fixed;
+ display: flex;
+ flex-direction: column;
+ height: 100vh;
+ padding: 0;
+}
+
+.modal-layout__mastodon {
+ display: flex;
+ flex: 1;
+ flex-direction: column;
+ justify-content: flex-end;
+
+ > * {
+ flex: 1;
+ max-height: 235px;
+ background: url('../images/mastodon-ui.png') no-repeat left bottom / contain;
+ }
+}
= fa_icon 'sign-out'
.container= yield
+ .modal-layout__mastodon
+ %div
= render template: 'layouts/application'