active_frontend 16.0.24 → 16.1.0

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 0dfad889519571b9f47ff593b74a4ca9899f7099d0543455482c6cbf4ff869fd
4
- data.tar.gz: 0bc29cf49831c3684c3aeddc8b6b2c85cab95c56a847467ff1550f0d01f65b49
3
+ metadata.gz: 129f26b03debfac3fdd9005f51be4bad03a7f2a2e971d3bdf3c1ff824c65306f
4
+ data.tar.gz: 0d84c24ea36e51ca3d731ffff800c556b4439d4a7381dbeeab2ad4fd1573cfd5
5
5
  SHA512:
6
- metadata.gz: c8e75905644aa9bf827e8e88bab544c57f9f6ab272939714cb899aa129b5cd09cc740a08d6579ceadf44e76eec99ceca9b01bd49ce876fd617d8520aef4395c2
7
- data.tar.gz: 34d49cf104fa3e10f83418752f6bcabb80e14537073174e480813f8f31d7be12daed2cc545af303e24eac73304e78e1543ff0e5686f08f88a6ee2b5628d1b72b
6
+ metadata.gz: 67050feaa4afc07a34546c01d9a96defef927c4e15f910bb9dac616db1359ee569c9ba02a604aa1ec5b2e5cd0dc57d21ddaf70e15d39448a029ca9600126150d
7
+ data.tar.gz: 490698ebfdfbdf58d6a0d187ae3f235d17c8b6c2ec6a882ed886600467a45e68e62ead5958c86c6c828d8127de95c05703e58a9f1a0859fffb74a589c667d9b5
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module ActiveFrontend
4
- VERSION ||= '16.0.24'
4
+ VERSION ||= '16.1.0'
5
5
  end
@@ -47,6 +47,9 @@
47
47
 
48
48
  if (target.hasClass('hidden') || target.is(':hidden') || target.css('visibility') === 'hidden') {
49
49
  toggle = 'in';
50
+ _self.$element.addClass('active');
51
+ } else {
52
+ _self.$element.removeClass('active');
50
53
  }
51
54
 
52
55
  var effect = options.effect + '-' + toggle + '-' + options.direction;
@@ -99,7 +99,8 @@ $common-box-shadows: (
99
99
  xl: 10px,
100
100
  l: 6px,
101
101
  m: 4px,
102
- b: 2px
102
+ b: 2px,
103
+ n: 0
103
104
  );
104
105
  $common-margins-and-paddings: (
105
106
  xxxl: 100px,
@@ -171,7 +172,7 @@ $font-spaces: (
171
172
  xl: 6px,
172
173
  l: 2px,
173
174
  m: 1px,
174
- b: 0,
175
+ b: -0.4px,
175
176
  s: -1px,
176
177
  xs: -2px
177
178
  );
@@ -47,6 +47,7 @@ textarea,
47
47
  border: 1px solid color(haze);
48
48
  border-radius: border-radius(b);
49
49
  box-sizing: border-box;
50
+ box-shadow: 0 0 3px darkish-color(haze);
50
51
  display: block;
51
52
  line-height: 1;
52
53
  margin-bottom: 10px;
@@ -71,11 +72,15 @@ textarea,
71
72
  &:invalid,
72
73
  &.invalid { border-color: color(red); }
73
74
 
74
- &.without-border { border-color: color(transparent); }
75
+ &.without-border {
76
+ border-color: color(transparent);
77
+ box-shadow: none;
78
+ }
75
79
  }
76
80
 
