2010-01-21 06:25:44 +00:00
|
|
|
!!! Strict
|
|
|
|
%html
|
|
|
|
%head
|
|
|
|
%title
|
|
|
|
#{@item[:title]} - Compass
|
|
|
|
%meta{ :content => "text/html; charset=utf-8", "http-equiv" => "Content-Type" }
|
|
|
|
%link{ :href => "/stylesheets/main.css", :rel => "stylesheet", :type => "text/css", :media => "screen" }
|
2010-01-23 09:08:00 +00:00
|
|
|
%link{ :href => "/stylesheets/ui-lightness/jquery-ui-1.7.2.custom.css", :rel => "stylesheet", :type => "text/css", :media => "screen" }
|
|
|
|
%script{:src => "/javascripts/jquery-1.3.2.min.js", :type => "text/javascript"}
|
|
|
|
%script{:src => "/javascripts/jquery-ui-1.7.2.custom.min.js", :type => "text/javascript"}
|
2010-01-24 09:34:05 +00:00
|
|
|
%script{:src => "/javascripts/jquery.tipsy.js", :type => "text/javascript"}
|
2010-01-21 19:54:47 +00:00
|
|
|
%body{body_attributes(@item)}
|
2010-01-21 06:25:44 +00:00
|
|
|
#container
|
|
|
|
#main
|
|
|
|
= yield
|
|
|
|
#sidebar
|
|
|
|
%h2
|
|
|
|
Compass Documentation
|
|
|
|
%ul
|
2010-01-28 08:00:56 +00:00
|
|
|
%li= link_to "Blueprint Reference", reference_path(:stylesheet => "_blueprint.sass")
|
|
|
|
%li= link_to "Compass Reference", reference_path(:stylesheet => "_compass.sass")
|
2010-01-24 09:34:05 +00:00
|
|
|
#footer= @item[:content_for_footer]
|
|
|
|
:javascript
|
|
|
|
$(function(){
|
|
|
|
$('span.color').tipsy({
|
|
|
|
gravity: $.fn.tipsy.autoNS,
|
|
|
|
html: 'html',
|
|
|
|
opacity: 1,
|
|
|
|
title: function() {
|
|
|
|
return "<div style='background-color:"+$(this).html()+";' class='color-snippet'></div>";
|
|
|
|
}
|
|
|
|
});
|
|
|
|
});
|