2022-06-08 22:00:32 +00:00
|
|
|
// Copyright 2022 Signal Messenger, LLC
|
|
|
|
// SPDX-License-Identifier: AGPL-3.0-only
|
|
|
|
|
|
|
|
.TitleBarContainer {
|
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
|
|
|
height: 100vh;
|
|
|
|
|
2022-07-05 16:44:53 +00:00
|
|
|
--border-color: transparent;
|
|
|
|
|
|
|
|
&--active {
|
|
|
|
--border-color: transparent;
|
|
|
|
}
|
|
|
|
|
|
|
|
border: var(--window-border) solid var(--border-color);
|
|
|
|
|
|
|
|
@mixin titlebar-position {
|
2022-06-08 22:00:32 +00:00
|
|
|
position: fixed;
|
|
|
|
top: 0;
|
|
|
|
left: 0;
|
2022-07-05 16:44:53 +00:00
|
|
|
|
2022-06-20 18:26:31 +00:00
|
|
|
width: calc(100vw * var(--zoom-factor));
|
2022-06-08 22:00:32 +00:00
|
|
|
z-index: $z-index-window-controls;
|
2022-06-20 18:26:31 +00:00
|
|
|
transform: scale(calc(1 / var(--zoom-factor)));
|
|
|
|
transform-origin: 0 0;
|
2022-07-05 16:44:53 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// Draw bottom-less border frame around titlebar to prevent border-bottom
|
|
|
|
// color from leaking to corners.
|
|
|
|
&:after {
|
|
|
|
content: '';
|
2022-07-06 16:46:33 +00:00
|
|
|
display: none;
|
2022-07-05 16:44:53 +00:00
|
|
|
|
|
|
|
@include titlebar-position;
|
|
|
|
|
|
|
|
height: calc(var(--titlebar-height) * var(--zoom-factor));
|
|
|
|
|
|
|
|
border: var(--unscaled-window-border) solid var(--border-color);
|
|
|
|
border-bottom: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
&__title {
|
|
|
|
@include titlebar-position;
|
|
|
|
border: var(--unscaled-window-border) solid transparent;
|
2022-06-08 22:00:32 +00:00
|
|
|
|
|
|
|
// This matches the inline styles of frameless-titlebar
|
|
|
|
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen,
|
|
|
|
Ubuntu, Cantarell, 'Fira Sans', 'Droid Sans', 'Helvetica Neue', Arial,
|
|
|
|
sans-serif;
|
|
|
|
|
2022-09-29 00:38:01 +00:00
|
|
|
padding-left: env(titlebar-area-x, 0);
|
2022-09-27 20:12:34 +00:00
|
|
|
|
2022-06-08 22:00:32 +00:00
|
|
|
& button {
|
|
|
|
font-family: inherit;
|
|
|
|
}
|
2022-07-05 16:44:53 +00:00
|
|
|
}
|
2022-06-23 15:40:36 +00:00
|
|
|
|
2022-07-05 16:44:53 +00:00
|
|
|
&__padding {
|
|
|
|
height: calc(var(--titlebar-height) - var(--window-border));
|
2022-06-08 22:00:32 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
&__content {
|
2022-07-19 00:23:34 +00:00
|
|
|
height: calc(100vh - var(--titlebar-height));
|
2022-06-08 22:00:32 +00:00
|
|
|
position: relative;
|
2022-08-02 17:05:51 +00:00
|
|
|
overflow: hidden;
|
2022-06-08 22:00:32 +00:00
|
|
|
}
|
|
|
|
}
|