example code in css-slideshows

This commit is contained in:
Eric Meyer 2010-04-26 18:04:55 -06:00
parent a7559fcdd5
commit ba996c7ecc
4 changed files with 54 additions and 10 deletions

View File

@ -4,3 +4,24 @@
h1 h1
text-align: center text-align: center
#how
+full(12)
+pie-clearfix
+adjust-font-size-to(12px)
+h-borders(1px,1,12px)
border-color: #ccc
font-family: monospace
nav
background: #eee
+trailer(1,12px)
ul
+inline-block-list(.4em)
text-align: right
section
position: relative
+columns(6,12)
+slideshow
&#markup
+alpha(12)
&#styles
+omega(12)

View File

@ -6,7 +6,7 @@
// **Not compatible with Opera without Javascript help** // **Not compatible with Opera without Javascript help**
// Override with the proper class names for your slide/slide-nav containers // Override with the proper class names for your slide/slide-nav containers
$slide-container: ".slides" $slide-container: ".code"
$max-slides: 10 $max-slides: 10

View File

@ -4,10 +4,33 @@
= yield = yield
#how #how
#markup %section#markup
%pre#haml= h(example_haml) %nav
%pre#html= h(example_html) %ul
#styles %li
%pre#scss= h(example_scss) %a{:href => "#haml"} haml
%pre#sass= h(example_sass) %li
%pre#css= h(example_css) %a{:href => "#html"} html
.code
%ul
%li#haml
%pre= h(example_haml)
%li#html
%pre= h(example_html)
%section#styles
%nav
%ul
%li
%a{:href => "#scss"} scss
%li
%a{:href => "#sass"} sass
%li
%a{:href => "#css"} css
.code
%ul
%li#scss
%pre#scss= h(example_scss)
%li#sass
%pre#sass= h(example_sass)
%li#css
%pre#css= h(example_css)

View File

@ -2,6 +2,6 @@
%h2 Examples %h2 Examples
%dl.examples %dl.examples
- examples.each do |example| - examples.each do |example|
%dt= link_to example.item[:title], example, :target => "_blank" %dt= link_to example.item[:title], example
- if example.item[:description] - if example.item[:description]
%dd= example.item[:description] %dd= example.item[:description]