WTD-839 Refactoring in advance of style mods to switcher when in frame; Cleanup of markup to remove 'icon' class from invoke-menu elements;
119 lines
4.1 KiB
SCSS
119 lines
4.1 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.
|
|
*****************************************************************************/
|
|
.items-holder {
|
|
@include clearfix;
|
|
overflow-y: auto;
|
|
.contents {
|
|
top: 0;
|
|
}
|
|
.item {
|
|
&.grid-item {
|
|
$d: $ueBrowseGridItemLg;
|
|
@include btnSubtle($colorItemBase);
|
|
box-sizing: border-box;
|
|
cursor: pointer;
|
|
float: left;
|
|
height: $d;
|
|
// padding-bottom: 32%;
|
|
width: $d;
|
|
margin-bottom: $interiorMarginSm;
|
|
margin-right: $interiorMarginSm;
|
|
position: relative;
|
|
&:hover .item-main {
|
|
.item-type {
|
|
color: $colorKey !important;
|
|
}
|
|
.item-open {
|
|
display: block;
|
|
}
|
|
}
|
|
.contents {
|
|
top: $interiorMargin; right: $interiorMargin; bottom: $interiorMargin; left: $interiorMargin;
|
|
}
|
|
.bar {
|
|
&.top-bar.abs {
|
|
bottom: auto;
|
|
height: $ueBrowseGridItemTopBarH;
|
|
line-height: $ueBrowseGridItemTopBarH;
|
|
z-index: 5;
|
|
.left, .right {
|
|
width: auto;
|
|
.icon {
|
|
margin-left: $interiorMargin;
|
|
}
|
|
}
|
|
}
|
|
&.bottom-bar.abs {
|
|
top: auto;
|
|
height: $ueBrowseGridItemBottomBarH;
|
|
padding: $interiorMargin;
|
|
}
|
|
}
|
|
.item-main {
|
|
$h: $ueBrowseGridItemLg;
|
|
$lh: $h * 0.9;
|
|
// @include test();
|
|
div {
|
|
// background: rgba(deeppink, 0.2);
|
|
}
|
|
z-index: 1;
|
|
.item-type {
|
|
color: $colorItemFg;
|
|
text-align: center;
|
|
font-size: 7em;
|
|
line-height: $lh;
|
|
}
|
|
.item-open {
|
|
// color: lighten($colorItemBase, 15%);
|
|
display: none;
|
|
font-size: 5em;
|
|
line-height: $lh;
|
|
left: auto; width: 30px;
|
|
}
|
|
}
|
|
.title {
|
|
@include txtShdwSubtle();
|
|
color: lighten($colorBodyFg, 20%);
|
|
overflow: hidden;
|
|
white-space: nowrap;
|
|
text-overflow: ellipsis;
|
|
// font-weight: bold;
|
|
}
|
|
.details {
|
|
font-size: 0.8em;
|
|
}
|
|
&.selected {
|
|
$cfg: lighten($colorItemSelected, 35%);
|
|
$cfgh: lighten($cfg, 30%);
|
|
@include btnSubtle($colorItemSelected);
|
|
color: $cfg;
|
|
.item-type, .top-bar .icon:not(.alert) { color: $cfg }
|
|
.item-main .item-open { color: $cfg }
|
|
.title { color: $cfgh; }
|
|
&:hover {
|
|
.item-main .item-type { color: $cfgh !important; }
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
} |