Sha256: 2f55da29839008510817654439074c2eec3e19b65679daa91a9a5bee413021cb

Contents?: true

Size: 492 Bytes

Versions: 14

Compression:

Stored size: 492 Bytes

Contents

@charset "UTF-8";
/// Parse media types. If the property is a string then return it, otherwise
/// assume screen and min-width.
///
/// @argument {string | number (with unit)} $media
///
/// @return {number}
///
/// @example scss
///   _neat-parse-media($grid, 1000px)
///
/// @access private

@function _neat-parse-media($media) {
  @if type-of($media) == number {
    @return "only screen and (min-width: #{$media})";
  } @else if type-of($media) == string {
    @return "#{$media}";
  }
}

Version data entries

14 entries across 14 versions & 5 rubygems

Version Path
neat-4.0.0 core/neat/functions/_neat-parse-media.scss
neat-3.0.1 core/neat/functions/_neat-parse-media.scss
neat-3.0.0 core/neat/functions/_neat-parse-media.scss
lifenode-0.0.0 _sass/lifenode/neat/neat/functions/_neat-parse-media.scss
dream-theme-0.1.0 _sass/neat/neat/functions/_neat-parse-media.scss
neat-2.1.0 core/neat/functions/_neat-parse-media.scss
personally-developed-2.1.0 _sass/personally-developed/neat/functions/_neat-parse-media.scss
personally-developed-2.0.0 _sass/personally-developed/neat/functions/_neat-parse-media.scss
dta_rapid-0.2.5 _sass/vendor/neat/neat/functions/_neat-parse-media.scss
dta_rapid-0.2.4 _sass/vendor/neat/neat/functions/_neat-parse-media.scss
neat-2.0.0 core/neat/functions/_neat-parse-media.scss
neat-2.0.0.beta.2 core/neat/functions/_neat-parse-media.scss
neat-2.0.0.beta.1 core/neat/functions/_neat-parse-media.scss
neat-2.0.0.alpha.1 core/neat/functions/_neat-parse-media.scss