mirror of
https://github.com/nasa/openmct.git
synced 2024-12-19 05:07:52 +00:00
[Frontend] Rename .s-menu-btn, remove unused
Fixes #1047 .s-menu-btn > .s-menu-button; .create-btn > .create-button; removed unused l-btn, t-btn, t-btns-zoom from markup
This commit is contained in:
parent
5d229198b7
commit
7bca18b186
@ -25,7 +25,7 @@
|
|||||||
|
|
||||||
@include phoneandtablet {
|
@include phoneandtablet {
|
||||||
// Show the Create button
|
// Show the Create button
|
||||||
.create-btn-holder {
|
.create-button-holder {
|
||||||
display: block !important;
|
display: block !important;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -31,7 +31,7 @@
|
|||||||
<div class="abs holder l-flex-col holder-treeview-elements">
|
<div class="abs holder l-flex-col holder-treeview-elements">
|
||||||
<mct-representation key="'create-button'"
|
<mct-representation key="'create-button'"
|
||||||
mct-object="navigatedObject"
|
mct-object="navigatedObject"
|
||||||
class="holder flex-elem create-btn-holder">
|
class="holder flex-elem create-button-holder">
|
||||||
</mct-representation>
|
</mct-representation>
|
||||||
<mct-include key="'search'"
|
<mct-include key="'search'"
|
||||||
ng-model="treeModel"
|
ng-model="treeModel"
|
||||||
|
@ -20,7 +20,7 @@
|
|||||||
at runtime from the About dialog for additional information.
|
at runtime from the About dialog for additional information.
|
||||||
-->
|
-->
|
||||||
<span ng-controller="ClickAwayController as createController">
|
<span ng-controller="ClickAwayController as createController">
|
||||||
<div class="s-menu-btn major create-btn" ng-click="createController.toggle()">
|
<div class="s-menu-button major create-button" ng-click="createController.toggle()">
|
||||||
<span class="title-label">Create</span>
|
<span class="title-label">Create</span>
|
||||||
</div>
|
</div>
|
||||||
<div class="menu super-menu" ng-show="createController.isActive()">
|
<div class="menu super-menu" ng-show="createController.isActive()">
|
||||||
|
@ -52,7 +52,7 @@
|
|||||||
display: inline-block;
|
display: inline-block;
|
||||||
}
|
}
|
||||||
|
|
||||||
.s-menu-btn .invoke-menu,
|
.s-menu-button .invoke-menu,
|
||||||
.icon.major .invoke-menu {
|
.icon.major .invoke-menu {
|
||||||
margin-left: $interiorMarginSm;
|
margin-left: $interiorMarginSm;
|
||||||
}
|
}
|
||||||
|
@ -186,7 +186,7 @@ label.radio.custom {
|
|||||||
label.checkbox.custom input:checked ~ em:before { content: $glyph-icon-check; }
|
label.checkbox.custom input:checked ~ em:before { content: $glyph-icon-check; }
|
||||||
label.radio.custom input:checked ~ em:before { content: $glyph-icon-bullet; }
|
label.radio.custom input:checked ~ em:before { content: $glyph-icon-bullet; }
|
||||||
|
|
||||||
.s-menu-btn label.checkbox.custom {
|
.s-menu-button label.checkbox.custom {
|
||||||
margin-left: 5px;
|
margin-left: 5px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -20,7 +20,7 @@
|
|||||||
* at runtime from the About dialog for additional information.
|
* at runtime from the About dialog for additional information.
|
||||||
*****************************************************************************/
|
*****************************************************************************/
|
||||||
/******************************************************** MENU BUTTONS */
|
/******************************************************** MENU BUTTONS */
|
||||||
.s-menu-btn {
|
.s-menu-button {
|
||||||
// Formerly .btn-menu
|
// Formerly .btn-menu
|
||||||
@extend .s-button;
|
@extend .s-button;
|
||||||
span.l-click-area {
|
span.l-click-area {
|
||||||
@ -53,7 +53,7 @@
|
|||||||
color: rgba($colorInvokeMenu, percentToDecimal($contrastInvokeMenuPercent));
|
color: rgba($colorInvokeMenu, percentToDecimal($contrastInvokeMenuPercent));
|
||||||
}
|
}
|
||||||
|
|
||||||
&.create-btn {
|
&.create-button {
|
||||||
@extend .icon-plus;
|
@extend .icon-plus;
|
||||||
.title-label {
|
.title-label {
|
||||||
font-size: 1rem;
|
font-size: 1rem;
|
||||||
@ -122,7 +122,7 @@
|
|||||||
.icon-menu,
|
.icon-menu,
|
||||||
.context-menu,
|
.context-menu,
|
||||||
.super-menu,
|
.super-menu,
|
||||||
.s-menu-btn .menu {
|
.s-menu-button .menu {
|
||||||
pointer-events: auto;
|
pointer-events: auto;
|
||||||
ul li {
|
ul li {
|
||||||
a.menu-item-a {
|
a.menu-item-a {
|
||||||
|
@ -37,7 +37,7 @@ body.mobile {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.create-btn-holder {
|
.create-button-holder {
|
||||||
// Hide the create button by default in mobile;
|
// Hide the create button by default in mobile;
|
||||||
// This can be overridden by the examples/mobile bundle
|
// This can be overridden by the examples/mobile bundle
|
||||||
display: none;
|
display: none;
|
||||||
|
@ -50,7 +50,7 @@
|
|||||||
}
|
}
|
||||||
&.frame-template {
|
&.frame-template {
|
||||||
.s-button,
|
.s-button,
|
||||||
.s-menu-btn {
|
.s-menu-button {
|
||||||
height: $ohH;
|
height: $ohH;
|
||||||
line-height: $ohH;
|
line-height: $ohH;
|
||||||
padding: 0 $interiorMargin;
|
padding: 0 $interiorMargin;
|
||||||
@ -60,7 +60,7 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.s-menu-btn:after {
|
.s-menu-button:after {
|
||||||
font-size: 8px;
|
font-size: 8px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -192,11 +192,11 @@ body.desktop .pane .mini-tab-icon.toggle-pane {
|
|||||||
right: 0;
|
right: 0;
|
||||||
bottom: $interiorMargin;
|
bottom: $interiorMargin;
|
||||||
left: $bodyMargin;
|
left: $bodyMargin;
|
||||||
.create-btn-holder {
|
.create-button-holder {
|
||||||
&.s-status-editing {
|
&.s-status-editing {
|
||||||
display: none;
|
display: none;
|
||||||
& + .search-holder .search-bar {
|
& + .search-holder .search-bar {
|
||||||
// .search-holder is adjacent sibling to .create-btn-holder
|
// .search-holder is adjacent sibling to .create-button-holder
|
||||||
// Add right margin when create button is hidden, to make room for the collapse pane 'x' button
|
// Add right margin when create button is hidden, to make room for the collapse pane 'x' button
|
||||||
margin-right: $interiorMarginLg * 2;
|
margin-right: $interiorMarginLg * 2;
|
||||||
}
|
}
|
||||||
@ -239,9 +239,9 @@ body.desktop .pane .mini-tab-icon.toggle-pane {
|
|||||||
|
|
||||||
.object-browse-bar .s-button,
|
.object-browse-bar .s-button,
|
||||||
.top-bar .buttons-main .s-button,
|
.top-bar .buttons-main .s-button,
|
||||||
.top-bar .s-menu-btn,
|
.top-bar .s-menu-button,
|
||||||
.tool-bar .s-button,
|
.tool-bar .s-button,
|
||||||
.tool-bar .s-menu-btn {
|
.tool-bar .s-menu-button {
|
||||||
$h: $btnToolbarH;
|
$h: $btnToolbarH;
|
||||||
height: $h;
|
height: $h;
|
||||||
line-height: $h;
|
line-height: $h;
|
||||||
|
@ -20,7 +20,7 @@
|
|||||||
at runtime from the About dialog for additional information.
|
at runtime from the About dialog for additional information.
|
||||||
-->
|
-->
|
||||||
<span ng-controller="ViewSwitcherController">
|
<span ng-controller="ViewSwitcherController">
|
||||||
<div class="view-switcher menu-element s-menu-btn {{ngModel.selected.cssclass}}"
|
<div class="view-switcher menu-element s-menu-button {{ngModel.selected.cssclass}}"
|
||||||
ng-if="view.length > 1"
|
ng-if="view.length > 1"
|
||||||
ng-controller="ClickAwayController as toggle">
|
ng-controller="ClickAwayController as toggle">
|
||||||
|
|
||||||
|
@ -97,7 +97,7 @@
|
|||||||
ng-show="plot.isZoomed()"
|
ng-show="plot.isZoomed()"
|
||||||
title="Reset pan/zoom">
|
title="Reset pan/zoom">
|
||||||
</a>
|
</a>
|
||||||
<div class="menu-element s-menu-btn menus-to-left {{plot.getMode().cssclass}}"
|
<div class="menu-element s-menu-button menus-to-left {{plot.getMode().cssclass}}"
|
||||||
ng-if="plot.getModeOptions().length > 1"
|
ng-if="plot.getModeOptions().length > 1"
|
||||||
ng-controller="ClickAwayController as toggle">
|
ng-controller="ClickAwayController as toggle">
|
||||||
<span class="l-click-area" ng-click="toggle.toggle()"></span>
|
<span class="l-click-area" ng-click="toggle.toggle()"></span>
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
<a class="t-btn l-btn s-button t-export icon-download labeled"
|
<a class="s-button t-export icon-download labeled"
|
||||||
ng-click="exportAsCSV()"
|
ng-click="exportAsCSV()"
|
||||||
title="Export This View's Data">
|
title="Export This View's Data">
|
||||||
Export
|
Export
|
||||||
|
@ -102,20 +102,20 @@
|
|||||||
|
|
||||||
<!-- TOP PANE GANTT BARS -->
|
<!-- TOP PANE GANTT BARS -->
|
||||||
<div class="split-pane-component l-timeline-pane t-pane-h l-pane-top t-timeline-gantt l-timeline-gantt s-timeline-gantt">
|
<div class="split-pane-component l-timeline-pane t-pane-h l-pane-top t-timeline-gantt l-timeline-gantt s-timeline-gantt">
|
||||||
<div class="l-hover-btns-holder s-hover-btns-holder t-btns-zoom">
|
<div class="l-hover-btns-holder s-hover-btns-holder">
|
||||||
<a class="t-btn l-btn s-button icon-arrows-out"
|
<a class="s-button icon-arrows-out"
|
||||||
ng-click="zoomController.fit()"
|
ng-click="zoomController.fit()"
|
||||||
ng-show="true"
|
ng-show="true"
|
||||||
title="Zoom to fit">
|
title="Zoom to fit">
|
||||||
</a>
|
</a>
|
||||||
|
|
||||||
<a class="t-btn l-btn s-button icon-magnify-in"
|
<a class="s-button icon-magnify-in"
|
||||||
ng-click="zoomController.zoom(-1)"
|
ng-click="zoomController.zoom(-1)"
|
||||||
ng-show="true"
|
ng-show="true"
|
||||||
title="Zoom in">
|
title="Zoom in">
|
||||||
</a>
|
</a>
|
||||||
|
|
||||||
<a class="t-btn l-btn s-button icon-magnify-out"
|
<a class="s-button icon-magnify-out"
|
||||||
ng-click="zoomController.zoom(1)"
|
ng-click="zoomController.zoom(1)"
|
||||||
ng-show="true"
|
ng-show="true"
|
||||||
title="Zoom out">
|
title="Zoom out">
|
||||||
|
@ -19,7 +19,7 @@
|
|||||||
this source code distribution or the Licensing information page available
|
this source code distribution or the Licensing information page available
|
||||||
at runtime from the About dialog for additional information.
|
at runtime from the About dialog for additional information.
|
||||||
-->
|
-->
|
||||||
<div class="t-btn l-btn s-button s-menu-btn menu-element t-color-palette {{structure.cssclass}}"
|
<div class="s-button s-menu-button menu-element t-color-palette {{structure.cssclass}}"
|
||||||
ng-controller="ClickAwayController as toggle">
|
ng-controller="ClickAwayController as toggle">
|
||||||
|
|
||||||
<span class="l-click-area" ng-click="toggle.toggle()"></span>
|
<span class="l-click-area" ng-click="toggle.toggle()"></span>
|
||||||
|
@ -19,7 +19,7 @@
|
|||||||
this source code distribution or the Licensing information page available
|
this source code distribution or the Licensing information page available
|
||||||
at runtime from the About dialog for additional information.
|
at runtime from the About dialog for additional information.
|
||||||
-->
|
-->
|
||||||
<div class="s-menu-btn menu-element {{ structure.cssclass }}"
|
<div class="s-menu-button menu-element {{ structure.cssclass }}"
|
||||||
ng-controller="ClickAwayController as toggle">
|
ng-controller="ClickAwayController as toggle">
|
||||||
|
|
||||||
<span class="l-click-area" ng-click="toggle.toggle()"></span>
|
<span class="l-click-area" ng-click="toggle.toggle()"></span>
|
||||||
|
Loading…
Reference in New Issue
Block a user