stlr 1.0.0 → 2.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/assets/stylesheets/stlr/functions/str-replace.scss +7 -0
- data/assets/stylesheets/stlr/mixins/image.scss +10 -6
- data/bower.json +1 -1
- data/lib/stlr/version.rb +1 -1
- data/package.json +1 -1
- metadata +4 -8
- data/assets/stylesheets/stlr/functions/gg.scss +0 -11
- data/assets/stylesheets/stlr/functions/rh-margin.scss +0 -7
- data/assets/stylesheets/stlr/functions/rh.scss +0 -10
- data/assets/stylesheets/stlr/mixins/placeholder.scss +0 -6
- data/assets/stylesheets/stlr/mixins/responsive-image.scss +0 -5
    
        checksums.yaml
    CHANGED
    
    | @@ -1,7 +1,7 @@ | |
| 1 1 | 
             
            ---
         | 
| 2 2 | 
             
            SHA1:
         | 
| 3 | 
            -
              metadata.gz:  | 
| 4 | 
            -
              data.tar.gz:  | 
| 3 | 
            +
              metadata.gz: 9ed5e019bc675f123fa51022cf04d2035a18ebc6
         | 
| 4 | 
            +
              data.tar.gz: 45bb084f2730565598f130ed4a699bfa20c86aeb
         | 
| 5 5 | 
             
            SHA512:
         | 
| 6 | 
            -
              metadata.gz:  | 
| 7 | 
            -
              data.tar.gz:  | 
| 6 | 
            +
              metadata.gz: 2d7e50de7fe48184ae0b03316f9f41e72e466f8297944c3232813d4d62d1ff4d267049ee30406a8b6b7d423ce07e773a90be6424211fa7dd7ca8606bf2527f9b
         | 
| 7 | 
            +
              data.tar.gz: 720cbc009fcc401ed98756a38d4587f4c242ff60444571eada485621015d66bab311c54f9ffe19e08c2f06ffb8d3de71bcfe74abe6628139e3ad4f612171c661
         | 
| @@ -0,0 +1,7 @@ | |
| 1 | 
            +
            @function str-replace($string, $search, $replace: '') {
         | 
| 2 | 
            +
              $index: str-index($string, $search);
         | 
| 3 | 
            +
              @if $index {
         | 
| 4 | 
            +
                @return str-slice($string, 1, $index - 1) + $replace + str-replace(str-slice($string, $index + str-length($search)), $search, $replace);
         | 
| 5 | 
            +
              }
         | 
| 6 | 
            +
              @return $string;
         | 
| 7 | 
            +
            }
         | 
