diff options
author | Teddy Wing | 2014-04-21 17:17:29 -0400 |
---|---|---|
committer | Teddy Wing | 2014-04-21 17:17:29 -0400 |
commit | 467d895401b05d5e7ba0431d541593926af7e597 (patch) | |
tree | 82d2af3439d25bf37c9c06ab49778af4ae45096d /README.md | |
parent | aa92a665b10bef4930e5e7e00039a742d5cce6fa (diff) | |
download | django-sneak-peek-467d895401b05d5e7ba0431d541593926af7e597.tar.bz2 |
README: update Customising section
* Add more information about how the template tag works
* Modify the CSS example to be more explicit now that the
`.django-sneak-peek` class doesn't apply any styles of its own.
Diffstat (limited to 'README.md')
-rw-r--r-- | README.md | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -140,11 +140,12 @@ Preferred for inline-block elements. Sets `display: inline-block;` on the sneak ## Customising As you may have guessed, you can add custom display styles to `django-sneak-peek`. In addition to overriding the existing CSS classes, you can also create your own. +The `sneak_peek` template tag argument is passed directly to the `class` attribute of the sneak peek wrapper `<div>`. + Here's an example of a class you can add to your CSS to add custom styles to a sneak peek element: .django-sneak-peek.green-border { - border-color: green; - border-width: 5px; + border: 5px solid green; } This custom class can be applied with: |