active_frontend 14.1.11 → 14.1.12
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/helpers/active_frontend_helper.rb +18 -18
- data/lib/active_frontend/version.rb +1 -1
- data/vendor/assets/javascripts/base/_colorpicker.js +3 -3
- data/vendor/assets/javascripts/base/_switch.js +4 -2
- data/vendor/assets/javascripts/extensions/_chart.js +5 -5
- data/vendor/assets/javascripts/extensions/_funnel.js +5 -5
- data/vendor/assets/stylesheets/_variable.scss +18 -18
- data/vendor/assets/stylesheets/blocks/_table.scss +4 -2
- data/vendor/assets/stylesheets/components/_cohort.scss +3 -5
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: bb7d2e2dc38ec29f446a3b87fbec04a382c8d2ba
|
4
|
+
data.tar.gz: 0bbac34d846d4cdaabf1a5fd07fef2ce826baf39
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fcf96c088c8603aa652764fc33d72246463f5d69a2173a3ad2e34b493caec54312fe46014a0de368ad0ff973ad9c484ae7711a31a608f3b458fed676ab7e9b94
|
7
|
+
data.tar.gz: 5f4520a7dea9addf6c4531f5dfbe2be3314b06e6ef5313c24afa4cce5f38c5ca6b56d9bc568fcaa4f5d0e7806d5739f926379ddf2cc8892451e62fff9af72a60
|
@@ -3,18 +3,18 @@ module ActiveFrontendHelper
|
|
3
3
|
# rubocop:disable Metrics/MethodLength
|
4
4
|
def colors_brand(opacity = 1)
|
5
5
|
{
|
6
|
-
lime: { rgba: "rgba(
|
7
|
-
green: { rgba: "rgba(
|
8
|
-
teal: { rgba: "rgba(
|
9
|
-
sky: { rgba: "rgba(
|
10
|
-
blue: { rgba: "rgba(
|
11
|
-
indigo: { rgba: "rgba(
|
12
|
-
purple: { rgba: "rgba(
|
13
|
-
pink: { rgba: "rgba(
|
14
|
-
red: { rgba: "rgba(
|
15
|
-
brown: { rgba: "rgba(
|
16
|
-
orange: { rgba: "rgba(
|
17
|
-
yellow: { rgba: "rgba(
|
6
|
+
lime: { rgba: "rgba(164,217,111,#{opacity})", hex: '#A4D96F' },
|
7
|
+
green: { rgba: "rgba(52,208,102,#{opacity})", hex: '#34D066' },
|
8
|
+
teal: { rgba: "rgba(66,223,193,#{opacity})", hex: '#42DFC1' },
|
9
|
+
sky: { rgba: "rgba(19,190,255,#{opacity})", hex: '#13BEFF' },
|
10
|
+
blue: { rgba: "rgba(50,156,255,#{opacity})", hex: '#329CFF' },
|
11
|
+
indigo: { rgba: "rgba(146,112,226,#{opacity})", hex: '#9270E2' },
|
12
|
+
purple: { rgba: "rgba(194,111,212,#{opacity})", hex: '#C26FD4' },
|
13
|
+
pink: { rgba: "rgba(240,129,143,#{opacity})", hex: '#F0818F' },
|
14
|
+
red: { rgba: "rgba(241,91,83,#{opacity})", hex: '#F15B53' },
|
15
|
+
brown: { rgba: "rgba(222,163,103,#{opacity})", hex: '#DEA367' },
|
16
|
+
orange: { rgba: "rgba(252,174,70,#{opacity})", hex: '#FCAE46' },
|
17
|
+
yellow: { rgba: "rgba(248,214,72,#{opacity})", hex: '#F8D648' }
|
18
18
|
}
|
19
19
|
end
|
20
20
|
|
@@ -24,12 +24,12 @@ module ActiveFrontendHelper
|
|
24
24
|
dark_black: { rgba: "rgba(37,49,62,#{opacity})", hex: '#25313E' },
|
25
25
|
black: { rgba: "rgba(44,58,73,#{opacity})", hex: '#2C3A49' },
|
26
26
|
light_black: { rgba: "rgba(51,67,83,#{opacity})", hex: '#334353' },
|
27
|
-
dark_gray: { rgba: "rgba(
|
28
|
-
gray: { rgba: "rgba(
|
29
|
-
light_gray: { rgba: "rgba(
|
30
|
-
dark_haze: { rgba: "rgba(229,
|
31
|
-
haze: { rgba: "rgba(238,
|
32
|
-
light_haze: { rgba: "rgba(249,
|
27
|
+
dark_gray: { rgba: "rgba(99,125,144,#{opacity})", hex: '#637D90' },
|
28
|
+
gray: { rgba: "rgba(120,144,162,#{opacity})", hex: '#7890A2' },
|
29
|
+
light_gray: { rgba: "rgba(143,163,178,#{opacity})", hex: '#8FA3B2' },
|
30
|
+
dark_haze: { rgba: "rgba(229,234,244,#{opacity})", hex: '#E5EAF4' },
|
31
|
+
haze: { rgba: "rgba(238,241,250,#{opacity})", hex: '#EEF1FA' },
|
32
|
+
light_haze: { rgba: "rgba(248,249,253,#{opacity})", hex: '#F8F9FD' },
|
33
33
|
white: { rgba: "rgba(255,255,255,#{opacity})", hex: '#FFFFFF' }
|
34
34
|
}
|
35
35
|
end
|
@@ -17,9 +17,9 @@
|
|
17
17
|
Colorpicker.VERSION = '1.0.0';
|
18
18
|
Colorpicker.DEFAULTS = {
|
19
19
|
colors: [
|
20
|
-
'#
|
21
|
-
'#
|
22
|
-
'#2C3A49', '#
|
20
|
+
'#A4D96F', '#34D066', '#42DFC1', '#329CFF', '#9270E2',
|
21
|
+
'#C26FD4', '#F0818F', '#F15B53', '#FCAE46', '#F8D648',
|
22
|
+
'#2C3A49', '#7890A2', '#EEF1FA', '#FFFFFF'
|
23
23
|
],
|
24
24
|
item: '<li><button type="button"></button></li>',
|
25
25
|
menu: '<ul class="colorpicker dropmenu caret"></ul>',
|
@@ -72,7 +72,8 @@
|
|
72
72
|
Switch.prototype.on = function (silent) {
|
73
73
|
if (this.$element.prop('disabled')) return false;
|
74
74
|
|
75
|
-
this.$switch.removeClass('off')
|
75
|
+
this.$switch.removeClass('off')
|
76
|
+
.removeClass(this.options.offClass);
|
76
77
|
this.$switch.addClass(this.options.onClass);
|
77
78
|
this.$element.prop('checked', true)
|
78
79
|
.attr('checked', 'checked');
|
@@ -86,7 +87,8 @@
|
|
86
87
|
if (this.$element.prop('disabled')) return false;
|
87
88
|
|
88
89
|
this.$switch.removeClass(this.options.onClass);
|
89
|
-
this.$switch.addClass('off')
|
90
|
+
this.$switch.addClass('off')
|
91
|
+
.addClass(this.options.offClass);
|
90
92
|
this.$element.prop('checked', false)
|
91
93
|
.removeAttr('checked');
|
92
94
|
|
@@ -1331,8 +1331,8 @@ var cssKeywords = {
|
|
1331
1331
|
lightsalmon: [255,160,122],
|
1332
1332
|
lightseagreen: [32,178,170],
|
1333
1333
|
lightskyblue: [135,206,250],
|
1334
|
-
lightslategray: [
|
1335
|
-
lightslategrey: [
|
1334
|
+
lightslategray: [120,144,162],
|
1335
|
+
lightslategrey: [120,144,162],
|
1336
1336
|
lightsteelblue: [176,196,222],
|
1337
1337
|
lightyellow: [255,255,224],
|
1338
1338
|
lime: [0,255,0],
|
@@ -6138,14 +6138,14 @@ module.exports = function (Chart) {
|
|
6138
6138
|
position: 'left',
|
6139
6139
|
gridLines: {
|
6140
6140
|
display: true,
|
6141
|
-
color: 'rgba(229,
|
6141
|
+
color: 'rgba(229,234,244,1)',
|
6142
6142
|
lineWidth: 1,
|
6143
6143
|
drawBorder: true,
|
6144
6144
|
drawOnChartArea: true,
|
6145
6145
|
drawTicks: true,
|
6146
6146
|
tickMarkLength: 10,
|
6147
6147
|
zeroLineWidth: 1,
|
6148
|
-
zeroLineColor: 'rgba(229,
|
6148
|
+
zeroLineColor: 'rgba(229,234,244,1)',
|
6149
6149
|
offsetGridLines: false
|
6150
6150
|
},
|
6151
6151
|
scaleLabel: {
|
@@ -8681,7 +8681,7 @@ module.exports = function (Chart) {
|
|
8681
8681
|
position: 'chartArea',
|
8682
8682
|
angleLines: {
|
8683
8683
|
display: true,
|
8684
|
-
color: 'rgba(229,
|
8684
|
+
color: 'rgba(229,234,244,1)',
|
8685
8685
|
lineWidth: 1
|
8686
8686
|
},
|
8687
8687
|
ticks: {
|
@@ -42,10 +42,10 @@
|
|
42
42
|
settings: {
|
43
43
|
displayPercentageChange: false,
|
44
44
|
pPrecision: 1,
|
45
|
-
labelLineColor: '#
|
45
|
+
labelLineColor: '#E5EAF4',
|
46
46
|
labelFontColor: '#2C3A49',
|
47
|
-
sectionColor: ['#054B8B', '#075FB0', '#0872D5', '#
|
48
|
-
pSectionColor: '#
|
47
|
+
sectionColor: ['#054B8B', '#075FB0', '#0872D5', '#329CFF', '#3298F7', '#57ABF9', '#7CDDFA'],
|
48
|
+
pSectionColor: '#F8F9FD',
|
49
49
|
font: 'Verdana',
|
50
50
|
maxFontSize: 12,
|
51
51
|
fontWeight: '600',
|
@@ -127,7 +127,7 @@
|
|
127
127
|
|
128
128
|
this.drawClippingArea(ctx, settings);
|
129
129
|
|
130
|
-
ctx.fillStyle = '#
|
130
|
+
ctx.fillStyle = '#E5EAF4';
|
131
131
|
ctx.fill();
|
132
132
|
ctx.clip();
|
133
133
|
|
@@ -135,7 +135,7 @@
|
|
135
135
|
this.drawClippingArea(ctx, settings, true);
|
136
136
|
|
137
137
|
ctx.lineWidth = 0;
|
138
|
-
ctx.strokeStyle = '#
|
138
|
+
ctx.strokeStyle = '#E5EAF4';
|
139
139
|
ctx.stroke();
|
140
140
|
}
|
141
141
|
},
|
@@ -34,30 +34,30 @@ $animation-durations: (
|
|
34
34
|
// Color
|
35
35
|
// ==================================================
|
36
36
|
$colors-brand: (
|
37
|
-
'lime': rgba(
|
38
|
-
'green': rgba(
|
39
|
-
'teal': rgba(
|
40
|
-
'sky': rgba(
|
41
|
-
'blue': rgba(
|
42
|
-
'indigo': rgba(
|
43
|
-
'purple': rgba(
|
44
|
-
'pink': rgba(
|
45
|
-
'red': rgba(
|
46
|
-
'brown': rgba(
|
47
|
-
'orange': rgba(
|
48
|
-
'yellow': rgba(
|
37
|
+
'lime': rgba(164,217,111,1),
|
38
|
+
'green': rgba(52,208,102,1),
|
39
|
+
'teal': rgba(66,223,193,1),
|
40
|
+
'sky': rgba(19,190,255,1),
|
41
|
+
'blue': rgba(50,156,255,1),
|
42
|
+
'indigo': rgba(146,112,226,1),
|
43
|
+
'purple': rgba(194,111,212,1),
|
44
|
+
'pink': rgba(240,129,143,1),
|
45
|
+
'red': rgba(241,91,83,1),
|
46
|
+
'brown': rgba(222,163,103,1),
|
47
|
+
'orange': rgba(252,174,70,1),
|
48
|
+
'yellow': rgba(248,214,72,1)
|
49
49
|
);
|
50
50
|
$colors-grayscale: (
|
51
51
|
'transparent': rgba(0,0,0,0),
|
52
52
|
'dark-black': rgba(37,49,62,1),
|
53
53
|
'black': rgba(44,58,73,1),
|
54
54
|
'light-black': rgba(51,67,83,1),
|
55
|
-
'dark-gray': rgba(
|
56
|
-
'gray': rgba(
|
57
|
-
'light-gray': rgba(
|
58
|
-
'dark-haze': rgba(229,
|
59
|
-
'haze': rgba(238,
|
60
|
-
'light-haze': rgba(249,
|
55
|
+
'dark-gray': rgba(99,125,144,1),
|
56
|
+
'gray': rgba(120,144,162,1),
|
57
|
+
'light-gray': rgba(143,163,178,1),
|
58
|
+
'dark-haze': rgba(229,234,244,1),
|
59
|
+
'haze': rgba(238,241,250,1),
|
60
|
+
'light-haze': rgba(248,249,253,1),
|
61
61
|
'white': rgba(255,255,255,1)
|
62
62
|
);
|
63
63
|
$colors-global: (
|
@@ -18,7 +18,6 @@ table {
|
|
18
18
|
border-collapse: collapse;
|
19
19
|
border-color: color(dark-haze);
|
20
20
|
border-spacing: 0;
|
21
|
-
max-width: 100%;
|
22
21
|
}
|
23
22
|
caption,
|
24
23
|
thead,
|
@@ -200,6 +199,8 @@ thead {
|
|
200
199
|
.table-responsive {
|
201
200
|
@include overflow-scrolling(touch);
|
202
201
|
background: color(transparent);
|
202
|
+
border-style: solid;
|
203
|
+
border-width: 1px;
|
203
204
|
max-height: 300px;
|
204
205
|
overflow: scroll;
|
205
206
|
|
@@ -216,11 +217,12 @@ thead {
|
|
216
217
|
padding: 10px 10px 8px;
|
217
218
|
}
|
218
219
|
}
|
219
|
-
|
220
220
|
.table-line {
|
221
221
|
border-left: 1px solid;
|
222
222
|
border-right: 1px solid;
|
223
223
|
border-color: inherit;
|
224
224
|
}
|
225
|
+
.table-encase,
|
226
|
+
.table-border { margin: -1px 0 0 -1px; }
|
225
227
|
}
|
226
228
|
}
|
@@ -77,12 +77,10 @@
|
|
77
77
|
.cohort-high,
|
78
78
|
.cohort-hot,
|
79
79
|
.cohort-extra-hot { color: color(white); }
|
80
|
-
@each $name, $multiplier in (extra-low:
|
80
|
+
@each $name, $multiplier in (extra-low: 2.5, low: 2.25, medium-low: 1.75, medium: 1) {
|
81
81
|
.cohort-#{$name} { background: lighten(color(primary), percentage((12.5 * $multiplier) / 100)); }
|
82
82
|
}
|
83
|
-
.cohort-medium-high {
|
84
|
-
|
85
|
-
}
|
86
|
-
@each $name, $multiplier in (high: 1, hot: 2, extra-hot: 3) {
|
83
|
+
.cohort-medium-high { background: color(primary); }
|
84
|
+
@each $name, $multiplier in (high: 1, hot: 1.75, extra-hot: 2.25) {
|
87
85
|
.cohort-#{$name} { background: darken(color(primary), percentage((12.5 * $multiplier) / 100)); }
|
88
86
|
}
|
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: 14.1.
|
4
|
+
version: 14.1.12
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Juan Gomez
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-07-
|
11
|
+
date: 2017-07-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|