mirror of
https://github.com/nasa/openmct.git
synced 2024-12-23 15:02:23 +00:00
Merge pull request #1254 from nasa/open1235
[Frontend] Fixes to Export buttons
This commit is contained in:
commit
56a662841e
@ -104,9 +104,17 @@ body.desktop .mini-tab-icon {
|
||||
}
|
||||
}
|
||||
|
||||
@mixin btnSetButtonFirst() {
|
||||
@include border-left-radius($controlCr);
|
||||
margin-left: 0;
|
||||
}
|
||||
|
||||
@mixin btnSetButtonLast() {
|
||||
@include border-right-radius($controlCr);
|
||||
}
|
||||
|
||||
.l-btn-set {
|
||||
// Buttons that have a very tight conceptual grouping - no internal space between them.
|
||||
// Structure: .btn-set > mct-representation class=first|last > .s-button
|
||||
font-size: 0; // Remove space between s-button elements due to white space in markup
|
||||
|
||||
.s-button {
|
||||
@ -114,20 +122,16 @@ body.desktop .mini-tab-icon {
|
||||
margin-left: 1px;
|
||||
}
|
||||
|
||||
.first {
|
||||
.s-button,
|
||||
&.s-button {
|
||||
@include border-left-radius($controlCr);
|
||||
margin-left: 0;
|
||||
}
|
||||
> .s-button {
|
||||
// Styles for .s-button as immediate descendants in .l-btn-set
|
||||
&:first-child { @include btnSetButtonFirst(); }
|
||||
&:last-child { @include btnSetButtonLast(); }
|
||||
}
|
||||
|
||||
.last {
|
||||
.s-button,
|
||||
&.s-button {
|
||||
@include border-right-radius($controlCr);
|
||||
}
|
||||
}
|
||||
// Must use following due to DOM structure of action buttons,
|
||||
// which have structure like .l-btn-set > mct-representation class=first|last > .s-button
|
||||
.first > .s-button { @include btnSetButtonFirst(); }
|
||||
.last > .s-button { @include btnSetButtonLast(); }
|
||||
}
|
||||
|
||||
.paused {
|
||||
|
@ -23,12 +23,12 @@
|
||||
class="abs holder holder-plot has-control-bar">
|
||||
<div class="l-control-bar" ng-show="!plot.hideExportButtons">
|
||||
<span class="l-btn-set">
|
||||
<a class="s-button t-export labeled"
|
||||
<a class="s-button t-export labeled icon-download"
|
||||
ng-click="plot.exportPNG()"
|
||||
title="Export This View's Data as PNG">
|
||||
PNG
|
||||
</a>
|
||||
<a class="s-button t-export labeled last"
|
||||
<a class="s-button t-export labeled"
|
||||
ng-click="plot.exportJPG()"
|
||||
title="Export This View's Data as JPG">
|
||||
JPG
|
||||
|
Loading…
Reference in New Issue
Block a user