Sha256: 644880a7085f6e3614d53d98a9dd9a478736b2214392b1d7da12a7544fbf6645

Contents?: true

Size: 873 Bytes

Versions: 1

Compression:

Stored size: 873 Bytes

Contents

<section id="position">
  <h2>Position <a class="view-source" href="https://github.com/thoughtbot/bourbon/blob/master/app/assets/stylesheets/addons/_position.scss">View source</a></h2>
  <p>Shorthand notation for setting the position of elements in your page.</p>
  <p>The first parameter is optional, with a default value of relative. The second parameter is a space delimited list of values that follow the standard CSS shorthand notation.</p>
  <p>Note: unit-less values will be ignored. In the example above, this means that selectors will not be generated for the right and bottom positions, while the top position is set to 0px.</p>

  <p>Instead of writing:</p>
{% highlight scss %}
position: relative;
top: 0px;
left: 100px;
{% endhighlight %}

  <p>Your can write:</p>
{% highlight scss %}
@include position(relative, 0px 0 0 100px);
{% endhighlight %}
</section>

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
bourbon-2.1.0 _includes/position.html