fixes for custom titlebar

pull/1769/head
antelle 2021-03-06 11:35:14 +01:00
parent b03cb4590f
commit 762aab397d
No known key found for this signature in database
GPG Key ID: 63C9777AAB7C563C
10 changed files with 17 additions and 7 deletions

View File

@ -47,7 +47,7 @@
}
.titlebar-custom.titlebar-hidden &,
.titlebar-custom.titlebar-hidden-inset & {
padding-top: $custom-titlebar-height;
padding-top: $titlebar-custom-height;
}
.fullscreen .app & {
padding-top: 0;
@ -127,9 +127,7 @@
display: flex;
}
}
.titlebar-custom & {
margin-top: $custom-titlebar-height;
}
@include padding-if-titlebar;
}
&__panel {

View File

@ -9,6 +9,7 @@
user-select: none;
overflow: hidden;
position: relative;
@include padding-if-titlebar;
> .scroller {
flex: 1;

View File

@ -9,6 +9,7 @@
user-select: none;
overflow: hidden;
position: relative;
@include padding-if-titlebar;
> .scroller {
flex: 1;

View File

@ -3,6 +3,8 @@
display: flex;
flex-direction: column;
flex: 1;
position: relative;
@include padding-if-titlebar;
&__body {
@include scrollbar-on-hover;

View File

@ -8,6 +8,7 @@
@include scrollbar-on-hover;
overflow: hidden;
position: relative;
@include padding-if-titlebar;
&__content {
margin: $medium-padding;

View File

@ -7,6 +7,7 @@
width: 100%;
user-select: none;
padding: $medium-padding;
@include padding-if-titlebar;
&__space {
flex: 1;

View File

@ -7,7 +7,7 @@
left: 0;
width: 100vw;
display: flex;
height: $custom-titlebar-height;
height: $titlebar-custom-height;
}
&__logo {
@ -24,7 +24,7 @@
> .fa {
font-size: 16px;
padding: 4px 16px;
height: $custom-titlebar-height;
height: $titlebar-custom-height;
box-sizing: border-box;
&:hover {
background: var(--titlebar-button-background-color);

View File

@ -86,5 +86,5 @@ $tablet-width: 736px;
$mobile-width: 620px;
// Title bar and window buttons
$custom-titlebar-height: 32px;
$titlebar-custom-height: 32px;
$titlebar-close-button-background-color: #d71525;

View File

@ -0,0 +1,5 @@
@mixin padding-if-titlebar {
.titlebar-custom & {
margin-top: $titlebar-custom-height;
}
}

View File

@ -23,6 +23,7 @@ $fa-font-path: '~font-awesome/fonts';
@import 'common/modal';
@import 'common/scroll';
@import 'common/tip';
@import 'common/titlebar';
@import 'areas/app';
@import 'areas/auto-type';