Skip to content

Commit

Permalink
[Frontend] Refactoring glyphs to classes
Browse files Browse the repository at this point in the history
Fixes #1047
In-progress; .labeled added  to .s-btn,
removed .s-icon-btn
  • Loading branch information
charlesh88 committed Jun 28, 2016
1 parent 521db3c commit 4e2a01a
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 21 deletions.
4 changes: 2 additions & 2 deletions platform/commonUI/edit/bundle.js
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@ define([
"category": "conclude-editing",
"implementation": SaveAction,
"name": "Save",
"cssclass": "icon-save",
"cssclass": "icon-save labeled",
"description": "Save changes made to these objects.",
"depends": [
"dialogService"
Expand All @@ -220,7 +220,7 @@ define([
"category": "conclude-editing",
"implementation": SaveAsAction,
"name": "Save As...",
"cssclass": "icon-save",
"cssclass": "icon-save labeled",
"description": "Save changes made to these objects.",
"depends": [
"$injector",
Expand Down
20 changes: 2 additions & 18 deletions platform/commonUI/general/res/sass/controls/_buttons.scss
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,7 @@
$baseRatio: 1.5;
$pad: $interiorMargin * $baseRatio;

.s-btn,
.s-icon-btn {
.s-btn {
@include user-select(none);
cursor: pointer;
text-decoration: none;
Expand All @@ -38,7 +37,7 @@ $pad: $interiorMargin * $baseRatio;
vertical-align: top;
@include btnSubtle($colorBtnBg, $colorBtnBgHov, $colorBtnFg, $colorBtnIcon);

&:before {
&.labeled:before {
// Icon when it's included
margin-right: $interiorMarginSm;
}
Expand Down Expand Up @@ -83,21 +82,6 @@ $pad: $interiorMargin * $baseRatio;
}
}

.s-icon-btn {
// TODO: glyph refactoring
$c: $colorKey;
@extend .s-btn;
&:before {
@extend .ui-symbol;
content: '\e901';
color: $colorKey;
margin-right: $interiorMargin;
}
&:hover:before {
color: pullForward($c, 10%);
}
}

body.desktop .mini-tab {
// Meant to be used as pane hide/show control elements in concert with mct-splitter
$iconH: $uePaneMiniTabH;
Expand Down
2 changes: 1 addition & 1 deletion platform/features/table/res/templates/mct-table.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<a class="t-btn l-btn s-btn t-export icon-download"
<a class="t-btn l-btn s-btn t-export icon-download labeled"
ng-click="exportAsCSV()"
title="Export This View's Data">
Export
Expand Down

0 comments on commit 4e2a01a

Please sign in to comment.