Added ability to show/hide object frames via a toggle button in the edit toolbar. All objects have frames by default except for ‘hyperlinks’. Also, implemented object selection in the layout and added tests for new features. Fixes #1658.
54 lines
2.1 KiB
SCSS
54 lines
2.1 KiB
SCSS
/*****************************************************************************
|
|
* Open MCT, Copyright (c) 2014-2017, United States Government
|
|
* as represented by the Administrator of the National Aeronautics and Space
|
|
* Administration. All rights reserved.
|
|
*
|
|
* Open MCT 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 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.
|
|
*****************************************************************************/
|
|
.s-hover-border {
|
|
border: 1px dotted transparent;
|
|
}
|
|
|
|
.s-status-editing {
|
|
// Limit to editing mode until we have sub-object selection
|
|
.s-hover-border {
|
|
// Show a border by default so user can see object bounds and empty objects
|
|
border: 1px dotted rgba($colorSelectableSelectedPrimary, 0.3) !important;
|
|
&:hover {
|
|
border-color: rgba($colorSelectableSelectedPrimary, 0.7) !important;
|
|
}
|
|
}
|
|
|
|
.s-selected > .s-hover-border,
|
|
.s-selected.s-hover-border {
|
|
// Styles for a selected object. Also used by legacy Fixed Position/Panel objects.
|
|
border-color: $colorSelectableSelectedPrimary !important;
|
|
@include boxShdwLarge();
|
|
// Show edit-corners if you got 'em
|
|
.edit-corner {
|
|
display: block;
|
|
&:hover {
|
|
background-color: rgba($colorKey, 1);
|
|
}
|
|
}
|
|
}
|
|
|
|
.s-selected > .s-moveable,
|
|
.s-selected.s-moveable {
|
|
cursor: move;
|
|
}
|
|
} |