// The global p3xr-layout.scss defines all the positional rules
// (#p3xr-layout-header-container, #p3xr-layout-footer-container, etc.)
// via src/injector.scss — no duplication needed here.
@use '../../scss/vars' as v;
// Host element: block so header+footer fixed divs overlay the page correctly.
:host {
display: block;
}
// Flex spacer used in both header and footer toolbars.
.p3xr-layout-spacer {
flex: 1 1 auto;
}
.p3xr-layout-content, .p3xr-layout-content-electron {
position: absolute;
left: 0px;
right: 0px;
margin-bottom: v.$toolbar-height;
}
#p3xr-layout-header-version {
position: fixed;
top: 35px;
left: 20px;
width: 120px;
text-align: right;
z-index: 3;
font-size: 10px;
line-height: 1;
opacity: 0.7;
pointer-events: none;
}
.p3xr-layout-content-electron {
}
.p3xr-layout-content {
padding: v.$layout-padding;
padding-bottom: 0px !important;
margin-top: v.$toolbar-height;
}
// Active navigation button highlight
.p3xr-nav-active.mat-mdc-button {
background-color: rgba(255, 255, 255, 0.1) !important;
}
// Toolbar icon buttons: fix icon centering and rectangular hover
.mat-toolbar .mat-mdc-icon-button {
border-radius: 4px !important;
.mat-icon {
margin: 0 !important;
}
.mat-mdc-button-persistent-ripple {
border-radius: 4px !important;
}
}
// Active navigation button highlight
.p3xr-nav-active {
background-color: rgba(255, 255, 255, 0.1) !important;
border-radius: 4px !important;
}
#p3xr-layout-header-container {
top: 0px;
}
#p3xr-layout-footer-container {
bottom: 0px;
}
#p3xr-layout-header-container, #p3xr-layout-footer-container {
position: fixed;
z-index: 2;
left: 0px;
width: 100%;
}
// Connection menu group labels
.p3xr-connection-menu-group-label {
padding: 6px 16px 2px;
font-size: 11px;
font-weight: 600;
text-transform: uppercase;
letter-spacing: 0.5px;
opacity: 0.6;
pointer-events: none;
}
// Shared keyboard-key badge used in Info page and Command Palette
.p3xr-kbd {
display: inline-block;
padding: 2px 8px;
font-family: 'Roboto Mono', monospace;
font-size: 12px;
border: 1px solid var(--p3xr-list-border, rgba(0, 0, 0, 0.12));
border-radius: 4px;
background: var(--p3xr-input-bg, #f5f5f5);
color: var(--p3xr-input-color, #333);
min-width: 70px;
text-align: center;
white-space: nowrap;
}
.p3xr-kbd-small {
min-width: 50px;
font-size: 11px;
}