| @@ -1,7 +1,11 @@ | |
| 1 | 
            -
            @mixin image($ | 
| 2 | 
            -
             | 
| 3 | 
            -
             | 
| 4 | 
            -
             | 
| 5 | 
            -
             | 
| 6 | 
            -
             | 
| 1 | 
            +
            @mixin image($filename,
         | 
| 2 | 
            +
                         $width,
         | 
| 3 | 
            +
                         $height,
         | 
| 4 | 
            +
                         $format: '.png',
         | 
| 5 | 
            +
                         $options: 50% 50% no-repeat,
         | 
| 6 | 
            +
                         $size: 100%) {
         | 
| 7 | 
            +
              background: image_url($filename + $format) $options;
         | 
| 8 | 
            +
              background-size: $size;
         | 
| 9 | 
            +
              height: $height;
         | 
| 10 | 
            +
              width: $width;
         | 
| 7 11 | 
             
            }
         | 
    
        data/bower.json
    CHANGED
    
    
    
        data/lib/stlr/version.rb
    CHANGED
    
    
    
        data/package.json
    CHANGED
    
    
    
        metadata
    CHANGED
    
    | @@ -1,14 +1,14 @@ | |
| 1 1 | 
             
            --- !ruby/object:Gem::Specification
         | 
| 2 2 | 
             
            name: stlr
         | 
| 3 3 | 
             
            version: !ruby/object:Gem::Version
         | 
| 4 | 
            -
              version:  | 
| 4 | 
            +
              version: 2.0.0
         | 
| 5 5 | 
             
            platform: ruby
         | 
| 6 6 | 
             
            authors:
         | 
| 7 7 | 
             
            - Vitaliy Emeliyantsev
         | 
| 8 8 | 
             
            autorequire: 
         | 
| 9 9 | 
             
            bindir: bin
         | 
| 10 10 | 
             
            cert_chain: []
         | 
| 11 | 
            -
            date: 2017- | 
| 11 | 
            +
            date: 2017-06-24 00:00:00.000000000 Z
         | 
| 12 12 | 
             
            dependencies:
         | 
| 13 13 | 
             
            - !ruby/object:Gem::Dependency
         | 
| 14 14 | 
             
              name: sass
         | 
| @@ -62,16 +62,12 @@ files: | |
| 62 62 | 
             
            - Gemfile
         | 
| 63 63 | 
             
            - LICENSE
         | 
| 64 64 | 
             
            - README.md
         | 
| 65 | 
            -
            - assets/stylesheets/stlr/functions/ | 
| 66 | 
            -
            - assets/stylesheets/stlr/functions/rh-margin.scss
         | 
| 67 | 
            -
            - assets/stylesheets/stlr/functions/rh.scss
         | 
| 65 | 
            +
            - assets/stylesheets/stlr/functions/str-replace.scss
         | 
| 68 66 | 
             
            - assets/stylesheets/stlr/mixins/bg.scss
         | 
| 69 67 | 
             
            - assets/stylesheets/stlr/mixins/border-xxx-radius.scss
         | 
| 70 68 | 
             
            - assets/stylesheets/stlr/mixins/clearfix.scss
         | 
| 71 69 | 
             
            - assets/stylesheets/stlr/mixins/gradient-striped.scss
         | 
| 72 70 | 
             
            - assets/stylesheets/stlr/mixins/image.scss
         | 
| 73 | 
            -
            - assets/stylesheets/stlr/mixins/placeholder.scss
         | 
| 74 | 
            -
            - assets/stylesheets/stlr/mixins/responsive-image.scss
         | 
| 75 71 | 
             
            - assets/stylesheets/stlr/mixins/retina-bg.scss
         | 
| 76 72 | 
             
            - assets/stylesheets/stlr/mixins/retina-image.scss
         | 
| 77 73 | 
             
            - assets/stylesheets/stlr/mixins/scrollbar.scss
         | 
| @@ -108,7 +104,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement | |
| 108 104 | 
             
                  version: '0'
         | 
| 109 105 | 
             
            requirements: []
         | 
| 110 106 | 
             
            rubyforge_project: 
         | 
| 111 | 
            -
            rubygems_version: 2. | 
| 107 | 
            +
            rubygems_version: 2.6.11
         | 
| 112 108 | 
             
            signing_key: 
         | 
| 113 109 | 
             
            specification_version: 4
         | 
| 114 110 | 
             
            summary: stlr is a couple of mixins for sass
         | 
| @@ -1,11 +0,0 @@ | |
| 1 | 
            -
            $grid-gutter-width: 30px !default;
         | 
| 2 | 
            -
             | 
| 3 | 
            -
            // Calculate gutter for width in units or for gutter factor
         | 
| 4 | 
            -
            @function gg($width: 1, $qwazi: true, $width-base: $grid-gutter-width) {
         | 
| 5 | 
            -
              @if (unitless($width)) {
         | 
| 6 | 
            -
                @return $width * $width-base;
         | 
| 7 | 
            -
              } @else {
         | 
| 8 | 
            -
                $gutter-width: if($qwazi, $width-base/2, $width-base);
         | 
| 9 | 
            -
                @return ceil($width / $gutter-width) * $gutter-width;
         | 
| 10 | 
            -
              }
         | 
| 11 | 
            -
            }
         | 
| @@ -1,10 +0,0 @@ | |
| 1 | 
            -
            $base-line-height-computed: 24px !default;
         | 
| 2 | 
            -
             | 
| 3 | 
            -
            @function rh($height: 1, $qwazi: true, $line-height-base: $base-line-height-computed) {
         | 
| 4 | 
            -
              @if (unitless($height)) {
         | 
| 5 | 
            -
                @return $height * $line-height-base;
         | 
| 6 | 
            -
              } @else {
         | 
| 7 | 
            -
                $line-height: if($qwazi, $line-height-base/2, $line-height-base);
         | 
| 8 | 
            -
                @return ceil($height / $line-height) * $line-height;
         | 
| 9 | 
            -
              }
         | 
| 10 | 
            -
            }
         |