sass-site/source/index.html.haml

172 lines
5.3 KiB
Plaintext
Raw Normal View History

---
title: Sass | Syntactically Awesome Style Sheets
---
2012-11-28 17:23:08 +01:00
.introduction
%h1 CSS with super powers
2012-11-28 17:23:08 +01:00
%p Sass is an extension of CSS 3 with a bunch of added features. Already thought CSS was fun? Wait until you add Sass to the mix!
%h2 Get up and running quickly with:
%ul.quick-starts
2012-11-29 06:00:50 +01:00
%li.command-line
2012-11-29 18:33:08 +01:00
.quick-start-content
%h3 Command Line
%p.illustration
%span.circle= image_tag "illustrations/command-line.png", :width => "48", :height => "48", :alt => "CLI Illustration"
%p.description Feel comfortable using a terminal, Ruby & Gems?
.call-to-action
%p= link_to "CLI Quickstart", '#', :class => 'button'
%pre
%code
gem install sass
2012-11-29 06:00:50 +01:00
%li.gui-application
2012-11-29 18:33:08 +01:00
.quick-start-content
%h3 GUI Application
%p.illustration
%span.circle= image_tag "illustrations/gui.png", :width => "48", :height => "48", :alt => "GUI Quickstart"
%p.description Get started quickly by installing a Sass for Linux, Mac or Windows.
.call-to-action
%p= link_to "GUI Quickstart", '#', :class => 'button'
%p= link_to "Download Compass.app", '#', :class => 'button'
2012-11-28 12:59:42 +01:00
2012-11-28 17:23:08 +01:00
- content_for :content_bottom do
.message.release-information
.container
%p
Current Release:
%strong Media Mark (3.2.1)
%ul
%li= link_to "Release Notes", "#"
%li= link_to "Fork Sass on Github", "#"
.container
2012-11-29 18:33:08 +01:00
%h1 Sass Features
2012-11-28 17:23:08 +01:00
2012-11-29 18:33:08 +01:00
.slides
2012-11-28 17:23:08 +01:00
%nav.jump-navigation
%ul
2012-11-29 18:33:08 +01:00
%li= link_to "Preprocessing", '#1'
%li= link_to "Variables", '#2'
%li= link_to "Nesting", '#3'
%li= link_to "Mixins", '#4'
%li= link_to "Inheritance", '#5'
%li= link_to "Import", '#6'
%li= link_to "Extend", '#7'
%li= link_to "Operators", '#8'
.jump-topics
.slide
2012-11-28 17:23:08 +01:00
%h3 Preprocessing
%p A prepressor lets you take a Sass file and use features that don’t exist in CSS like variables, nesting, mixins, inheritance and other nifty goodies that make writing CSS fun again.
%pre
%code
example of preprocessing and css output
2012-11-29 18:33:08 +01:00
%p= link_to "Variables", "#2", :class => "link"
2012-11-28 17:23:08 +01:00
2012-11-29 18:33:08 +01:00
.slide
2012-11-28 17:23:08 +01:00
%h3 Variables
%p Variables definition
%pre
%code
example of preprocessing and css output
2012-11-29 18:33:08 +01:00
%p= link_to "Nesting", "#3", :class => "link"
2012-11-28 17:23:08 +01:00
2012-11-29 18:33:08 +01:00
.slide
2012-11-28 17:23:08 +01:00
%h3 Nesting
%p nesting definition
%pre
%code
example of nesting and css output
2012-11-29 18:33:08 +01:00
%p= link_to "Mixins", "#4", :class => "link"
2012-11-28 17:23:08 +01:00
2012-11-29 18:33:08 +01:00
.slide
2012-11-28 17:23:08 +01:00
%h3 Mixins
%p mixins definition
%pre
%code
example of mixins and css output
2012-11-29 18:33:08 +01:00
%p= link_to "Inheritance", "#5", :class => "link"
2012-11-28 17:23:08 +01:00
2012-11-29 18:33:08 +01:00
.slide
2012-11-28 17:23:08 +01:00
%h3 Inheritance
%p inheritance definition
%pre
%code
example of inheritance and css output
2012-11-29 18:33:08 +01:00
%p= link_to "Import", "#6", :class => "link"
2012-11-28 17:23:08 +01:00
2012-11-29 18:33:08 +01:00
.slide
2012-11-28 17:23:08 +01:00
%h3 Import
%p import definition
%pre
%code
example of import and css output
2012-11-29 18:33:08 +01:00
%p= link_to "Extend", "#7", :class => "link"
2012-11-28 17:23:08 +01:00
2012-11-29 18:33:08 +01:00
.slide
2012-11-28 17:23:08 +01:00
%h3 Extend
%p extend definition
%pre
%code
example of extend and css output
2012-11-29 18:33:08 +01:00
%p= link_to "Operators", "#8", :class => "link"
2012-11-28 17:23:08 +01:00
2012-11-29 18:33:08 +01:00
.slide
2012-11-28 17:23:08 +01:00
%h3 Operators
%p operators definition
%pre
%code
2012-11-29 18:33:08 +01:00
example of operators and css output
%p= link_to "Preprocessing", "#1", :class => "link"
%ul
%li= link_to "Prev", "#", :class => "prev"
%li= link_to "Next", "#", :class => "next"
#container
#example
#slides
.slides_container
.slide
%h3 First Slide
%p= lorem.paragraph
%p= link_to "Check out the fourth slide", "4", :class => "link button"
.slide
%h3 Second Slide
%p= lorem.paragraph
%p= link_to "Check out the fifth slide", "5", :class => "link button"
.slide
%h3 Third Slide
%p= lorem.paragraph
%p= link_to "Check out the first slide", "1", :class => "link button"
.slide
%h3 Fourth Slide
%p= lorem.paragraph
%p= link_to "Check out the sixth slide", "6", :class => "link button"
.slide
%h3 Fifth Slide
%p= lorem.paragraph
%p= link_to "Check out the seventh slide", "7", :class => "link button"
.slide
%h3 Sixth Slide
%p= lorem.paragraph
%p= link_to "Check out the first slide", "1", :class => "link button"
.slide
%h3 Seventh Slide
%p= lorem.paragraph
%p= link_to "Check out the third slide", "3", :class => "link button"
<a href="#" class="prev">
= image_tag "slides/arrow-prev.png", :width => "24", :height => "43", :alt => "Arrow Prev"
</a>
<a href="#" class="next">
= image_tag "slides/arrow-next.png", :width => "24", :height => "43", :alt => "Arrow Next"
</a>