Skip to content
This repository has been archived by the owner on Jun 10, 2024. It is now read-only.

Commit

Permalink
Update README.rst
Browse files Browse the repository at this point in the history
  • Loading branch information
Mishbah committed Oct 2, 2014
1 parent 26b1c7f commit d141098
Showing 1 changed file with 10 additions and 12 deletions.
22 changes: 10 additions & 12 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -125,18 +125,16 @@ is the name of the media query. This attribute returns ``True/False``.

Continuing with the example ``RESPONSIVE_MEDIA_QUERIES`` settings above, here’s a simple corresponding template::

<div class="container">
<div class="row">
{% if device.is_iphone %}
<div class="app-store">
<a href="https://itunes.apple.com/gb/app/yo./id834335592">Available on the App Store</a>
</div>
{% endif %}

...

</div>
</div>
<div class="container">
<div class="row">
{% if device.is_iphone %}
{# this snippet will only be rendered for retina devices with min_width = 320 #}
<div class="app-store">
<a href="#">Available on the App Store</a>
</div>
{% endif %}
</div>
</div>

Quickstart
----------
Expand Down

0 comments on commit d141098

Please sign in to comment.