Class Compass::SassExtensions::Sprites::Image
In: lib/compass/sass_extensions/sprites/image.rb
Parent: Object

Methods

active   active?   digest   file   find_file   focus   focus?   get_var_file   height   hover   hover?   mtime   new   no_repeat?   offset   parent   position   repeat   repeat_x?   repeat_y?   size   spacing   target   target?   width  

Included Modules

Sass::Script::Value::Helpers

Constants

ACTIVE = %r{[_-]active$}
TARGET = %r{[_-]target$}
HOVER = %r{[_-]hover$}
FOCUS = %r{[_-]focus$}
PARENT = %r{(.+)[-_](.+)$}
REPEAT_X = 'repeat-x'
REPEAT_Y = 'repeat-y'
NO_REPEAT = 'no-repeat'
VALID_REPEATS = [REPEAT_Y, REPEAT_X, NO_REPEAT]

Attributes

base  [R] 
left  [RW] 
name  [R] 
options  [R] 
relative_file  [R] 
top  [RW] 

Public Class methods

Public Instance methods

Active selector Image object if exsists

Is active selector

MD5 hash of this file

The Full path to the image

Active selector Image object if exsists

Is active selector

Height of the image

Hover selector Image object if exsists

Is hover selector

Offset within the sprite

Value of $#{name}-position or $position defaults to 0px

Value of $#{name}-repeat or $repeat

Spacing between this image and the next

Target selector Image object if exsists

Is target selector

Width of the image

[Validate]