stlr 1.0.0 → 2.0.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 3f2e5dd1c71819bb30aa6fad65d5da2bc3041e8b
4
- data.tar.gz: 53907604b3ac285d526f1f97f40e04434ae91478
3
+ metadata.gz: 9ed5e019bc675f123fa51022cf04d2035a18ebc6
4
+ data.tar.gz: 45bb084f2730565598f130ed4a699bfa20c86aeb
5
5
  SHA512:
6
- metadata.gz: 46f52ec7447e1a4f3d1d69bf3d345c1020bbf0345ef4ae1d77a4f0a37457355843bc002ce4cfacd0c0686eab371ffeec17c04a97b466b7b3845e7ac769012ae2
7
- data.tar.gz: 2f3044432ec7eaa37a360a130ee6a589335ea1ee434073c36b6681581af634aef8c45fa73d6e0685a49991fff2b0569b0139bad5f6d661c682479f324c9dda05
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($image, $image-width, $image-height) {
2
- background-image: image_url($image);
3
- background-repeat: no-repeat;
4
- background-size: 100%;
5
- height: $image-height;
6
- width: $image-width;
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
@@ -22,5 +22,5 @@
22
22
  "Rakefile",
23
23
  "Gemfile"
24
24
  ],
25
- "version": "1.0.0"
25
+ "version": "2.0.0"
26
26
  }
@@ -1,4 +1,4 @@
1
1
  module Stlr
2
- VERSION = '1.0.0'
2
+ VERSION = '2.0.0'
3
3
  STLR_SHA = '81df608a40bf0629a1dc08e584849bb1e43e0b7a'
4
4
  end
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "stlr",
3
- "version": "1.0.0",
3
+ "version": "2.0.0",
4
4
  "description": "stlr is a couple of mixins for sass",
5
5
  "style": "assets/stylesheets/stlr.scss",
6
6
  "sass": "assets/stylesheets/stlr.scss",
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: 1.0.0
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-01-02 00:00:00.000000000 Z
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/gg.scss
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.5.1
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,7 +0,0 @@
1
- @import "stlr/functions/rh";
2
-
3
- $base-line-height-computed: 24px !default;
4
-
5
- @function rh-margin($height, $qwazi: true, $line-height-base: $base-line-height-computed) {
6
- @return rh($height, $qwazi, $line-height-base) - $height;
7
- }
@@ -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
- }
@@ -1,6 +0,0 @@
1
- @mixin placeholder($color) {
2
- &::placeholder {
3
- color: $color;
4
- opacity: 1;
5
- }
6
- }
@@ -1,5 +0,0 @@
1
- @mixin responsive-image($display: block) {
2
- display: $display;
3
- height: auto;
4
- max-width: 100%;
5
- }