77
81
  &.dark {
78
82
  background: color(light-slate);
83
+ box-shadow: 0 0 3px darkish-color(dark-slate);
79
84
  color: color(white);
80
85
 
81
86
  &[disabled] { background: color(slate); }
@@ -333,6 +338,7 @@ textarea {
333
338
  border: 1px solid;
334
339
  border-color: color(haze);
335
340
  border-radius: border-radius(b);
341
+ box-shadow: 0 0 3px darkish-color(haze);
336
342
  display: inline-block;
337
343
  height: 18px;
338
344
  line-height: 18px;
@@ -400,6 +406,8 @@ textarea {
400
406
  }
401
407
  &.form-align-vertical { vertical-align: middle; }
402
408
  &.dark {
409
+ box-shadow: 0 0 3px darkish-color(slate);
410
+
403
411
  label {
404
412
  background: color(light-slate);
405
413
 
@@ -448,6 +456,7 @@ textarea {
448
456
  input:focus {
449
457
  background: color(transparent);
450
458
  border: 0;
459
+ box-shadow: none;
451
460
  display: inline-block;
452
461
  outline: none;
453
462
  margin: 0;
@@ -574,6 +583,7 @@ textarea {
574
583
  .form-addon {
575
584
  border-style: solid;
576
585
  border-width: 1px;
586
+ box-shadow: 0 0 3px darkish-color(haze);
577
587
  line-height: 1;
578
588
  min-width: 44px;
579
589
  padding: 0 10px;
@@ -586,7 +596,10 @@ textarea {
586
596
  margin-top: -2px;
587
597
  }
588
598
 
589
- &.dark { border-color: color(dark-slate); }
599
+ &.dark {
600
+ border-color: color(dark-slate);
601
+ box-shadow: 0 0 3px darkish-color(dark-slate);
602
+ }
590
603
  &.with-addon-btn {
591
604
  border: 0;
592
605
  min-width: auto;
@@ -175,7 +175,7 @@ body {
175
175
  font-size: text-size(b);
176
176
  font-variant: normal;
177
177
  font-weight: text-weight(semilight);
178
- letter-spacing: 0;
178
+ letter-spacing: -0.4px;
179
179
  line-height: text-line-height(b);
180
180
  text-align: left;
181
181
  text-decoration: none;
@@ -187,7 +187,8 @@ sup { vertical-align: text-top; }
187
187
  &:focus { color: $color; }
188
188
  }
189
189
  .text-color-active-#{$name} {
190
- &:active { color: $color; }
190
+ &:active,
191
+ &.active { color: $color; }
191
192
  }
192
193
  }
193
194
  }
@@ -12,9 +12,9 @@
12
12
  border-bottom: 1px solid color(transparent);
13
13
  box-sizing: border-box;
14
14
  color: color(white);
15
- height: 76px;
15
+ height: 64px;
16
16
  line-height: 1;
17
- padding: 18px 0;
17
+ padding: 12px 0 0;
18
18
 
19
19
  &.absolute,
20
20
  &.fixed { z-index: 1040; }
@@ -65,7 +65,7 @@
65
65
  }
66
66
  .header-brand-label { margin: 8px 0 0 10px; }
67
67
  .header-search {
68
- margin-top: -3px;
68
+ margin-top: -2.5px;
69
69
  width: 260px;
70
70
 
71
71
  input { margin-bottom: 0; }
@@ -105,7 +105,7 @@
105
105
  }
106
106
  }
107
107
 
108
- .btn { margin-top: -14px; }
108
+ .btn { margin-top: -13.5px; }
109
109
  }
110
110
  }
111
111
  .header-user {
@@ -18,8 +18,8 @@
18
18
  overflow-y: auto;
19
19
 
20
20
  &.with-sticky-header {
21
- height: calc(100% - 76px);
22
- margin-top: 76px;
21
+ height: calc(100% - 64px);
22
+ margin-top: 64px;
23
23
  }
24
24
  }
25
25
  .layout-body { width: 100%; }
@@ -63,6 +63,8 @@
63
63
  height: initial;
64
64
  min-height: 100%;
65
65
  margin: 0;
66
+ max-width: 100%;
67
+ width: 100%;
66
68
 
67
69
  &.with-sticky-header {
68
70
  margin: 0;
@@ -78,11 +80,10 @@
78
80
  }
79
81
  }
80
82
  .layout-sidebar {
81
- max-width: 300px;
82
- width: 75%;
83
-
84
- &.with-sticky-header { height: 100%; }
85
- &:not(.hidden) + .layout-body { width: calc(100% - 260px); }
86
- &.fixed + .layout-body { width: 100%; }
83
+ &.with-sticky-header {
84
+ height: calc(100% - 54px);
85
+ margin-top: 54px;
86
+ min-height: calc(100% - 54px);
87
+ }
87
88
  }
88
89
  }
@@ -27,21 +27,14 @@
27
27
  vertical-align: middle;
28
28
  width: 1%;
29
29
 
30
- @if ($pseudo-elements) {
30
+ &.primary {
31
+ color: text-color-on(primary);
32
+ background: color(primary);
33
+
31
34
  &:hover,
32
35
  &.active,
33
36
  &:active,
34
- &:focus { color: color(primary); }
35
-
36
- &.primary {
37
- &:hover,
38
- &.active,
39
- &:active,
40
- &:focus {
41
- background: color(primary);
42
- color: text-color-on(primary);
43
- }
44
- }
37
+ &:focus { background: darkish-color(primary); }
45
38
  }
46
39
 
47
40
  > i {
@@ -10,6 +10,7 @@
10
10
  border: 1px solid;
11
11
  border-color: color(haze);
12
12
  border-radius: border-radius(xl);
13
+ box-shadow: 0 0 3px darkish-color(haze);
13
14
  cursor: pointer;
14
15
  display: inline-block;
15
16
  height: 28px;
@@ -88,6 +89,8 @@
88
89
  * { cursor: not-allowed; }
89
90
  }
90
91
  &.dark {
92
+ box-shadow: 0 0 3px darkish-color(dark-slate);
93
+
91
94
  .switch-handle { background: color(light-slate); }
92
95
  }
93
96
  &.light {
@@ -82,6 +82,7 @@
82
82
  // ==================================================
83
83
  .wysiwyg-editor {
84
84
  position: relative;
85
+ box-shadow: 0 0 3px darkish-color(haze);
85
86
 
86
87
  .wysiwyg-dropzone {
87
88
  background: transparentize(color(white), 0.15);
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.24
4
+ version: 16.1.0
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-04-10 00:00:00.000000000 Z
11
+ date: 2018-04-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails