active_frontend 16.0.6 → 16.0.7
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
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 10c489457f0d4a18c08e1cc570088d89e5559054f03067279717d4e5e98d6c37
|
4
|
+
data.tar.gz: bcaab69f11ebb02723242f89155bf30a602d1109ef758875db3d70cb16e841eb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ea805c0280eb3f84e326a99a487608db02db087fad5b010b5c8afcd6623107245077c5cc4c93537a112fa2731fa22f83ab6330d6710da4bcf77aeb6f5084eb84
|
7
|
+
data.tar.gz: 3300595d13208483e9f9fbfdf194e29a7b0d78c380ab01f62d5b6bb81c050e098360dbcb7a6418dbbc5d94b29ddeae859d253fe375cf704151be172bb3275646
|
@@ -6,23 +6,26 @@
|
|
6
6
|
|
7
7
|
var Header = function (element, options) {
|
8
8
|
this.$element = $(element);
|
9
|
-
this.$window = $(window);
|
10
9
|
this.settings = {
|
11
10
|
addClass: this.$element.data('add-class') || Header.DEFAULTS.addClass,
|
11
|
+
container: this.$element.data('container') || Header.DEFAULTS.container,
|
12
12
|
offset: this.$element.data('offset') || Header.DEFAULTS.offset,
|
13
13
|
removeClass: this.$element.data('remove-class') || Header.DEFAULTS.removeClass
|
14
14
|
};
|
15
15
|
this.options = $.extend({}, Header.DEFAULTS, this.settings, options);
|
16
16
|
|
17
|
+
this.$window = $(this.options.container);
|
18
|
+
|
17
19
|
this.init();
|
18
20
|
};
|
19
21
|
|
20
22
|
Header.VERSION = '1.0.0';
|
21
23
|
Header.DEFAULTS = {
|
22
24
|
addClass: '',
|
23
|
-
|
25
|
+
container: window,
|
26
|
+
offset: 50,
|
24
27
|
onSwapClassCallback: function () {},
|
25
|
-
removeClass: '
|
28
|
+
removeClass: ''
|
26
29
|
};
|
27
30
|
|
28
31
|
Header.prototype.constructor = Header;
|
@@ -40,7 +43,8 @@
|
|
40
43
|
.removeClass(removeClass)
|
41
44
|
.addClass(addClass);
|
42
45
|
|
43
|
-
this.options
|
46
|
+
this.options
|
47
|
+
.onSwapClassCallback();
|
44
48
|
};
|
45
49
|
|
46
50
|
Header.prototype.toggleClasses = function () {
|
@@ -97,6 +97,11 @@
|
|
97
97
|
border-color: darker-color(primary);
|
98
98
|
color: text-color-on(primary);
|
99
99
|
}
|
100
|
+
.transparent {
|
101
|
+
background: color(transparent);
|
102
|
+
border-color: color(transparent);
|
103
|
+
color: color(white);
|
104
|
+
}
|
100
105
|
.light,
|
101
106
|
.white {
|
102
107
|
border-color: color(haze);
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: active_frontend
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 16.0.
|
4
|
+
version: 16.0.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Juan Gomez
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-02-
|
11
|
+
date: 2018-02-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|