compass/doc-src/content/reference/blueprint.haml

26 lines
923 B
Plaintext
Raw Normal View History

%h1= item[:title]
%p
The blueprint module is a simple way of importing all of the most
commonly used blueprint modules. In addition, it provides
a single mixin, <code class="mixin">+blueprint</code>, that
can be used to generate the blueprint css styles.
2010-01-24 03:44:22 +00:00
= render "partials/reference/imports"
2010-01-22 19:40:56 +00:00
%h2 Mixins
- mixins(@item).each do |mixin|
%a.view-source{:href=>"#", :onclick => "$('#mixin-source-#{mixin.name}').dialog('open'); return false;"} View Source
%h3.mixin{:id=>"mixin-#{mixin.name}"}
%a.permalink{:href => "#mixin-#{mixin.name}"}= mixin_signature mixin
2010-01-22 19:40:56 +00:00
.source-documentation= format_doc(mixin.comment)
- render 'dialog', :title => "Source for +#{mixin.name}", :id => "mixin-source-#{mixin.name}" do
%pre.source-code.sass= mixin.to_sass
- content_for :footer do
:javascript
$(function(){
$('.ui-dialog').dialog({hide: true, modal: true, autoOpen: false, width: 400});
});