/***************************************************************************** * 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. *****************************************************************************/ ul.tree { @include menuUlReset(); li { display: block; position: relative; span.tree-item { $runningItemW: 0; @include border-radius($basicCr); @include single-transition(background-color, 0.25s); display: block; font-size: 0.8em; height: $menuLineH; line-height: $menuLineH; margin-bottom: $interiorMarginSm; position: relative; .view-control { display: inline-block; margin-left: $interiorMargin; font-size: 0.75em; width: $treeVCW; $runningItemW: $interiorMargin + $treeVCW; &:hover { color: $colorItemTreeVCHover; } } .label { display: block; // border: 1px solid rgba(blue, 0.5); @include absPosDefault(); left: $runningItemW + $interiorMargin; .type-icon { @include absPosDefault(0, false); @include txtShdwSubtle(0.6); color: $colorItemTreeIcon; right: auto; width: 1em; .alert { @include txtShdwSubtle(0.3); background: $colorBodyBg; color: $colorAlert; font-size: 0.7em; margin-top: -3px; top: 0; right: auto; bottom: auto; left: 9px; height: auto; width: auto; position: absolute; z-index: 2; } .icon.l-link-icon { @include txtShdwSubtle(1); $d: 20px; color: $colorIconLink; position: absolute; font-size: 0.5em; right: -5px; bottom: -8px; z-index: 2; } } .title-label { @include absPosDefault(); display: block; left: $runningItemW + ($interiorMargin * 2); //right: $treeContextTriggerW + $interiorMargin; overflow: hidden; text-overflow: ellipsis; // height: $menuLineH; white-space: nowrap; } } &.loading { pointer-events: none; .label { opacity: 0.5; .title-label { font-style: italic; } } .wait-spinner { margin-left: 14px; } } &.selected { $c: #fff; background: $colorKeySelectedBg; color: $c; .view-control { color: $colorItemTreeIcon; } .label .type-icon { color: #fff; //$colorItemTreeIconHover; } } &:not(.selected) { &:hover { background: lighten($colorBodyBg, 5%); color: lighten($colorBodyFg, 20%); .context-trigger { display: block; } .icon { color: $colorItemTreeIconHover; } } } &:not(.loading) { cursor: pointer; } .context-trigger { $h: 0.9rem; //display: none; top: -1px; position: absolute; right: $interiorMarginSm; .invoke-menu { font-size: 0.75em; height: $h; line-height: $h; } } } } ul.tree { margin-left: $treeVCW + $interiorMargin; } }