fomantic-ui 2.9.0-beta.216 → 2.9.0-beta.217
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.
- package/dist/components/accordion.css +1 -1
- package/dist/components/accordion.js +1 -1
- package/dist/components/accordion.min.css +1 -1
- package/dist/components/accordion.min.js +1 -1
- package/dist/components/ad.css +1 -1
- package/dist/components/ad.min.css +1 -1
- package/dist/components/api.js +1 -1
- package/dist/components/api.min.js +1 -1
- package/dist/components/breadcrumb.css +1 -1
- package/dist/components/breadcrumb.min.css +1 -1
- package/dist/components/button.css +1 -1
- package/dist/components/button.min.css +1 -1
- package/dist/components/calendar.css +1 -1
- package/dist/components/calendar.js +1 -1
- package/dist/components/calendar.min.css +1 -1
- package/dist/components/calendar.min.js +1 -1
- package/dist/components/card.css +1 -1
- package/dist/components/card.min.css +1 -1
- package/dist/components/checkbox.css +1 -1
- package/dist/components/checkbox.js +1 -1
- package/dist/components/checkbox.min.css +1 -1
- package/dist/components/checkbox.min.js +1 -1
- package/dist/components/comment.css +1 -1
- package/dist/components/comment.min.css +1 -1
- package/dist/components/container.css +1 -1
- package/dist/components/container.min.css +1 -1
- package/dist/components/dimmer.css +1 -1
- package/dist/components/dimmer.js +1 -1
- package/dist/components/dimmer.min.css +1 -1
- package/dist/components/dimmer.min.js +1 -1
- package/dist/components/divider.css +1 -1
- package/dist/components/divider.min.css +1 -1
- package/dist/components/dropdown.css +20 -7
- package/dist/components/dropdown.js +1 -1
- package/dist/components/dropdown.min.css +2 -2
- package/dist/components/dropdown.min.js +1 -1
- package/dist/components/embed.css +1 -1
- package/dist/components/embed.js +1 -1
- package/dist/components/embed.min.css +1 -1
- package/dist/components/embed.min.js +1 -1
- package/dist/components/feed.css +1 -1
- package/dist/components/feed.min.css +1 -1
- package/dist/components/flag.css +1 -1
- package/dist/components/flag.min.css +1 -1
- package/dist/components/form.css +1 -1
- package/dist/components/form.js +6 -6
- package/dist/components/form.min.css +1 -1
- package/dist/components/form.min.js +2 -2
- package/dist/components/grid.css +1 -1
- package/dist/components/grid.min.css +1 -1
- package/dist/components/header.css +1 -1
- package/dist/components/header.min.css +1 -1
- package/dist/components/icon.css +1 -1
- package/dist/components/icon.min.css +1 -1
- package/dist/components/image.css +1 -1
- package/dist/components/image.min.css +1 -1
- package/dist/components/input.css +1 -1
- package/dist/components/input.min.css +1 -1
- package/dist/components/item.css +1 -1
- package/dist/components/item.min.css +1 -1
- package/dist/components/label.css +1 -1
- package/dist/components/label.min.css +1 -1
- package/dist/components/list.css +1 -1
- package/dist/components/list.min.css +1 -1
- package/dist/components/loader.css +1 -1
- package/dist/components/loader.min.css +1 -1
- package/dist/components/message.css +1 -1
- package/dist/components/message.min.css +1 -1
- package/dist/components/modal.css +1 -1
- package/dist/components/modal.js +1 -1
- package/dist/components/modal.min.css +1 -1
- package/dist/components/modal.min.js +1 -1
- package/dist/components/nag.css +1 -1
- package/dist/components/nag.js +1 -1
- package/dist/components/nag.min.css +1 -1
- package/dist/components/nag.min.js +1 -1
- package/dist/components/placeholder.css +1 -1
- package/dist/components/placeholder.min.css +1 -1
- package/dist/components/popup.css +1 -1
- package/dist/components/popup.js +1 -1
- package/dist/components/popup.min.css +1 -1
- package/dist/components/popup.min.js +1 -1
- package/dist/components/progress.css +1 -1
- package/dist/components/progress.js +1 -1
- package/dist/components/progress.min.css +1 -1
- package/dist/components/progress.min.js +1 -1
- package/dist/components/rail.css +1 -1
- package/dist/components/rail.min.css +1 -1
- package/dist/components/rating.css +1 -1
- package/dist/components/rating.js +1 -1
- package/dist/components/rating.min.css +1 -1
- package/dist/components/rating.min.js +1 -1
- package/dist/components/reset.css +1 -1
- package/dist/components/reset.min.css +1 -1
- package/dist/components/reveal.css +1 -1
- package/dist/components/reveal.min.css +1 -1
- package/dist/components/search.css +1 -1
- package/dist/components/search.js +1 -1
- package/dist/components/search.min.css +1 -1
- package/dist/components/search.min.js +1 -1
- package/dist/components/segment.css +1 -1
- package/dist/components/segment.min.css +1 -1
- package/dist/components/shape.css +1 -1
- package/dist/components/shape.js +1 -1
- package/dist/components/shape.min.css +1 -1
- package/dist/components/shape.min.js +1 -1
- package/dist/components/sidebar.css +1 -1
- package/dist/components/sidebar.js +1 -1
- package/dist/components/sidebar.min.css +1 -1
- package/dist/components/sidebar.min.js +1 -1
- package/dist/components/site.css +1 -1
- package/dist/components/site.js +1 -1
- package/dist/components/site.min.css +1 -1
- package/dist/components/site.min.js +1 -1
- package/dist/components/slider.js +1 -1
- package/dist/components/slider.min.js +1 -1
- package/dist/components/state.js +1 -1
- package/dist/components/state.min.js +1 -1
- package/dist/components/statistic.css +1 -1
- package/dist/components/statistic.min.css +1 -1
- package/dist/components/step.css +1 -1
- package/dist/components/step.min.css +1 -1
- package/dist/components/sticky.css +1 -1
- package/dist/components/sticky.js +1 -1
- package/dist/components/sticky.min.css +1 -1
- package/dist/components/sticky.min.js +1 -1
- package/dist/components/tab.css +1 -1
- package/dist/components/tab.js +1 -1
- package/dist/components/tab.min.css +1 -1
- package/dist/components/tab.min.js +1 -1
- package/dist/components/table.css +1 -1
- package/dist/components/table.min.css +1 -1
- package/dist/components/text.css +1 -1
- package/dist/components/text.min.css +1 -1
- package/dist/components/toast.css +1 -1
- package/dist/components/toast.js +1 -1
- package/dist/components/toast.min.css +1 -1
- package/dist/components/toast.min.js +1 -1
- package/dist/components/transition.css +1 -1
- package/dist/components/transition.js +1 -1
- package/dist/components/transition.min.css +1 -1
- package/dist/components/transition.min.js +1 -1
- package/dist/components/visibility.js +1 -1
- package/dist/components/visibility.min.js +1 -1
- package/dist/semantic.css +71 -55
- package/dist/semantic.js +30 -30
- package/dist/semantic.min.css +2 -2
- package/dist/semantic.min.js +2 -2
- package/package.json +1 -1
- package/src/definitions/behaviors/form.js +5 -5
- package/src/definitions/modules/dropdown.less +46 -27
- package/src/themes/default/modules/dropdown.variables +3 -9
package/package.json
CHANGED
@@ -586,7 +586,7 @@ $.fn.form = function(parameters) {
|
|
586
586
|
if(isLegacySettings) {
|
587
587
|
// 1.x (ducktyped)
|
588
588
|
settings = $.extend(true, {}, $.fn.form.settings, legacyParameters);
|
589
|
-
validation = $.extend({}, $.fn.form.settings.defaults, parameters);
|
589
|
+
validation = $.extend(true, {}, $.fn.form.settings.defaults, parameters);
|
590
590
|
module.error(settings.error.oldSyntax, element);
|
591
591
|
module.verbose('Extending settings from legacy parameters', validation, settings);
|
592
592
|
}
|
@@ -596,13 +596,13 @@ $.fn.form = function(parameters) {
|
|
596
596
|
parameters.fields = module.get.fieldsFromShorthand(parameters.fields);
|
597
597
|
}
|
598
598
|
settings = $.extend(true, {}, $.fn.form.settings, parameters);
|
599
|
-
validation = $.extend({}, $.fn.form.settings.defaults, settings.fields);
|
599
|
+
validation = $.extend(true, {}, $.fn.form.settings.defaults, settings.fields);
|
600
600
|
module.verbose('Extending settings', validation, settings);
|
601
601
|
}
|
602
602
|
}
|
603
603
|
else {
|
604
|
-
settings = $.fn.form.settings;
|
605
|
-
validation = $.fn.form.settings.defaults;
|
604
|
+
settings = $.extend(true, {}, $.fn.form.settings);
|
605
|
+
validation = $.extend(true, {}, $.fn.form.settings.defaults);
|
606
606
|
module.verbose('Using default form validation', validation, settings);
|
607
607
|
}
|
608
608
|
|
@@ -866,7 +866,7 @@ $.fn.form = function(parameters) {
|
|
866
866
|
module.debug('Adding rules', newValidation.rules, validation);
|
867
867
|
},
|
868
868
|
fields: function(fields) {
|
869
|
-
validation = $.extend({}, validation, module.get.fieldsFromShorthand(fields));
|
869
|
+
validation = $.extend(true, {}, validation, module.get.fieldsFromShorthand(fields));
|
870
870
|
},
|
871
871
|
prompt: function(identifier, errors, internal) {
|
872
872
|
var
|
@@ -579,10 +579,12 @@ select.ui.dropdown {
|
|
579
579
|
}
|
580
580
|
|
581
581
|
/* Active */
|
582
|
+
.ui.selection.simple.dropdown:hover,
|
582
583
|
.ui.selection.active.dropdown {
|
583
584
|
border-color: @selectionVisibleBorderColor;
|
584
585
|
box-shadow: @selectionVisibleBoxShadow;
|
585
586
|
}
|
587
|
+
.ui.selection.simple.dropdown:hover .menu,
|
586
588
|
.ui.selection.active.dropdown .menu {
|
587
589
|
border-color: @selectionVisibleBorderColor;
|
588
590
|
box-shadow: @selectionVisibleMenuBoxShadow;
|
@@ -791,11 +793,15 @@ select.ui.dropdown {
|
|
791
793
|
opacity: @clearableIconOpacity;
|
792
794
|
z-index: @selectionIconZIndex;
|
793
795
|
}
|
794
|
-
|
795
|
-
|
796
|
+
& when (@variationDropdownSelection) {
|
797
|
+
.ui.selection.dropdown > .remove.icon {
|
798
|
+
right: @clearableIconSelectionPosition;
|
799
|
+
}
|
796
800
|
}
|
797
|
-
|
798
|
-
|
801
|
+
& when (@variationDropdownInline) {
|
802
|
+
.ui.inline.dropdown > .remove.icon {
|
803
|
+
right: @clearableIconInlinePosition;
|
804
|
+
}
|
799
805
|
}
|
800
806
|
|
801
807
|
.ui.clearable.dropdown .text,
|
@@ -1204,24 +1210,24 @@ select.ui.dropdown {
|
|
1204
1210
|
margin: @leftSubMenuMargin !important;
|
1205
1211
|
border-radius: @leftSubMenuBorderRadius !important;
|
1206
1212
|
}
|
1207
|
-
}
|
1208
1213
|
|
1209
|
-
.ui.dropdown .item .left.dropdown.icon,
|
1210
|
-
.ui.dropdown .left.menu .item .dropdown.icon {
|
1211
|
-
|
1212
|
-
|
1213
|
-
|
1214
|
-
}
|
1215
|
-
.ui.dropdown .item .left.dropdown.icon,
|
1216
|
-
.ui.dropdown .left.menu .item .dropdown.icon {
|
1217
|
-
|
1218
|
-
|
1219
|
-
|
1220
|
-
}
|
1221
|
-
.ui.dropdown .item .left.dropdown.icon + .text,
|
1222
|
-
.ui.dropdown .left.menu .item .dropdown.icon + .text {
|
1223
|
-
|
1224
|
-
|
1214
|
+
.ui.dropdown .item .left.dropdown.icon,
|
1215
|
+
.ui.dropdown .left.menu .item .dropdown.icon {
|
1216
|
+
width: auto;
|
1217
|
+
float: @leftMenuDropdownIconFloat;
|
1218
|
+
margin: @leftMenuDropdownIconMargin;
|
1219
|
+
}
|
1220
|
+
.ui.dropdown .item .left.dropdown.icon,
|
1221
|
+
.ui.dropdown .left.menu .item .dropdown.icon {
|
1222
|
+
width: auto;
|
1223
|
+
float: @leftMenuDropdownIconFloat;
|
1224
|
+
margin: @leftMenuDropdownIconMargin;
|
1225
|
+
}
|
1226
|
+
.ui.dropdown .item .left.dropdown.icon + .text,
|
1227
|
+
.ui.dropdown .left.menu .item .dropdown.icon + .text {
|
1228
|
+
margin-left: @itemDropdownIconDistance;
|
1229
|
+
margin-right: 0;
|
1230
|
+
}
|
1225
1231
|
}
|
1226
1232
|
|
1227
1233
|
& when (@variationDropdownUpward) {
|
@@ -1246,7 +1252,7 @@ select.ui.dropdown {
|
|
1246
1252
|
/* Active Upward */
|
1247
1253
|
.ui.simple.upward.active.dropdown,
|
1248
1254
|
.ui.simple.upward.dropdown:hover {
|
1249
|
-
border-radius: @borderRadius @borderRadius
|
1255
|
+
border-radius: 0 0 @borderRadius @borderRadius;
|
1250
1256
|
}
|
1251
1257
|
}
|
1252
1258
|
|
@@ -1262,7 +1268,7 @@ select.ui.dropdown {
|
|
1262
1268
|
|
1263
1269
|
& when (@variationDropdownSelection) {
|
1264
1270
|
/* Selection */
|
1265
|
-
.ui.upward.selection.dropdown .menu {
|
1271
|
+
.ui.ui.upward.selection.dropdown .menu {
|
1266
1272
|
border-top-width: @menuBorderWidth !important;
|
1267
1273
|
border-bottom-width: 0 !important;
|
1268
1274
|
box-shadow: @upwardSelectionMenuBoxShadow;
|
@@ -1440,16 +1446,27 @@ select.ui.dropdown {
|
|
1440
1446
|
transition: @simpleTransition;
|
1441
1447
|
margin-top: 0 !important;
|
1442
1448
|
}
|
1449
|
+
& when (@variationDropdownUpward) {
|
1450
|
+
.ui.simple.dropdown .upward.menu {
|
1451
|
+
margin-bottom: @simpleUpwardMenuMargin;
|
1452
|
+
}
|
1453
|
+
.ui.simple.selection.dropdown .upward.menu {
|
1454
|
+
margin-bottom: @simpleUpwardSelectionMenuMargin;
|
1455
|
+
}
|
1456
|
+
.ui.menu:not(.vertical) .ui.simple.dropdown.item .upward.menu {
|
1457
|
+
margin-bottom: @simpleUpwardItemMenuMargin;
|
1458
|
+
}
|
1459
|
+
}
|
1443
1460
|
|
1444
1461
|
.ui.simple.active.dropdown,
|
1445
1462
|
.ui.simple.dropdown:hover {
|
1446
|
-
border-bottom-left-radius: 0
|
1447
|
-
border-bottom-right-radius: 0
|
1463
|
+
border-bottom-left-radius: 0;
|
1464
|
+
border-bottom-right-radius: 0;
|
1448
1465
|
}
|
1449
1466
|
|
1450
1467
|
.ui.simple.active.dropdown > .menu,
|
1451
1468
|
.ui.simple.dropdown:hover > .menu {
|
1452
|
-
overflow:
|
1469
|
+
overflow: auto;
|
1453
1470
|
width: auto;
|
1454
1471
|
height: auto;
|
1455
1472
|
top: 100%;
|
@@ -1457,7 +1474,7 @@ select.ui.dropdown {
|
|
1457
1474
|
}
|
1458
1475
|
.ui.simple.dropdown > .menu > .item:active > .menu,
|
1459
1476
|
.ui.simple.dropdown .menu .item:hover > .menu {
|
1460
|
-
overflow:
|
1477
|
+
overflow: auto;
|
1461
1478
|
width: auto;
|
1462
1479
|
height: auto;
|
1463
1480
|
top: 0 !important;
|
@@ -1828,6 +1845,8 @@ select.ui.dropdown {
|
|
1828
1845
|
color: @invertedSelectionVisibleTextColor;
|
1829
1846
|
}
|
1830
1847
|
|
1848
|
+
.ui.selection.simple.dropdown:hover .inverted.menu,
|
1849
|
+
.ui.inverted.selection.simple.dropdown:hover .menu,
|
1831
1850
|
.ui.selection.active.dropdown .inverted.menu,
|
1832
1851
|
.ui.inverted.selection.active.dropdown .menu,
|
1833
1852
|
.ui.inverted.selection.active.dropdown:hover {
|
@@ -362,6 +362,9 @@
|
|
362
362
|
/* Simple */
|
363
363
|
@simpleTransitionDuration: @defaultDuration;
|
364
364
|
@simpleTransition: opacity @simpleTransitionDuration @defaultEasing;
|
365
|
+
@simpleUpwardMenuMargin: 1.5em;
|
366
|
+
@simpleUpwardSelectionMenuMargin: 2.5em;
|
367
|
+
@simpleUpwardItemMenuMargin: 2.8em;
|
365
368
|
|
366
369
|
/* Floating */
|
367
370
|
@floatingMenuDistance: 0.5em;
|
@@ -452,15 +455,6 @@
|
|
452
455
|
@invertedInputHighlightColor: @invertedMutedTextColor;
|
453
456
|
|
454
457
|
/* Multiple */
|
455
|
-
/*@invertedLabelBackgroundColor: rgba(255, 255, 255, 0.06);
|
456
|
-
@invertedLabelBackgroundImage: none;
|
457
|
-
@invertedLabelColor: rgba(255, 255, 255, 0.6);
|
458
|
-
@invertedLabelBoxShadow: 0 0 0 @labelBorderWidth rgba(255, 255, 255, 0.16) inset;
|
459
|
-
|
460
|
-
@invertedLabelHoverBackgroundColor: rgba(255, 255, 255, 0.12);
|
461
|
-
@invertedLabelHoverBackgroundImage: none;
|
462
|
-
@invertedLabelHoverTextColor: rgba(255, 255, 255, 0.7);*/
|
463
|
-
|
464
458
|
@invertedLabelBackgroundColor: rgba(255, 255, 255, 0.7);
|
465
459
|
@invertedLabelBackgroundImage: none;
|
466
460
|
@invertedLabelColor: rgba(0, 0, 0, 1);
|