mirror of
https://github.com/discourse/discourse.git
synced 2024-12-11 21:44:08 +08:00
29 lines
800 B
SCSS
29 lines
800 B
SCSS
@mixin chat-height($inset: 0px) {
|
|
// desktop and mobile
|
|
height: calc(
|
|
var(--chat-vh, 1vh) * 100 - var(--header-offset, 0px) -
|
|
var(--chat-draft-header-height, 0px) -
|
|
var(--chat-direct-message-creator-height, 0px) -
|
|
var(--composer-height, 0px) - $inset
|
|
);
|
|
|
|
// mobile with keyboard opened
|
|
.keyboard-visible & {
|
|
height: calc(
|
|
var(--chat-vh, 1vh) * 100 - var(--header-offset, 0px) -
|
|
var(--chat-draft-header-height, 0px) -
|
|
var(--chat-direct-message-creator-height, 0px)
|
|
);
|
|
}
|
|
|
|
// ipad
|
|
.footer-nav-ipad & {
|
|
height: calc(
|
|
var(--chat-vh, 1vh) * 100 - var(--header-offset, 0px) -
|
|
var(--chat-draft-header-height, 0px) -
|
|
var(--chat-direct-message-creator-height, 0px) -
|
|
var(--composer-height, 0px)
|
|
);
|
|
}
|
|
}
|