Because we are using pseudo-elements (:after
) to create filter effects, you must apply these filters on a containing element (i.e. not a content-block like <img>
. The recommendation is to wrap your images in a <figure>
tag. Read more about the figure tag here.
There are currently 2 ways to consume this library.
@extends
/scss folder contents
scss/cssgram.scss
or any individual file (i.e. scss/aden.scss
) into your Sass manifest@extend %aden;
in your element.For example:
<!-- HTML -->
<figure class="viz--beautiful">
<img src="../img.png" alt="">
</figure>
// Sass
.viz--beautiful {
@extend %aden;
}
<link rel="stylesheet" href="css/vendor/cssgram.min.css">
or any individual css file (i.e. <link rel="stylesheet" href="css/vendor/aden.min.css">
)For example:
<!-- HTML -->
<figure class="aden">
<img src="../img.png" alt="">
</figure>