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.

25 lines
628 B
SCSS
Raw Normal View History

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