open #468 Removed ng-show="editMode" in object-inspector.html; Refactored CSS as required in _inspector.scss; Added opacity transition to splitter-inspect-panel and split-pane-component pane bottom, but not working as desired currently: entire inspector seems to be destroyed and recreated when switching into and out of edit mode; Moved <style> def for .location-item in object-inspector.html into .scss;
161 lines
4.7 KiB
SCSS
161 lines
4.7 KiB
SCSS
/*****************************************************************************
|
|
* Open MCT Web, Copyright (c) 2014-2015, United States Government
|
|
* as represented by the Administrator of the National Aeronautics and Space
|
|
* Administration. All rights reserved.
|
|
*
|
|
* Open MCT Web is licensed under the Apache License, Version 2.0 (the
|
|
* "License"); you may not use this file except in compliance with the License.
|
|
* You may obtain a copy of the License at
|
|
* http://www.apache.org/licenses/LICENSE-2.0.
|
|
*
|
|
* Unless required by applicable law or agreed to in writing, software
|
|
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
|
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
|
* License for the specific language governing permissions and limitations
|
|
* under the License.
|
|
*
|
|
* Open MCT Web includes source code licensed under additional open source
|
|
* licenses. See the Open Source Licenses file (LICENSES.md) included with
|
|
* this source code distribution or the Licensing information page available
|
|
* at runtime from the About dialog for additional information.
|
|
*****************************************************************************/
|
|
/* Styles for the Inspector pane */
|
|
|
|
.l-inspect,
|
|
.l-inspect table tr td {
|
|
font-size: 0.75rem;
|
|
}
|
|
|
|
.l-inspect {
|
|
@extend .abs;
|
|
background: $colorInspectorBg;
|
|
color: $colorInspectorFg;
|
|
line-height: 140%;
|
|
|
|
.flex-elem.holder:not(:last-child) { margin-bottom: $interiorMargin; }
|
|
|
|
.pane-header {
|
|
color: pushBack($colorInspectorFg, 20%);
|
|
font-size: 0.8rem;
|
|
&:before {
|
|
color: pushBack($colorInspectorFg, 10%);
|
|
content:'\e615'; // e615 Crosshair symbol
|
|
display: inline;
|
|
font-family: symbolsfont;
|
|
margin-right: $interiorMargin;
|
|
vertical-align: bottom;
|
|
}
|
|
}
|
|
|
|
.split-layout {
|
|
.split-pane-component.pane {
|
|
&.bottom {
|
|
height: 30%;
|
|
min-height: 20%;
|
|
max-height: 80%;
|
|
}
|
|
}
|
|
}
|
|
|
|
ul {
|
|
@include box-sizing(border-box);
|
|
padding-right: $interiorMargin;
|
|
}
|
|
|
|
ul li,
|
|
em {
|
|
display: block;
|
|
position: relative;
|
|
}
|
|
|
|
ul li {
|
|
margin-bottom: $interiorMarginLg;
|
|
}
|
|
|
|
em {
|
|
@include border-radius($basicCr);
|
|
background-color: $colorInspectorSectionHeaderBg;
|
|
color: $colorInspectorSectionHeaderFg;
|
|
margin-bottom: $interiorMargin;
|
|
padding: $formTBPad $formLRPad;
|
|
text-transform: uppercase;
|
|
}
|
|
|
|
.inspector-properties {
|
|
&:not(.first) {
|
|
border-top: 1px solid $colorInspectorSectionHeaderBg;
|
|
}
|
|
padding: $interiorMarginSm 0;
|
|
.label {
|
|
color: $colorInspectorPropName;
|
|
text-transform: uppercase;
|
|
}
|
|
.value {
|
|
color: $colorInspectorPropVal;
|
|
word-break: break-all;
|
|
}
|
|
}
|
|
|
|
.inspector-location {
|
|
.location-item {
|
|
cursor: pointer;
|
|
display: inline-block;
|
|
position: relative;
|
|
padding: 2px 4px;
|
|
&:hover {
|
|
background: $colorItemTreeHoverBg;
|
|
color: $colorItemTreeHoverFg;
|
|
.icon {
|
|
color: $colorItemTreeIconHover;
|
|
}
|
|
}
|
|
}
|
|
&:not(.last) .t-object-label .t-title-label:after {
|
|
color: pushBack($colorInspectorFg, 15%);
|
|
content: '\3e';
|
|
display: inline-block;
|
|
font-family: symbolsfont;
|
|
font-size: 8px;
|
|
line-height: inherit;
|
|
margin-left: $interiorMarginSm;
|
|
width: 4px;
|
|
}
|
|
}
|
|
.holder-elements {
|
|
.current-elements {
|
|
position: relative;
|
|
.tree-item {
|
|
.t-object-label {
|
|
// Elements pool is a flat list, so don't indent items.
|
|
left: 0;
|
|
.t-item-icon {
|
|
font-size: 1em;
|
|
width: 1em;
|
|
}
|
|
.t-title-label {
|
|
left: 20px + $interiorMargin;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
.l-inspect {
|
|
.splitter-inspect-panel,
|
|
.split-pane-component.pane.bottom {
|
|
@include trans-prop-nice(opacity, 250ms); // Not working as desired currently; entire inspector seems to be destroyed and recreated when switching into and out of edit mode.
|
|
opacity: 0;
|
|
pointer-events: none;
|
|
}
|
|
}
|
|
|
|
.s-status-editing .l-inspect {
|
|
.location-item { pointer-events: none; }
|
|
.splitter-inspect-panel,
|
|
.split-pane-component.pane.bottom {
|
|
opacity: 1;
|
|
pointer-events: inherit;
|
|
}
|
|
}
|