mirror of
https://github.com/nasa/openmct.git
synced 2024-12-24 07:16:39 +00:00
Code trimming / cleanup
- pane tweaks;
This commit is contained in:
parent
e3bb387139
commit
139e5ab184
@ -47,9 +47,10 @@
|
|||||||
.l-pane {
|
.l-pane {
|
||||||
backface-visibility: hidden;
|
backface-visibility: hidden;
|
||||||
display: flex;
|
display: flex;
|
||||||
|
min-width: 0px;
|
||||||
|
min-height: 0px;
|
||||||
opacity: 1;
|
opacity: 1;
|
||||||
pointer-events: inherit;
|
pointer-events: inherit;
|
||||||
transition: transOut;
|
|
||||||
|
|
||||||
&__handle,
|
&__handle,
|
||||||
&__label {
|
&__label {
|
||||||
@ -73,6 +74,17 @@
|
|||||||
flex: 1 1 0;
|
flex: 1 1 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
&--collapsed {
|
||||||
|
flex-basis: 0px !important;
|
||||||
|
transition: all 350ms ease;
|
||||||
|
|
||||||
|
.l-pane__contents {
|
||||||
|
transition: opacity 150ms ease;
|
||||||
|
opacity: 0;
|
||||||
|
pointer-events: none;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
&[class*="--horizontal"] {
|
&[class*="--horizontal"] {
|
||||||
&.l-pane--collapsed {
|
&.l-pane--collapsed {
|
||||||
padding-left: 0 !important;
|
padding-left: 0 !important;
|
||||||
@ -81,8 +93,6 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
&[class*="--vertical"] {
|
&[class*="--vertical"] {
|
||||||
flex-flow: column nowrap;
|
|
||||||
|
|
||||||
&.l-pane--collapsed {
|
&.l-pane--collapsed {
|
||||||
padding-top: 0 !important;
|
padding-top: 0 !important;
|
||||||
padding-top: 0 !important;
|
padding-top: 0 !important;
|
||||||
@ -99,30 +109,17 @@
|
|||||||
overflow: auto;
|
overflow: auto;
|
||||||
|
|
||||||
.l-pane__contents {
|
.l-pane__contents {
|
||||||
|
// Don't pad all nested __contents
|
||||||
padding: 0;
|
padding: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Create margin between elements in a pane
|
|
||||||
> [class*="__"] + [class*="__"] {
|
> [class*="__"] + [class*="__"] {
|
||||||
|
// Create margin between elements in a pane
|
||||||
// Doesn't match first elem, but will match all subsequent
|
// Doesn't match first elem, but will match all subsequent
|
||||||
margin-top: $interiorMargin;
|
margin-top: $interiorMargin;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/************************ COLLAPSED STATE */
|
|
||||||
&--collapsed {
|
|
||||||
flex-basis: 0px !important;
|
|
||||||
min-width: 0px !important;
|
|
||||||
min-height: 0px !important;
|
|
||||||
transition: all 350ms ease;
|
|
||||||
|
|
||||||
.l-pane__contents {
|
|
||||||
transition: opacity 150ms ease;
|
|
||||||
opacity: 0;
|
|
||||||
pointer-events: none;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
/************************ DESKTOP STYLES */
|
/************************ DESKTOP STYLES */
|
||||||
body.desktop & {
|
body.desktop & {
|
||||||
&__handle {
|
&__handle {
|
||||||
@ -325,7 +322,7 @@
|
|||||||
</style>
|
</style>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
const COLLAPSE_THRESHOLD_PX = 30;
|
const COLLAPSE_THRESHOLD_PX = 40;
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
props: {
|
props: {
|
||||||
|
Loading…
Reference in New Issue
Block a user