[Frontend] In-progress checkin: migrating style tags to classes, other
WTD-894 Significant migration of inline styles to CSS classes; Changed telemetry component so that when title is hidden, telem element can take up 100% of the element width; Static text elements now show scrollbars on overflow; Added padding and box-sizing to text elements - this is throwing off the selected control because of the offset and should be fixed;
This commit is contained in:
@@ -3,23 +3,21 @@
|
||||
mct-resize="controller.setBounds(bounds)">
|
||||
|
||||
<!-- Background grid -->
|
||||
<span ng-click="controller.clearSelection()">
|
||||
<!--div ng-repeat="cell in controller.getCellStyles()"
|
||||
class="l-grid-cell s-grid-cell"
|
||||
ng-style="cell">
|
||||
</div-->
|
||||
<span class="s-grid l-grid-x" ng-style="{ 'background-size': controller.getGridSize() [0] + 'px 100%' }"></span>
|
||||
<span class="s-grid l-grid-y" ng-style="{ 'background-size': '100% ' + controller.getGridSize() [1] + 'px' }"></span>
|
||||
</span>
|
||||
<div class="l-grid-holder" ng-click="controller.clearSelection()">
|
||||
<div class="l-grid l-grid-x" ng-style="{ 'background-size': controller.getGridSize() [0] + 'px 100%' }"></div>
|
||||
<div class="l-grid l-grid-y" ng-style="{ 'background-size': '100% ' + controller.getGridSize() [1] + 'px' }"></div>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
<!-- Fixed position elements -->
|
||||
<!-- TO-DO: Should not be applying positioning styles to the mct-include element.
|
||||
Instead, these should be passed on to the actual HTML element within the template -->
|
||||
<mct-include ng-repeat="element in controller.getElements()"
|
||||
style="position: absolute;"
|
||||
key="element.template"
|
||||
parameters="{ gridSize: controller.getGridSize() }"
|
||||
ng-class="{ disabled: controller.selected() && !controller.selected(element) }"
|
||||
class="l-fixed-position-item"
|
||||
ng-class="{ 's-not-selected': controller.selected() && !controller.selected(element) }"
|
||||
ng-style="element.style"
|
||||
ng-click="controller.select(element)"
|
||||
ng-model="element">
|
||||
@@ -27,20 +25,18 @@
|
||||
|
||||
<!-- Selection highlight, handles -->
|
||||
<span ng-if="controller.selected()">
|
||||
<div class="s-fixed-position-item-selected"
|
||||
style="position: absolute;"
|
||||
<div class="l-fixed-position-item s-selected"
|
||||
mct-drag-down="controller.moveHandle().startDrag(controller.selected())"
|
||||
mct-drag="controller.moveHandle().continueDrag(delta)"
|
||||
mct-drag-up="controller.moveHandle().endDrag()"
|
||||
ng-style="controller.selected().style">
|
||||
</div>
|
||||
<div ng-repeat="handle in controller.handles()"
|
||||
style="position: absolute;"
|
||||
class="l-fixed-position-item-handle"
|
||||
ng-style="handle.style()"
|
||||
mct-drag-down="handle.startDrag()"
|
||||
mct-drag="handle.continueDrag(delta)"
|
||||
mct-drag-up="handle.endDrag()">
|
||||
O
|
||||
</div>
|
||||
</span>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user