include_media_rails 1.4.6 → 1.4.7
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/lib/include_media_rails/version.rb +1 -1
- data/package.json +1 -1
- data/vendor/assets/stylesheets/include_media.scss +37 -2
- metadata +3 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 5b2c1f6e9b2c60e6b9849e89cef9726c63d27394
|
|
4
|
+
data.tar.gz: 2064cf0494f620b3a127022b2d499ad2c4384bf8
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 3fc2364ae5d03b7bfa615632434568de0607d44ce97fffdce60daa709468a0a2ce76c52456692760b8210f21cf803b6fc060aba8e116a7e9b916d6d32c2f2a3e
|
|
7
|
+
data.tar.gz: 7496422305be30cf587ebd8827f44e1fcc89af8eda16d7ec00bff6413421b88d4e4460f83fbe5c684f2c109649c3126e514d7fa612dae613aa558171354223c3
|
data/package.json
CHANGED
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
// |_|_| |_|\___|_|\__,_|\__,_|\___| |_| |_| |_|\___|\__,_|_|\__,_|
|
|
9
9
|
//
|
|
10
10
|
// Simple, elegant and maintainable media queries in Sass
|
|
11
|
-
// v1.4.
|
|
11
|
+
// v1.4.7
|
|
12
12
|
//
|
|
13
13
|
// http://include-media.com
|
|
14
14
|
//
|
|
@@ -171,6 +171,26 @@ $im-no-media-breakpoint: 'desktop' !default;
|
|
|
171
171
|
///
|
|
172
172
|
$im-no-media-expressions: ('screen', 'portrait', 'landscape') !default;
|
|
173
173
|
|
|
174
|
+
///
|
|
175
|
+
/// Find first char which is not a space
|
|
176
|
+
///
|
|
177
|
+
/// @param {String} $string - String to search
|
|
178
|
+
/// @param {String} $direction ['left'] - Either 'left' or 'right' to indicate search direction
|
|
179
|
+
///
|
|
180
|
+
/// @return {Number} - Index of first non-space character
|
|
181
|
+
///
|
|
182
|
+
@function first-index($string, $direction: 'left') {
|
|
183
|
+
@for $i from 1 through str-length($string) {
|
|
184
|
+
$index: if($direction == 'left', $i, -$i);
|
|
185
|
+
|
|
186
|
+
@if str-slice($string, $index, $index) != ' ' {
|
|
187
|
+
@return $index;
|
|
188
|
+
}
|
|
189
|
+
}
|
|
190
|
+
|
|
191
|
+
@return 0;
|
|
192
|
+
}
|
|
193
|
+
|
|
174
194
|
////
|
|
175
195
|
/// Cross-engine logging engine
|
|
176
196
|
/// @author Hugo Giraudel
|
|
@@ -322,7 +342,7 @@ $im-no-media-expressions: ('screen', 'portrait', 'landscape') !default;
|
|
|
322
342
|
///
|
|
323
343
|
@function get-expression-value($expression, $operator) {
|
|
324
344
|
$operator-index: str-index($expression, $operator);
|
|
325
|
-
$value: str-slice($expression, $operator-index + str-length($operator));
|
|
345
|
+
$value: trim(str-slice($expression, $operator-index + str-length($operator)));
|
|
326
346
|
|
|
327
347
|
@if map-has-key($breakpoints, $value) {
|
|
328
348
|
$value: map-get($breakpoints, $value);
|
|
@@ -469,6 +489,21 @@ $im-no-media-expressions: ('screen', 'portrait', 'landscape') !default;
|
|
|
469
489
|
@return $value * map-get($units, $unit);
|
|
470
490
|
}
|
|
471
491
|
|
|
492
|
+
///
|
|
493
|
+
/// Trim's a string by removing leading and trailing spaces
|
|
494
|
+
///
|
|
495
|
+
/// @param {String} $string - String to trim
|
|
496
|
+
///
|
|
497
|
+
/// @return {String} - String without spaces
|
|
498
|
+
///
|
|
499
|
+
@function trim($string) {
|
|
500
|
+
@return str-slice(
|
|
501
|
+
$string,
|
|
502
|
+
first-index($string, 'left'),
|
|
503
|
+
first-index($string, 'right')
|
|
504
|
+
);
|
|
505
|
+
}
|
|
506
|
+
|
|
472
507
|
///
|
|
473
508
|
/// This mixin aims at redefining the configuration just for the scope of
|
|
474
509
|
/// the call. It is helpful when having a component needing an extended
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: include_media_rails
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.4.
|
|
4
|
+
version: 1.4.7
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Kaoru Kohashigawa
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2016-06
|
|
11
|
+
date: 2016-08-06 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: railties
|
|
@@ -161,7 +161,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
161
161
|
version: '0'
|
|
162
162
|
requirements: []
|
|
163
163
|
rubyforge_project:
|
|
164
|
-
rubygems_version: 2.
|
|
164
|
+
rubygems_version: 2.6.6
|
|
165
165
|
signing_key:
|
|
166
166
|
specification_version: 4
|
|
167
167
|
summary: Use Include Media by Eduardo Bouças (@eduardoboucas) in any Rails > 3.1 project
|