Skip to content

Instantly share code, notes, and snippets.

@maxisam
Created October 28, 2016 19:02
Show Gist options
  • Save maxisam/7130954b383647e32bab38e4259c9e17 to your computer and use it in GitHub Desktop.
Save maxisam/7130954b383647e32bab38e4259c9e17 to your computer and use it in GitHub Desktop.
angular2-data-table icon power by font-awesome
@import (reference) "../../../../node_modules/font-awesome/less/variables.less";
/* data-table */
[data-icon]:before {
font-family: "FontAwesome" !important;
content: attr(data-icon);
font-style: normal !important;
font-weight: normal !important;
font-variant: normal !important;
text-transform: none !important;
speak: none;
line-height: 1;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}
[class^="icon-"]:before,
[class*=" icon-"]:before {
font-family: "FontAwesome" !important;
font-style: normal !important;
font-weight: normal !important;
font-variant: normal !important;
text-transform: none !important;
speak: none;
line-height: 1;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}
.icon-filter:before {
content: @fa-var-filter;
}
.icon-collapse:before {
content: @fa-var-minus;
}
.icon-expand:before {
content: @fa-var-plus;
}
.icon-close:before {
content: @fa-var-close;
}
.icon-up:before {
content: @fa-var-chevron-up;
}
.icon-down:before {
content: @fa-var-chevron-down;
}
.icon-sort:before {
content: @fa-var-sort;
}
.icon-done:before {
content: @fa-var-check-circle;
}
.icon-done-all:before {
content: @fa-var-check-square;
}
.icon-search:before {
content: @fa-var-search;
}
.icon-pin:before {
content: @fa-var-thumb-tack;
}
.icon-add:before {
content: @fa-var-plus;
}
.icon-left:before {
content: @fa-var-chevron-left;
}
.icon-right:before {
content: @fa-var-chevron-right;
}
.icon-skip:before {
content: @fa-var-step-forward;
}
.icon-prev:before {
content: @fa-var-step-backward;
}
@bbrink68
Copy link

Here is the SCSS variant

@import  '../../../../node_modules/font-awesome/scss/variables.scss';

/* data-table */
[data-icon]:before {
  font-family: "FontAwesome" !important;
  content: attr(data-icon);
  font-style: normal !important;
  font-weight: normal !important;
  font-variant: normal !important;
  text-transform: none !important;
  speak: none;
  line-height: 1;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

[class^="icon-"]:before,
[class*=" icon-"]:before {
  font-family: "FontAwesome" !important;
  font-style: normal !important;
  font-weight: normal !important;
  font-variant: normal !important;
  text-transform: none !important;
  speak: none;
  line-height: 1;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.icon-filter:before {
  content: $fa-var-filter;
}

.icon-collapse:before {
  content: $fa-var-minus;
}

.icon-expand:before {
  content: $fa-var-plus;
}

.icon-close:before {
  content: $fa-var-close;
}

.icon-up:before {
  content: $fa-var-chevron-up;
}

.icon-down:before {
  content: $fa-var-chevron-down;
}

.icon-sort:before {
  content: $fa-var-sort;
}

.icon-done:before {
  content: $fa-var-check-circle;
}

.icon-done-all:before {
  content: $fa-var-check-square;
}

.icon-search:before {
  content: $fa-var-search;
}

.icon-pin:before {
  content: $fa-var-thumb-tack;
}

.icon-add:before {
  content: $fa-var-plus;
}

.icon-left:before {
  content: $fa-var-chevron-left;
}

.icon-right:before {
  content: $fa-var-chevron-right;
}

.icon-skip:before {
  content: $fa-var-step-forward;
}

.icon-prev:before {
  content: $fa-var-step-backward;
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment