Sha256: f27dddf59808cd4922e73b191ddd34a6b24ae02040583e4a7778337a4b76d462

Contents?: true

Size: 1.95 KB

Versions: 50

Compression:

Stored size: 1.95 KB

Contents

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

@function background_position($value)
  @if list($value)
    @if string(nth($value, 1)) and not str-index(nth($value, 1), '/')
      @return true
    @else if string(nth($value, 1)) and not str-index(nth($value, 1), '\/')
      @return true
    @else if number(nth($value, 1))
      @return true
    @else
      @return null
  @else
    @return null

@function background_size($value)
  @if $value == auto or $value == contain or $value == cover
    @return true
  @else if list($value)
    @if string(nth($value, 1)) and str-index(nth($value, 1), '\/')
      @return ture
    @else if string(nth($value, 1)) and str-index(nth($value, 1), '/')
      @return ture
    @else
      @return null
  @else
    @return null

@function background_size_value($value)
  @if background_size($value)
    @if list($value)
      @if string(nth($value, 1)) and str-index(nth($value, 1), '\/')
        @return unquote(string-replace(nth($value, 1), '\\/', '/') + ' ' + nth($value, 2))
      @else
        @return unquote('/' + $value)
    @else
      @return  unquote('/' + $value)
  @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

@function background_gradient($value)
  @if string($value)
    @if str-index($value, linear-gradient) or str-index($value, radial-gradient) or str-index($value, repeating-)
      @return true
    @else
      @return null
  @else
    @return null

@function background_clip($value)
  @if $value == \"border" or $value == \"padding" or $value == \"content" or $value == \"text"
    @return true
  @else
    @return null

Version data entries

50 entries across 50 versions & 1 rubygems

Version Path
oulu-0.16.6 app/assets/stylesheets/settings/functions/_background.sass
oulu-0.16.5 app/assets/stylesheets/settings/functions/_background.sass
oulu-0.16.4 app/assets/stylesheets/settings/functions/_background.sass
oulu-0.16.3 app/assets/stylesheets/settings/functions/_background.sass
oulu-0.16.2 app/assets/stylesheets/settings/functions/_background.sass
oulu-0.16.1 app/assets/stylesheets/settings/functions/_background.sass
oulu-0.16.0 app/assets/stylesheets/settings/functions/_background.sass
oulu-0.15.5 app/assets/stylesheets/settings/functions/_background.sass
oulu-0.15.4 app/assets/stylesheets/settings/functions/_background.sass
oulu-0.15.3 app/assets/stylesheets/settings/functions/_background.sass
oulu-0.15.2 app/assets/stylesheets/settings/functions/_background.sass
oulu-0.15.1 app/assets/stylesheets/settings/functions/_background.sass
oulu-0.15.0 app/assets/stylesheets/settings/functions/_background.sass
oulu-0.14.1 app/assets/stylesheets/settings/functions/_background.sass
oulu-0.14.0 app/assets/stylesheets/settings/functions/_background.sass
oulu-0.13.4 app/assets/stylesheets/settings/functions/_background.sass
oulu-0.13.3 app/assets/stylesheets/settings/functions/_background.sass
oulu-0.13.2 app/assets/stylesheets/settings/functions/_background.sass
oulu-0.13.1 app/assets/stylesheets/settings/functions/_background.sass
oulu-0.12.42 app/assets/stylesheets/settings/functions/_background.sass