Skip to content

Commit

Permalink
feat(style): use no-intense instead of nointese
Browse files Browse the repository at this point in the history
BREAKING CHANGE: This will break your current layout if you're using `nointense` for your images, please rename the classes to `no-intense`, sorry for the inconvenience.
  • Loading branch information
sparanoid committed Aug 26, 2015
1 parent 9a78b77 commit 5076db8
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion _app/_includes/themes/curtana/includes/js.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<script src="{{ '/js/intense.js' | prepend: amsf_theme_assets }}"></script>
<script>
window.onload = function() {
var fx = document.querySelectorAll('p > img:not(.nointense)');
var fx = document.querySelectorAll('p > img:not(.no-intense)');
var el = document.body;
var cl = 'loaded'

Expand Down
6 changes: 3 additions & 3 deletions _app/_posts/note/2014-06-01-custom-html-markups.md
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ Please note that you can't apply CSS classes in Markdown, so you have to use HTM

### Example

<p class="browser"><img src="http://rsrc.sparanoid.com/delicious.com.png" alt="Delicious Preview" class="nointense"></p>
<p class="browser"><img src="http://rsrc.sparanoid.com/delicious.com.png" alt="Delicious Preview" class="no-intense"></p>

## [intense.js](http://github.com/tholman/intense-images)

Expand Down Expand Up @@ -98,11 +98,11 @@ Or simply use HTML:
</p>
```

`intense.js` is activated globally by default, if you want to disable this effect for specific image, you can simply apply `.nointense` CSS class to your `<img>`:
`intense.js` is activated globally by default, if you want to disable this effect for specific image, you can simply apply `.no-intense` CSS class to your `<img>`:

```html
<p>
<img src="http://sparanoid.com/photo.jpg" class="nointense" alt="Image">
<img src="http://sparanoid.com/photo.jpg" class="no-intense" alt="Image">
</p>
```

Expand Down
2 changes: 1 addition & 1 deletion _app/assets/themes/curtana/_less/module-plugins.less
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

.intense-wrap {

article p > img:not(.nointense) {
article p > img:not(.no-intense) {
cursor: zoom-in;
}
}
Expand Down

0 comments on commit 5076db8

Please sign in to comment.