From 4b2322add37df3a958bf592d7b2d47dbc1bae518 Mon Sep 17 00:00:00 2001 From: Una Kravets Date: Sat, 8 Oct 2016 14:44:12 -0400 Subject: [PATCH] updated info because of cdnjs (#233) --- README.md | 2 +- site/index.html | 2 +- site/index.twig | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index dd9b2bf..8292d5b 100644 --- a/README.md +++ b/README.md @@ -28,7 +28,7 @@ For more information, check on [Can I Use](http://caniuse.com/#feat=css-filters) When using CSS classes, you can simply add the class with the filter name to the element containing your image. - 1. Include the CDN link in your `` tag: `` + 1. Include the CDN link in your `` tag: ``. We're also on [CDNJS](https://cdnjs.com/libraries/cssgram) which means another option is `` * Alternatively, you can [download the CSSgram library](https://raw.githubusercontent.com/una/CSSgram/master/source/css/cssgram.min.css) locally and link to the it within your project: `` * Add a class to your image element with the name of the filter you would like to use diff --git a/site/index.html b/site/index.html index 642eda4..72f3d12 100644 --- a/site/index.html +++ b/site/index.html @@ -238,7 +238,7 @@

1. Use CSS classes

When using CSS classes, you can simply add the class with the filter name to the element containing your image.

-

The quickest way to do this is to link to our CDN in your <head> tag: <link rel="stylesheet" href="https://cssgram-cssgram.netdna-ssl.com/cssgram.min.css">. Then, add a class to your figure element with the name of the filter you would like to use (shown below)

+

The quickest way to do this is to link to our CDN in your <head> tag: <link rel="stylesheet" href="https://cssgram-cssgram.netdna-ssl.com/cssgram.min.css"> (OR you can now use CDNJS with <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/cssgram/0.1.10/cssgram.min.css"> ). Then, add a class to your figure element with the name of the filter you would like to use (shown below)

If you want to work locally, do the following:

diff --git a/site/index.twig b/site/index.twig index 0b84ebd..bc749dc 100644 --- a/site/index.twig +++ b/site/index.twig @@ -87,7 +87,7 @@

When using CSS classes, you can simply add the class with the filter name to the element containing your image.

-

The quickest way to do this is to link to our CDN in your <head> tag: <link rel="stylesheet" href="https://cssgram-cssgram.netdna-ssl.com/cssgram.min.css">. Then, add a class to your figure element with the name of the filter you would like to use (shown below)

+

The quickest way to do this is to link to our CDN in your <head> tag: <link rel="stylesheet" href="https://cssgram-cssgram.netdna-ssl.com/cssgram.min.css"> (OR you can now use CDNJS with <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/cssgram/0.1.10/cssgram.min.css"> ). Then, add a class to your figure element with the name of the filter you would like to use (shown below)

If you want to work locally, do the following: