mirror of
https://github.com/nasa/openmct.git
synced 2025-06-20 16:10:23 +00:00
[Frontend] Styling Export button
fixes #973 - Done; - Styling for Export button and tabular view area in layout frame context; - Export button in frame context now hidden until user hovers over tabular view area in frame, includes animated transition; - Normalized line-height on button and menu elements in frame context; - Layout/markup/SASS for historical and RT tabular view modified; - Converted imagery.html layout to use flexbox;
This commit is contained in:
@ -348,7 +348,6 @@
|
|||||||
display: inline-block;
|
display: inline-block;
|
||||||
font-family: 'symbolsfont';
|
font-family: 'symbolsfont';
|
||||||
margin-left: $interiorMarginSm;
|
margin-left: $interiorMarginSm;
|
||||||
vertical-align: top;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@mixin nice-textarea($bg: $colorBodyBg, $fg: $colorBodyFg) {
|
@mixin nice-textarea($bg: $colorBodyBg, $fg: $colorBodyFg) {
|
||||||
|
@ -1,13 +1,10 @@
|
|||||||
.l-image-main-wrapper,
|
.l-image-main-wrapper,
|
||||||
.l-image-main,
|
|
||||||
.l-image-main-controlbar,
|
|
||||||
.l-image-thumbs-wrapper {
|
.l-image-thumbs-wrapper {
|
||||||
@include absPosDefault(0, false);
|
@include absPosDefault(0, false);
|
||||||
}
|
}
|
||||||
|
|
||||||
/*************************************** MAIN LAYOUT */
|
/*************************************** MAIN LAYOUT */
|
||||||
.l-image-main-wrapper {
|
.l-image-main-wrapper {
|
||||||
//@include test();
|
|
||||||
@if $enableImageryThumbs == true {
|
@if $enableImageryThumbs == true {
|
||||||
bottom: $interiorMargin*2 + $imageThumbsWrapperH;
|
bottom: $interiorMargin*2 + $imageThumbsWrapperH;
|
||||||
}
|
}
|
||||||
@ -15,16 +12,14 @@
|
|||||||
min-width: 150px;
|
min-width: 150px;
|
||||||
.l-image-main {
|
.l-image-main {
|
||||||
background-color: $colorPlotBg;
|
background-color: $colorPlotBg;
|
||||||
bottom: $imageMainControlBarH + $interiorMargin;
|
margin-bottom: $interiorMargin;
|
||||||
}
|
}
|
||||||
.l-image-main-controlbar {
|
.l-image-main-controlbar {
|
||||||
top: auto;
|
&.l-flex-row { @include align-items(center); }
|
||||||
height: $imageMainControlBarH;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.l-image-thumbs-wrapper {
|
.l-image-thumbs-wrapper {
|
||||||
//@include test(red);
|
|
||||||
top: auto;
|
top: auto;
|
||||||
height: $imageThumbsWrapperH;
|
height: $imageThumbsWrapperH;
|
||||||
}
|
}
|
||||||
@ -44,24 +39,17 @@
|
|||||||
background-repeat: no-repeat;
|
background-repeat: no-repeat;
|
||||||
}
|
}
|
||||||
|
|
||||||
.l-image-main {
|
|
||||||
//cursor: crosshair;
|
|
||||||
}
|
|
||||||
|
|
||||||
.l-image-main-controlbar {
|
.l-image-main-controlbar {
|
||||||
//@include test();
|
|
||||||
font-size: 0.8em;
|
font-size: 0.8em;
|
||||||
line-height: $imageMainControlBarH;
|
line-height: inherit;
|
||||||
.left, .right {
|
.left, .right {
|
||||||
direction: rtl;
|
direction: rtl;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
}
|
}
|
||||||
.left {
|
.left {
|
||||||
//@include test(red);
|
|
||||||
text-align: left;
|
text-align: left;
|
||||||
}
|
}
|
||||||
.right {
|
.right {
|
||||||
//@include test(green);
|
|
||||||
z-index: 2;
|
z-index: 2;
|
||||||
}
|
}
|
||||||
.l-date,
|
.l-date,
|
||||||
@ -71,7 +59,6 @@
|
|||||||
.l-mag {
|
.l-mag {
|
||||||
direction: ltr;
|
direction: ltr;
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
//white-space: nowrap;
|
|
||||||
&:before {
|
&:before {
|
||||||
content: "\000049";
|
content: "\000049";
|
||||||
}
|
}
|
||||||
|
@ -24,6 +24,10 @@
|
|||||||
height: 100%;
|
height: 100%;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.tabular-holder {
|
||||||
|
@include absPosDefault();
|
||||||
|
}
|
||||||
|
|
||||||
.tabular,
|
.tabular,
|
||||||
table {
|
table {
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
@ -165,11 +169,38 @@ table {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/********************************************************** SPECIFIC TABULAR VIEWS */
|
/********************************************************** SPECIFIC TABULAR VIEWS */
|
||||||
.t-tabular {
|
.tabular-holder {
|
||||||
&.t-historical {
|
&.t-exportable {
|
||||||
$btnExportH: 25px;
|
$btnExportH: 25px;
|
||||||
.l-view-section {
|
.l-view-section {
|
||||||
top: $btnExportH + $interiorMargin;
|
top: $btnExportH + $interiorMargin;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.child-frame {
|
||||||
|
.tabular-holder {
|
||||||
|
&.t-exportable {
|
||||||
|
$btnExportH: $btnFrameH;
|
||||||
|
.s-btn.t-export {
|
||||||
|
@include trans-prop-nice(opacity, $dur: 50ms);
|
||||||
|
opacity: 0;
|
||||||
|
}
|
||||||
|
.l-view-section {
|
||||||
|
@include trans-prop-nice(top, $dur: 150ms, $delay: 50ms);
|
||||||
|
top: 0;
|
||||||
|
}
|
||||||
|
&:hover {
|
||||||
|
.s-btn.t-export {
|
||||||
|
@include trans-prop-nice(opacity, 150ms, 100ms);
|
||||||
|
opacity: 1;
|
||||||
|
}
|
||||||
|
.l-view-section {
|
||||||
|
@include trans-prop-nice(top, $dur: 150ms);
|
||||||
|
top: $btnExportH + $interiorMargin;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
@ -54,7 +54,8 @@
|
|||||||
height: $ohH;
|
height: $ohH;
|
||||||
line-height: $ohH;
|
line-height: $ohH;
|
||||||
padding: 0 $interiorMargin;
|
padding: 0 $interiorMargin;
|
||||||
> span {
|
> span,
|
||||||
|
&:before {
|
||||||
font-size: 0.65rem;
|
font-size: 0.65rem;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -1,23 +1,18 @@
|
|||||||
<div class="t-imagery" ng-controller="ImageryController as imagery">
|
<div class="t-imagery" ng-controller="ImageryController as imagery">
|
||||||
<div
|
<div class="l-image-main-wrapper l-flex-col"
|
||||||
class="l-image-main-wrapper"
|
|
||||||
ng-mouseenter="showLocalControls = true;"
|
ng-mouseenter="showLocalControls = true;"
|
||||||
ng-mouseleave="showLocalControls = false;"
|
ng-mouseleave="showLocalControls = false;">
|
||||||
>
|
|
||||||
<div
|
<div
|
||||||
class="l-local-controls s-local-controls"
|
class="l-local-controls s-local-controls"
|
||||||
ng-show="false && showLocalControls"
|
ng-show="false && showLocalControls">
|
||||||
>
|
<a class="s-btn"
|
||||||
<a
|
|
||||||
class="s-btn"
|
|
||||||
ng-click="plot.stepBackPanZoom()"
|
ng-click="plot.stepBackPanZoom()"
|
||||||
ng-show="1"
|
ng-show="1"
|
||||||
title="Restore previous pan/zoom">
|
title="Restore previous pan/zoom">
|
||||||
<span class="ui-symbol icon"><</span>
|
<span class="ui-symbol icon"><</span>
|
||||||
</a>
|
</a>
|
||||||
|
|
||||||
<a
|
<a class="s-btn"
|
||||||
class="s-btn"
|
|
||||||
ng-click="plot.unzoom()"
|
ng-click="plot.unzoom()"
|
||||||
ng-show="1"
|
ng-show="1"
|
||||||
title="Reset pan/zoom">
|
title="Reset pan/zoom">
|
||||||
@ -25,29 +20,23 @@
|
|||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div
|
<div class="l-image-main s-image-main flex-elem grows"
|
||||||
class="l-image-main s-image-main"
|
|
||||||
ng-class="{ paused: imagery.paused(), stale:false }"
|
ng-class="{ paused: imagery.paused(), stale:false }"
|
||||||
mct-background-image="imagery.getImageUrl()"
|
mct-background-image="imagery.getImageUrl()">
|
||||||
>
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="l-image-main-controlbar l-flex-row">
|
<div class="l-image-main-controlbar flex-elem l-flex-row">
|
||||||
<div class="left flex-elem grows">
|
<div class="left flex-elem grows">
|
||||||
<a
|
<a class="s-btn show-thumbs sm hidden"
|
||||||
class="s-btn show-thumbs sm hidden"
|
ng-click="showThumbsBubble = (showThumbsBubble)? false:true"><span class="ui-symbol icon"></span></a>
|
||||||
ng-click="showThumbsBubble = (showThumbsBubble)? false:true"
|
|
||||||
><span class="ui-symbol icon"></span></a>
|
|
||||||
<span class="l-timezone">{{imagery.getZone()}}</span>
|
<span class="l-timezone">{{imagery.getZone()}}</span>
|
||||||
<span class="l-time">{{imagery.getTime()}}</span>
|
<span class="l-time">{{imagery.getTime()}}</span>
|
||||||
<span class="l-date">{{imagery.getDate()}}</span>
|
<span class="l-date">{{imagery.getDate()}}</span>
|
||||||
</div>
|
</div>
|
||||||
<div class="right flex-elem">
|
<div class="right flex-elem">
|
||||||
<a
|
<a class="s-btn pause-play"
|
||||||
class="s-btn pause-play"
|
|
||||||
ng-click="imagery.paused(!imagery.paused())"
|
ng-click="imagery.paused(!imagery.paused())"
|
||||||
ng-class="{ paused: imagery.paused() }"
|
ng-class="{ paused: imagery.paused() }"><span class="ui-symbol icon"></span></a>
|
||||||
><span class="ui-symbol icon"></span></a>
|
|
||||||
<a href="{{imagery.getImageUrl()}}"
|
<a href="{{imagery.getImageUrl()}}"
|
||||||
ng-if="imagery.getImageUrl()"
|
ng-if="imagery.getImageUrl()"
|
||||||
target="_blank"
|
target="_blank"
|
||||||
@ -58,8 +47,7 @@
|
|||||||
class="s-btn l-mag s-mag ui-symbol vsm"
|
class="s-btn l-mag s-mag ui-symbol vsm"
|
||||||
ng-click="clipped = false"
|
ng-click="clipped = false"
|
||||||
ng-show="clipped === true"
|
ng-show="clipped === true"
|
||||||
title="Not all of image is visible; click to reset."
|
title="Not all of image is visible; click to reset."></a>
|
||||||
></a>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -4,6 +4,6 @@
|
|||||||
rows="rows"
|
rows="rows"
|
||||||
enableFilter="true"
|
enableFilter="true"
|
||||||
enableSort="true"
|
enableSort="true"
|
||||||
class="t-tabular t-historical">
|
class="tabular-holder t-exportable">
|
||||||
</mct-table>
|
</mct-table>
|
||||||
</div>
|
</div>
|
@ -4,6 +4,7 @@
|
|||||||
rows="rows"
|
rows="rows"
|
||||||
enableFilter="true"
|
enableFilter="true"
|
||||||
enableSort="true"
|
enableSort="true"
|
||||||
|
class="tabular-holder t-exportable"
|
||||||
auto-scroll="autoScroll">
|
auto-scroll="autoScroll">
|
||||||
</mct-table>
|
</mct-table>
|
||||||
</div>
|
</div>
|
Reference in New Issue
Block a user