Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,6 @@
@use '@siemens/element-theme/src/styles/all-variables';

.app-switcher {
position: fixed;
inset-block-start: calc(
variables.$si-application-header-height + 1px /* header border compensation */ +
variables.$si-titlebar-spacing + variables.$si-system-banner-spacing
);
inset-inline: 0;
min-block-size: 200px;
max-block-size: calc(
100vh - variables.$si-application-header-height - variables.$si-titlebar-spacing -
Expand All @@ -17,7 +11,6 @@
padding: map.get(variables.$spacers, 6);
display: flex;
flex-direction: column;
z-index: variables.$zindex-launchpad;
background-color: variables.$element-base-1;

@include all-variables.media-breakpoint-up(lg) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,13 +51,14 @@
</header>

@if (launchpadOpen() && launchpad()) {
<div [id]="id + '-launchpad'">
<div class="launchpad-container" animate.leave="launchpad-leave" [id]="id + '-launchpad'">
<ng-template [ngTemplateOutlet]="launchpad()!" [ngTemplateOutletInjector]="injector" />
</div>
}

@if (openDropdownCount() || launchpadOpen()) {
<div
animate.leave="backdrop-leave"
[class]="`modal-backdrop ${launchpadOpen() ? 'd-block' : `d-${expandBreakpoint()}-none`}`"
(click)="backdropClicked()"
></div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,40 @@

.modal-backdrop {
z-index: variables.$zindex-application-header-backdrop;
opacity: 1;
transition: opacity variables.element-transition-duration(0.15s) linear;

@starting-style {
opacity: 0;
}

&.backdrop-leave {
opacity: 0;
}
}

.launchpad-container {
position: fixed;
inset-inline: 0;
inset-block-start: calc(
variables.$si-application-header-height + 1px /* header border compensation */ +
variables.$si-titlebar-spacing + variables.$si-system-banner-spacing
);
z-index: variables.$zindex-launchpad;
opacity: 1;
transform: translateY(0);
transition:
opacity variables.element-transition-duration(0.5s) ease,
transform variables.element-transition-duration(0.5s) ease;

@starting-style {
opacity: 0;
transform: translateY(-120px);
}

&.launchpad-leave {
opacity: 0;
transform: translateY(-120px);
transition-duration: variables.element-transition-duration(0.25s);
}
}
2 changes: 1 addition & 1 deletion projects/element-theme/src/styles/variables/_zindex.scss
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,5 @@ $zindex-sidepanel-responsive: $zindex-fixed + 1; // above vertical-nav
$zindex-vertical-nav: $zindex-fixed + 1;
$zindex-vertical-nav-collapsed: $zindex-fixed;
$zindex-application-header: $zindex-fixed + 3;
$zindex-launchpad: $zindex-application-header;
$zindex-launchpad: $zindex-application-header - 1;
$zindex-application-header-backdrop: $zindex-launchpad - 1;
Loading