mirror of
https://github.com/nasa/openmct.git
synced 2025-06-01 23:20:50 +00:00
Fixes for Inspector Plot properties, and more
- Fixed overflow problem when Inspector collapsed; - Temp legacy styling for Plot inspection, series options, etc. - Factored out non-useful gridTwoColumn mixin; - Brought back legacy tree.scss file in legacy-styles.scss;
This commit is contained in:
parent
ba2bb2180b
commit
814b404614
@ -115,33 +115,14 @@
|
|||||||
top: $m; right: $m; bottom: $m; left: $m;
|
top: $m; right: $m; bottom: $m; left: $m;
|
||||||
}
|
}
|
||||||
|
|
||||||
@mixin gridTwoColumn() {
|
@mixin propertiesHeader() {
|
||||||
display: grid;
|
border-radius: $smallCr;
|
||||||
grid-row-gap: 0;
|
background-color: $colorInspectorSectionHeaderBg;
|
||||||
grid-template-columns: 1fr 2fr;
|
color: $colorInspectorSectionHeaderFg;
|
||||||
align-items: start;
|
font-weight: normal;
|
||||||
|
margin: 0 0 $interiorMarginSm 0;
|
||||||
[class*="header"] {
|
padding: $interiorMarginSm $interiorMargin;
|
||||||
border-radius: $smallCr;
|
text-transform: uppercase;
|
||||||
background-color: $colorInspectorSectionHeaderBg;
|
|
||||||
color: $colorInspectorSectionHeaderFg;
|
|
||||||
margin: 0 0 $interiorMarginSm 0;
|
|
||||||
padding: $interiorMarginSm $interiorMargin;
|
|
||||||
|
|
||||||
&:not(:first-child) {
|
|
||||||
// Allow multiple headers within a component
|
|
||||||
margin-top: $interiorMarginLg;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
[class*="span-all"],
|
|
||||||
[class*="header"] {
|
|
||||||
@include gridTwoColumnSpanCols();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
@mixin gridTwoColumnSpanCols() {
|
|
||||||
grid-column: 1 / 3;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@mixin modalFullScreen() {
|
@mixin modalFullScreen() {
|
||||||
|
@ -46,7 +46,7 @@
|
|||||||
//@import "../styles/search/search";
|
//@import "../styles/search/search";
|
||||||
//@import "../styles/mobile/search/search";
|
//@import "../styles/mobile/search/search";
|
||||||
@import "../styles/overlay/overlay";
|
@import "../styles/overlay/overlay";
|
||||||
//@import "../styles/tree/tree";
|
@import "../styles/tree/tree"; // TEMP - NEED FOR TREE IN INSPECTOR
|
||||||
@import "../styles/object-label";
|
@import "../styles/object-label";
|
||||||
//@import "../styles/mobile/tree";
|
//@import "../styles/mobile/tree";
|
||||||
@import "../styles/user-environ/frame";
|
@import "../styles/user-environ/frame";
|
||||||
|
@ -85,6 +85,7 @@
|
|||||||
transition: opacity 150ms ease;
|
transition: opacity 150ms ease;
|
||||||
opacity: 0;
|
opacity: 0;
|
||||||
pointer-events: none;
|
pointer-events: none;
|
||||||
|
overflow: hidden;
|
||||||
|
|
||||||
> * {
|
> * {
|
||||||
min-width: 0 !important;
|
min-width: 0 !important;
|
||||||
|
@ -18,8 +18,6 @@
|
|||||||
@import "~styles/sass-base";
|
@import "~styles/sass-base";
|
||||||
|
|
||||||
.c-inspector {
|
.c-inspector {
|
||||||
min-width: 150px;
|
|
||||||
|
|
||||||
> [class*="__"] {
|
> [class*="__"] {
|
||||||
min-height: 50px;
|
min-height: 50px;
|
||||||
|
|
||||||
@ -52,7 +50,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
/************************************************************** LEGACY */
|
/************************************************************** LEGACY */
|
||||||
// TODO: refactor when markup can be converted
|
// TODO: refactor when legacy properties markup can be converted
|
||||||
.inspector-location {
|
.inspector-location {
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
|
|
||||||
@ -93,10 +91,45 @@
|
|||||||
width: 4px;
|
width: 4px;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.l-inspector-part {
|
||||||
|
display: contents;
|
||||||
|
}
|
||||||
|
|
||||||
|
h2 {
|
||||||
|
@include propertiesHeader();
|
||||||
|
font-size: 0.65rem;
|
||||||
|
grid-column: 1 / 3;
|
||||||
|
}
|
||||||
|
|
||||||
|
.tree .grid-properties {
|
||||||
|
margin-left: $treeItemIndent + $interiorMarginLg;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.c-properties {
|
.c-properties {
|
||||||
@include gridTwoColumn();
|
display: grid;
|
||||||
|
grid-row-gap: 0;
|
||||||
|
grid-template-columns: 1fr 2fr;
|
||||||
|
align-items: start;
|
||||||
|
min-width: 150px;
|
||||||
|
|
||||||
|
[class*="header"] {
|
||||||
|
@include propertiesHeader();
|
||||||
|
|
||||||
|
&:not(:first-child) {
|
||||||
|
// Allow multiple headers within a component
|
||||||
|
margin-top: $interiorMarginLg;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
[class*="span-all"],
|
||||||
|
[class*="header"] {
|
||||||
|
grid-column: 1 / 3;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
+ .c-properties {
|
+ .c-properties {
|
||||||
// Margin between components
|
// Margin between components
|
||||||
@ -139,7 +172,7 @@
|
|||||||
word-break: break-all;
|
word-break: break-all;
|
||||||
&:first-child {
|
&:first-child {
|
||||||
// If there is no preceding .label element, make value span columns
|
// If there is no preceding .label element, make value span columns
|
||||||
@include gridTwoColumnSpanCols();
|
grid-column: 1 / 3;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -63,6 +63,7 @@
|
|||||||
top: 0; right: 0; bottom: 0; left: 0;
|
top: 0; right: 0; bottom: 0; left: 0;
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-flow: column nowrap;
|
flex-flow: column nowrap;
|
||||||
|
overflow: hidden;
|
||||||
|
|
||||||
&__status {
|
&__status {
|
||||||
background: $colorBodyFg;
|
background: $colorBodyFg;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user