made the stretching example be less lame.

This commit is contained in:
Chris Eppstein 2011-01-10 09:26:34 -08:00
parent ceeb11ec9a
commit b9be4702fd
2 changed files with 40 additions and 24 deletions

View File

@ -1,17 +1,30 @@
.example
Click on the the following links to make them stretch.
Click <a href="#">here</a> to dismiss it.
#stretch-container
%ul
%li
%a#stretch-full(href="#stretch-full")
%li.stretch-container
#stretch-full
This element is fully stretched.
%li
%a#stretch-offset(href="#stretch-offset")
%li.stretch-container
#stretch-offset
This element is stretched with a 1em offset on each side.
%li
%a#stretch-x(href="#stretch-x")
This element is stretched horizontally.
%li
%a#stretch-y(href="#stretch-y")
This element is stretched vertically.
%li.stretch-container
#stretch-x
This
%br
element
%br
is
%br
stretched
%br
horizontally.
%li.stretch-container
#stretch-y
This
%br
element
%br
is
%br
stretched
%br
vertically.

View File

@ -1,29 +1,32 @@
@import "compass/layout/stretching"
@import "compass/utilities"
@import "compass/css3"
#stretch-container
.stretch-container
border: 1px solid #999
min-width: 200px
min-height: 200px
width: 200px
height: 200px
position: relative
+inline-block
.stretched
$stretch-color: #4C6B99
border: 3px solid $stretch-color
+border-radius(8px)
display: block
background-color: darken($stretch-color, 30%)
color: white
text-align: center
vertical-align: middle
padding: 2em 0
#stretch-full:target
padding: 0.5em
#stretch-full
@extend .stretched
+stretch
#stretch-offset:target
#stretch-offset
@extend .stretched
+stretch(1em, 1em, 1em, 1em)
#stretch-x:target
#stretch-x
@extend .stretched
+stretch-x
#stretch-y:target
#stretch-y
@extend .stretched
+stretch-y