less-rails-semantic_ui 2.2.9.0 → 2.2.10.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 +4 -4
- data/assets/javascripts/semantic_ui/definitions/behaviors/form.js +3 -0
- data/assets/javascripts/semantic_ui/definitions/behaviors/visibility.js +25 -2
- data/assets/javascripts/semantic_ui/definitions/modules/dropdown.js +16 -1
- data/assets/javascripts/semantic_ui/definitions/modules/modal.js +12 -4
- data/assets/stylesheets/semantic_ui/definitions/elements/button.less +1 -2
- data/assets/stylesheets/semantic_ui/definitions/views/card.less +18 -18
- data/lib/less/rails/semantic_ui/version.rb +1 -1
- metadata +7 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 08df91afbcace73d4d525451230e0b04253110b8
|
4
|
+
data.tar.gz: ceda9e1abca9907d0f51f0c7480d7cf4bef7998e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: edf25b6c49961c9557ecca954511e56f9faa19576578c445ba5d2b306d8bfcaa077cb4ff41f22f5a6110628b7dd350c8892a48ca033ac0a6748c637423ee279c
|
7
|
+
data.tar.gz: 88df52239d9c81b2ca763fca5604500d77ecea28b8d2e7643cb8de3b1a2c091cc3c32a25105e1929c757fbdc92c50e7b460e827e2fa32020a16d624fd242b2e1
|
@@ -422,6 +422,22 @@ $.fn.visibility = function(parameters) {
|
|
422
422
|
return !(module.cache.element.width === 0 && module.cache.element.offset.top === 0);
|
423
423
|
}
|
424
424
|
return false;
|
425
|
+
},
|
426
|
+
verticallyScrollableContext: function() {
|
427
|
+
var
|
428
|
+
overflowY = ($context.get(0) !== window)
|
429
|
+
? $context.css('overflow-y')
|
430
|
+
: false
|
431
|
+
;
|
432
|
+
return (overflowY == 'auto' || overflowY == 'scroll');
|
433
|
+
},
|
434
|
+
horizontallyScrollableContext: function() {
|
435
|
+
var
|
436
|
+
overflowX = ($context.get(0) !== window)
|
437
|
+
? $context.css('overflow-x')
|
438
|
+
: false
|
439
|
+
;
|
440
|
+
return (overflowX == 'auto' || overflowX == 'scroll');
|
425
441
|
}
|
426
442
|
},
|
427
443
|
|
@@ -879,6 +895,13 @@ $.fn.visibility = function(parameters) {
|
|
879
895
|
element.offset = $module.offset();
|
880
896
|
element.width = $module.outerWidth();
|
881
897
|
element.height = $module.outerHeight();
|
898
|
+
// compensate for scroll in context
|
899
|
+
if(module.is.verticallyScrollableContext()) {
|
900
|
+
element.offset.top += $context.scrollTop() - $context.offset().top;
|
901
|
+
}
|
902
|
+
if(module.is.horizontallyScrollableContext()) {
|
903
|
+
element.offset.left += $context.scrollLeft - $context.offset().left;
|
904
|
+
}
|
882
905
|
// store
|
883
906
|
module.cache.element = element;
|
884
907
|
return element;
|
@@ -902,10 +925,10 @@ $.fn.visibility = function(parameters) {
|
|
902
925
|
}
|
903
926
|
|
904
927
|
// visibility
|
905
|
-
element.topVisible = (screen.bottom >= element.top);
|
906
928
|
element.topPassed = (screen.top >= element.top);
|
907
|
-
element.bottomVisible = (screen.bottom >= element.bottom);
|
908
929
|
element.bottomPassed = (screen.top >= element.bottom);
|
930
|
+
element.topVisible = (screen.bottom >= element.top) && !element.bottomPassed;
|
931
|
+
element.bottomVisible = (screen.bottom >= element.bottom) && !element.topPassed;
|
909
932
|
element.pixelsPassed = 0;
|
910
933
|
element.percentagePassed = 0;
|
911
934
|
|
@@ -975,7 +975,7 @@ $.fn.dropdown = function(parameters) {
|
|
975
975
|
},
|
976
976
|
blur: function(event) {
|
977
977
|
pageLostFocus = (document.activeElement === this);
|
978
|
-
if(!willRefocus) {
|
978
|
+
if(module.is.searchSelection() && !willRefocus) {
|
979
979
|
if(!itemActivated && !pageLostFocus) {
|
980
980
|
if(settings.forceSelection) {
|
981
981
|
module.forceSelection();
|
@@ -1158,6 +1158,10 @@ $.fn.dropdown = function(parameters) {
|
|
1158
1158
|
hasSubMenu = ($subMenu.length > 0),
|
1159
1159
|
isBubbledEvent = ($subMenu.find($target).length > 0)
|
1160
1160
|
;
|
1161
|
+
// prevents IE11 bug where menu receives focus even though `tabindex=-1`
|
1162
|
+
if(module.has.menuSearch()) {
|
1163
|
+
$(document.activeElement).blur();
|
1164
|
+
}
|
1161
1165
|
if(!isBubbledEvent && (!hasSubMenu || settings.allowCategorySelection)) {
|
1162
1166
|
if(module.is.searchSelection()) {
|
1163
1167
|
if(settings.allowAdditions) {
|
@@ -3069,6 +3073,9 @@ $.fn.dropdown = function(parameters) {
|
|
3069
3073
|
height: $currentMenu.outerHeight()
|
3070
3074
|
}
|
3071
3075
|
};
|
3076
|
+
if(module.is.verticallyScrollableContext()) {
|
3077
|
+
calculations.menu.offset.top += calculations.context.scrollTop;
|
3078
|
+
}
|
3072
3079
|
onScreen = {
|
3073
3080
|
above : (calculations.context.scrollTop) <= calculations.menu.offset.top - calculations.menu.height,
|
3074
3081
|
below : (calculations.context.scrollTop + calculations.context.height) >= calculations.menu.offset.top + calculations.menu.height
|
@@ -3142,6 +3149,14 @@ $.fn.dropdown = function(parameters) {
|
|
3142
3149
|
? $subMenu.hasClass(className.visible)
|
3143
3150
|
: $menu.hasClass(className.visible)
|
3144
3151
|
;
|
3152
|
+
},
|
3153
|
+
verticallyScrollableContext: function() {
|
3154
|
+
var
|
3155
|
+
overflowY = ($context.get(0) !== window)
|
3156
|
+
? $context.css('overflow-y')
|
3157
|
+
: false
|
3158
|
+
;
|
3159
|
+
return (overflowY == 'auto' || overflowY == 'scroll');
|
3145
3160
|
}
|
3146
3161
|
},
|
3147
3162
|
|
@@ -72,6 +72,8 @@ $.fn.modal = function(parameters) {
|
|
72
72
|
element = this,
|
73
73
|
instance = $module.data(moduleNamespace),
|
74
74
|
|
75
|
+
ignoreRepeatedEvents = false,
|
76
|
+
|
75
77
|
elementEventNamespace,
|
76
78
|
id,
|
77
79
|
observer,
|
@@ -226,18 +228,24 @@ $.fn.modal = function(parameters) {
|
|
226
228
|
|
227
229
|
event: {
|
228
230
|
approve: function() {
|
229
|
-
if(settings.onApprove.call(element, $(this)) === false) {
|
231
|
+
if(ignoreRepeatedEvents || settings.onApprove.call(element, $(this)) === false) {
|
230
232
|
module.verbose('Approve callback returned false cancelling hide');
|
231
233
|
return;
|
232
234
|
}
|
233
|
-
|
235
|
+
ignoreRepeatedEvents = true;
|
236
|
+
module.hide(function() {
|
237
|
+
ignoreRepeatedEvents = false;
|
238
|
+
});
|
234
239
|
},
|
235
240
|
deny: function() {
|
236
|
-
if(settings.onDeny.call(element, $(this)) === false) {
|
241
|
+
if(ignoreRepeatedEvents || settings.onDeny.call(element, $(this)) === false) {
|
237
242
|
module.verbose('Deny callback returned false cancelling hide');
|
238
243
|
return;
|
239
244
|
}
|
240
|
-
|
245
|
+
ignoreRepeatedEvents = true;
|
246
|
+
module.hide(function() {
|
247
|
+
ignoreRepeatedEvents = false;
|
248
|
+
});
|
241
249
|
},
|
242
250
|
close: function() {
|
243
251
|
module.hide();
|
@@ -754,7 +754,6 @@
|
|
754
754
|
background: @basicActiveBackground !important;
|
755
755
|
box-shadow: @basicActiveBoxShadow !important;
|
756
756
|
color: @basicActiveTextColor;
|
757
|
-
box-shadow: @selectedBorderColor;
|
758
757
|
}
|
759
758
|
.ui.basic.buttons .active.button:hover,
|
760
759
|
.ui.basic.active.button:hover {
|
@@ -769,7 +768,7 @@
|
|
769
768
|
box-shadow: @basicDownBoxShadow inset;
|
770
769
|
}
|
771
770
|
.ui.basic.buttons .active.button {
|
772
|
-
box-shadow: @
|
771
|
+
box-shadow: @basicActiveBoxShadow !important;
|
773
772
|
}
|
774
773
|
|
775
774
|
/* Standard Basic Inverted */
|
@@ -873,7 +873,7 @@ a.ui.card:hover,
|
|
873
873
|
margin-left: @oneCardOffset;
|
874
874
|
margin-right: @oneCardOffset;
|
875
875
|
}
|
876
|
-
.ui.two.doubling.cards .card {
|
876
|
+
.ui.two.doubling.cards > .card {
|
877
877
|
width: @oneCard;
|
878
878
|
margin-left: @oneCardSpacing;
|
879
879
|
margin-right: @oneCardSpacing;
|
@@ -882,7 +882,7 @@ a.ui.card:hover,
|
|
882
882
|
margin-left: @twoCardOffset;
|
883
883
|
margin-right: @twoCardOffset;
|
884
884
|
}
|
885
|
-
.ui.three.doubling.cards .card {
|
885
|
+
.ui.three.doubling.cards > .card {
|
886
886
|
width: @twoCard;
|
887
887
|
margin-left: @twoCardSpacing;
|
888
888
|
margin-right: @twoCardSpacing;
|
@@ -891,7 +891,7 @@ a.ui.card:hover,
|
|
891
891
|
margin-left: @twoCardOffset;
|
892
892
|
margin-right: @twoCardOffset;
|
893
893
|
}
|
894
|
-
.ui.four.doubling.cards .card {
|
894
|
+
.ui.four.doubling.cards > .card {
|
895
895
|
width: @twoCard;
|
896
896
|
margin-left: @twoCardSpacing;
|
897
897
|
margin-right: @twoCardSpacing;
|
@@ -900,7 +900,7 @@ a.ui.card:hover,
|
|
900
900
|
margin-left: @twoCardOffset;
|
901
901
|
margin-right: @twoCardOffset;
|
902
902
|
}
|
903
|
-
.ui.five.doubling.cards .card {
|
903
|
+
.ui.five.doubling.cards > .card {
|
904
904
|
width: @twoCard;
|
905
905
|
margin-left: @twoCardSpacing;
|
906
906
|
margin-right: @twoCardSpacing;
|
@@ -909,7 +909,7 @@ a.ui.card:hover,
|
|
909
909
|
margin-left: @twoCardOffset;
|
910
910
|
margin-right: @twoCardOffset;
|
911
911
|
}
|
912
|
-
.ui.six.doubling.cards .card {
|
912
|
+
.ui.six.doubling.cards > .card {
|
913
913
|
width: @twoCard;
|
914
914
|
margin-left: @twoCardSpacing;
|
915
915
|
margin-right: @twoCardSpacing;
|
@@ -918,7 +918,7 @@ a.ui.card:hover,
|
|
918
918
|
margin-left: @threeCardOffset;
|
919
919
|
margin-right: @threeCardOffset;
|
920
920
|
}
|
921
|
-
.ui.seven.doubling.cards .card {
|
921
|
+
.ui.seven.doubling.cards > .card {
|
922
922
|
width: @threeCard;
|
923
923
|
margin-left: @threeCardSpacing;
|
924
924
|
margin-right: @threeCardSpacing;
|
@@ -927,7 +927,7 @@ a.ui.card:hover,
|
|
927
927
|
margin-left: @threeCardOffset;
|
928
928
|
margin-right: @threeCardOffset;
|
929
929
|
}
|
930
|
-
.ui.eight.doubling.cards .card {
|
930
|
+
.ui.eight.doubling.cards > .card {
|
931
931
|
width: @threeCard;
|
932
932
|
margin-left: @threeCardSpacing;
|
933
933
|
margin-right: @threeCardSpacing;
|
@@ -936,7 +936,7 @@ a.ui.card:hover,
|
|
936
936
|
margin-left: @threeCardOffset;
|
937
937
|
margin-right: @threeCardOffset;
|
938
938
|
}
|
939
|
-
.ui.nine.doubling.cards .card {
|
939
|
+
.ui.nine.doubling.cards > .card {
|
940
940
|
width: @threeCard;
|
941
941
|
margin-left: @threeCardSpacing;
|
942
942
|
margin-right: @threeCardSpacing;
|
@@ -945,7 +945,7 @@ a.ui.card:hover,
|
|
945
945
|
margin-left: @threeCardOffset;
|
946
946
|
margin-right: @threeCardOffset;
|
947
947
|
}
|
948
|
-
.ui.ten.doubling.cards .card {
|
948
|
+
.ui.ten.doubling.cards > .card {
|
949
949
|
width: @threeCard;
|
950
950
|
margin-left: @threeCardSpacing;
|
951
951
|
margin-right: @threeCardSpacing;
|
@@ -958,7 +958,7 @@ a.ui.card:hover,
|
|
958
958
|
margin-left: @oneCardOffset;
|
959
959
|
margin-right: @oneCardOffset;
|
960
960
|
}
|
961
|
-
.ui.two.doubling.cards .card {
|
961
|
+
.ui.two.doubling.cards > .card {
|
962
962
|
width: @oneCard;
|
963
963
|
margin-left: @oneCardSpacing;
|
964
964
|
margin-right: @oneCardSpacing;
|
@@ -967,7 +967,7 @@ a.ui.card:hover,
|
|
967
967
|
margin-left: @twoCardOffset;
|
968
968
|
margin-right: @twoCardOffset;
|
969
969
|
}
|
970
|
-
.ui.three.doubling.cards .card {
|
970
|
+
.ui.three.doubling.cards > .card {
|
971
971
|
width: @twoCard;
|
972
972
|
margin-left: @twoCardSpacing;
|
973
973
|
margin-right: @twoCardSpacing;
|
@@ -976,7 +976,7 @@ a.ui.card:hover,
|
|
976
976
|
margin-left: @twoCardOffset;
|
977
977
|
margin-right: @twoCardOffset;
|
978
978
|
}
|
979
|
-
.ui.four.doubling.cards .card {
|
979
|
+
.ui.four.doubling.cards > .card {
|
980
980
|
width: @twoCard;
|
981
981
|
margin-left: @twoCardSpacing;
|
982
982
|
margin-right: @twoCardSpacing;
|
@@ -985,7 +985,7 @@ a.ui.card:hover,
|
|
985
985
|
margin-left: @threeCardOffset;
|
986
986
|
margin-right: @threeCardOffset;
|
987
987
|
}
|
988
|
-
.ui.five.doubling.cards .card {
|
988
|
+
.ui.five.doubling.cards > .card {
|
989
989
|
width: @threeCard;
|
990
990
|
margin-left: @threeCardSpacing;
|
991
991
|
margin-right: @threeCardSpacing;
|
@@ -994,7 +994,7 @@ a.ui.card:hover,
|
|
994
994
|
margin-left: @threeCardOffset;
|
995
995
|
margin-right: @threeCardOffset;
|
996
996
|
}
|
997
|
-
.ui.six.doubling.cards .card {
|
997
|
+
.ui.six.doubling.cards > .card {
|
998
998
|
width: @threeCard;
|
999
999
|
margin-left: @threeCardSpacing;
|
1000
1000
|
margin-right: @threeCardSpacing;
|
@@ -1003,7 +1003,7 @@ a.ui.card:hover,
|
|
1003
1003
|
margin-left: @threeCardOffset;
|
1004
1004
|
margin-right: @threeCardOffset;
|
1005
1005
|
}
|
1006
|
-
.ui.eight.doubling.cards .card {
|
1006
|
+
.ui.eight.doubling.cards > .card {
|
1007
1007
|
width: @threeCard;
|
1008
1008
|
margin-left: @threeCardSpacing;
|
1009
1009
|
margin-right: @threeCardSpacing;
|
@@ -1012,7 +1012,7 @@ a.ui.card:hover,
|
|
1012
1012
|
margin-left: @fourCardOffset;
|
1013
1013
|
margin-right: @fourCardOffset;
|
1014
1014
|
}
|
1015
|
-
.ui.eight.doubling.cards .card {
|
1015
|
+
.ui.eight.doubling.cards > .card {
|
1016
1016
|
width: @fourCard;
|
1017
1017
|
margin-left: @fourCardSpacing;
|
1018
1018
|
margin-right: @fourCardSpacing;
|
@@ -1021,7 +1021,7 @@ a.ui.card:hover,
|
|
1021
1021
|
margin-left: @fourCardOffset;
|
1022
1022
|
margin-right: @fourCardOffset;
|
1023
1023
|
}
|
1024
|
-
.ui.nine.doubling.cards .card {
|
1024
|
+
.ui.nine.doubling.cards > .card {
|
1025
1025
|
width: @fourCard;
|
1026
1026
|
margin-left: @fourCardSpacing;
|
1027
1027
|
margin-right: @fourCardSpacing;
|
@@ -1030,7 +1030,7 @@ a.ui.card:hover,
|
|
1030
1030
|
margin-left: @fiveCardOffset;
|
1031
1031
|
margin-right: @fiveCardOffset;
|
1032
1032
|
}
|
1033
|
-
.ui.ten.doubling.cards .card {
|
1033
|
+
.ui.ten.doubling.cards > .card {
|
1034
1034
|
width: @fiveCard;
|
1035
1035
|
margin-left: @fiveCardSpacing;
|
1036
1036
|
margin-right: @fiveCardSpacing;
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: less-rails-semantic_ui
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.2.
|
4
|
+
version: 2.2.10.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Maxim Dobryakov
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-
|
11
|
+
date: 2017-04-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: less-rails
|
@@ -62,16 +62,16 @@ dependencies:
|
|
62
62
|
name: rack
|
63
63
|
requirement: !ruby/object:Gem::Requirement
|
64
64
|
requirements:
|
65
|
-
- - "
|
65
|
+
- - ">="
|
66
66
|
- !ruby/object:Gem::Version
|
67
|
-
version:
|
67
|
+
version: 2.0.0
|
68
68
|
type: :development
|
69
69
|
prerelease: false
|
70
70
|
version_requirements: !ruby/object:Gem::Requirement
|
71
71
|
requirements:
|
72
|
-
- - "
|
72
|
+
- - ">="
|
73
73
|
- !ruby/object:Gem::Version
|
74
|
-
version:
|
74
|
+
version: 2.0.0
|
75
75
|
- !ruby/object:Gem::Dependency
|
76
76
|
name: minispec
|
77
77
|
requirement: !ruby/object:Gem::Requirement
|
@@ -2465,7 +2465,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
2465
2465
|
version: '0'
|
2466
2466
|
requirements: []
|
2467
2467
|
rubyforge_project:
|
2468
|
-
rubygems_version: 2.4.
|
2468
|
+
rubygems_version: 2.4.5.1
|
2469
2469
|
signing_key:
|
2470
2470
|
specification_version: 4
|
2471
2471
|
summary: Semantic UI assets for Rails
|