include_media_rails 1.4.7 → 1.4.8
Sign up to get free protection for your applications and to get access to all the features.
- 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 +2 -37
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: feee8c59a39b8f3cfc8de4cfb1d03b1697b864ca
|
4
|
+
data.tar.gz: cdb308df4bb208fad79570b561297b3308d662a8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 787cad4c0258cfb5826851cb6e55e8aa8ef6fe82fd113fa113b898c4b7380600c39878cc3f48e7a7a934e8faf75359263d540eabb1c2baaf28544ee97b62e4e0
|
7
|
+
data.tar.gz: 56fd59b49afc83cfd8f45b324342b796a8544a1ee8fa1dbc653d6db5c83015f643eb35af6996b2e6e4159bea417735a0d2a0696b8599220ed04006a1cc2b1bd2
|
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.8
|
12
12
|
//
|
13
13
|
// http://include-media.com
|
14
14
|
//
|
@@ -171,26 +171,6 @@ $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
|
-
|
194
174
|
////
|
195
175
|
/// Cross-engine logging engine
|
196
176
|
/// @author Hugo Giraudel
|
@@ -342,7 +322,7 @@ $im-no-media-expressions: ('screen', 'portrait', 'landscape') !default;
|
|
342
322
|
///
|
343
323
|
@function get-expression-value($expression, $operator) {
|
344
324
|
$operator-index: str-index($expression, $operator);
|
345
|
-
$value:
|
325
|
+
$value: str-slice($expression, $operator-index + str-length($operator));
|
346
326
|
|
347
327
|
@if map-has-key($breakpoints, $value) {
|
348
328
|
$value: map-get($breakpoints, $value);
|
@@ -489,21 +469,6 @@ $im-no-media-expressions: ('screen', 'portrait', 'landscape') !default;
|
|
489
469
|
@return $value * map-get($units, $unit);
|
490
470
|
}
|
491
471
|
|
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
|
-
|
507
472
|
///
|
508
473
|
/// This mixin aims at redefining the configuration just for the scope of
|
509
474
|
/// the call. It is helpful when having a component needing an extended
|