discourse/plugins/chat/assets/stylesheets/common/chat-height-mixin.scss

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

21 lines
471 B
SCSS
Raw Normal View History

@mixin chat-height($inset: 0px) {
// desktop and mobile
height: calc(
var(--chat-vh, 1vh) * 100 - var(--header-offset, 0px) -
var(--composer-height, 0px)
);
// mobile with keyboard opened
.keyboard-visible & {
height: calc(var(--chat-vh, 1vh) * 100 - var(--header-offset, 0px));
}
// ipad
.footer-nav-ipad & {
height: calc(
var(--chat-vh, 1vh) * 100 - var(--header-offset, 0px) -
var(--composer-height, 0px)
);
}
}