less-rails-semantic_ui 2.1.4.0 → 2.1.5.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/api.js +1 -1
- data/assets/javascripts/semantic_ui/definitions/behaviors/colorize.js +1 -1
- data/assets/javascripts/semantic_ui/definitions/behaviors/form.js +6 -4
- data/assets/javascripts/semantic_ui/definitions/behaviors/state.js +1 -1
- data/assets/javascripts/semantic_ui/definitions/behaviors/visibility.js +1 -1
- data/assets/javascripts/semantic_ui/definitions/behaviors/visit.js +1 -1
- data/assets/javascripts/semantic_ui/definitions/globals/site.js +1 -1
- data/assets/javascripts/semantic_ui/definitions/modules/accordion.js +1 -1
- data/assets/javascripts/semantic_ui/definitions/modules/checkbox.js +9 -4
- data/assets/javascripts/semantic_ui/definitions/modules/dimmer.js +2 -2
- data/assets/javascripts/semantic_ui/definitions/modules/dropdown.js +77 -52
- data/assets/javascripts/semantic_ui/definitions/modules/embed.js +1 -1
- data/assets/javascripts/semantic_ui/definitions/modules/modal.js +6 -3
- data/assets/javascripts/semantic_ui/definitions/modules/nag.js +1 -1
- data/assets/javascripts/semantic_ui/definitions/modules/popup.js +12 -3
- data/assets/javascripts/semantic_ui/definitions/modules/progress.js +2 -1
- data/assets/javascripts/semantic_ui/definitions/modules/rating.js +1 -1
- data/assets/javascripts/semantic_ui/definitions/modules/search.js +22 -9
- data/assets/javascripts/semantic_ui/definitions/modules/shape.js +1 -1
- data/assets/javascripts/semantic_ui/definitions/modules/sidebar.js +1 -1
- data/assets/javascripts/semantic_ui/definitions/modules/sticky.js +40 -20
- data/assets/javascripts/semantic_ui/definitions/modules/tab.js +1 -1
- data/assets/javascripts/semantic_ui/definitions/modules/transition.js +3 -1
- data/assets/stylesheets/semantic_ui/definitions/collections/form.less +10 -10
- data/assets/stylesheets/semantic_ui/definitions/collections/grid.less +10 -10
- data/assets/stylesheets/semantic_ui/definitions/collections/table.less +21 -3
- data/assets/stylesheets/semantic_ui/definitions/elements/divider.less +1 -1
- data/assets/stylesheets/semantic_ui/definitions/elements/header.less +1 -0
- data/assets/stylesheets/semantic_ui/definitions/elements/segment.less +5 -0
- data/assets/stylesheets/semantic_ui/definitions/elements/step.less +1 -1
- data/assets/stylesheets/semantic_ui/definitions/modules/modal.less +3 -3
- data/assets/stylesheets/semantic_ui/definitions/modules/popup.less +33 -2
- data/assets/stylesheets/semantic_ui/definitions/views/ad.less +1 -1
- data/assets/stylesheets/semantic_ui/themes/default/collections/form.variables +0 -3
- data/assets/stylesheets/semantic_ui/themes/default/elements/icon.overrides +1 -0
- data/assets/stylesheets/semantic_ui/themes/default/modules/popup.variables +11 -1
- data/lib/generators/semantic_ui/install/templates/config/collections/message.overrides +1 -1
- data/lib/less/rails/semantic_ui/version.rb +1 -1
- 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: 584996719f8d48064b9ff4f621e8ea65d35e21a7
|
4
|
+
data.tar.gz: 1a0a0f60a232a5d7ce8c519b97d27e091a5406b9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f5251e931ecdf6827dd8af09e3aa672bf10ffde7eff7a4606838a1622695c27dd98cfd3076064f44772af526b6f8c690505addec3ef856e24a02694044d032e7
|
7
|
+
data.tar.gz: 897f85ea1af2c971c0b3a26bde908057cd5d6b4222131a1bc159c467ddf6f38e11b4a1e105775f82040c9d39db552255566734bdbaf4e105010ab19468ab21e2
|
@@ -299,7 +299,9 @@ $.fn.form = function(parameters) {
|
|
299
299
|
module.validate.form.call(module, event, true);
|
300
300
|
}
|
301
301
|
else if(settings.on == 'blur' || settings.on == 'change') {
|
302
|
-
|
302
|
+
if(validationRules) {
|
303
|
+
module.validate.field( validationRules );
|
304
|
+
}
|
303
305
|
}
|
304
306
|
},
|
305
307
|
change: function(event) {
|
@@ -1048,7 +1050,7 @@ $.fn.form.settings = {
|
|
1048
1050
|
|
1049
1051
|
regExp: {
|
1050
1052
|
bracket : /\[(.*)\]/i,
|
1051
|
-
decimal :
|
1053
|
+
decimal : /^\d*(\.)\d+/,
|
1052
1054
|
email : "[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?",
|
1053
1055
|
escape : /[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,
|
1054
1056
|
flags : /^\/(.*)\/(.*)?/,
|
@@ -1196,7 +1198,7 @@ $.fn.form.settings = {
|
|
1196
1198
|
max,
|
1197
1199
|
parts
|
1198
1200
|
;
|
1199
|
-
if(range
|
1201
|
+
if( !range || ['', '..'].indexOf(range) !== -1) {
|
1200
1202
|
// do nothing
|
1201
1203
|
}
|
1202
1204
|
else if(range.indexOf('..') == -1) {
|
@@ -1512,4 +1514,4 @@ $.fn.form.settings = {
|
|
1512
1514
|
|
1513
1515
|
};
|
1514
1516
|
|
1515
|
-
})( jQuery, window
|
1517
|
+
})( jQuery, window, document );
|
@@ -502,10 +502,15 @@ $.fn.checkbox = function(parameters) {
|
|
502
502
|
|
503
503
|
trigger: {
|
504
504
|
change: function() {
|
505
|
-
|
506
|
-
|
507
|
-
|
505
|
+
var
|
506
|
+
events = document.createEvent('HTMLEvents'),
|
507
|
+
inputElement = $input[0]
|
508
508
|
;
|
509
|
+
if(inputElement) {
|
510
|
+
module.verbose('Triggering native change event');
|
511
|
+
events.initEvent('change', false, true);
|
512
|
+
inputElement.dispatchEvent(events);
|
513
|
+
}
|
509
514
|
}
|
510
515
|
},
|
511
516
|
|
@@ -801,4 +806,4 @@ $.fn.checkbox.settings = {
|
|
801
806
|
|
802
807
|
};
|
803
808
|
|
804
|
-
})( jQuery, window
|
809
|
+
})( jQuery, window, document );
|
@@ -385,7 +385,7 @@ $.fn.dimmer = function(parameters) {
|
|
385
385
|
colorArray = color.split(','),
|
386
386
|
isRGBA = (colorArray && colorArray.length == 4)
|
387
387
|
;
|
388
|
-
opacity = settings.opacity || opacity;
|
388
|
+
opacity = settings.opacity === 0 ? 0 : settings.opacity || opacity;
|
389
389
|
if(isRGBA) {
|
390
390
|
colorArray[3] = opacity + ')';
|
391
391
|
color = colorArray.join(',');
|
@@ -690,4 +690,4 @@ $.fn.dimmer.settings = {
|
|
690
690
|
|
691
691
|
};
|
692
692
|
|
693
|
-
})( jQuery, window
|
693
|
+
})( jQuery, window, document );
|
@@ -40,6 +40,7 @@ $.fn.dropdown = function(parameters) {
|
|
40
40
|
className = settings.className,
|
41
41
|
message = settings.message,
|
42
42
|
fields = settings.fields,
|
43
|
+
keys = settings.keys,
|
43
44
|
metadata = settings.metadata,
|
44
45
|
namespace = settings.namespace,
|
45
46
|
regExp = settings.regExp,
|
@@ -280,6 +281,7 @@ $.fn.dropdown = function(parameters) {
|
|
280
281
|
module.verbose('Adding search input');
|
281
282
|
$search = $('<input />')
|
282
283
|
.addClass(className.search)
|
284
|
+
.prop('autocomplete', 'off')
|
283
285
|
.insertBefore($text)
|
284
286
|
;
|
285
287
|
}
|
@@ -411,7 +413,7 @@ $.fn.dropdown = function(parameters) {
|
|
411
413
|
if(module.is.multiple() && !module.has.search() && module.is.allFiltered()) {
|
412
414
|
return true;
|
413
415
|
}
|
414
|
-
if(module.has.message() && !module.has.maxSelections()) {
|
416
|
+
if(module.has.message() && !(module.has.maxSelections() || module.has.allResultsFiltered()) ) {
|
415
417
|
module.remove.message();
|
416
418
|
}
|
417
419
|
if(settings.onShow.call(element) !== false) {
|
@@ -666,7 +668,7 @@ $.fn.dropdown = function(parameters) {
|
|
666
668
|
onSuccess : function(response) {
|
667
669
|
module.remove.message();
|
668
670
|
module.setup.menu({
|
669
|
-
values: response.
|
671
|
+
values: response[fields.remoteValues]
|
670
672
|
});
|
671
673
|
callback();
|
672
674
|
}
|
@@ -687,15 +689,14 @@ $.fn.dropdown = function(parameters) {
|
|
687
689
|
searchTerm = (query !== undefined)
|
688
690
|
? query
|
689
691
|
: module.get.query(),
|
690
|
-
|
692
|
+
results = null,
|
691
693
|
escapedTerm = module.escape.regExp(searchTerm),
|
692
694
|
beginsWithRegExp = new RegExp('^' + escapedTerm, 'igm')
|
693
695
|
;
|
694
696
|
// avoid loop if we're matching nothing
|
695
|
-
if(
|
696
|
-
|
697
|
-
|
698
|
-
else {
|
697
|
+
if( module.has.query() ) {
|
698
|
+
results = [];
|
699
|
+
|
699
700
|
module.verbose('Searching for matching values', searchTerm);
|
700
701
|
$item
|
701
702
|
.each(function(){
|
@@ -707,11 +708,11 @@ $.fn.dropdown = function(parameters) {
|
|
707
708
|
if(settings.match == 'both' || settings.match == 'text') {
|
708
709
|
text = String(module.get.choiceText($choice, false));
|
709
710
|
if(text.search(beginsWithRegExp) !== -1) {
|
710
|
-
|
711
|
+
results.push(this);
|
711
712
|
return true;
|
712
713
|
}
|
713
714
|
else if(settings.fullTextSearch && module.fuzzySearch(searchTerm, text)) {
|
714
|
-
|
715
|
+
results.push(this);
|
715
716
|
return true;
|
716
717
|
}
|
717
718
|
}
|
@@ -719,11 +720,11 @@ $.fn.dropdown = function(parameters) {
|
|
719
720
|
value = String(module.get.choiceValue($choice, text));
|
720
721
|
|
721
722
|
if(value.search(beginsWithRegExp) !== -1) {
|
722
|
-
|
723
|
+
results.push(this);
|
723
724
|
return true;
|
724
725
|
}
|
725
726
|
else if(settings.fullTextSearch && module.fuzzySearch(searchTerm, value)) {
|
726
|
-
|
727
|
+
results.push(this);
|
727
728
|
return true;
|
728
729
|
}
|
729
730
|
}
|
@@ -732,10 +733,12 @@ $.fn.dropdown = function(parameters) {
|
|
732
733
|
}
|
733
734
|
module.debug('Showing only matched items', searchTerm);
|
734
735
|
module.remove.filteredItem();
|
735
|
-
|
736
|
-
|
737
|
-
|
738
|
-
|
736
|
+
if(results) {
|
737
|
+
$item
|
738
|
+
.not(results)
|
739
|
+
.addClass(className.filtered)
|
740
|
+
;
|
741
|
+
}
|
739
742
|
},
|
740
743
|
|
741
744
|
fuzzySearch: function(query, term) {
|
@@ -788,13 +791,17 @@ $.fn.dropdown = function(parameters) {
|
|
788
791
|
: $activeItem,
|
789
792
|
hasSelected = ($selectedItem.size() > 0)
|
790
793
|
;
|
791
|
-
if(
|
792
|
-
|
793
|
-
|
794
|
-
|
795
|
-
|
796
|
-
|
794
|
+
if( module.has.query() ) {
|
795
|
+
if(hasSelected) {
|
796
|
+
module.debug('Forcing partial selection to selected item', $selectedItem);
|
797
|
+
module.event.item.click.call($selectedItem);
|
798
|
+
return;
|
799
|
+
}
|
800
|
+
else {
|
801
|
+
module.remove.searchTerm();
|
802
|
+
}
|
797
803
|
}
|
804
|
+
module.hide();
|
798
805
|
},
|
799
806
|
|
800
807
|
event: {
|
@@ -839,6 +846,7 @@ $.fn.dropdown = function(parameters) {
|
|
839
846
|
module.remove.activeLabel();
|
840
847
|
}
|
841
848
|
if(settings.showOnFocus) {
|
849
|
+
module.search();
|
842
850
|
module.show();
|
843
851
|
}
|
844
852
|
},
|
@@ -1019,7 +1027,6 @@ $.fn.dropdown = function(parameters) {
|
|
1019
1027
|
keydown: function(event) {
|
1020
1028
|
var
|
1021
1029
|
pressedKey = event.which,
|
1022
|
-
keys = module.get.shortcutKeys(),
|
1023
1030
|
isShortcutKey = module.is.inObject(pressedKey, keys)
|
1024
1031
|
;
|
1025
1032
|
if(isShortcutKey) {
|
@@ -1133,7 +1140,6 @@ $.fn.dropdown = function(parameters) {
|
|
1133
1140
|
keydown: function(event) {
|
1134
1141
|
var
|
1135
1142
|
pressedKey = event.which,
|
1136
|
-
keys = module.get.shortcutKeys(),
|
1137
1143
|
isShortcutKey = module.is.inObject(pressedKey, keys)
|
1138
1144
|
;
|
1139
1145
|
if(isShortcutKey) {
|
@@ -1157,7 +1163,6 @@ $.fn.dropdown = function(parameters) {
|
|
1157
1163
|
isSubMenuItem,
|
1158
1164
|
newIndex
|
1159
1165
|
;
|
1160
|
-
|
1161
1166
|
// visible menu keyboard shortcuts
|
1162
1167
|
if( module.is.visible() ) {
|
1163
1168
|
|
@@ -1298,6 +1303,20 @@ $.fn.dropdown = function(parameters) {
|
|
1298
1303
|
}
|
1299
1304
|
},
|
1300
1305
|
|
1306
|
+
trigger: {
|
1307
|
+
change: function() {
|
1308
|
+
var
|
1309
|
+
events = document.createEvent('HTMLEvents'),
|
1310
|
+
inputElement = $input[0]
|
1311
|
+
;
|
1312
|
+
if(inputElement) {
|
1313
|
+
module.verbose('Triggering native change event');
|
1314
|
+
events.initEvent('change', false, true);
|
1315
|
+
inputElement.dispatchEvent(events);
|
1316
|
+
}
|
1317
|
+
}
|
1318
|
+
},
|
1319
|
+
|
1301
1320
|
determine: {
|
1302
1321
|
selectAction: function(text, value) {
|
1303
1322
|
module.verbose('Determining action', settings.action);
|
@@ -1479,21 +1498,6 @@ $.fn.dropdown = function(parameters) {
|
|
1479
1498
|
return range.text.length - rangeLength;
|
1480
1499
|
}
|
1481
1500
|
},
|
1482
|
-
shortcutKeys: function() {
|
1483
|
-
return {
|
1484
|
-
backspace : 8,
|
1485
|
-
delimiter : 188, // comma
|
1486
|
-
deleteKey : 46,
|
1487
|
-
enter : 13,
|
1488
|
-
escape : 27,
|
1489
|
-
pageUp : 33,
|
1490
|
-
pageDown : 34,
|
1491
|
-
leftArrow : 37,
|
1492
|
-
upArrow : 38,
|
1493
|
-
rightArrow : 39,
|
1494
|
-
downArrow : 40
|
1495
|
-
};
|
1496
|
-
},
|
1497
1501
|
value: function() {
|
1498
1502
|
var
|
1499
1503
|
value = ($input.length > 0)
|
@@ -2011,7 +2015,7 @@ $.fn.dropdown = function(parameters) {
|
|
2011
2015
|
}
|
2012
2016
|
else {
|
2013
2017
|
module.debug('Added tabindex to dropdown');
|
2014
|
-
if(
|
2018
|
+
if( $module.attr('tabindex') === undefined) {
|
2015
2019
|
$module
|
2016
2020
|
.attr('tabindex', 0)
|
2017
2021
|
;
|
@@ -2184,7 +2188,7 @@ $.fn.dropdown = function(parameters) {
|
|
2184
2188
|
module.debug('Input native change event ignored on initial load');
|
2185
2189
|
}
|
2186
2190
|
else {
|
2187
|
-
|
2191
|
+
module.trigger.change();
|
2188
2192
|
}
|
2189
2193
|
internalChange = false;
|
2190
2194
|
}
|
@@ -2642,12 +2646,17 @@ $.fn.dropdown = function(parameters) {
|
|
2642
2646
|
$labels
|
2643
2647
|
.each(function(){
|
2644
2648
|
var
|
2645
|
-
|
2649
|
+
$label = $(this),
|
2650
|
+
value = $label.data(metadata.value),
|
2646
2651
|
stringValue = (value !== undefined)
|
2647
2652
|
? String(value)
|
2648
2653
|
: value,
|
2649
2654
|
isUserValue = module.is.userValue(stringValue)
|
2650
2655
|
;
|
2656
|
+
if(settings.onLabelRemove.call($label, value) === false) {
|
2657
|
+
module.debug('Label remove callback cancelled removal');
|
2658
|
+
return;
|
2659
|
+
}
|
2651
2660
|
if(isUserValue) {
|
2652
2661
|
module.remove.value(stringValue);
|
2653
2662
|
module.remove.label(stringValue);
|
@@ -2663,19 +2672,19 @@ $.fn.dropdown = function(parameters) {
|
|
2663
2672
|
if( module.has.search() ) {
|
2664
2673
|
module.debug('Searchable dropdown initialized');
|
2665
2674
|
$search
|
2666
|
-
.
|
2675
|
+
.removeAttr('tabindex')
|
2667
2676
|
;
|
2668
2677
|
$menu
|
2669
|
-
.
|
2678
|
+
.removeAttr('tabindex')
|
2670
2679
|
;
|
2671
2680
|
}
|
2672
2681
|
else {
|
2673
2682
|
module.debug('Simple selection dropdown initialized');
|
2674
2683
|
$module
|
2675
|
-
.
|
2684
|
+
.removeAttr('tabindex')
|
2676
2685
|
;
|
2677
2686
|
$menu
|
2678
|
-
.
|
2687
|
+
.removeAttr('tabindex')
|
2679
2688
|
;
|
2680
2689
|
}
|
2681
2690
|
}
|
@@ -3269,6 +3278,7 @@ $.fn.dropdown.settings = {
|
|
3269
3278
|
|
3270
3279
|
onLabelSelect : function($selectedLabels){},
|
3271
3280
|
onLabelCreate : function(value, text) { return $(this); },
|
3281
|
+
onLabelRemove : function(value) { return true; },
|
3272
3282
|
onNoResults : function(searchTerm) { return true; },
|
3273
3283
|
onShow : function(){},
|
3274
3284
|
onHide : function(){},
|
@@ -3310,9 +3320,24 @@ $.fn.dropdown.settings = {
|
|
3310
3320
|
|
3311
3321
|
// property names for remote query
|
3312
3322
|
fields: {
|
3313
|
-
|
3314
|
-
|
3315
|
-
|
3323
|
+
remoteValues : 'results', // grouping for api results
|
3324
|
+
values : 'values', // grouping for all dropdown values
|
3325
|
+
name : 'name', // displayed dropdown text
|
3326
|
+
value : 'value' // actual dropdown value
|
3327
|
+
},
|
3328
|
+
|
3329
|
+
keys : {
|
3330
|
+
backspace : 8,
|
3331
|
+
delimiter : 188, // comma
|
3332
|
+
deleteKey : 46,
|
3333
|
+
enter : 13,
|
3334
|
+
escape : 27,
|
3335
|
+
pageUp : 33,
|
3336
|
+
pageDown : 34,
|
3337
|
+
leftArrow : 37,
|
3338
|
+
upArrow : 38,
|
3339
|
+
rightArrow : 39,
|
3340
|
+
downArrow : 40
|
3316
3341
|
},
|
3317
3342
|
|
3318
3343
|
selector : {
|
@@ -3387,10 +3412,10 @@ $.fn.dropdown.settings.templates = {
|
|
3387
3412
|
// generates just menu from select
|
3388
3413
|
menu: function(response, fields) {
|
3389
3414
|
var
|
3390
|
-
values = response.values || {},
|
3415
|
+
values = response[fields.values] || {},
|
3391
3416
|
html = ''
|
3392
3417
|
;
|
3393
|
-
$.each(
|
3418
|
+
$.each(values, function(index, option) {
|
3394
3419
|
html += '<div class="item" data-value="' + option[fields.value] + '">' + option[fields.name] + '</div>';
|
3395
3420
|
});
|
3396
3421
|
return html;
|
@@ -3414,4 +3439,4 @@ $.fn.dropdown.settings.templates = {
|
|
3414
3439
|
|
3415
3440
|
};
|
3416
3441
|
|
3417
|
-
})( jQuery, window
|
3442
|
+
})( jQuery, window, document );
|
@@ -365,7 +365,10 @@ $.fn.modal = function(parameters) {
|
|
365
365
|
: function(){}
|
366
366
|
;
|
367
367
|
module.debug('Hiding modal');
|
368
|
-
settings.onHide.call(element)
|
368
|
+
if(settings.onHide.call(element, $(this)) === false) {
|
369
|
+
module.verbose('Hide callback returned false cancelling hide');
|
370
|
+
return;
|
371
|
+
}
|
369
372
|
|
370
373
|
if( module.is.animating() || module.is.active() ) {
|
371
374
|
if(settings.transition && $.fn.transition !== undefined && $module.transition('is supported')) {
|
@@ -854,7 +857,7 @@ $.fn.modal.settings = {
|
|
854
857
|
onVisible : function(){},
|
855
858
|
|
856
859
|
// called before hide animation
|
857
|
-
onHide : function(){},
|
860
|
+
onHide : function(){ return true; },
|
858
861
|
|
859
862
|
// called after hide animation
|
860
863
|
onHidden : function(){},
|
@@ -886,4 +889,4 @@ $.fn.modal.settings = {
|
|
886
889
|
};
|
887
890
|
|
888
891
|
|
889
|
-
})( jQuery, window
|
892
|
+
})( jQuery, window, document );
|
@@ -423,6 +423,12 @@ $.fn.popup = function(parameters) {
|
|
423
423
|
}
|
424
424
|
},
|
425
425
|
|
426
|
+
change: {
|
427
|
+
content: function(html) {
|
428
|
+
$popup.html(html);
|
429
|
+
}
|
430
|
+
},
|
431
|
+
|
426
432
|
get: {
|
427
433
|
html: function() {
|
428
434
|
$module.removeData(metadata.html);
|
@@ -440,13 +446,16 @@ $.fn.popup = function(parameters) {
|
|
440
446
|
$module.removeData(metadata.variation);
|
441
447
|
return $module.data(metadata.variation) || settings.variation;
|
442
448
|
},
|
449
|
+
popup: function() {
|
450
|
+
return $popup;
|
451
|
+
},
|
443
452
|
popupOffset: function() {
|
444
453
|
return $popup.offset();
|
445
454
|
},
|
446
455
|
calculations: function() {
|
447
456
|
var
|
448
457
|
targetElement = $target[0],
|
449
|
-
targetPosition = (settings.inline || settings.popup)
|
458
|
+
targetPosition = (settings.inline || (settings.popup && settings.movePopup))
|
450
459
|
? $target.position()
|
451
460
|
: $target.offset(),
|
452
461
|
calculations = {},
|
@@ -688,7 +697,7 @@ $.fn.popup = function(parameters) {
|
|
688
697
|
popup = calculations.popup;
|
689
698
|
parent = calculations.parent;
|
690
699
|
|
691
|
-
if(target.width === 0 && target.height === 0) {
|
700
|
+
if(target.width === 0 && target.height === 0 && !(target.element instanceof SVGGraphicsElement)) {
|
692
701
|
module.debug('Popup target is hidden, no action taken');
|
693
702
|
return false;
|
694
703
|
}
|
@@ -1397,4 +1406,4 @@ $.fn.popup.settings = {
|
|
1397
1406
|
};
|
1398
1407
|
|
1399
1408
|
|
1400
|
-
})( jQuery, window
|
1409
|
+
})( jQuery, window, document );
|
@@ -89,6 +89,7 @@ $.fn.progress = function(parameters) {
|
|
89
89
|
|
90
90
|
reset: function() {
|
91
91
|
module.set.percent(0);
|
92
|
+
module.set.value(0);
|
92
93
|
},
|
93
94
|
|
94
95
|
complete: function() {
|
@@ -791,4 +792,4 @@ $.fn.progress.settings = {
|
|
791
792
|
};
|
792
793
|
|
793
794
|
|
794
|
-
})( jQuery, window
|
795
|
+
})( jQuery, window, document );
|
@@ -209,9 +209,7 @@ $.fn.search = function(parameters) {
|
|
209
209
|
// search shortcuts
|
210
210
|
if(keyCode == keys.escape) {
|
211
211
|
module.verbose('Escape key pressed, blurring search field');
|
212
|
-
|
213
|
-
.trigger('blur')
|
214
|
-
;
|
212
|
+
module.trigger.blur();
|
215
213
|
}
|
216
214
|
if( module.is.visible() ) {
|
217
215
|
if(keyCode == keys.enter) {
|
@@ -311,6 +309,20 @@ $.fn.search = function(parameters) {
|
|
311
309
|
}
|
312
310
|
},
|
313
311
|
|
312
|
+
trigger: {
|
313
|
+
blur: function() {
|
314
|
+
var
|
315
|
+
events = document.createEvent('HTMLEvents'),
|
316
|
+
promptElement = $prompt[0]
|
317
|
+
;
|
318
|
+
if(promptElement) {
|
319
|
+
module.verbose('Triggering native blur event');
|
320
|
+
events.initEvent('blur', false, true);
|
321
|
+
promptElement.dispatchEvent(events);
|
322
|
+
}
|
323
|
+
}
|
324
|
+
},
|
325
|
+
|
314
326
|
get: {
|
315
327
|
inputEvent: function() {
|
316
328
|
var
|
@@ -424,8 +436,8 @@ $.fn.search = function(parameters) {
|
|
424
436
|
else {
|
425
437
|
module.error(error.source);
|
426
438
|
}
|
427
|
-
settings.onSearchQuery.call(element, searchTerm);
|
428
439
|
}
|
440
|
+
settings.onSearchQuery.call(element, searchTerm);
|
429
441
|
}
|
430
442
|
else {
|
431
443
|
module.hideResults();
|
@@ -1134,6 +1146,7 @@ $.fn.search.settings = {
|
|
1134
1146
|
price : 'price', // result price
|
1135
1147
|
results : 'results', // array of results (standard)
|
1136
1148
|
title : 'title', // result title
|
1149
|
+
url : 'url', // result url
|
1137
1150
|
action : 'action', // "view more" object name
|
1138
1151
|
actionText : 'text', // "view more" text
|
1139
1152
|
actionURL : 'url' // "view more" url
|
@@ -1211,8 +1224,8 @@ $.fn.search.settings = {
|
|
1211
1224
|
|
1212
1225
|
// each item inside category
|
1213
1226
|
$.each(category.results, function(index, result) {
|
1214
|
-
if(
|
1215
|
-
html += '<a class="result" href="' +
|
1227
|
+
if(result[fields.url]) {
|
1228
|
+
html += '<a class="result" href="' + result[fields.url] + '">';
|
1216
1229
|
}
|
1217
1230
|
else {
|
1218
1231
|
html += '<a class="result">';
|
@@ -1262,8 +1275,8 @@ $.fn.search.settings = {
|
|
1262
1275
|
|
1263
1276
|
// each result
|
1264
1277
|
$.each(response[fields.results], function(index, result) {
|
1265
|
-
if(
|
1266
|
-
html += '<a class="result" href="' +
|
1278
|
+
if(result[fields.url]) {
|
1279
|
+
html += '<a class="result" href="' + result[fields.url] + '">';
|
1267
1280
|
}
|
1268
1281
|
else {
|
1269
1282
|
html += '<a class="result">';
|
@@ -1304,4 +1317,4 @@ $.fn.search.settings = {
|
|
1304
1317
|
}
|
1305
1318
|
};
|
1306
1319
|
|
1307
|
-
})( jQuery, window
|
1320
|
+
})( jQuery, window, document );
|
@@ -223,8 +223,8 @@ $.fn.sticky = function(parameters) {
|
|
223
223
|
},
|
224
224
|
positions: function() {
|
225
225
|
var
|
226
|
-
|
227
|
-
height: $
|
226
|
+
scrollContext = {
|
227
|
+
height : $scroll.height()
|
228
228
|
},
|
229
229
|
element = {
|
230
230
|
margin: {
|
@@ -236,17 +236,28 @@ $.fn.sticky = function(parameters) {
|
|
236
236
|
height : $module.outerHeight()
|
237
237
|
},
|
238
238
|
context = {
|
239
|
-
offset
|
240
|
-
height
|
239
|
+
offset : $context.offset(),
|
240
|
+
height : $context.outerHeight()
|
241
241
|
},
|
242
242
|
container = {
|
243
243
|
height: $container.outerHeight()
|
244
244
|
}
|
245
245
|
;
|
246
|
+
if( !module.is.standardScroll() ) {
|
247
|
+
module.debug('Non-standard scroll. Removing scroll offset from element offset');
|
248
|
+
|
249
|
+
scrollContext.top = $scroll.scrollTop();
|
250
|
+
scrollContext.left = $scroll.scrollLeft();
|
251
|
+
|
252
|
+
element.offset.top += scrollContext.top;
|
253
|
+
context.offset.top += scrollContext.top;
|
254
|
+
element.offset.left += scrollContext.left;
|
255
|
+
context.offset.left += scrollContext.left;
|
256
|
+
}
|
246
257
|
module.cache = {
|
247
|
-
fits : ( element.height <
|
248
|
-
|
249
|
-
height:
|
258
|
+
fits : ( element.height < scrollContext.height ),
|
259
|
+
scrollContext : {
|
260
|
+
height : scrollContext.height
|
250
261
|
},
|
251
262
|
element: {
|
252
263
|
margin : element.margin,
|
@@ -306,9 +317,9 @@ $.fn.sticky = function(parameters) {
|
|
306
317
|
scroll = scroll || $scroll.scrollTop();
|
307
318
|
var
|
308
319
|
element = module.cache.element,
|
309
|
-
|
320
|
+
scrollContext = module.cache.scrollContext,
|
310
321
|
delta = module.get.scrollChange(scroll),
|
311
|
-
maxScroll = (element.height -
|
322
|
+
maxScroll = (element.height - scrollContext.height + settings.offset),
|
312
323
|
elementScroll = module.get.currentElementScroll(),
|
313
324
|
possibleScroll = (elementScroll + delta)
|
314
325
|
;
|
@@ -397,6 +408,9 @@ $.fn.sticky = function(parameters) {
|
|
397
408
|
},
|
398
409
|
|
399
410
|
is: {
|
411
|
+
standardScroll: function() {
|
412
|
+
return ($scroll[0] == window);
|
413
|
+
},
|
400
414
|
top: function() {
|
401
415
|
return $module.hasClass(className.top);
|
402
416
|
},
|
@@ -423,14 +437,14 @@ $.fn.sticky = function(parameters) {
|
|
423
437
|
cache = module.cache,
|
424
438
|
fits = cache.fits,
|
425
439
|
element = cache.element,
|
426
|
-
|
440
|
+
scrollContext = cache.scrollContext,
|
427
441
|
context = cache.context,
|
428
442
|
offset = (module.is.bottom() && settings.pushing)
|
429
443
|
? settings.bottomOffset
|
430
444
|
: settings.offset,
|
431
445
|
scroll = {
|
432
446
|
top : cachedPosition + offset,
|
433
|
-
bottom : cachedPosition + offset +
|
447
|
+
bottom : cachedPosition + offset + scrollContext.height
|
434
448
|
},
|
435
449
|
direction = module.get.direction(scroll.top),
|
436
450
|
elementScroll = (fits)
|
@@ -504,16 +518,22 @@ $.fn.sticky = function(parameters) {
|
|
504
518
|
}
|
505
519
|
}
|
506
520
|
else if( module.is.bottom() ) {
|
507
|
-
if(
|
508
|
-
|
509
|
-
|
510
|
-
module.fixBottom();
|
511
|
-
}
|
521
|
+
if( scroll.top <= element.top ) {
|
522
|
+
module.debug('Jumped from bottom fixed to top fixed, most likely used home/end button');
|
523
|
+
module.setInitialPosition();
|
512
524
|
}
|
513
525
|
else {
|
514
|
-
if(
|
515
|
-
module.
|
516
|
-
|
526
|
+
if(settings.pushing) {
|
527
|
+
if(module.is.bound() && scroll.bottom <= context.bottom ) {
|
528
|
+
module.debug('Fixing bottom attached element to bottom of browser.');
|
529
|
+
module.fixBottom();
|
530
|
+
}
|
531
|
+
}
|
532
|
+
else {
|
533
|
+
if(module.is.bound() && (scroll.top <= context.bottom - element.height) ) {
|
534
|
+
module.debug('Fixing bottom attached element to top of browser.');
|
535
|
+
module.fixTop();
|
536
|
+
}
|
517
537
|
}
|
518
538
|
}
|
519
539
|
}
|
@@ -884,4 +904,4 @@ $.fn.sticky.settings = {
|
|
884
904
|
|
885
905
|
};
|
886
906
|
|
887
|
-
})( jQuery, window
|
907
|
+
})( jQuery, window, document );
|
@@ -228,7 +228,9 @@ $.fn.transition = function() {
|
|
228
228
|
module.show();
|
229
229
|
}
|
230
230
|
else {
|
231
|
+
module.verbose('Static animation completed');
|
231
232
|
module.restore.conditions();
|
233
|
+
settings.onComplete.call(element);
|
232
234
|
}
|
233
235
|
}
|
234
236
|
},
|
@@ -1069,4 +1071,4 @@ $.fn.transition.settings = {
|
|
1069
1071
|
};
|
1070
1072
|
|
1071
1073
|
|
1072
|
-
})( jQuery, window
|
1074
|
+
})( jQuery, window, document );
|
@@ -256,15 +256,6 @@
|
|
256
256
|
width: 0px;
|
257
257
|
}
|
258
258
|
|
259
|
-
/*--------------------
|
260
|
-
Dividers
|
261
|
-
---------------------*/
|
262
|
-
|
263
|
-
.ui.form .divider {
|
264
|
-
clear: both;
|
265
|
-
margin: @dividerMargin;
|
266
|
-
}
|
267
|
-
|
268
259
|
|
269
260
|
/*--------------------
|
270
261
|
Types of Messages
|
@@ -861,7 +852,6 @@
|
|
861
852
|
|
862
853
|
|
863
854
|
/* Sizing Combinations */
|
864
|
-
|
865
855
|
.ui.form .fields .wide.field {
|
866
856
|
width: @oneWide;
|
867
857
|
padding-left: (@gutterWidth / 2);
|
@@ -955,6 +945,16 @@
|
|
955
945
|
}
|
956
946
|
}
|
957
947
|
|
948
|
+
/*--------------------
|
949
|
+
Equal Width
|
950
|
+
---------------------*/
|
951
|
+
|
952
|
+
.ui[class*="equal width"].form .fields > .field,
|
953
|
+
.ui.form [class*="equal width"].fields > .field {
|
954
|
+
width: 100%;
|
955
|
+
flex: 1 1 auto;
|
956
|
+
}
|
957
|
+
|
958
958
|
/*--------------------
|
959
959
|
Inline Fields
|
960
960
|
---------------------*/
|
@@ -139,8 +139,8 @@
|
|
139
139
|
}
|
140
140
|
|
141
141
|
/* Segment inside Aligned Grid */
|
142
|
-
.ui.grid .aligned.row > .column > .segment:not(.compact),
|
143
|
-
.ui.aligned.grid .column > .segment:not(.compact) {
|
142
|
+
.ui.grid .aligned.row > .column > .segment:not(.compact):not(.attached),
|
143
|
+
.ui.aligned.grid .column > .segment:not(.compact):not(.attached) {
|
144
144
|
width: 100%;
|
145
145
|
}
|
146
146
|
|
@@ -1800,7 +1800,7 @@
|
|
1800
1800
|
|
1801
1801
|
/* Mobile Only Hide */
|
1802
1802
|
@media only screen and (max-width: @largestMobileScreen) {
|
1803
|
-
.ui
|
1803
|
+
.ui[class*="tablet only"].grid.grid.grid:not(.mobile),
|
1804
1804
|
.ui.grid.grid.grid > [class*="tablet only"].row:not(.mobile),
|
1805
1805
|
.ui.grid.grid.grid > [class*="tablet only"].column:not(.mobile),
|
1806
1806
|
.ui.grid.grid.grid > .row > [class*="tablet only"].column:not(.mobile) {
|
@@ -1818,10 +1818,10 @@
|
|
1818
1818
|
.ui.grid.grid.grid > .row > [class*="large screen only"].column:not(.mobile) {
|
1819
1819
|
display: none !important;
|
1820
1820
|
}
|
1821
|
-
.ui[class*="widescreen"].grid.grid.grid:not(.mobile),
|
1822
|
-
.ui.grid.grid.grid > [class*="
|
1823
|
-
.ui.grid.grid.grid > [class*="
|
1824
|
-
.ui.grid.grid.grid > .row > [class*="
|
1821
|
+
.ui[class*="widescreen only"].grid.grid.grid:not(.mobile),
|
1822
|
+
.ui.grid.grid.grid > [class*="widescreen only"].row:not(.mobile),
|
1823
|
+
.ui.grid.grid.grid > [class*="widescreen only"].column:not(.mobile),
|
1824
|
+
.ui.grid.grid.grid > .row > [class*="widescreen only"].column:not(.mobile) {
|
1825
1825
|
display: none !important;
|
1826
1826
|
}
|
1827
1827
|
}
|
@@ -1845,7 +1845,7 @@
|
|
1845
1845
|
.ui.grid.grid.grid > .row > [class*="large screen only"].column:not(.mobile) {
|
1846
1846
|
display: none !important;
|
1847
1847
|
}
|
1848
|
-
.ui[class*="widescreen"].grid.grid.grid:not(.mobile),
|
1848
|
+
.ui[class*="widescreen only"].grid.grid.grid:not(.mobile),
|
1849
1849
|
.ui.grid.grid.grid > [class*="widescreen only"].row:not(.mobile),
|
1850
1850
|
.ui.grid.grid.grid > [class*="widescreen only"].column:not(.mobile),
|
1851
1851
|
.ui.grid.grid.grid > .row > [class*="widescreen only"].column:not(.mobile) {
|
@@ -1873,7 +1873,7 @@
|
|
1873
1873
|
.ui.grid.grid.grid > .row > [class*="large screen only"].column:not(.mobile) {
|
1874
1874
|
display: none !important;
|
1875
1875
|
}
|
1876
|
-
.ui[class*="widescreen"].grid.grid.grid:not(.mobile),
|
1876
|
+
.ui[class*="widescreen only"].grid.grid.grid:not(.mobile),
|
1877
1877
|
.ui.grid.grid.grid > [class*="widescreen only"].row:not(.mobile),
|
1878
1878
|
.ui.grid.grid.grid > [class*="widescreen only"].column:not(.mobile),
|
1879
1879
|
.ui.grid.grid.grid > .row > [class*="widescreen only"].column:not(.mobile) {
|
@@ -1895,7 +1895,7 @@
|
|
1895
1895
|
.ui.grid.grid.grid > .row > [class*="tablet only"].column:not(.computer) {
|
1896
1896
|
display: none !important;
|
1897
1897
|
}
|
1898
|
-
.ui[class*="widescreen"].grid.grid.grid:not(.mobile),
|
1898
|
+
.ui[class*="widescreen only"].grid.grid.grid:not(.mobile),
|
1899
1899
|
.ui.grid.grid.grid > [class*="widescreen only"].row:not(.mobile),
|
1900
1900
|
.ui.grid.grid.grid > [class*="widescreen only"].column:not(.mobile),
|
1901
1901
|
.ui.grid.grid.grid > .row > [class*="widescreen only"].column:not(.mobile) {
|
@@ -491,46 +491,64 @@
|
|
491
491
|
|
492
492
|
|
493
493
|
/*--------------
|
494
|
-
|
494
|
+
Selectable
|
495
495
|
---------------*/
|
496
496
|
|
497
|
-
.ui.selectable.table tbody tr:hover
|
497
|
+
.ui.selectable.table tbody tr:hover,
|
498
|
+
.ui.table tbody tr td.selectable:hover {
|
498
499
|
background: @selectableBackground !important;
|
499
500
|
color: @selectableTextColor !important;
|
500
501
|
}
|
501
|
-
.ui.selectable.inverted.table tbody tr:hover
|
502
|
+
.ui.selectable.inverted.table tbody tr:hover,
|
503
|
+
.ui.inverted.table tbody tr td.selectable:hover {
|
502
504
|
background: @selectableInvertedBackground !important;
|
503
505
|
color: @selectableInvertedTextColor !important;
|
504
506
|
}
|
505
507
|
|
508
|
+
/* Selectable Cell Link */
|
509
|
+
.ui.table tbody tr td.selectable {
|
510
|
+
padding: 0em;
|
511
|
+
}
|
512
|
+
.ui.table tbody tr td.selectable > a:not(.ui) {
|
513
|
+
display: block;
|
514
|
+
color: inherit;
|
515
|
+
padding: @cellVerticalPadding @cellHorizontalPadding;
|
516
|
+
}
|
517
|
+
|
506
518
|
/* Other States */
|
507
519
|
.ui.selectable.table tr.error:hover,
|
520
|
+
.ui.table tr td.selectable.error:hover,
|
508
521
|
.ui.selectable.table tr:hover td.error {
|
509
522
|
background: @errorBackgroundHover !important;
|
510
523
|
color: @errorColorHover !important;
|
511
524
|
}
|
512
525
|
.ui.selectable.table tr.warning:hover,
|
526
|
+
.ui.table tr td.selectable.warning:hover,
|
513
527
|
.ui.selectable.table tr:hover td.warning {
|
514
528
|
background: @warningBackgroundHover !important;
|
515
529
|
color: @warningColorHover !important;
|
516
530
|
}
|
517
531
|
.ui.selectable.table tr.active:hover,
|
532
|
+
.ui.table tr td.selectable.active:hover,
|
518
533
|
.ui.selectable.table tr:hover td.active {
|
519
534
|
background: @activeBackgroundColor !important;
|
520
535
|
color: @activeColor !important;
|
521
536
|
}
|
522
537
|
.ui.selectable.table tr.positive:hover,
|
538
|
+
.ui.table tr td.selectable.positive:hover,
|
523
539
|
.ui.selectable.table tr:hover td.positive {
|
524
540
|
background: @positiveBackgroundHover !important;
|
525
541
|
color: @positiveColorHover !important;
|
526
542
|
}
|
527
543
|
.ui.selectable.table tr.negative:hover,
|
544
|
+
.ui.table tr td.selectable.negative:hover,
|
528
545
|
.ui.selectable.table tr:hover td.negative {
|
529
546
|
background: @negativeBackgroundHover !important;
|
530
547
|
color: @negativeColorHover !important;
|
531
548
|
}
|
532
549
|
|
533
550
|
|
551
|
+
|
534
552
|
/*-------------------
|
535
553
|
Attached
|
536
554
|
--------------------*/
|
@@ -142,7 +142,7 @@
|
|
142
142
|
}
|
143
143
|
|
144
144
|
/* Inside grid */
|
145
|
-
@media only screen and (max-width :
|
145
|
+
@media only screen and (max-width : @largestMobileScreen) {
|
146
146
|
|
147
147
|
.ui.stackable.grid .ui.vertical.divider,
|
148
148
|
.ui.grid .stackable.row .ui.vertical.divider {
|
@@ -380,6 +380,11 @@
|
|
380
380
|
box-shadow: none;
|
381
381
|
border-left: @borderWidth solid @borderColor;
|
382
382
|
}
|
383
|
+
|
384
|
+
/* Border Fixes */
|
385
|
+
.ui.segments > .horizontal.segments:first-child {
|
386
|
+
border-top: none;
|
387
|
+
}
|
383
388
|
.ui.horizontal.segments > .segment:first-child {
|
384
389
|
border-left: none;
|
385
390
|
}
|
@@ -221,7 +221,7 @@
|
|
221
221
|
}
|
222
222
|
|
223
223
|
/* Tablet and Mobile */
|
224
|
-
@media only screen and (max-width : @
|
224
|
+
@media only screen and (max-width : @largestTabletScreen) {
|
225
225
|
.ui.modal > .header {
|
226
226
|
padding-right: @closeHitbox;
|
227
227
|
}
|
@@ -323,7 +323,7 @@
|
|
323
323
|
}
|
324
324
|
|
325
325
|
/* Tablet and Mobile */
|
326
|
-
@media only screen and (max-width : @
|
326
|
+
@media only screen and (max-width : @largestTabletScreen) {
|
327
327
|
.ui.basic.modal > .close {
|
328
328
|
color: @basicInnerCloseColor;
|
329
329
|
}
|
@@ -381,7 +381,7 @@
|
|
381
381
|
z-index: auto;
|
382
382
|
}
|
383
383
|
|
384
|
-
@media only screen and (max-width : @
|
384
|
+
@media only screen and (max-width : @largestTabletScreen) {
|
385
385
|
.modals.dimmer .ui.scrolling.modal {
|
386
386
|
margin-top: @mobileScrollingMargin !important;
|
387
387
|
margin-bottom: @mobileScrollingMargin !important;
|
@@ -48,7 +48,7 @@
|
|
48
48
|
border: @border;
|
49
49
|
line-height: @lineHeight;
|
50
50
|
max-width: @maxWidth;
|
51
|
-
background
|
51
|
+
background: @background;
|
52
52
|
|
53
53
|
padding: @verticalPadding @horizontalPadding;
|
54
54
|
font-weight: @fontWeight;
|
@@ -150,6 +150,7 @@
|
|
150
150
|
.ui.bottom.left.popup {
|
151
151
|
margin-left: @boxArrowOffset;
|
152
152
|
}
|
153
|
+
/*rtl:rename*/
|
153
154
|
.ui.bottom.left.popup:before {
|
154
155
|
top: @arrowOffset;
|
155
156
|
left: @arrowDistanceFromEdge;
|
@@ -162,6 +163,7 @@
|
|
162
163
|
.ui.bottom.right.popup {
|
163
164
|
margin-right: @boxArrowOffset;
|
164
165
|
}
|
166
|
+
/*rtl:rename*/
|
165
167
|
.ui.bottom.right.popup:before {
|
166
168
|
top: @arrowOffset;
|
167
169
|
right: @arrowDistanceFromEdge;
|
@@ -182,6 +184,7 @@
|
|
182
184
|
.ui.top.left.popup {
|
183
185
|
margin-left: @boxArrowOffset;
|
184
186
|
}
|
187
|
+
/*rtl:rename*/
|
185
188
|
.ui.top.left.popup:before {
|
186
189
|
bottom: @arrowOffset;
|
187
190
|
left: @arrowDistanceFromEdge;
|
@@ -192,6 +195,7 @@
|
|
192
195
|
.ui.top.right.popup {
|
193
196
|
margin-right: @boxArrowOffset;
|
194
197
|
}
|
198
|
+
/*rtl:rename*/
|
195
199
|
.ui.top.right.popup:before {
|
196
200
|
bottom: @arrowOffset;
|
197
201
|
right: @arrowDistanceFromEdge;
|
@@ -201,6 +205,7 @@
|
|
201
205
|
}
|
202
206
|
|
203
207
|
/*--- Left Center ---*/
|
208
|
+
/*rtl:rename*/
|
204
209
|
.ui.left.center.popup:before {
|
205
210
|
top: 50%;
|
206
211
|
right: @arrowOffset;
|
@@ -211,6 +216,7 @@
|
|
211
216
|
}
|
212
217
|
|
213
218
|
/*--- Right Center ---*/
|
219
|
+
/*rtl:rename*/
|
214
220
|
.ui.right.center.popup:before {
|
215
221
|
top: 50%;
|
216
222
|
left: @arrowOffset;
|
@@ -220,6 +226,31 @@
|
|
220
226
|
box-shadow: @rightArrowBoxShadow;
|
221
227
|
}
|
222
228
|
|
229
|
+
/* Arrow Color By Location */
|
230
|
+
.ui.bottom.popup:before {
|
231
|
+
background: @arrowTopBackground;
|
232
|
+
}
|
233
|
+
.ui.right.center.popup:before,
|
234
|
+
.ui.left.center.popup:before {
|
235
|
+
background: @arrowCenterBackground;
|
236
|
+
}
|
237
|
+
.ui.top.popup:before {
|
238
|
+
background: @arrowBottomBackground;
|
239
|
+
}
|
240
|
+
|
241
|
+
/* Inverted Arrow Color */
|
242
|
+
.ui.inverted.bottom.popup:before {
|
243
|
+
background: @invertedArrowTopBackground;
|
244
|
+
}
|
245
|
+
.ui.inverted.right.center.popup:before,
|
246
|
+
.ui.inverted.left.center.popup:before {
|
247
|
+
background: @invertedArrowCenterBackground;
|
248
|
+
}
|
249
|
+
.ui.inverted.top.popup:before {
|
250
|
+
background: @invertedArrowBottomBackground;
|
251
|
+
}
|
252
|
+
|
253
|
+
|
223
254
|
/*******************************
|
224
255
|
Coupling
|
225
256
|
*******************************/
|
@@ -346,4 +377,4 @@
|
|
346
377
|
}
|
347
378
|
|
348
379
|
|
349
|
-
.loadUIOverrides();
|
380
|
+
.loadUIOverrides();
|
@@ -682,6 +682,7 @@ i.icon.triangle.right:before { content: "\f0da"; }
|
|
682
682
|
i.icon.envelope:before { content: "\f0e0"; }
|
683
683
|
i.icon.conversation:before { content: "\f0e6"; }
|
684
684
|
i.icon.umbrella:before { content: "\f0e9"; }
|
685
|
+
i.icon.clipboard:before { content: "\f0ea"; }
|
685
686
|
i.icon.lightbulb:before { content: "\f0eb"; }
|
686
687
|
i.icon.ambulance:before { content: "\f0f9"; }
|
687
688
|
i.icon.medkit:before { content: "\f0fa"; }
|
@@ -51,6 +51,11 @@
|
|
51
51
|
@arrowStroke: @borderWidth;
|
52
52
|
@arrowColor: darken(@borderColor, 10);
|
53
53
|
|
54
|
+
/* Arrow color by position */
|
55
|
+
@arrowTopBackground: @arrowBackground;
|
56
|
+
@arrowCenterBackground: @arrowBackground;
|
57
|
+
@arrowBottomBackground: @arrowBackground;
|
58
|
+
|
54
59
|
@arrowBoxShadow: @arrowStroke @arrowStroke 0px 0px @arrowColor;
|
55
60
|
@leftArrowBoxShadow: @arrowStroke -@arrowStroke 0px 0px @arrowColor;
|
56
61
|
@rightArrowBoxShadow: -@arrowStroke @arrowStroke 0px 0px @arrowColor;
|
@@ -86,4 +91,9 @@
|
|
86
91
|
|
87
92
|
@invertedHeaderBackground: none;
|
88
93
|
@invertedHeaderColor: @white;
|
89
|
-
@invertedArrowColor: @invertedBackground;
|
94
|
+
@invertedArrowColor: @invertedBackground;
|
95
|
+
|
96
|
+
/* Arrow color by position */
|
97
|
+
@invertedArrowTopBackground: @invertedBackground;
|
98
|
+
@invertedArrowCenterBackground: @invertedBackground;
|
99
|
+
@invertedArrowBottomBackground: @invertedBackground;
|
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.1.
|
4
|
+
version: 2.1.5.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: 2015-
|
11
|
+
date: 2015-11-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: less-rails
|