fomantic-ui 2.9.0-beta.213 → 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 +96 -54
- package/dist/components/button.min.css +2 -2
- package/dist/components/calendar.css +18 -1
- package/dist/components/calendar.js +5 -3
- package/dist/components/calendar.min.css +2 -2
- package/dist/components/calendar.min.js +2 -2
- 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 +214 -123
- package/dist/semantic.js +34 -32
- 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/elements/button.less +227 -103
- package/src/definitions/modules/calendar.js +4 -2
- package/src/definitions/modules/calendar.less +20 -0
- package/src/definitions/modules/dropdown.less +46 -27
- package/src/themes/default/elements/button.variables +5 -0
- package/src/themes/default/globals/variation.variables +5 -0
- package/src/themes/default/modules/calendar.variables +3 -0
- 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
|
@@ -262,61 +262,64 @@
|
|
262
262
|
right: 0;
|
263
263
|
}
|
264
264
|
|
265
|
-
|
266
|
-
|
267
|
-
|
268
|
-
|
269
|
-
|
270
|
-
|
271
|
-
|
272
|
-
|
273
|
-
|
274
|
-
|
275
|
-
|
276
|
-
|
277
|
-
|
278
|
-
|
279
|
-
|
280
|
-
|
281
|
-
|
282
|
-
|
283
|
-
|
284
|
-
|
285
|
-
|
286
|
-
|
287
|
-
|
288
|
-
|
289
|
-
|
290
|
-
/* Fade */
|
291
|
-
.ui.fade.animated.button .visible.content,
|
292
|
-
.ui.fade.animated.button .hidden.content {
|
293
|
-
transition: opacity @animationDuration @animationEasing, transform @animationDuration @animationEasing;
|
294
|
-
}
|
295
|
-
.ui.fade.animated.button .visible.content {
|
296
|
-
left: auto;
|
297
|
-
right: auto;
|
298
|
-
opacity: 1;
|
299
|
-
transform: scale(1);
|
300
|
-
}
|
301
|
-
.ui.fade.animated.button .hidden.content {
|
302
|
-
opacity: 0;
|
303
|
-
left: 0;
|
304
|
-
right: auto;
|
305
|
-
transform: scale(@fadeScaleHigh);
|
306
|
-
}
|
307
|
-
.ui.fade.animated.button:focus .visible.content,
|
308
|
-
.ui.fade.animated.button:hover .visible.content {
|
309
|
-
left: auto;
|
310
|
-
right: auto;
|
311
|
-
opacity: 0;
|
312
|
-
transform: scale(@fadeScaleLow);
|
265
|
+
& when (@variationButtonVertical) {
|
266
|
+
/* Vertical */
|
267
|
+
.ui.vertical.animated.button .visible.content,
|
268
|
+
.ui.vertical.animated.button .hidden.content {
|
269
|
+
transition: top @animationDuration @animationEasing, transform @animationDuration @animationEasing;
|
270
|
+
}
|
271
|
+
.ui.vertical.animated.button .visible.content {
|
272
|
+
transform: translateY(0%);
|
273
|
+
right: auto;
|
274
|
+
}
|
275
|
+
.ui.vertical.animated.button .hidden.content {
|
276
|
+
top: -50%;
|
277
|
+
left: 0;
|
278
|
+
right: auto;
|
279
|
+
}
|
280
|
+
.ui.vertical.animated.button:focus .visible.content,
|
281
|
+
.ui.vertical.animated.button:hover .visible.content {
|
282
|
+
transform: translateY(200%);
|
283
|
+
right: auto;
|
284
|
+
}
|
285
|
+
.ui.vertical.animated.button:focus .hidden.content,
|
286
|
+
.ui.vertical.animated.button:hover .hidden.content {
|
287
|
+
top: 50%;
|
288
|
+
right: auto;
|
289
|
+
}
|
313
290
|
}
|
314
|
-
|
315
|
-
|
316
|
-
|
317
|
-
|
318
|
-
|
319
|
-
|
291
|
+
& when (@variationButtonAnimatedFade) {
|
292
|
+
/* Fade */
|
293
|
+
.ui.fade.animated.button .visible.content,
|
294
|
+
.ui.fade.animated.button .hidden.content {
|
295
|
+
transition: opacity @animationDuration @animationEasing, transform @animationDuration @animationEasing;
|
296
|
+
}
|
297
|
+
.ui.fade.animated.button .visible.content {
|
298
|
+
left: auto;
|
299
|
+
right: auto;
|
300
|
+
opacity: 1;
|
301
|
+
transform: scale(1);
|
302
|
+
}
|
303
|
+
.ui.fade.animated.button .hidden.content {
|
304
|
+
opacity: 0;
|
305
|
+
left: 0;
|
306
|
+
right: auto;
|
307
|
+
transform: scale(@fadeScaleHigh);
|
308
|
+
}
|
309
|
+
.ui.fade.animated.button:focus .visible.content,
|
310
|
+
.ui.fade.animated.button:hover .visible.content {
|
311
|
+
left: auto;
|
312
|
+
right: auto;
|
313
|
+
opacity: 0;
|
314
|
+
transform: scale(@fadeScaleLow);
|
315
|
+
}
|
316
|
+
.ui.fade.animated.button:focus .hidden.content,
|
317
|
+
.ui.fade.animated.button:hover .hidden.content {
|
318
|
+
left: 0;
|
319
|
+
right: auto;
|
320
|
+
opacity: 1;
|
321
|
+
transform: scale(1);
|
322
|
+
}
|
320
323
|
}
|
321
324
|
}
|
322
325
|
|
@@ -332,20 +335,23 @@
|
|
332
335
|
text-shadow: none !important;
|
333
336
|
}
|
334
337
|
|
335
|
-
|
336
|
-
|
337
|
-
|
338
|
-
|
339
|
-
|
340
|
-
|
341
|
-
|
342
|
-
|
343
|
-
|
344
|
-
|
345
|
-
|
346
|
-
|
338
|
+
& when (@variationButtonGroups) {
|
339
|
+
/* Group */
|
340
|
+
.ui.inverted.buttons .button {
|
341
|
+
margin: @invertedGroupButtonOffset;
|
342
|
+
}
|
343
|
+
.ui.inverted.buttons .button:first-child {
|
344
|
+
margin-left: 0;
|
345
|
+
}
|
346
|
+
& when (@variationButtonVertical) {
|
347
|
+
.ui.inverted.vertical.buttons .button {
|
348
|
+
margin: @invertedVerticalGroupButtonOffset;
|
349
|
+
}
|
350
|
+
.ui.inverted.vertical.buttons .button:first-child {
|
351
|
+
margin-top: 0;
|
352
|
+
}
|
353
|
+
}
|
347
354
|
}
|
348
|
-
|
349
355
|
/* States */
|
350
356
|
|
351
357
|
/* Hover */
|
@@ -748,8 +754,10 @@
|
|
748
754
|
vertical-align: top;
|
749
755
|
}
|
750
756
|
}
|
751
|
-
|
752
|
-
|
757
|
+
& when (@variationButtonAnimated) {
|
758
|
+
.ui.animated.button > .content > .icon {
|
759
|
+
vertical-align: top;
|
760
|
+
}
|
753
761
|
}
|
754
762
|
|
755
763
|
& when (@variationButtonBasic) {
|
@@ -767,15 +775,17 @@
|
|
767
775
|
text-shadow: none !important;
|
768
776
|
box-shadow: @basicBoxShadow;
|
769
777
|
}
|
778
|
+
& when (@variationButtonGroups) {
|
779
|
+
.ui.basic.buttons {
|
780
|
+
box-shadow: @basicGroupBoxShadow;
|
781
|
+
border: @basicGroupBorder;
|
782
|
+
border-radius: @borderRadius;
|
783
|
+
border-right: none;
|
784
|
+
}
|
770
785
|
|
771
|
-
|
772
|
-
|
773
|
-
|
774
|
-
border-radius: @borderRadius;
|
775
|
-
}
|
776
|
-
|
777
|
-
.ui.basic.buttons .button {
|
778
|
-
border-radius: 0;
|
786
|
+
.ui.basic.buttons .button {
|
787
|
+
border-radius: 0;
|
788
|
+
}
|
779
789
|
}
|
780
790
|
|
781
791
|
.ui.basic.buttons .button:hover,
|
@@ -810,18 +820,19 @@
|
|
810
820
|
.ui.basic.active.button:hover {
|
811
821
|
background-color: @transparentBlack;
|
812
822
|
}
|
823
|
+
& when (@variationButtonGroups) {
|
813
824
|
|
814
|
-
|
815
|
-
|
816
|
-
|
817
|
-
}
|
825
|
+
.ui.basic.buttons .button:hover {
|
826
|
+
box-shadow: @basicHoverBoxShadow inset;
|
827
|
+
}
|
818
828
|
|
819
|
-
|
820
|
-
|
821
|
-
|
829
|
+
.ui.basic.buttons .button:active {
|
830
|
+
box-shadow: @basicDownBoxShadow inset;
|
831
|
+
}
|
822
832
|
|
823
|
-
|
824
|
-
|
833
|
+
.ui.basic.buttons .active.button {
|
834
|
+
box-shadow: @basicActiveBoxShadow;
|
835
|
+
}
|
825
836
|
}
|
826
837
|
& when (@variationButtonInverted) {
|
827
838
|
/* Standard Basic Inverted */
|
@@ -867,21 +878,23 @@
|
|
867
878
|
}
|
868
879
|
}
|
869
880
|
|
870
|
-
& when (@
|
881
|
+
& when (@variationButtonGroups) {
|
871
882
|
/* Basic Group */
|
872
|
-
.ui.basic.buttons .button {
|
873
|
-
border-
|
883
|
+
.ui.basic.buttons:not(.inverted) .button:not(.basic) {
|
884
|
+
border-right: @basicGroupBorder;
|
874
885
|
box-shadow: none;
|
875
886
|
}
|
876
887
|
|
877
|
-
|
878
|
-
|
879
|
-
|
880
|
-
|
881
|
-
|
888
|
+
& when (@variationButtonVertical) {
|
889
|
+
.ui.basic.vertical.buttons .button {
|
890
|
+
border-left: none;
|
891
|
+
border-left-width: 0;
|
892
|
+
border-top: @basicGroupBorder;
|
893
|
+
}
|
882
894
|
|
883
|
-
|
884
|
-
|
895
|
+
.ui.basic.vertical.buttons:not(.spaced) .button:first-child {
|
896
|
+
border-top: none;
|
897
|
+
}
|
885
898
|
}
|
886
899
|
}
|
887
900
|
}
|
@@ -1220,7 +1233,7 @@
|
|
1220
1233
|
|
1221
1234
|
/* Top / Bottom */
|
1222
1235
|
.ui[class*="top attached"].buttons {
|
1223
|
-
margin-bottom: @
|
1236
|
+
margin-bottom: @topAttachedOffset;
|
1224
1237
|
border-radius: @borderRadius @borderRadius 0 0;
|
1225
1238
|
}
|
1226
1239
|
|
@@ -1233,7 +1246,7 @@
|
|
1233
1246
|
}
|
1234
1247
|
|
1235
1248
|
.ui[class*="bottom attached"].buttons {
|
1236
|
-
margin-top: @
|
1249
|
+
margin-top: @bottomAttachedOffset;
|
1237
1250
|
border-radius: 0 0 @borderRadius @borderRadius;
|
1238
1251
|
}
|
1239
1252
|
|
@@ -1539,10 +1552,6 @@
|
|
1539
1552
|
box-shadow: 0 0 0 @basicColoredBorderSize @d inset;
|
1540
1553
|
color: @d;
|
1541
1554
|
}
|
1542
|
-
|
1543
|
-
.ui.buttons:not(.vertical) > .basic.@{color}.button:not(:first-child) {
|
1544
|
-
margin-left: -@basicColoredBorderSize;
|
1545
|
-
}
|
1546
1555
|
}
|
1547
1556
|
& when (@variationButtonInverted) {
|
1548
1557
|
/* Inverted */
|
@@ -1898,8 +1907,10 @@
|
|
1898
1907
|
float: none;
|
1899
1908
|
width: 100%;
|
1900
1909
|
margin: @verticalGroupOffset;
|
1901
|
-
box-shadow: @verticalBoxShadow;
|
1902
1910
|
border-radius: 0;
|
1911
|
+
&:not(.basic) {
|
1912
|
+
box-shadow: @verticalBoxShadow;
|
1913
|
+
}
|
1903
1914
|
}
|
1904
1915
|
|
1905
1916
|
.ui.vertical.buttons .button:first-child {
|
@@ -1916,6 +1927,119 @@
|
|
1916
1927
|
.ui.vertical.buttons .button:only-child {
|
1917
1928
|
border-radius: @borderRadius;
|
1918
1929
|
}
|
1930
|
+
& when (@variationButtonBasic) {
|
1931
|
+
.ui.vertical.buttons .basic.button:not(:first-child) {
|
1932
|
+
border-top: none;
|
1933
|
+
}
|
1934
|
+
}
|
1935
|
+
}
|
1936
|
+
|
1937
|
+
& when (@variationButtonWrapping) {
|
1938
|
+
.ui.wrapping.buttons {
|
1939
|
+
flex-wrap: wrap;
|
1940
|
+
}
|
1941
|
+
& when (@variationButtonBasic) {
|
1942
|
+
.ui.wrapping.basic.buttons {
|
1943
|
+
border-bottom: none;
|
1944
|
+
& .button {
|
1945
|
+
border-bottom: @basicGroupBorder;
|
1946
|
+
&:hover {
|
1947
|
+
background: transparent !important;
|
1948
|
+
}
|
1949
|
+
}
|
1950
|
+
}
|
1951
|
+
}
|
1952
|
+
& when (@variationButtonCompact) {
|
1953
|
+
.ui.compact.wrapping.buttons .button {
|
1954
|
+
flex: none;
|
1955
|
+
}
|
1956
|
+
}
|
1957
|
+
}
|
1958
|
+
& when (@variationButtonWrapped) {
|
1959
|
+
.ui.wrapped.buttons:not(.spaced) {
|
1960
|
+
border-top-right-radius: 0;
|
1961
|
+
& .button {
|
1962
|
+
&:first-child {
|
1963
|
+
border-radius: @basicBorderRadius 0 0 0;
|
1964
|
+
}
|
1965
|
+
&:last-child {
|
1966
|
+
border-radius: 0 0 @basicBorderRadius 0;
|
1967
|
+
}
|
1968
|
+
}
|
1969
|
+
}
|
1970
|
+
& when (@variationButtonAttached) {
|
1971
|
+
.ui.wrapped[class*="top attached"].buttons {
|
1972
|
+
border-radius: @basicBorderRadius 0 0 0;
|
1973
|
+
& .button:last-child {
|
1974
|
+
border-radius: 0;
|
1975
|
+
}
|
1976
|
+
}
|
1977
|
+
.ui.wrapped[class*="bottom attached"].buttons {
|
1978
|
+
border-radius: 0 0 0 @basicBorderRadius;
|
1979
|
+
& .button:first-child {
|
1980
|
+
border-radius: 0;
|
1981
|
+
}
|
1982
|
+
}
|
1983
|
+
}
|
1984
|
+
}
|
1985
|
+
& when (@variationButtonSpaced) {
|
1986
|
+
.ui.spaced.buttons .ui.button {
|
1987
|
+
margin-bottom: @spacedMargin;
|
1988
|
+
margin-right: @spacedMargin;
|
1989
|
+
border-radius: @basicBorderRadius;
|
1990
|
+
}
|
1991
|
+
& when (@variationButtonBasic) {
|
1992
|
+
.ui.spaced.basic.buttons {
|
1993
|
+
border: none;
|
1994
|
+
& .button {
|
1995
|
+
border: @basicGroupBorder;
|
1996
|
+
&.basic {
|
1997
|
+
border: none;
|
1998
|
+
}
|
1999
|
+
}
|
2000
|
+
}
|
2001
|
+
& when (@variationButtonVertical) {
|
2002
|
+
.ui.spaced.basic.vertical.buttons .button:first-child {
|
2003
|
+
border-top: @basicGroupBorder;
|
2004
|
+
}
|
2005
|
+
}
|
2006
|
+
& when (@variationButtonWrapping) {
|
2007
|
+
.ui.spaced.basic.wrapping.buttons .button:not(.basic) {
|
2008
|
+
border-top: @basicGroupBorder;
|
2009
|
+
border-right: @basicGroupBorder;
|
2010
|
+
&:first-child {
|
2011
|
+
border-left: @basicGroupBorder;
|
2012
|
+
}
|
2013
|
+
}
|
2014
|
+
}
|
2015
|
+
& when (@variationButtonInverted) {
|
2016
|
+
.ui.spaced.basic.inverted.buttons .basic.button {
|
2017
|
+
margin-bottom: e(%("calc(%d + %d)", @spacedMargin, @basicColoredBorderSize));
|
2018
|
+
margin-top: @basicColoredBorderSize;
|
2019
|
+
}
|
2020
|
+
}
|
2021
|
+
}
|
2022
|
+
}
|
2023
|
+
|
2024
|
+
& when (@variationButtonBasic) {
|
2025
|
+
.ui.basic.buttons:not(.vertical).inverted .button,
|
2026
|
+
.ui.basic.buttons:not(.vertical) .basic.button {
|
2027
|
+
margin-left: -@basicColoredBorderSize;
|
2028
|
+
border-right: none;
|
2029
|
+
}
|
2030
|
+
.ui.basic.buttons:not(.vertical):not(.spaced):not(.inverted) .basic.button {
|
2031
|
+
margin-top: -@basicColoredBorderSize;
|
2032
|
+
border-bottom: none;
|
2033
|
+
}
|
2034
|
+
& when (@variationButtonAttached) or (@variationButtonInverted) {
|
2035
|
+
.ui.inverted.basic.buttons:not(.spaced) .button,
|
2036
|
+
.ui.attached.basic.buttons:not(.wrapping):not(.inverted) .basic.button {
|
2037
|
+
margin-bottom: @attachedOffset;
|
2038
|
+
}
|
2039
|
+
}
|
2040
|
+
.ui.basic.buttons:not(.vertical):not(.attached):not(.spaced):not(.wrapping):not(.inverted) .basic.button {
|
2041
|
+
margin-bottom: -@basicColoredBorderSize;
|
2042
|
+
}
|
1919
2043
|
}
|
1920
2044
|
}
|
1921
2045
|
.loadUIOverrides();
|
@@ -746,7 +746,7 @@ $.fn.calendar = function(parameters) {
|
|
746
746
|
return $module.data(metadata.maxDate) || null;
|
747
747
|
},
|
748
748
|
monthOffset: function () {
|
749
|
-
return $module.data(metadata.monthOffset) || 0;
|
749
|
+
return $module.data(metadata.monthOffset) || settings.monthOffset || 0;
|
750
750
|
},
|
751
751
|
mode: function () {
|
752
752
|
//only returns valid modes for the current settings
|
@@ -1452,6 +1452,7 @@ $.fn.calendar.settings = {
|
|
1452
1452
|
startCalendar : null, // jquery object or selector for another calendar that represents the start date of a date range
|
1453
1453
|
endCalendar : null, // jquery object or selector for another calendar that represents the end date of a date range
|
1454
1454
|
multiMonth : 1, // show multiple months when in 'day' mode
|
1455
|
+
monthOffset : 0, // position current month by offset when multimonth > 1
|
1455
1456
|
minTimeGap : 5,
|
1456
1457
|
showWeekNumbers : null, // show Number of Week at the very first column of a dayView
|
1457
1458
|
disabledHours : [], // specific hour(s) which won't be selectable and contain additional information.
|
@@ -1467,6 +1468,7 @@ $.fn.calendar.settings = {
|
|
1467
1468
|
position: 'bottom left',
|
1468
1469
|
lastResort: 'bottom left',
|
1469
1470
|
prefer: 'opposite',
|
1471
|
+
observeChanges: false,
|
1470
1472
|
hideOnScroll: false
|
1471
1473
|
},
|
1472
1474
|
|
@@ -1558,7 +1560,7 @@ $.fn.calendar.settings = {
|
|
1558
1560
|
if (!text) {
|
1559
1561
|
return null;
|
1560
1562
|
}
|
1561
|
-
text = String(text).
|
1563
|
+
text = String(text).replace(/\s/g,'');
|
1562
1564
|
if (text.length === 0) {
|
1563
1565
|
return null;
|
1564
1566
|
}
|
@@ -172,6 +172,26 @@
|
|
172
172
|
}
|
173
173
|
}
|
174
174
|
|
175
|
+
& when (@variationCalendarMultiMonth) {
|
176
|
+
.ui.calendar.popup > .ui.grid {
|
177
|
+
margin: @multiMonthMargin;
|
178
|
+
& > .column:not(:first-child) {
|
179
|
+
padding-left: @multiMonthPadding;
|
180
|
+
& > .ui.table {
|
181
|
+
border-top-left-radius:0;
|
182
|
+
border-bottom-left-radius:0;
|
183
|
+
}
|
184
|
+
}
|
185
|
+
& > .column:not(:last-child) {
|
186
|
+
padding-right:@multiMonthPadding;
|
187
|
+
& > .ui.table {
|
188
|
+
border-top-right-radius:0;
|
189
|
+
border-bottom-right-radius:0;
|
190
|
+
}
|
191
|
+
}
|
192
|
+
}
|
193
|
+
}
|
194
|
+
|
175
195
|
/*******************************
|
176
196
|
States
|
177
197
|
*******************************/
|
@@ -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 {
|
@@ -377,6 +377,8 @@
|
|
377
377
|
|
378
378
|
/* Attached */
|
379
379
|
@attachedOffset: -1px;
|
380
|
+
@topAttachedOffset: 0;
|
381
|
+
@bottomAttachedOffset: @attachedOffset;
|
380
382
|
@attachedBoxShadow: 0 0 0 1px @borderColor;
|
381
383
|
@attachedHorizontalPadding: 0.75em;
|
382
384
|
@attachedZIndex: auto;
|
@@ -403,3 +405,6 @@
|
|
403
405
|
/* Circular */
|
404
406
|
@circularBorderRadius: 10em;
|
405
407
|
@circularIconWidth: 1em;
|
408
|
+
|
409
|
+
/* Spaced */
|
410
|
+
@spacedMargin: 1em;
|