Skip to content

Commit

Permalink
added crop icon
Browse files Browse the repository at this point in the history
  • Loading branch information
Nick Faulkner committed Sep 3, 2015
1 parent 3956494 commit 7b2941c
Show file tree
Hide file tree
Showing 10 changed files with 50 additions and 7 deletions.
3 changes: 2 additions & 1 deletion infl-fonts/influicons.css
Original file line number Diff line number Diff line change
Expand Up @@ -99,4 +99,5 @@
.ic.ic-disqus:before { content: "\E04B" }
.ic.ic-circle-empty:before { content: "\E04C" }
.ic.ic-cursor-click:before { content: "\E04D" }
.ic.ic-coins-old:before { content: "\E04E" }
.ic.ic-crop:before { content: "\E04E" }
.ic.ic-coins-old:before { content: "\E04F" }
Binary file modified infl-fonts/influicons.eot
Binary file not shown.
5 changes: 5 additions & 0 deletions infl-fonts/influicons.html
Original file line number Diff line number Diff line change
Expand Up @@ -395,6 +395,11 @@
<span class="ic ic-cursor-click">
</p>

<p>
<span class="ic ic-crop" /></span>
&lt;span class="ic ic-crop"&gt;
</p>

<p>
<span class="ic ic-coins-old" /></span>
&lt;span class="ic ic-coins-old"&gt;
Expand Down
5 changes: 4 additions & 1 deletion infl-fonts/influicons.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified infl-fonts/influicons.ttf
Binary file not shown.
Binary file modified infl-fonts/influicons.woff
Binary file not shown.
12 changes: 10 additions & 2 deletions infl-patternlab/source/css/style.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

16 changes: 15 additions & 1 deletion infl-patternlab/source/js/infl-components.js
Original file line number Diff line number Diff line change
Expand Up @@ -4358,6 +4358,17 @@ var UploadFile = function(initializeFilepicker, uploadOptions){
window.filepicker.pick(optionsWithCompression, onSuccess, onError);
}

function crop(onSuccess, ratio, image){
var optionsWithCrop = uploadOptions();
if(ratio){
optionsWithCrop.cropRatio = ratio;
}
optionsWithCrop.services.push('CONVERT');
optionsWithCrop.conversions = ['crop'];

window.filepicker.processImage(image, optionsWithCrop, onSuccess);
}

function onError(FPError){
console.log(FPError);
}
Expand All @@ -4367,7 +4378,8 @@ var UploadFile = function(initializeFilepicker, uploadOptions){
upload : upload,
uploadWithCrop : uploadWithCrop,
covertToImage : covertToImage,
uploadAndCompress : uploadAndCompress
uploadAndCompress : uploadAndCompress,
crop : crop
};
};

Expand Down Expand Up @@ -53923,6 +53935,8 @@ var icons = {

"cursor-click": "cursor-click",

"crop": "crop",

"coins-old": "coins-old",


Expand Down
2 changes: 2 additions & 0 deletions infl-patternlab/source/js/patterns/atoms/influicons-list.js
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,8 @@ var icons = {

"cursor-click": "cursor-click",

"crop": "crop",

"coins-old": "coins-old",


Expand Down
14 changes: 12 additions & 2 deletions infl-styles/_icon.scss
Original file line number Diff line number Diff line change
Expand Up @@ -775,12 +775,22 @@
}


.ic.ic-coins-old:before {
.ic.ic-crop:before {
content: "\E04E"
}

@mixin ic-coins-old() {
@mixin ic-crop() {
font-family: 'influicons';
content: "\E04E"
}


.ic.ic-coins-old:before {
content: "\E04F"
}

@mixin ic-coins-old() {
font-family: 'influicons';
content: "\E04F"
}

0 comments on commit 7b2941c

Please sign in to comment.