include_media_rails 1.4.8.2 → 1.4.9
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 +14 -14
- 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: 83e61824d5ea0e418900f26b6724bc9244b5974b
|
4
|
+
data.tar.gz: 36127575387ec5f8afc6737b10dbfcfacafc200b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fcc5bf207142c8c96f9caa069f6a4685f155f95dcaf1a7394585314a683da442ef963d5899183c0a8e61b581c4955c5b6b8a39352ba418169ffe8349fa679db4
|
7
|
+
data.tar.gz: 538e14c291bf6742b415b58d880ccd1a94d8869c1d9752c187e282846bbc3a6fb2c94e77d395fb6ab7abd459f8b2e7547d7f00742475b2f283a3be5afd74d696
|
data/package.json
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
@charset
|
1
|
+
@charset "UTF-8";
|
2
2
|
|
3
3
|
// _ _ _ _ _
|
4
4
|
// (_) | | | | | (_)
|
@@ -8,7 +8,7 @@
|
|
8
8
|
// |_|_| |_|\___|_|\__,_|\__,_|\___| |_| |_| |_|\___|\__,_|_|\__,_|
|
9
9
|
//
|
10
10
|
// Simple, elegant and maintainable media queries in Sass
|
11
|
-
// v1.4.
|
11
|
+
// v1.4.9
|
12
12
|
//
|
13
13
|
// http://include-media.com
|
14
14
|
//
|
@@ -185,7 +185,7 @@ $im-no-media-expressions: ('screen', 'portrait', 'landscape') !default;
|
|
185
185
|
///
|
186
186
|
/// @param {String} $message - Message to log
|
187
187
|
///
|
188
|
-
@function log($message) {
|
188
|
+
@function im-log($message) {
|
189
189
|
@if feature-exists('at-error') {
|
190
190
|
@error $message;
|
191
191
|
} @else {
|
@@ -199,14 +199,14 @@ $im-no-media-expressions: ('screen', 'portrait', 'landscape') !default;
|
|
199
199
|
|
200
200
|
///
|
201
201
|
/// Wrapper mixin for the log function so it can be used with a more friendly
|
202
|
-
/// API than `@if log('..') {}` or `$_: log('..')`. Basically, use the function
|
202
|
+
/// API than `@if im-log('..') {}` or `$_: im-log('..')`. Basically, use the function
|
203
203
|
/// within functions because it is not possible to include a mixin in a function
|
204
204
|
/// and use the mixin everywhere else because it's much more elegant.
|
205
205
|
///
|
206
206
|
/// @param {String} $message - Message to log
|
207
207
|
///
|
208
208
|
@mixin log($message) {
|
209
|
-
@if log($message) {}
|
209
|
+
@if im-log($message) {}
|
210
210
|
}
|
211
211
|
|
212
212
|
|
@@ -227,7 +227,7 @@ $im-no-media-expressions: ('screen', 'portrait', 'landscape') !default;
|
|
227
227
|
$no-media-breakpoint-value: map-get($breakpoints, $im-no-media-breakpoint);
|
228
228
|
|
229
229
|
@if not $no-media-breakpoint-value {
|
230
|
-
@if log('`#{$im-no-media-breakpoint}` is not a valid breakpoint.') {}
|
230
|
+
@if im-log('`#{$im-no-media-breakpoint}` is not a valid breakpoint.') {}
|
231
231
|
}
|
232
232
|
|
233
233
|
@each $condition in $conditions {
|
@@ -271,11 +271,11 @@ $im-no-media-expressions: ('screen', 'portrait', 'landscape') !default;
|
|
271
271
|
}
|
272
272
|
|
273
273
|
// It is not possible to include a mixin inside a function, so we have to
|
274
|
-
// rely on the `log(..)` function rather than the `log(..)` mixin. Because
|
274
|
+
// rely on the `im-log(..)` function rather than the `log(..)` mixin. Because
|
275
275
|
// functions cannot be called anywhere in Sass, we need to hack the call in
|
276
276
|
// a dummy variable, such as `$_`. If anybody ever raise a scoping issue with
|
277
|
-
// Sass 3.3, change this line in `@if log(..) {}` instead.
|
278
|
-
$_: log('No operator found in `#{$expression}`.');
|
277
|
+
// Sass 3.3, change this line in `@if im-log(..) {}` instead.
|
278
|
+
$_: im-log('No operator found in `#{$expression}`.');
|
279
279
|
}
|
280
280
|
|
281
281
|
|
@@ -334,11 +334,11 @@ $im-no-media-expressions: ('screen', 'portrait', 'landscape') !default;
|
|
334
334
|
|
335
335
|
@if not $interval {
|
336
336
|
// It is not possible to include a mixin inside a function, so we have to
|
337
|
-
// rely on the `log(..)` function rather than the `log(..)` mixin. Because
|
337
|
+
// rely on the `im-log(..)` function rather than the `log(..)` mixin. Because
|
338
338
|
// functions cannot be called anywhere in Sass, we need to hack the call in
|
339
339
|
// a dummy variable, such as `$_`. If anybody ever raise a scoping issue with
|
340
|
-
// Sass 3.3, change this line in `@if log(..) {}` instead.
|
341
|
-
$_: log('Unknown unit `#{unit($value)}`.');
|
340
|
+
// Sass 3.3, change this line in `@if im-log(..) {}` instead.
|
341
|
+
$_: im-log('Unknown unit `#{unit($value)}`.');
|
342
342
|
}
|
343
343
|
|
344
344
|
@if $operator == '>' {
|
@@ -416,7 +416,7 @@ $im-no-media-expressions: ('screen', 'portrait', 'landscape') !default;
|
|
416
416
|
@if type-of($value) == 'number' {
|
417
417
|
@return $value;
|
418
418
|
} @else if type-of($value) != 'string' {
|
419
|
-
$_: log('Value for `to-number` should be a number or a string.');
|
419
|
+
$_: im-log('Value for `to-number` should be a number or a string.');
|
420
420
|
}
|
421
421
|
|
422
422
|
$first-character: str-slice($value, 1, 1);
|
@@ -463,7 +463,7 @@ $im-no-media-expressions: ('screen', 'portrait', 'landscape') !default;
|
|
463
463
|
$units: ('px': 1px, 'cm': 1cm, 'mm': 1mm, '%': 1%, 'ch': 1ch, 'pc': 1pc, 'in': 1in, 'em': 1em, 'rem': 1rem, 'pt': 1pt, 'ex': 1ex, 'vw': 1vw, 'vh': 1vh, 'vmin': 1vmin, 'vmax': 1vmax);
|
464
464
|
|
465
465
|
@if not index(map-keys($units), $unit) {
|
466
|
-
$_: log('Invalid unit `#{$unit}`.');
|
466
|
+
$_: im-log('Invalid unit `#{$unit}`.');
|
467
467
|
}
|
468
468
|
|
469
469
|
@return $value * map-get($units, $unit);
|
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.9
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Kaoru Kohashigawa
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2017-01-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: railties
|
@@ -164,7 +164,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
164
164
|
version: '0'
|
165
165
|
requirements: []
|
166
166
|
rubyforge_project:
|
167
|
-
rubygems_version: 2.
|
167
|
+
rubygems_version: 2.5.2
|
168
168
|
signing_key:
|
169
169
|
specification_version: 4
|
170
170
|
summary: Use Include Media by Eduardo Bouças (@eduardoboucas) in any Rails > 3.1 project
|