Sha256: 02816644f4609525c009cde7818d21adb21516a8f5955ecf64cffdd891c31f4d

Contents?: true

Size: 1.32 KB

Versions: 11

Compression:

Stored size: 1.32 KB

Contents

@function background_color($value)
  @if color($value)
    @return true
  @else
    @return null

@function background_position($value)
  @if list($value)
    @if str-slice(nth($value, 1), 1, 1) != '/'
      @if position(nth($value, 1)) or position(nth($value, 2))
        @return true
      @else if number(nth($value, 1)) or number(nth($value, 2))
        @return true
      @else
        @return null
    @else
      @return null
  @else
    @return null

@function background_size($value)
  @if string($value)
    @if $value == 'auto' or $value == 'contain' or $value == 'cover'
      @return true
    @else if str-slice($value, 2) == 'auto' or $value == 'contain' or $value == 'cover'
      @return true
    @else
      @return null
  @else if list($value)
    @if str-slice(nth($value, 1), 1, 1) == '/'
      @if number(nth($value, 1)) or number(nth($value, 2))
        @return true
      @else
        @return null
  @else
    @return null

@function background_repeat($value)
  @if $value == 'no-repeat' or $value == 'repeat' or $value == 'repeat-x' or $value == 'repeat-y'
    @return true
  @else
    @return null

@function background_attachment($value)
  @if $value == 'fixed' or $value == 'scroll'
    @return true
  @else
    @return null

@function background_image($value)
  @if image($value)
    @return true
  @else
    @return null

Version data entries

11 entries across 11 versions & 2 rubygems

Version Path
middleman-oulu-0.5.16 assets/stylesheets/settings/functions/_background.css.sass
oulu-rails-0.5.16 vendor/assets/stylesheets/settings/functions/_background.css.sass
middleman-oulu-0.5.15 assets/stylesheets/settings/functions/_background.css.sass
middleman-oulu-0.5.14 assets/stylesheets/settings/functions/_background.css.sass
oulu-rails-0.5.14 vendor/assets/stylesheets/settings/functions/_background.css.sass
oulu-rails-0.5.13 vendor/assets/stylesheets/settings/functions/_background.css.sass
middleman-oulu-0.5.12 assets/stylesheets/settings/functions/_background.css.sass
oulu-rails-0.5.12 vendor/assets/stylesheets/settings/functions/_background.css.sass
oulu-rails-0.5.11 vendor/assets/stylesheets/settings/functions/_background.css.sass
middleman-oulu-0.5.10 assets/stylesheets/settings/functions/_background.css.sass
oulu-rails-0.5.10 vendor/assets/stylesheets/settings/functions/_background.css.sass