fomantic-ui 2.9.0-beta.125 → 2.9.0-beta.126
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 +1 -1
- package/dist/components/dropdown.js +1 -1
- package/dist/components/dropdown.min.css +1 -1
- 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 +4 -2
- package/dist/components/form.js +1 -1
- package/dist/components/form.min.css +2 -2
- package/dist/components/form.min.js +1 -1
- 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 +642 -1
- package/dist/components/input.min.css +2 -2
- 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 +830 -50
- package/dist/semantic.js +25 -25
- package/dist/semantic.min.css +2 -2
- package/dist/semantic.min.js +1 -1
- package/package.json +1 -1
- package/src/definitions/collections/form.less +3 -1
- package/src/definitions/elements/input.less +153 -0
- package/src/themes/default/elements/input.variables +12 -0
- package/src/themes/default/globals/variation.variables +2 -0
package/dist/semantic.min.js
CHANGED
package/package.json
CHANGED
@@ -66,10 +66,12 @@
|
|
66
66
|
.ui.form .field > label {
|
67
67
|
display: block;
|
68
68
|
margin: @labelMargin;
|
69
|
-
color: @labelColor;
|
70
69
|
font-size: @labelFontSize;
|
71
70
|
font-weight: @labelFontWeight;
|
72
71
|
text-transform: @labelTextTransform;
|
72
|
+
&:not(.button) {
|
73
|
+
color: @labelColor;
|
74
|
+
}
|
73
75
|
}
|
74
76
|
|
75
77
|
/*--------------------
|
@@ -563,6 +563,159 @@
|
|
563
563
|
}
|
564
564
|
}
|
565
565
|
|
566
|
+
|
567
|
+
& when (@variationInputFile) {
|
568
|
+
/*--------------------
|
569
|
+
File
|
570
|
+
---------------------*/
|
571
|
+
|
572
|
+
/* width hack for chrome/edge */
|
573
|
+
.ui.file.input {
|
574
|
+
width: 100%;
|
575
|
+
& input[type="file"] {
|
576
|
+
width: 0;
|
577
|
+
}
|
578
|
+
}
|
579
|
+
|
580
|
+
.ui.form .field > input[type="file"],
|
581
|
+
.ui.file.input:not(.action) input[type="file"] {
|
582
|
+
padding: 0;
|
583
|
+
}
|
584
|
+
|
585
|
+
.ui.action.file.input input[type="file"]::-webkit-file-upload-button {
|
586
|
+
display: none;
|
587
|
+
}
|
588
|
+
.ui.form .field input[type="file"]::-webkit-file-upload-button,
|
589
|
+
.ui.file.input input[type="file"]::-webkit-file-upload-button {
|
590
|
+
border: none;
|
591
|
+
cursor: pointer;
|
592
|
+
padding: @padding;
|
593
|
+
margin-right: @fileButtonMargin;
|
594
|
+
background: @fileButtonBackground;
|
595
|
+
font-weight: @fileButtonFontWeight;
|
596
|
+
color: @fileButtonTextColor;
|
597
|
+
&:hover {
|
598
|
+
background: @fileButtonBackgroundHover;
|
599
|
+
color: @fileButtonTextColor;
|
600
|
+
}
|
601
|
+
}
|
602
|
+
.ui.action.file.input input[type="file"]::-ms-browse {
|
603
|
+
display: none;
|
604
|
+
}
|
605
|
+
.ui.form .field input[type="file"]::-ms-browse,
|
606
|
+
.ui.file.input input[type="file"]::-ms-browse {
|
607
|
+
border: none;
|
608
|
+
cursor: pointer;
|
609
|
+
padding: @padding;
|
610
|
+
margin: 0;
|
611
|
+
background: @fileButtonBackground;
|
612
|
+
font-weight: @fileButtonFontWeight;
|
613
|
+
color: @fileButtonTextColor;
|
614
|
+
&:hover {
|
615
|
+
background: @fileButtonBackgroundHover;
|
616
|
+
color: @fileButtonTextColor;
|
617
|
+
}
|
618
|
+
}
|
619
|
+
/* IE needs additional styling for input field :S */
|
620
|
+
@media all and (-ms-high-contrast:none) {
|
621
|
+
.ui.file.input > input[type="file"],
|
622
|
+
input[type="file"].ui.file.input {
|
623
|
+
padding: 0 !important;
|
624
|
+
}
|
625
|
+
}
|
626
|
+
|
627
|
+
.ui.action.file.input input[type="file"]::file-selector-button {
|
628
|
+
display: none;
|
629
|
+
}
|
630
|
+
.ui.form .field input[type="file"]::file-selector-button,
|
631
|
+
.ui.file.input input[type="file"]::file-selector-button {
|
632
|
+
border: none;
|
633
|
+
cursor: pointer;
|
634
|
+
padding: @padding;
|
635
|
+
margin-right: @fileButtonMargin;
|
636
|
+
background: @fileButtonBackground;
|
637
|
+
font-weight: @fileButtonFontWeight;
|
638
|
+
color: @fileButtonTextColor;
|
639
|
+
&:hover {
|
640
|
+
background: @fileButtonBackgroundHover;
|
641
|
+
color: @fileButtonTextColor;
|
642
|
+
}
|
643
|
+
}
|
644
|
+
|
645
|
+
.ui.form .field input[type="file"]:required:invalid,
|
646
|
+
.ui.file.input input[type="file"]:required:invalid {
|
647
|
+
color: @negativeTextColor;
|
648
|
+
background: @negativeBackgroundColor ;
|
649
|
+
border-color: @negativeBorderColor;
|
650
|
+
}
|
651
|
+
|
652
|
+
input[type="file"].ui.invisible.file.input,
|
653
|
+
.ui.invisible.file.input input[type="file"] {
|
654
|
+
left: -99999px;
|
655
|
+
position: absolute;
|
656
|
+
}
|
657
|
+
|
658
|
+
input[type="file"].ui.file.input:focus + label.ui.button:not(.basic):not(.tertiary),
|
659
|
+
.ui.file.input input[type="file"]:focus + label.ui.button:not(.basic):not(.tertiary) {
|
660
|
+
background: @fileButtonBackgroundHover;
|
661
|
+
color: @hoveredTextColor;
|
662
|
+
&.inverted {
|
663
|
+
background: @fileButtonInvertedBackgroundHover;
|
664
|
+
}
|
665
|
+
}
|
666
|
+
|
667
|
+
/* this is related to existing buttons, so the button color variable is used here! */
|
668
|
+
& when not (@variationButtonColors = false) {
|
669
|
+
each(@variationButtonColors, {
|
670
|
+
@color: @value;
|
671
|
+
@h: @colors[@@color][hover];
|
672
|
+
@lh: @colors[@@color][lightHover];
|
673
|
+
|
674
|
+
input[type="file"].ui.file.input:focus + label.ui.@{color}.button:not(.basic):not(.tertiary),
|
675
|
+
.ui.file.input input[type="file"]:focus + label.ui.@{color}.button:not(.basic):not(.tertiary) {
|
676
|
+
background-color: @h;
|
677
|
+
color: @white;
|
678
|
+
&.inverted when (@variationButtonInverted) {
|
679
|
+
background-color: @lh;
|
680
|
+
}
|
681
|
+
}
|
682
|
+
})
|
683
|
+
}
|
684
|
+
|
685
|
+
& when not (@variationInputColors = false) {
|
686
|
+
each(@variationInputColors, {
|
687
|
+
@color: @value;
|
688
|
+
@c: @colors[@@color][color];
|
689
|
+
@h: @colors[@@color][hover];
|
690
|
+
|
691
|
+
input[type="file"].ui.@{color}.file.input::-webkit-file-upload-button,
|
692
|
+
.ui.@{color}.file.input input[type="file"]::-webkit-file-upload-button {
|
693
|
+
background: @c;
|
694
|
+
color: @white;
|
695
|
+
&:hover {
|
696
|
+
background: @h;
|
697
|
+
}
|
698
|
+
}
|
699
|
+
input[type="file"].ui.@{color}.file.input::-ms-browse,
|
700
|
+
.ui.@{color}.file.input input[type="file"]::-ms-browse {
|
701
|
+
background: @c;
|
702
|
+
color: @white;
|
703
|
+
&:hover {
|
704
|
+
background: @h;
|
705
|
+
}
|
706
|
+
}
|
707
|
+
input[type="file"].ui.@{color}.file.input::file-selector-button,
|
708
|
+
.ui.@{color}.file.input input[type="file"]::file-selector-button {
|
709
|
+
background: @c;
|
710
|
+
color: @white;
|
711
|
+
&:hover {
|
712
|
+
background: @h;
|
713
|
+
}
|
714
|
+
}
|
715
|
+
})
|
716
|
+
}
|
717
|
+
}
|
718
|
+
|
566
719
|
/*--------------------
|
567
720
|
Size
|
568
721
|
---------------------*/
|
@@ -85,6 +85,18 @@
|
|
85
85
|
/* Loader */
|
86
86
|
@invertedLoaderFillColor: rgba(0, 0, 0, 0.15);
|
87
87
|
|
88
|
+
/* file */
|
89
|
+
@fileButtonMargin: 1em;
|
90
|
+
@fileButtonTextColor: @mutedTextColor;
|
91
|
+
@fileButtonTextColorHover: @hoveredTextColor;
|
92
|
+
@fileButtonBackground: #e0e1e2;
|
93
|
+
@fileButtonBackgroundHover: #cacbcd;
|
94
|
+
@fileButtonFontWeight: @bold;
|
95
|
+
|
96
|
+
@fileButtonInvertedBackground: #e0e1e2;
|
97
|
+
@fileButtonInvertedBackgroundHover: @white;
|
98
|
+
@fileButtonInvertedTextColor: @mutedTextColor;
|
99
|
+
|
88
100
|
/*-------------------
|
89
101
|
Variations
|
90
102
|
--------------------*/
|