fomantic-ui 2.9.1-beta.8 → 2.9.1
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/.eslint/eqeqeq-rule.js +18 -0
- package/.eslint/index.js +29 -0
- package/.eslint/no-extra-parens-rule.js +17 -0
- package/.eslint/package.json +11 -0
- package/.eslintrc.js +123 -0
- package/.github/auto_assign.yml +0 -1
- package/.github/workflows/ci.yml +37 -4
- package/.github/workflows/nightly.yml +1 -1
- package/.github/workflows/release.yml +1 -1
- package/.prettierrc.js +12 -0
- package/.stylelintrc.js +48 -0
- package/CHANGELOG.md +112 -0
- package/README.md +1 -1
- package/dist/components/accordion.css +35 -53
- package/dist/components/accordion.js +568 -595
- package/dist/components/accordion.min.css +2 -2
- package/dist/components/accordion.min.js +3 -3
- package/dist/components/ad.css +34 -45
- package/dist/components/ad.min.css +2 -2
- package/dist/components/api.js +1157 -1179
- package/dist/components/api.min.js +3 -3
- package/dist/components/breadcrumb.css +5 -5
- package/dist/components/breadcrumb.min.css +2 -2
- package/dist/components/button.css +709 -1111
- package/dist/components/button.min.css +2 -2
- package/dist/components/calendar.css +24 -27
- package/dist/components/calendar.js +1934 -1809
- package/dist/components/calendar.min.css +2 -2
- package/dist/components/calendar.min.js +3 -3
- package/dist/components/card.css +219 -365
- package/dist/components/card.min.css +2 -2
- package/dist/components/checkbox.css +120 -191
- package/dist/components/checkbox.js +842 -841
- package/dist/components/checkbox.min.css +2 -2
- package/dist/components/checkbox.min.js +3 -3
- package/dist/components/comment.css +41 -59
- package/dist/components/comment.min.css +2 -2
- package/dist/components/container.css +7 -6
- package/dist/components/container.min.css +2 -2
- package/dist/components/dimmer.css +53 -172
- package/dist/components/dimmer.js +706 -737
- package/dist/components/dimmer.min.css +2 -2
- package/dist/components/dimmer.min.js +3 -3
- package/dist/components/divider.css +43 -61
- package/dist/components/divider.min.css +2 -2
- package/dist/components/dropdown.css +252 -386
- package/dist/components/dropdown.js +4195 -4236
- package/dist/components/dropdown.min.css +2 -2
- package/dist/components/dropdown.min.js +3 -3
- package/dist/components/embed.css +18 -29
- package/dist/components/embed.js +645 -675
- package/dist/components/embed.min.css +2 -2
- package/dist/components/embed.min.js +3 -3
- package/dist/components/emoji.css +3556 -3556
- package/dist/components/emoji.min.css +1 -1
- package/dist/components/feed.css +35 -57
- package/dist/components/feed.min.css +2 -2
- package/dist/components/flag.css +270 -268
- package/dist/components/flag.min.css +2 -2
- package/dist/components/flyout.css +95 -141
- package/dist/components/flyout.js +1514 -1465
- package/dist/components/flyout.min.css +2 -2
- package/dist/components/flyout.min.js +3 -3
- package/dist/components/form.css +244 -339
- package/dist/components/form.js +2022 -2004
- package/dist/components/form.min.css +2 -2
- package/dist/components/form.min.js +3 -3
- package/dist/components/grid.css +183 -329
- package/dist/components/grid.min.css +2 -2
- package/dist/components/header.css +118 -142
- package/dist/components/header.min.css +2 -2
- package/dist/components/icon.css +662 -745
- package/dist/components/icon.min.css +2 -2
- package/dist/components/image.css +39 -63
- package/dist/components/image.min.css +2 -2
- package/dist/components/input.css +356 -274
- package/dist/components/input.min.css +2 -2
- package/dist/components/item.css +84 -131
- package/dist/components/item.min.css +2 -2
- package/dist/components/label.css +359 -410
- package/dist/components/label.min.css +2 -2
- package/dist/components/list.css +49 -70
- package/dist/components/list.min.css +2 -2
- package/dist/components/loader.css +67 -155
- package/dist/components/loader.min.css +2 -2
- package/dist/components/menu.css +270 -431
- package/dist/components/menu.min.css +1 -1
- package/dist/components/message.css +125 -197
- package/dist/components/message.min.css +2 -2
- package/dist/components/modal.css +120 -154
- package/dist/components/modal.js +1544 -1486
- package/dist/components/modal.min.css +2 -2
- package/dist/components/modal.min.js +3 -3
- package/dist/components/nag.css +53 -63
- package/dist/components/nag.js +520 -526
- package/dist/components/nag.min.css +2 -2
- package/dist/components/nag.min.js +3 -3
- package/dist/components/placeholder.css +22 -42
- package/dist/components/placeholder.min.css +2 -2
- package/dist/components/popup.css +424 -202
- package/dist/components/popup.js +1456 -1456
- package/dist/components/popup.min.css +2 -2
- package/dist/components/popup.min.js +3 -3
- package/dist/components/progress.css +106 -211
- package/dist/components/progress.js +969 -997
- package/dist/components/progress.min.css +2 -2
- package/dist/components/progress.min.js +3 -3
- package/dist/components/rail.css +15 -20
- package/dist/components/rail.min.css +1 -1
- package/dist/components/rating.css +80 -121
- package/dist/components/rating.js +507 -523
- package/dist/components/rating.min.css +2 -2
- package/dist/components/rating.min.js +3 -3
- package/dist/components/reset.css +8 -13
- package/dist/components/reset.min.css +2 -2
- package/dist/components/reveal.css +44 -83
- package/dist/components/reveal.min.css +2 -2
- package/dist/components/search.css +69 -98
- package/dist/components/search.js +1520 -1534
- package/dist/components/search.min.css +2 -2
- package/dist/components/search.min.js +3 -3
- package/dist/components/segment.css +148 -224
- package/dist/components/segment.min.css +2 -2
- package/dist/components/shape.css +14 -30
- package/dist/components/shape.js +783 -810
- package/dist/components/shape.min.css +2 -2
- package/dist/components/shape.min.js +3 -3
- package/dist/components/sidebar.css +103 -206
- package/dist/components/sidebar.js +1061 -1099
- package/dist/components/sidebar.min.css +2 -2
- package/dist/components/sidebar.min.js +3 -3
- package/dist/components/site.css +28 -41
- package/dist/components/site.js +436 -476
- package/dist/components/site.min.css +2 -2
- package/dist/components/site.min.js +3 -3
- package/dist/components/slider.css +93 -121
- package/dist/components/slider.js +1310 -1311
- package/dist/components/slider.min.css +1 -1
- package/dist/components/slider.min.js +3 -3
- package/dist/components/state.js +638 -657
- package/dist/components/state.min.js +3 -3
- package/dist/components/statistic.css +75 -116
- package/dist/components/statistic.min.css +2 -2
- package/dist/components/step.css +77 -150
- package/dist/components/step.min.css +2 -2
- package/dist/components/sticky.css +1 -5
- package/dist/components/sticky.js +847 -901
- package/dist/components/sticky.min.css +2 -2
- package/dist/components/sticky.min.js +3 -3
- package/dist/components/tab.css +10 -14
- package/dist/components/tab.js +902 -966
- package/dist/components/tab.min.css +2 -2
- package/dist/components/tab.min.js +3 -3
- package/dist/components/table.css +547 -774
- package/dist/components/table.min.css +2 -2
- package/dist/components/text.css +32 -32
- package/dist/components/text.min.css +1 -1
- package/dist/components/toast.css +69 -147
- package/dist/components/toast.js +910 -884
- package/dist/components/toast.min.css +2 -2
- package/dist/components/toast.min.js +3 -3
- package/dist/components/transition.css +299 -1356
- package/dist/components/transition.js +1048 -1077
- package/dist/components/transition.min.css +2 -2
- package/dist/components/transition.min.js +3 -3
- package/dist/components/visibility.js +1213 -1245
- package/dist/components/visibility.min.js +3 -3
- package/dist/semantic.css +9344 -12298
- package/dist/semantic.js +29181 -29423
- package/dist/semantic.min.css +3 -3
- package/dist/semantic.min.js +3 -3
- package/dist/themes/basic/assets/fonts/icons.woff2 +0 -0
- package/dist/themes/github/assets/fonts/octicons.woff2 +0 -0
- package/examples/.eslintrc.js +6 -0
- package/examples/assets/library/jquery.min.js +2 -4
- package/examples/assets/show-examples.js +13 -13
- package/examples/attached.html +1 -1
- package/examples/bootstrap.html +1 -1
- package/examples/components/button.html +1 -1
- package/examples/components/card.html +6 -6
- package/examples/components/input.html +1 -1
- package/examples/components/menu.html +1 -1
- package/examples/components/site.html +1 -1
- package/examples/components/sticky-context.html +2 -2
- package/examples/components/table.html +1 -1
- package/examples/fixed.html +3 -3
- package/examples/grid.html +5 -5
- package/examples/homepage.html +1 -1
- package/examples/login.html +2 -2
- package/examples/responsive.html +2 -2
- package/examples/sticky.html +4 -4
- package/examples/theming.html +1 -1
- package/gulpfile.js +13 -11
- package/package.json +17 -8
- package/scripts/nightly-version.js +83 -75
- package/src/_site/collections/menu.overrides +1 -1
- package/src/_site/elements/flag.variables +2 -2
- package/src/_site/globals/site.variables +1 -1
- package/src/_site/modules/embed.variables +3 -0
- package/src/definitions/behaviors/api.js +1158 -1180
- package/src/definitions/behaviors/form.js +2021 -2003
- package/src/definitions/behaviors/state.js +644 -663
- package/src/definitions/behaviors/visibility.js +1212 -1244
- package/src/definitions/collections/breadcrumb.less +43 -47
- package/src/definitions/collections/form.less +866 -884
- package/src/definitions/collections/grid.less +1681 -1699
- package/src/definitions/collections/menu.less +1522 -1544
- package/src/definitions/collections/message.less +294 -298
- package/src/definitions/collections/table.less +1657 -1661
- package/src/definitions/elements/button.less +1716 -1750
- package/src/definitions/elements/container.less +211 -211
- package/src/definitions/elements/divider.less +198 -211
- package/src/definitions/elements/emoji.less +41 -48
- package/src/definitions/elements/flag.less +46 -48
- package/src/definitions/elements/header.less +351 -359
- package/src/definitions/elements/icon.less +541 -484
- package/src/definitions/elements/image.less +216 -227
- package/src/definitions/elements/input.less +692 -699
- package/src/definitions/elements/label.less +784 -806
- package/src/definitions/elements/list.less +810 -814
- package/src/definitions/elements/loader.less +273 -268
- package/src/definitions/elements/placeholder.less +173 -170
- package/src/definitions/elements/rail.less +93 -93
- package/src/definitions/elements/reveal.less +192 -198
- package/src/definitions/elements/segment.less +742 -749
- package/src/definitions/elements/step.less +423 -437
- package/src/definitions/elements/text.less +34 -36
- package/src/definitions/globals/reset.less +11 -8
- package/src/definitions/globals/site.js +435 -475
- package/src/definitions/globals/site.less +108 -110
- package/src/definitions/modules/accordion.js +567 -594
- package/src/definitions/modules/accordion.less +244 -248
- package/src/definitions/modules/calendar.js +1933 -1808
- package/src/definitions/modules/calendar.less +100 -97
- package/src/definitions/modules/checkbox.js +841 -840
- package/src/definitions/modules/checkbox.less +531 -552
- package/src/definitions/modules/dimmer.js +705 -736
- package/src/definitions/modules/dimmer.less +294 -305
- package/src/definitions/modules/dropdown.js +4194 -4235
- package/src/definitions/modules/dropdown.less +1568 -1598
- package/src/definitions/modules/embed.js +644 -674
- package/src/definitions/modules/embed.less +82 -84
- package/src/definitions/modules/flyout.js +1513 -1464
- package/src/definitions/modules/flyout.less +453 -455
- package/src/definitions/modules/modal.js +1543 -1485
- package/src/definitions/modules/modal.less +459 -467
- package/src/definitions/modules/nag.js +519 -525
- package/src/definitions/modules/nag.less +136 -149
- package/src/definitions/modules/popup.js +1455 -1455
- package/src/definitions/modules/popup.less +738 -693
- package/src/definitions/modules/progress.js +968 -996
- package/src/definitions/modules/progress.less +523 -499
- package/src/definitions/modules/rating.js +506 -522
- package/src/definitions/modules/rating.less +98 -103
- package/src/definitions/modules/search.js +1519 -1533
- package/src/definitions/modules/search.less +374 -394
- package/src/definitions/modules/shape.js +782 -809
- package/src/definitions/modules/shape.less +70 -79
- package/src/definitions/modules/sidebar.js +1060 -1098
- package/src/definitions/modules/sidebar.less +463 -476
- package/src/definitions/modules/slider.js +1309 -1310
- package/src/definitions/modules/slider.less +309 -310
- package/src/definitions/modules/sticky.js +863 -917
- package/src/definitions/modules/sticky.less +17 -25
- package/src/definitions/modules/tab.js +901 -965
- package/src/definitions/modules/tab.less +48 -54
- package/src/definitions/modules/toast.js +909 -883
- package/src/definitions/modules/toast.less +589 -589
- package/src/definitions/modules/transition.js +1047 -1076
- package/src/definitions/modules/transition.less +58 -59
- package/src/definitions/views/ad.less +207 -208
- package/src/definitions/views/card.less +955 -973
- package/src/definitions/views/comment.less +192 -200
- package/src/definitions/views/feed.less +222 -226
- package/src/definitions/views/item.less +437 -448
- package/src/definitions/views/statistic.less +273 -279
- package/src/semantic.less +8 -6
- package/src/theme.config.example +53 -53
- package/src/theme.less +44 -35
- package/src/themes/amazon/elements/button.overrides +23 -24
- package/src/themes/amazon/elements/button.variables +18 -23
- package/src/themes/amazon/globals/site.variables +16 -17
- package/src/themes/basic/assets/fonts/icons.woff2 +0 -0
- package/src/themes/basic/collections/table.overrides +0 -1
- package/src/themes/basic/collections/table.variables +3 -3
- package/src/themes/basic/elements/button.overrides +0 -1
- package/src/themes/basic/elements/button.variables +9 -9
- package/src/themes/basic/elements/icon.overrides +9 -169
- package/src/themes/basic/elements/icon.variables +161 -18
- package/src/themes/basic/elements/step.overrides +2 -2
- package/src/themes/basic/elements/step.variables +2 -2
- package/src/themes/basic/globals/reset.overrides +1 -1
- package/src/themes/basic/globals/reset.variables +1 -1
- package/src/themes/basic/modules/progress.variables +2 -2
- package/src/themes/basic/views/card.overrides +0 -1
- package/src/themes/basic/views/card.variables +6 -6
- package/src/themes/bookish/elements/header.overrides +4 -4
- package/src/themes/bookish/elements/header.variables +5 -5
- package/src/themes/bootstrap3/elements/button.overrides +3 -0
- package/src/themes/bootstrap3/elements/button.variables +20 -25
- package/src/themes/chubby/collections/form.overrides +9 -9
- package/src/themes/chubby/collections/form.variables +3 -3
- package/src/themes/chubby/collections/menu.overrides +3 -0
- package/src/themes/chubby/collections/menu.variables +3 -3
- package/src/themes/chubby/elements/button.overrides +8 -10
- package/src/themes/chubby/elements/button.variables +10 -10
- package/src/themes/chubby/elements/header.overrides +1 -1
- package/src/themes/chubby/elements/header.variables +4 -4
- package/src/themes/chubby/modules/accordion.overrides +2 -2
- package/src/themes/chubby/modules/accordion.variables +4 -4
- package/src/themes/chubby/views/comment.overrides +5 -5
- package/src/themes/chubby/views/comment.variables +11 -11
- package/src/themes/classic/collections/table.variables +3 -3
- package/src/themes/classic/elements/button.variables +36 -43
- package/src/themes/classic/elements/header.variables +4 -4
- package/src/themes/classic/modules/progress.variables +3 -3
- package/src/themes/classic/views/card.overrides +25 -27
- package/src/themes/classic/views/card.variables +7 -7
- package/src/themes/colored/modules/checkbox.overrides +3 -0
- package/src/themes/colored/modules/checkbox.variables +1 -3
- package/src/themes/default/collections/breadcrumb.variables +4 -4
- package/src/themes/default/collections/form.variables +15 -16
- package/src/themes/default/collections/grid.overrides +0 -1
- package/src/themes/default/collections/grid.variables +15 -16
- package/src/themes/default/collections/menu.variables +31 -45
- package/src/themes/default/collections/message.variables +84 -123
- package/src/themes/default/collections/table.overrides +3 -0
- package/src/themes/default/collections/table.variables +30 -34
- package/src/themes/default/elements/button.variables +44 -53
- package/src/themes/default/elements/container.variables +8 -16
- package/src/themes/default/elements/divider.overrides +8 -9
- package/src/themes/default/elements/divider.variables +5 -6
- package/src/themes/default/elements/emoji.overrides +0 -1
- package/src/themes/default/elements/emoji.variables +3556 -3556
- package/src/themes/default/elements/flag.variables +1595 -1595
- package/src/themes/default/elements/header.overrides +0 -1
- package/src/themes/default/elements/header.variables +21 -21
- package/src/themes/default/elements/icon.variables +2016 -2012
- package/src/themes/default/elements/image.variables +6 -7
- package/src/themes/default/elements/input.variables +11 -12
- package/src/themes/default/elements/label.variables +25 -26
- package/src/themes/default/elements/list.variables +17 -21
- package/src/themes/default/elements/loader.variables +16 -17
- package/src/themes/default/elements/placeholder.variables +12 -9
- package/src/themes/default/elements/rail.variables +4 -5
- package/src/themes/default/elements/reveal.variables +1 -1
- package/src/themes/default/elements/segment.variables +24 -36
- package/src/themes/default/elements/step.overrides +4 -4
- package/src/themes/default/elements/step.variables +19 -22
- package/src/themes/default/elements/text.variables +2 -3
- package/src/themes/default/globals/colors.less +588 -588
- package/src/themes/default/globals/reset.overrides +63 -59
- package/src/themes/default/globals/reset.variables +1 -1
- package/src/themes/default/globals/site.variables +1074 -1123
- package/src/themes/default/globals/variation.variables +6 -4
- package/src/themes/default/modules/accordion.overrides +11 -11
- package/src/themes/default/modules/accordion.variables +15 -20
- package/src/themes/default/modules/calendar.variables +2 -0
- package/src/themes/default/modules/chatroom.variables +1 -1
- package/src/themes/default/modules/checkbox.overrides +9 -13
- package/src/themes/default/modules/checkbox.variables +24 -33
- package/src/themes/default/modules/dimmer.variables +14 -17
- package/src/themes/default/modules/dropdown.overrides +17 -17
- package/src/themes/default/modules/dropdown.variables +29 -31
- package/src/themes/default/modules/embed.variables +9 -13
- package/src/themes/default/modules/flyout.variables +10 -8
- package/src/themes/default/modules/modal.variables +64 -67
- package/src/themes/default/modules/nag.variables +11 -14
- package/src/themes/default/modules/popup.variables +14 -13
- package/src/themes/default/modules/progress.variables +17 -19
- package/src/themes/default/modules/rating.variables +10 -12
- package/src/themes/default/modules/search.variables +12 -17
- package/src/themes/default/modules/shape.variables +7 -8
- package/src/themes/default/modules/sidebar.variables +4 -4
- package/src/themes/default/modules/slider.variables +55 -54
- package/src/themes/default/modules/sticky.variables +1 -1
- package/src/themes/default/modules/toast.variables +8 -8
- package/src/themes/default/modules/transition.overrides +936 -915
- package/src/themes/default/modules/transition.variables +1 -1
- package/src/themes/default/views/ad.variables +1 -1
- package/src/themes/default/views/card.variables +33 -45
- package/src/themes/default/views/comment.variables +7 -9
- package/src/themes/default/views/feed.variables +10 -10
- package/src/themes/default/views/item.variables +20 -23
- package/src/themes/default/views/statistic.variables +8 -8
- package/src/themes/duo/elements/loader.variables +1 -1
- package/src/themes/famfamfam/elements/flag.overrides +263 -268
- package/src/themes/famfamfam/elements/flag.variables +4 -4
- package/src/themes/fixed-width/collections/grid.variables +4 -4
- package/src/themes/fixed-width/modules/modal.variables +11 -13
- package/src/themes/flat/collections/form.overrides +9 -9
- package/src/themes/flat/collections/form.variables +16 -17
- package/src/themes/flat/globals/site.variables +69 -74
- package/src/themes/github/assets/fonts/octicons.woff2 +0 -0
- package/src/themes/github/collections/breadcrumb.variables +0 -1
- package/src/themes/github/collections/form.overrides +7 -8
- package/src/themes/github/collections/form.variables +16 -18
- package/src/themes/github/collections/grid.variables +1 -2
- package/src/themes/github/collections/menu.overrides +2 -2
- package/src/themes/github/collections/menu.variables +24 -26
- package/src/themes/github/collections/message.overrides +3 -3
- package/src/themes/github/collections/message.variables +12 -14
- package/src/themes/github/collections/table.variables +2 -2
- package/src/themes/github/elements/button.overrides +0 -1
- package/src/themes/github/elements/button.variables +26 -30
- package/src/themes/github/elements/header.variables +2 -2
- package/src/themes/github/elements/icon.overrides +3 -208
- package/src/themes/github/elements/icon.variables +234 -19
- package/src/themes/github/elements/image.variables +1 -1
- package/src/themes/github/elements/input.overrides +16 -16
- package/src/themes/github/elements/input.variables +4 -5
- package/src/themes/github/elements/label.overrides +3 -3
- package/src/themes/github/elements/label.variables +0 -1
- package/src/themes/github/elements/segment.variables +9 -10
- package/src/themes/github/elements/step.overrides +13 -13
- package/src/themes/github/elements/step.variables +6 -6
- package/src/themes/github/globals/site.variables +16 -16
- package/src/themes/github/modules/dropdown.overrides +18 -19
- package/src/themes/github/modules/dropdown.variables +8 -10
- package/src/themes/github/modules/popup.variables +0 -2
- package/src/themes/gmail/collections/message.overrides +3 -0
- package/src/themes/gmail/collections/message.variables +4 -4
- package/src/themes/instagram/views/card.overrides +4 -5
- package/src/themes/instagram/views/card.variables +7 -8
- package/src/themes/joypixels/elements/emoji.overrides +0 -2
- package/src/themes/joypixels/elements/emoji.variables +3554 -3554
- package/src/themes/material/collections/menu.overrides +1 -1
- package/src/themes/material/collections/menu.variables +4 -4
- package/src/themes/material/elements/button.overrides +7 -9
- package/src/themes/material/elements/button.variables +44 -46
- package/src/themes/material/elements/header.overrides +3 -3
- package/src/themes/material/elements/header.variables +8 -10
- package/src/themes/material/elements/icon.overrides +3 -934
- package/src/themes/material/elements/icon.variables +958 -18
- package/src/themes/material/globals/site.overrides +3 -0
- package/src/themes/material/globals/site.variables +83 -84
- package/src/themes/material/modules/dropdown.overrides +2 -2
- package/src/themes/material/modules/dropdown.variables +5 -5
- package/src/themes/material/modules/modal.overrides +3 -3
- package/src/themes/material/modules/modal.variables +4 -5
- package/src/themes/pulsar/elements/loader.overrides +23 -61
- package/src/themes/raised/elements/button.variables +8 -9
- package/src/themes/resetcss/globals/reset.overrides +115 -33
- package/src/themes/resetcss/globals/reset.variables +1 -1
- package/src/themes/round/elements/button.overrides +3 -0
- package/src/themes/round/elements/button.variables +33 -38
- package/src/themes/rtl/globals/site.overrides +1 -1
- package/src/themes/rtl/globals/site.variables +5 -6
- package/src/themes/striped/modules/progress.overrides +20 -16
- package/src/themes/systemfont/globals/reset.overrides +1 -1
- package/src/themes/systemfont/globals/site.variables +6 -6
- package/src/themes/timeline/views/feed.overrides +12 -12
- package/src/themes/timeline/views/feed.variables +8 -8
- package/src/themes/twitter/elements/button.overrides +4 -5
- package/src/themes/twitter/elements/button.variables +17 -18
- package/src/themes/twitter/elements/emoji.variables +3556 -3556
- package/tasks/.eslintrc.js +9 -0
- package/tasks/README.md +2 -4
- package/tasks/admin/components/create.js +268 -277
- package/tasks/admin/components/init.js +123 -129
- package/tasks/admin/components/update.js +151 -158
- package/tasks/admin/distributions/create.js +183 -189
- package/tasks/admin/distributions/init.js +125 -131
- package/tasks/admin/distributions/update.js +147 -153
- package/tasks/admin/publish.js +5 -9
- package/tasks/admin/register.js +37 -39
- package/tasks/admin/release.js +8 -12
- package/tasks/build/assets.js +43 -40
- package/tasks/build/css.js +230 -217
- package/tasks/build/javascript.js +120 -114
- package/tasks/build.js +11 -11
- package/tasks/check-install.js +15 -17
- package/tasks/clean.js +6 -6
- package/tasks/collections/README.md +3 -5
- package/tasks/collections/admin.js +34 -36
- package/tasks/collections/build.js +19 -21
- package/tasks/collections/docs.js +11 -13
- package/tasks/collections/install.js +11 -13
- package/tasks/collections/rtl.js +9 -12
- package/tasks/collections/various.js +10 -12
- package/tasks/config/admin/github.js +17 -19
- package/tasks/config/admin/oauth.example.js +4 -4
- package/tasks/config/admin/release.js +98 -98
- package/tasks/config/admin/templates/README.md +8 -8
- package/tasks/config/admin/templates/bower.json +3 -2
- package/tasks/config/admin/templates/component-package.js +9 -10
- package/tasks/config/admin/templates/css-package.js +19 -21
- package/tasks/config/admin/templates/less-package.js +12 -14
- package/tasks/config/admin/templates/package.json +6 -6
- package/tasks/config/defaults.js +116 -116
- package/tasks/config/docs.js +23 -23
- package/tasks/config/npm/gulpfile.js +15 -14
- package/tasks/config/project/config.js +124 -136
- package/tasks/config/project/install.js +722 -719
- package/tasks/config/project/release.js +34 -41
- package/tasks/config/tasks.js +168 -167
- package/tasks/config/user.js +28 -32
- package/tasks/docs/build.js +100 -96
- package/tasks/docs/metadata.js +91 -98
- package/tasks/docs/serve.js +84 -82
- package/tasks/install.js +373 -382
- package/tasks/rtl/build.js +4 -3
- package/tasks/rtl/watch.js +4 -3
- package/tasks/version.js +4 -6
- package/tasks/watch.js +29 -31
- package/test/.eslintrc.js +23 -0
- package/test/meteor/assets.js +11 -14
- package/test/meteor/fonts.js +12 -13
- package/test/modules/accordion.spec.js +6 -8
- package/test/modules/checkbox.spec.js +5 -7
- package/test/modules/dropdown.spec.js +5 -7
- package/test/modules/modal.spec.js +6 -8
- package/test/modules/module.spec.js +158 -178
- package/test/modules/popup.spec.js +5 -7
- package/test/modules/search.spec.js +5 -7
- package/test/modules/shape.spec.js +5 -7
- package/test/modules/sidebar.spec.js +5 -7
- package/test/modules/tab.spec.js +6 -8
- package/test/modules/transition.spec.js +5 -7
- package/test/modules/video.spec.js +5 -7
- package/.github/workflows/codeql.yml +0 -68
@@ -12,804 +12,797 @@
|
|
12
12
|
Theme
|
13
13
|
*******************************/
|
14
14
|
|
15
|
-
@type
|
16
|
-
@element
|
17
|
-
|
18
|
-
@import (multiple) '../../theme.config';
|
15
|
+
@type: "element";
|
16
|
+
@element: "input";
|
19
17
|
|
18
|
+
@import (multiple) "../../theme.config";
|
20
19
|
|
21
20
|
/*******************************
|
22
21
|
Standard
|
23
22
|
*******************************/
|
24
23
|
|
25
|
-
|
26
|
-
/*--------------------
|
24
|
+
/* --------------------
|
27
25
|
Inputs
|
28
|
-
|
26
|
+
--------------------- */
|
29
27
|
|
30
28
|
.ui.input {
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
29
|
+
position: relative;
|
30
|
+
font-weight: @normal;
|
31
|
+
font-style: normal;
|
32
|
+
display: inline-flex;
|
33
|
+
color: @inputColor;
|
36
34
|
}
|
37
35
|
.ui.input > input {
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
transition: @iconTransition;
|
62
|
-
cursor: pointer;
|
63
|
-
}
|
36
|
+
margin: 0;
|
37
|
+
max-width: 100%;
|
38
|
+
flex: 1 0 auto;
|
39
|
+
outline: none;
|
40
|
+
-webkit-tap-highlight-color: rgba(255, 255, 255, 0);
|
41
|
+
text-align: @textAlign;
|
42
|
+
line-height: @lineHeight;
|
43
|
+
font-family: @inputFont;
|
44
|
+
background: @background;
|
45
|
+
border: @border;
|
46
|
+
color: @inputColor;
|
47
|
+
border-radius: @borderRadius;
|
48
|
+
transition: @transition;
|
49
|
+
box-shadow: @boxShadow;
|
50
|
+
&:not([type="color"]) {
|
51
|
+
padding: @padding;
|
52
|
+
}
|
53
|
+
&::-webkit-calendar-picker-indicator {
|
54
|
+
padding: 0;
|
55
|
+
opacity: @iconOpacity;
|
56
|
+
transition: @iconTransition;
|
57
|
+
cursor: pointer;
|
58
|
+
}
|
64
59
|
}
|
65
60
|
|
66
|
-
|
67
|
-
/*--------------------
|
61
|
+
/* --------------------
|
68
62
|
Placeholder
|
69
|
-
|
63
|
+
--------------------- */
|
70
64
|
|
71
65
|
/* browsers require these rules separate */
|
72
66
|
|
73
67
|
.ui.input > input::-webkit-input-placeholder {
|
74
|
-
|
68
|
+
color: @placeholderColor;
|
75
69
|
}
|
76
70
|
.ui.input > input::-moz-placeholder {
|
77
|
-
|
78
|
-
|
71
|
+
color: @placeholderColor;
|
72
|
+
opacity: 1;
|
79
73
|
}
|
80
|
-
.ui.input > input:-ms-input-placeholder when (@supportIE){
|
81
|
-
|
74
|
+
.ui.input > input:-ms-input-placeholder when (@supportIE) {
|
75
|
+
color: @placeholderColor;
|
82
76
|
}
|
83
77
|
|
84
|
-
|
85
78
|
/*******************************
|
86
79
|
States
|
87
80
|
*******************************/
|
88
81
|
& when (@variationInputDisabled) {
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
|
82
|
+
/* --------------------
|
83
|
+
Disabled
|
84
|
+
--------------------- */
|
85
|
+
|
86
|
+
.ui.disabled.input,
|
87
|
+
.ui.input:not(.disabled) input[disabled] {
|
88
|
+
opacity: @disabledOpacity;
|
89
|
+
}
|
90
|
+
|
91
|
+
.ui.disabled.input > input,
|
92
|
+
.ui.input:not(.disabled) input[disabled] {
|
93
|
+
pointer-events: @disabledPointerEvents;
|
94
|
+
}
|
102
95
|
}
|
103
96
|
|
104
|
-
|
97
|
+
/* --------------------
|
105
98
|
Active
|
106
|
-
|
99
|
+
--------------------- */
|
107
100
|
|
108
101
|
.ui.input > input:active,
|
109
102
|
.ui.input.down input {
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
|
103
|
+
border-color: @downBorderColor;
|
104
|
+
background: @downBackground;
|
105
|
+
color: @downColor;
|
106
|
+
box-shadow: @downBoxShadow;
|
114
107
|
}
|
115
108
|
|
116
109
|
& when (@variationInputLoading) {
|
117
|
-
|
118
|
-
|
119
|
-
|
120
|
-
|
121
|
-
|
122
|
-
|
123
|
-
|
124
|
-
|
125
|
-
|
126
|
-
|
127
|
-
|
128
|
-
|
129
|
-
|
130
|
-
|
131
|
-
|
132
|
-
|
133
|
-
|
134
|
-
|
135
|
-
|
136
|
-
|
137
|
-
|
138
|
-
|
139
|
-
|
140
|
-
|
141
|
-
|
142
|
-
|
143
|
-
|
144
|
-
|
145
|
-
|
146
|
-
border: @loaderLineWidth solid @loaderLineColor;
|
147
|
-
border-radius: @circularRadius;
|
148
|
-
|
149
|
-
box-shadow: 0 0 0 1px transparent;
|
150
|
-
}
|
110
|
+
/* --------------------
|
111
|
+
Loading
|
112
|
+
--------------------- */
|
113
|
+
|
114
|
+
.ui.loading.loading.input > i.icon::before {
|
115
|
+
position: absolute;
|
116
|
+
content: "";
|
117
|
+
top: 50%;
|
118
|
+
left: 50%;
|
119
|
+
margin: @loaderMargin;
|
120
|
+
width: @loaderSize;
|
121
|
+
height: @loaderSize;
|
122
|
+
border-radius: @circularRadius;
|
123
|
+
border: @loaderLineWidth solid @loaderFillColor;
|
124
|
+
}
|
125
|
+
.ui.loading.loading.input > i.icon::after {
|
126
|
+
position: absolute;
|
127
|
+
content: "";
|
128
|
+
top: 50%;
|
129
|
+
left: 50%;
|
130
|
+
margin: @loaderMargin;
|
131
|
+
width: @loaderSize;
|
132
|
+
height: @loaderSize;
|
133
|
+
animation: loader @loaderSpeed infinite linear;
|
134
|
+
border: @loaderLineWidth solid @loaderLineColor;
|
135
|
+
border-radius: @circularRadius;
|
136
|
+
box-shadow: 0 0 0 1px transparent;
|
137
|
+
}
|
151
138
|
}
|
152
139
|
|
153
|
-
|
154
|
-
/*--------------------
|
140
|
+
/* --------------------
|
155
141
|
Focus
|
156
|
-
|
142
|
+
--------------------- */
|
157
143
|
|
158
144
|
.ui.input.focus > input,
|
159
|
-
.ui.input > input:focus
|
160
|
-
|
161
|
-
|
162
|
-
|
163
|
-
|
145
|
+
.ui.input > input:focus {
|
146
|
+
border-color: @focusBorderColor;
|
147
|
+
background: @focusBackground;
|
148
|
+
color: @focusColor;
|
149
|
+
box-shadow: @focusBoxShadow;
|
164
150
|
}
|
165
151
|
.ui.input.focus > input::-webkit-input-placeholder,
|
166
152
|
.ui.input > input:focus::-webkit-input-placeholder {
|
167
|
-
|
153
|
+
color: @placeholderFocusColor;
|
168
154
|
}
|
169
155
|
.ui.input.focus > input::-moz-placeholder,
|
170
156
|
.ui.input > input:focus::-moz-placeholder {
|
171
|
-
|
157
|
+
color: @placeholderFocusColor;
|
172
158
|
}
|
173
159
|
& when (@supportIE) {
|
174
|
-
|
175
|
-
|
176
|
-
|
177
|
-
|
160
|
+
.ui.input.focus > input:-ms-input-placeholder,
|
161
|
+
.ui.input > input:focus:-ms-input-placeholder {
|
162
|
+
color: @placeholderFocusColor;
|
163
|
+
}
|
178
164
|
}
|
179
165
|
|
180
|
-
|
181
166
|
& when not (@variationInputStates = false) {
|
182
|
-
|
183
|
-
|
184
|
-
|
185
|
-
|
186
|
-
|
187
|
-
|
188
|
-
|
189
|
-
|
190
|
-
|
191
|
-
|
192
|
-
|
193
|
-
|
194
|
-
|
195
|
-
|
196
|
-
|
197
|
-
|
198
|
-
|
199
|
-
|
200
|
-
|
201
|
-
|
202
|
-
|
203
|
-
|
204
|
-
|
205
|
-
|
206
|
-
|
207
|
-
|
208
|
-
|
209
|
-
|
210
|
-
|
211
|
-
|
212
|
-
|
213
|
-
|
214
|
-
|
215
|
-
|
216
|
-
|
217
|
-
|
218
|
-
|
219
|
-
|
220
|
-
|
221
|
-
|
222
|
-
|
223
|
-
|
224
|
-
|
225
|
-
|
226
|
-
|
227
|
-
|
228
|
-
|
229
|
-
|
230
|
-
|
167
|
+
/* --------------------
|
168
|
+
States
|
169
|
+
--------------------- */
|
170
|
+
each(@variationInputStates, {
|
171
|
+
@state: @value;
|
172
|
+
|
173
|
+
.ui.input.@{state} > input {
|
174
|
+
background-color: @formStates[@@state][background];
|
175
|
+
border-color: @formStates[@@state][borderColor];
|
176
|
+
color: @formStates[@@state][color];
|
177
|
+
box-shadow: @formStates[@@state][boxShadow];
|
178
|
+
}
|
179
|
+
& when (@state=error) and (@variationInputInvalid) {
|
180
|
+
.ui.input > input:not(:placeholder-shown):invalid {
|
181
|
+
background-color: @formStates[@@state][background];
|
182
|
+
border-color: @formStates[@@state][borderColor];
|
183
|
+
color: @formStates[@@state][color];
|
184
|
+
box-shadow: @formStates[@@state][boxShadow];
|
185
|
+
}
|
186
|
+
.ui.input > input:not(:-ms-input-placeholder):invalid when (@supportIE){
|
187
|
+
background-color: @formStates[@@state][background];
|
188
|
+
border-color: @formStates[@@state][borderColor];
|
189
|
+
color: @formStates[@@state][color];
|
190
|
+
box-shadow: @formStates[@@state][boxShadow];
|
191
|
+
}
|
192
|
+
}
|
193
|
+
|
194
|
+
/* Placeholder */
|
195
|
+
.ui.input.@{state} > input::-webkit-input-placeholder {
|
196
|
+
color: @formStates[@@state][inputPlaceholderColor];
|
197
|
+
}
|
198
|
+
.ui.input.@{state} > input::-moz-placeholder {
|
199
|
+
color: @formStates[@@state][inputPlaceholderColor];
|
200
|
+
}
|
201
|
+
.ui.input.@{state} > input:-ms-input-placeholder when (@supportIE) {
|
202
|
+
color: @formStates[@@state][inputPlaceholderColor] !important;
|
203
|
+
}
|
204
|
+
|
205
|
+
/* Focused Placeholder */
|
206
|
+
.ui.input.@{state} > input:focus::-webkit-input-placeholder {
|
207
|
+
color: @formStates[@@state][inputPlaceholderFocusColor];
|
208
|
+
}
|
209
|
+
.ui.input.@{state} > input:focus::-moz-placeholder {
|
210
|
+
color: @formStates[@@state][inputPlaceholderFocusColor];
|
211
|
+
}
|
212
|
+
.ui.input.@{state} > input:focus:-ms-input-placeholder when (@supportIE){
|
213
|
+
color: @formStates[@@state][inputPlaceholderFocusColor] !important;
|
214
|
+
}
|
215
|
+
});
|
231
216
|
}
|
217
|
+
|
232
218
|
/*******************************
|
233
219
|
Variations
|
234
220
|
*******************************/
|
235
221
|
|
236
222
|
& when (@variationInputTransparent) {
|
237
|
-
|
238
|
-
|
239
|
-
|
240
|
-
|
241
|
-
|
242
|
-
|
243
|
-
|
244
|
-
|
245
|
-
|
246
|
-
|
247
|
-
|
248
|
-
|
249
|
-
|
250
|
-
|
251
|
-
|
252
|
-
|
253
|
-
|
254
|
-
|
255
|
-
|
256
|
-
|
257
|
-
|
258
|
-
|
259
|
-
|
260
|
-
|
261
|
-
|
262
|
-
|
263
|
-
|
264
|
-
|
265
|
-
|
266
|
-
|
267
|
-
|
268
|
-
|
269
|
-
|
270
|
-
|
271
|
-
|
272
|
-
|
273
|
-
|
274
|
-
|
275
|
-
|
276
|
-
|
277
|
-
|
278
|
-
|
279
|
-
|
280
|
-
|
281
|
-
|
282
|
-
|
283
|
-
|
284
|
-
}
|
285
|
-
}
|
223
|
+
/* --------------------
|
224
|
+
Transparent
|
225
|
+
--------------------- */
|
226
|
+
|
227
|
+
.ui.transparent.input > textarea,
|
228
|
+
.ui.transparent.input > input {
|
229
|
+
border-color: transparent !important;
|
230
|
+
background-color: transparent !important;
|
231
|
+
padding: 0;
|
232
|
+
box-shadow: none !important;
|
233
|
+
border-radius: 0 !important;
|
234
|
+
}
|
235
|
+
.field .ui.transparent.input > textarea {
|
236
|
+
padding: @padding;
|
237
|
+
}
|
238
|
+
|
239
|
+
/* Transparent Icon */
|
240
|
+
:not(.field) > .ui.transparent.icon.input > i.icon {
|
241
|
+
width: @transparentIconWidth;
|
242
|
+
}
|
243
|
+
:not(.field) > .ui.ui.ui.transparent.icon.input > input {
|
244
|
+
padding-left: 0;
|
245
|
+
padding-right: @transparentIconMargin;
|
246
|
+
}
|
247
|
+
:not(.field) > .ui.ui.ui.transparent[class*="left icon"].input > input {
|
248
|
+
padding-left: @transparentIconMargin;
|
249
|
+
padding-right: 0;
|
250
|
+
}
|
251
|
+
& when (@variationInputInverted) {
|
252
|
+
/* Transparent Inverted */
|
253
|
+
.ui.transparent.inverted.input {
|
254
|
+
color: @transparentInvertedColor;
|
255
|
+
}
|
256
|
+
.ui.ui.transparent.inverted.input > textarea,
|
257
|
+
.ui.ui.transparent.inverted.input > input {
|
258
|
+
color: inherit;
|
259
|
+
}
|
260
|
+
|
261
|
+
.ui.transparent.inverted.input > input::-webkit-input-placeholder {
|
262
|
+
color: @transparentInvertedPlaceholderColor;
|
263
|
+
}
|
264
|
+
.ui.transparent.inverted.input > input::-moz-placeholder {
|
265
|
+
color: @transparentInvertedPlaceholderColor;
|
266
|
+
}
|
267
|
+
.ui.transparent.inverted.input > input:-ms-input-placeholder when (@supportIE) {
|
268
|
+
color: @transparentInvertedPlaceholderColor;
|
269
|
+
}
|
270
|
+
}
|
286
271
|
}
|
287
272
|
|
288
273
|
& when (@variationInputIcon) {
|
289
|
-
|
290
|
-
|
291
|
-
|
292
|
-
|
293
|
-
|
294
|
-
|
295
|
-
|
296
|
-
|
297
|
-
|
298
|
-
|
299
|
-
|
300
|
-
|
301
|
-
|
302
|
-
|
303
|
-
|
304
|
-
|
305
|
-
|
306
|
-
|
307
|
-
|
308
|
-
|
309
|
-
|
310
|
-
|
311
|
-
|
312
|
-
|
313
|
-
|
314
|
-
|
315
|
-
|
316
|
-
|
317
|
-
|
318
|
-
|
319
|
-
|
320
|
-
|
321
|
-
|
322
|
-
|
323
|
-
|
324
|
-
|
325
|
-
|
326
|
-
|
327
|
-
|
328
|
-
|
329
|
-
|
330
|
-
|
331
|
-
|
332
|
-
|
333
|
-
|
334
|
-
|
335
|
-
|
336
|
-
|
337
|
-
|
338
|
-
|
339
|
-
|
340
|
-
|
341
|
-
|
342
|
-
|
343
|
-
|
344
|
-
|
345
|
-
|
346
|
-
|
347
|
-
|
348
|
-
|
349
|
-
|
350
|
-
|
351
|
-
|
352
|
-
|
353
|
-
|
354
|
-
|
355
|
-
|
356
|
-
|
357
|
-
}
|
274
|
+
/* --------------------
|
275
|
+
Icon
|
276
|
+
--------------------- */
|
277
|
+
|
278
|
+
.ui.icon.input > i.icon {
|
279
|
+
cursor: default;
|
280
|
+
position: absolute;
|
281
|
+
line-height: 1;
|
282
|
+
text-align: center;
|
283
|
+
top: 0;
|
284
|
+
right: 0;
|
285
|
+
margin: 0;
|
286
|
+
height: 100%;
|
287
|
+
width: @iconWidth;
|
288
|
+
opacity: @iconOpacity;
|
289
|
+
border-radius: 0 @borderRadius @borderRadius 0;
|
290
|
+
transition: @iconTransition;
|
291
|
+
}
|
292
|
+
.ui.icon.input > i.icon:not(.link) {
|
293
|
+
pointer-events: none;
|
294
|
+
}
|
295
|
+
.ui.ui.ui.ui.icon.input:not(.corner) > textarea,
|
296
|
+
.ui.ui.ui.ui.icon.input:not(.corner) > input {
|
297
|
+
padding-right: @iconMargin;
|
298
|
+
}
|
299
|
+
|
300
|
+
.ui.icon.input > i.icon::before,
|
301
|
+
.ui.icon.input > i.icon::after {
|
302
|
+
left: 0;
|
303
|
+
position: absolute;
|
304
|
+
text-align: center;
|
305
|
+
top: 50%;
|
306
|
+
width: 100%;
|
307
|
+
margin-top: @iconOffset;
|
308
|
+
}
|
309
|
+
.ui.icon.input > i.link.icon {
|
310
|
+
cursor: pointer;
|
311
|
+
}
|
312
|
+
.ui.icon.input > i.circular.icon {
|
313
|
+
top: @circularIconVerticalOffset;
|
314
|
+
right: @circularIconHorizontalOffset;
|
315
|
+
}
|
316
|
+
|
317
|
+
/* Left Icon Input */
|
318
|
+
.ui[class*="left icon"].input > i.icon {
|
319
|
+
right: auto;
|
320
|
+
left: @borderWidth;
|
321
|
+
border-radius: @borderRadius 0 0 @borderRadius;
|
322
|
+
}
|
323
|
+
.ui[class*="left icon"].input > i.circular.icon {
|
324
|
+
right: auto;
|
325
|
+
left: @circularIconHorizontalOffset;
|
326
|
+
}
|
327
|
+
.ui.ui.ui.ui[class*="left icon"]:not([class*="left corner"]).input > textarea,
|
328
|
+
.ui.ui.ui.ui[class*="left icon"]:not([class*="left corner"]).input > input {
|
329
|
+
padding-left: @iconMargin;
|
330
|
+
}
|
331
|
+
.ui.ui.ui.ui[class*="left icon"]:not(.corner).input > textarea,
|
332
|
+
.ui.ui.ui.ui[class*="left icon"]:not(.corner).input > input {
|
333
|
+
padding-right: @horizontalPadding;
|
334
|
+
}
|
335
|
+
|
336
|
+
/* Focus */
|
337
|
+
.ui.input > input:focus::-webkit-calendar-picker-indicator,
|
338
|
+
.ui.icon.input > textarea:focus ~ i.icon,
|
339
|
+
.ui.icon.input > input:focus ~ i.icon {
|
340
|
+
opacity: @iconFocusOpacity;
|
341
|
+
}
|
358
342
|
}
|
359
343
|
|
360
344
|
& when (@variationInputLabeled) {
|
361
|
-
|
362
|
-
|
363
|
-
|
345
|
+
/* --------------------
|
346
|
+
Labeled
|
347
|
+
--------------------- */
|
364
348
|
|
365
|
-
|
366
|
-
|
367
|
-
|
368
|
-
|
369
|
-
|
370
|
-
|
371
|
-
|
372
|
-
|
373
|
-
|
374
|
-
|
375
|
-
|
376
|
-
|
377
|
-
|
378
|
-
|
379
|
-
|
380
|
-
|
381
|
-
|
382
|
-
|
383
|
-
|
384
|
-
|
385
|
-
|
386
|
-
|
387
|
-
|
388
|
-
|
389
|
-
|
390
|
-
|
391
|
-
|
392
|
-
|
393
|
-
|
394
|
-
|
395
|
-
|
396
|
-
|
397
|
-
|
398
|
-
|
399
|
-
|
400
|
-
|
401
|
-
|
402
|
-
|
403
|
-
|
349
|
+
/* Adjacent Label */
|
350
|
+
.ui.labeled.input > .label {
|
351
|
+
flex: 0 0 auto;
|
352
|
+
margin: 0;
|
353
|
+
font-size: @relativeMedium;
|
354
|
+
}
|
355
|
+
.ui.labeled.input > .label:not(.corner) {
|
356
|
+
padding-top: @verticalPadding;
|
357
|
+
padding-bottom: @verticalPadding;
|
358
|
+
}
|
359
|
+
|
360
|
+
/* Regular Label on Left */
|
361
|
+
.ui.labeled.input:not([class*="corner labeled"]) .label:first-child {
|
362
|
+
border-top-right-radius: 0;
|
363
|
+
border-bottom-right-radius: 0;
|
364
|
+
}
|
365
|
+
.ui.labeled.input:not([class*="corner labeled"]) .label:first-child + input {
|
366
|
+
border-top-left-radius: 0;
|
367
|
+
border-bottom-left-radius: 0;
|
368
|
+
border-left-color: transparent;
|
369
|
+
}
|
370
|
+
.ui.labeled.input:not([class*="corner labeled"]) .label:first-child + input:focus {
|
371
|
+
border-left-color: @focusBorderColor;
|
372
|
+
}
|
373
|
+
|
374
|
+
/* Regular Label on Right */
|
375
|
+
.ui[class*="right labeled"].input > input {
|
376
|
+
border-top-right-radius: 0 !important;
|
377
|
+
border-bottom-right-radius: 0 !important;
|
378
|
+
border-right-color: transparent !important;
|
379
|
+
}
|
380
|
+
.ui[class*="right labeled"].input > input + .label {
|
381
|
+
border-top-left-radius: 0;
|
382
|
+
border-bottom-left-radius: 0;
|
383
|
+
}
|
384
|
+
|
385
|
+
.ui[class*="right labeled"].input > input:focus {
|
386
|
+
border-right-color: @focusBorderColor !important;
|
387
|
+
}
|
404
388
|
}
|
405
389
|
|
406
390
|
& when (@variationInputCorner) {
|
407
|
-
|
408
|
-
|
409
|
-
|
410
|
-
|
411
|
-
|
412
|
-
|
413
|
-
|
414
|
-
|
415
|
-
|
416
|
-
|
417
|
-
|
418
|
-
|
419
|
-
|
420
|
-
|
421
|
-
|
422
|
-
|
423
|
-
|
424
|
-
|
425
|
-
|
426
|
-
|
427
|
-
|
428
|
-
|
429
|
-
|
430
|
-
|
431
|
-
|
432
|
-
|
433
|
-
|
434
|
-
|
435
|
-
|
436
|
-
}
|
437
|
-
& when (@variationInputIcon) {
|
438
|
-
.ui[class*="corner labeled"]:not([class*="left corner labeled"])[class*="left icon"].input > .ui.dropdown,
|
439
|
-
.ui[class*="corner labeled"]:not([class*="left corner labeled"])[class*="left icon"].input > textarea,
|
440
|
-
.ui[class*="corner labeled"]:not([class*="left corner labeled"])[class*="left icon"].input > input {
|
441
|
-
padding-right: @labeledIconInputMargin;
|
442
|
-
}
|
443
|
-
.ui[class*="left corner labeled"][class*="left icon"].input > .ui.dropdown,
|
444
|
-
.ui[class*="left corner labeled"][class*="left icon"].input > textarea,
|
445
|
-
.ui[class*="left corner labeled"][class*="left icon"].input > input {
|
446
|
-
padding-left: @labeledAndIconMargin;
|
447
|
-
}
|
448
|
-
.ui[class*="left corner labeled"].icon.input > i.icon {
|
449
|
-
margin-left: @labeledIconMargin;
|
450
|
-
}
|
451
|
-
.ui[class*="left corner labeled"].icon:not([class*="left icon"]).input > input {
|
452
|
-
padding-right: @labeledMargin;
|
453
|
-
}
|
454
|
-
.ui[class*="corner labeled"]:not([class*="left corner labeled"]).icon:not([class*="left icon"]).input > input {
|
455
|
-
padding-right: @labeledMargin * 2;
|
456
|
-
}
|
457
|
-
}
|
458
|
-
|
459
|
-
.ui[class*="left icon"].input > .ui.dropdown,
|
460
|
-
.ui[class*="left corner labeled"].input > .ui.dropdown {
|
461
|
-
& > .search {
|
462
|
-
padding-left: @labeledMargin;
|
463
|
-
}
|
464
|
-
& > .menu {
|
465
|
-
padding-left: @labeledIconMargin;
|
466
|
-
& > .item {
|
391
|
+
/* Corner Label */
|
392
|
+
.ui.labeled.input .corner.label {
|
393
|
+
top: @labelCornerTop;
|
394
|
+
right: @labelCornerRight;
|
395
|
+
font-size: @labelCornerSize;
|
396
|
+
border-radius: 0 @borderRadius 0 0;
|
397
|
+
}
|
398
|
+
|
399
|
+
/* Spacing with corner label */
|
400
|
+
.ui[class*="corner labeled"]:not([class*="left corner labeled"]).input > .ui.dropdown,
|
401
|
+
.ui[class*="corner labeled"]:not([class*="left corner labeled"]).input > textarea,
|
402
|
+
.ui[class*="corner labeled"]:not([class*="left corner labeled"]).input > input {
|
403
|
+
padding-right: @labeledMargin;
|
404
|
+
}
|
405
|
+
.ui[class*="corner labeled"].icon.input:not([class*="left corner labeled"]) > .ui.dropdown,
|
406
|
+
.ui[class*="corner labeled"].icon.input:not([class*="left corner labeled"]) > textarea,
|
407
|
+
.ui[class*="corner labeled"].icon.input:not([class*="left corner labeled"]) > input {
|
408
|
+
padding-right: @labeledIconInputMargin;
|
409
|
+
}
|
410
|
+
.ui[class*="corner labeled"].icon.input:not([class*="left corner labeled"]) > i.icon {
|
411
|
+
margin-right: @labeledIconMargin;
|
412
|
+
}
|
413
|
+
|
414
|
+
/* Left Labeled */
|
415
|
+
.ui[class*="left icon"].input > .ui.dropdown:first-child,
|
416
|
+
.ui[class*="left icon"].input > i.icon + .ui.dropdown,
|
417
|
+
.ui[class*="left corner labeled"].input > .ui.dropdown,
|
418
|
+
.ui[class*="left corner labeled"].input > textarea,
|
419
|
+
.ui[class*="left corner labeled"].input > input {
|
467
420
|
padding-left: @labeledMargin;
|
468
|
-
|
469
|
-
|
470
|
-
|
471
|
-
|
472
|
-
|
473
|
-
|
474
|
-
|
475
|
-
|
476
|
-
|
477
|
-
|
478
|
-
|
479
|
-
|
480
|
-
|
481
|
-
|
482
|
-
|
483
|
-
|
484
|
-
|
485
|
-
|
486
|
-
|
487
|
-
|
488
|
-
|
489
|
-
|
490
|
-
|
491
|
-
|
492
|
-
|
493
|
-
|
494
|
-
|
495
|
-
|
496
|
-
|
497
|
-
|
498
|
-
|
499
|
-
|
500
|
-
|
501
|
-
|
502
|
-
|
503
|
-
|
504
|
-
|
421
|
+
}
|
422
|
+
& when (@variationInputIcon) {
|
423
|
+
.ui[class*="corner labeled"]:not([class*="left corner labeled"])[class*="left icon"].input > .ui.dropdown,
|
424
|
+
.ui[class*="corner labeled"]:not([class*="left corner labeled"])[class*="left icon"].input > textarea,
|
425
|
+
.ui[class*="corner labeled"]:not([class*="left corner labeled"])[class*="left icon"].input > input {
|
426
|
+
padding-right: @labeledIconInputMargin;
|
427
|
+
}
|
428
|
+
.ui.ui[class*="left corner labeled"][class*="left icon"].input > .ui.dropdown,
|
429
|
+
.ui.ui[class*="left corner labeled"][class*="left icon"].input > textarea,
|
430
|
+
.ui.ui[class*="left corner labeled"][class*="left icon"].input > input {
|
431
|
+
padding-left: @labeledAndIconMargin;
|
432
|
+
}
|
433
|
+
.ui[class*="left corner labeled"].icon.input > i.icon {
|
434
|
+
margin-left: @labeledIconMargin;
|
435
|
+
}
|
436
|
+
.ui[class*="left corner labeled"].icon:not([class*="left icon"]).input > input {
|
437
|
+
padding-right: @labeledMargin;
|
438
|
+
}
|
439
|
+
.ui[class*="corner labeled"]:not([class*="left corner labeled"]).icon:not([class*="left icon"]).input > input {
|
440
|
+
padding-right: @labeledMargin * 2;
|
441
|
+
}
|
442
|
+
}
|
443
|
+
|
444
|
+
.ui[class*="left icon"].input > .ui.dropdown,
|
445
|
+
.ui[class*="left corner labeled"].input > .ui.dropdown {
|
446
|
+
& > .search {
|
447
|
+
padding-left: @labeledMargin;
|
448
|
+
}
|
449
|
+
& > .menu {
|
450
|
+
padding-left: @labeledIconMargin;
|
451
|
+
& > .item {
|
452
|
+
padding-left: @labeledMargin;
|
453
|
+
margin-left: -@labeledIconMargin;
|
454
|
+
}
|
455
|
+
}
|
456
|
+
}
|
457
|
+
.ui[class*="left corner labeled"][class*="left icon"].input > .ui.dropdown {
|
458
|
+
& > .search {
|
459
|
+
padding-left: @labeledAndIconMargin;
|
460
|
+
}
|
461
|
+
& > .menu > .item {
|
462
|
+
padding-left: @labeledAndIconMargin;
|
463
|
+
}
|
464
|
+
}
|
465
|
+
.ui.icon.input:not([class*="left icon"]) > .ui.dropdown,
|
466
|
+
.ui[class*="corner labeled"]:not([class*="left corner labeled"]).input > .ui.dropdown {
|
467
|
+
& > .search {
|
468
|
+
padding-right: @labeledMargin + @labeledIconInputMargin;
|
469
|
+
}
|
470
|
+
& > .remove.icon,
|
471
|
+
> .dropdown.icon {
|
472
|
+
padding-right: @labeledMargin;
|
473
|
+
}
|
474
|
+
}
|
475
|
+
@supports selector(:has(.f)) {
|
476
|
+
.ui.icon.input:not([class*="left icon"]) > .ui.dropdown > .dropdown.icon {
|
477
|
+
padding-right: initial;
|
478
|
+
}
|
479
|
+
.ui.icon.input:not([class*="left icon"]):not(:has(.ui.dropdown ~ input)) > .ui.dropdown > .dropdown.icon {
|
480
|
+
padding-right: @labeledMargin;
|
481
|
+
}
|
482
|
+
}
|
483
|
+
.ui.ui[class*="corner labeled"]:not([class*="left corner labeled"]).icon:not([class*="left icon"]).input > .ui.dropdown {
|
484
|
+
& > .search {
|
485
|
+
padding-right: @labeledAndIconMargin + @labeledIconInputMargin;
|
486
|
+
}
|
487
|
+
& > .remove.icon,
|
488
|
+
> .dropdown.icon {
|
489
|
+
padding-right: @labeledAndIconMargin;
|
490
|
+
}
|
491
|
+
}
|
492
|
+
.ui.icon.input > .ui.visible.dropdown ~ i.icon,
|
493
|
+
.ui.icon.input > .ui.active.dropdown ~ i.icon,
|
494
|
+
.ui[class*="corner labeled"].input > .ui.visible.dropdown ~ .ui.corner.label,
|
495
|
+
.ui[class*="corner labeled"].input > .ui.active.dropdown ~ .ui.corner.label {
|
496
|
+
z-index: @labeledDropdownZIndex;
|
497
|
+
}
|
505
498
|
}
|
506
499
|
& when (@variationInputIcon) {
|
507
|
-
|
508
|
-
|
509
|
-
|
510
|
-
|
511
|
-
|
512
|
-
|
500
|
+
.ui.icon.input > textarea ~ i.icon {
|
501
|
+
height: @textareaIconHeight;
|
502
|
+
}
|
503
|
+
:not(.field) > .ui.transparent.icon.input > textarea ~ i.icon {
|
504
|
+
height: @transparentTextareaIconHeight;
|
505
|
+
}
|
513
506
|
}
|
514
507
|
& when (@variationInputCorner) {
|
515
|
-
|
516
|
-
|
517
|
-
|
518
|
-
|
519
|
-
|
520
|
-
|
521
|
-
|
522
|
-
|
523
|
-
|
508
|
+
/* Corner Label Position */
|
509
|
+
.ui.input > .ui.corner.label {
|
510
|
+
top: @borderWidth;
|
511
|
+
right: @borderWidth;
|
512
|
+
}
|
513
|
+
.ui.input > .ui.left.corner.label {
|
514
|
+
right: auto;
|
515
|
+
left: @borderWidth;
|
516
|
+
}
|
524
517
|
}
|
525
518
|
|
526
519
|
& when ((@variationInputLabeled) or (@variationInputAction)) and not (@variationInputStates = false) {
|
527
|
-
|
528
|
-
|
529
|
-
|
530
|
-
|
531
|
-
|
532
|
-
|
533
|
-
|
534
|
-
|
535
|
-
|
536
|
-
|
537
|
-
|
538
|
-
|
539
|
-
|
540
|
-
|
541
|
-
|
542
|
-
|
543
|
-
|
544
|
-
|
545
|
-
|
546
|
-
|
547
|
-
|
548
|
-
|
549
|
-
|
550
|
-
|
551
|
-
|
552
|
-
|
553
|
-
|
554
|
-
|
555
|
-
|
520
|
+
/* Labeled and action input states */
|
521
|
+
each(@variationInputStates, {
|
522
|
+
@state: @value;
|
523
|
+
@borderColor: @formStates[@@state][borderColor];
|
524
|
+
|
525
|
+
.ui.form .field.@{state} > .ui.action.input > .ui.button,
|
526
|
+
.ui.form .field.@{state} > .ui.labeled.input:not([class*="corner labeled"]) > .ui.label,
|
527
|
+
.ui.action.input.@{state} > .ui.button,
|
528
|
+
.ui.labeled.input.@{state}:not([class*="corner labeled"]) > .ui.label {
|
529
|
+
border-top: @borderWidth solid @borderColor;
|
530
|
+
border-bottom: @borderWidth solid @borderColor;
|
531
|
+
}
|
532
|
+
.ui.form .field.@{state} > .ui[class*="left action"].input > .ui.button,
|
533
|
+
.ui.form .field.@{state} > .ui.labeled.input:not(.right):not([class*="corner labeled"]) > .ui.label,
|
534
|
+
.ui[class*="left action"].input.@{state} > .ui.button,
|
535
|
+
.ui.labeled.input.@{state}:not(.right):not([class*="corner labeled"]) > .ui.label {
|
536
|
+
border-left: @borderWidth solid @borderColor;
|
537
|
+
}
|
538
|
+
.ui.form .field.@{state} > .ui.action.input:not([class*="left action"]) > input + .ui.button,
|
539
|
+
.ui.form .field.@{state} > .ui.right.labeled.input:not([class*="corner labeled"]) > input + .ui.label,
|
540
|
+
.ui.action.input.@{state}:not([class*="left action"]) > input + .ui.button,
|
541
|
+
.ui.right.labeled.input.@{state}:not([class*="corner labeled"]) > input + .ui.label {
|
542
|
+
border-right: @borderWidth solid @borderColor;
|
543
|
+
}
|
544
|
+
.ui.form .field.@{state} > .ui.right.labeled.input:not([class*="corner labeled"]) > .ui.label:first-child,
|
545
|
+
.ui.right.labeled.input.@{state}:not([class*="corner labeled"]) > .ui.label:first-child {
|
546
|
+
border-left: @borderWidth solid @borderColor;
|
547
|
+
}
|
548
|
+
});
|
556
549
|
}
|
557
550
|
|
558
551
|
& when (@variationInputAction) {
|
559
|
-
|
560
|
-
|
561
|
-
|
562
|
-
|
563
|
-
|
564
|
-
|
565
|
-
|
566
|
-
|
567
|
-
|
568
|
-
|
569
|
-
|
570
|
-
|
571
|
-
|
572
|
-
|
573
|
-
|
574
|
-
|
575
|
-
|
576
|
-
|
577
|
-
|
578
|
-
|
579
|
-
|
580
|
-
|
581
|
-
|
582
|
-
|
583
|
-
|
584
|
-
|
585
|
-
|
586
|
-
|
587
|
-
|
588
|
-
|
589
|
-
|
590
|
-
|
591
|
-
|
592
|
-
|
593
|
-
|
594
|
-
|
595
|
-
|
596
|
-
|
597
|
-
|
598
|
-
|
599
|
-
|
600
|
-
|
601
|
-
|
602
|
-
|
603
|
-
|
604
|
-
|
605
|
-
|
606
|
-
|
607
|
-
|
608
|
-
|
609
|
-
|
610
|
-
|
611
|
-
|
612
|
-
|
613
|
-
|
614
|
-
|
552
|
+
/* --------------------
|
553
|
+
Action
|
554
|
+
--------------------- */
|
555
|
+
|
556
|
+
.ui.action.input > .button,
|
557
|
+
.ui.action.input > .buttons {
|
558
|
+
display: flex;
|
559
|
+
align-items: center;
|
560
|
+
flex: 0 0 auto;
|
561
|
+
}
|
562
|
+
.ui.action.input > .button,
|
563
|
+
.ui.action.input > .buttons > .button {
|
564
|
+
padding-top: @verticalPadding;
|
565
|
+
padding-bottom: @verticalPadding;
|
566
|
+
margin: 0;
|
567
|
+
}
|
568
|
+
|
569
|
+
/* Input when ui Left */
|
570
|
+
.ui[class*="left action"].input > input {
|
571
|
+
border-top-left-radius: 0;
|
572
|
+
border-bottom-left-radius: 0;
|
573
|
+
border-left-color: transparent;
|
574
|
+
}
|
575
|
+
|
576
|
+
/* Input when ui Right */
|
577
|
+
.ui.action.input:not([class*="left action"]) > input {
|
578
|
+
border-top-right-radius: 0;
|
579
|
+
border-bottom-right-radius: 0;
|
580
|
+
border-right-color: transparent;
|
581
|
+
}
|
582
|
+
|
583
|
+
/* Button and Dropdown */
|
584
|
+
.ui.action.input > .dropdown:first-child,
|
585
|
+
.ui.action.input > .button:first-child,
|
586
|
+
.ui.action.input > .buttons:first-child > .button {
|
587
|
+
border-radius: @borderRadius 0 0 @borderRadius;
|
588
|
+
}
|
589
|
+
.ui.action.input > .dropdown:not(:first-child),
|
590
|
+
.ui.action.input > .button:not(:first-child),
|
591
|
+
.ui.action.input > .buttons:not(:first-child) > .button {
|
592
|
+
border-radius: 0;
|
593
|
+
}
|
594
|
+
.ui.action.input > .dropdown:last-child,
|
595
|
+
.ui.action.input > .button:last-child,
|
596
|
+
.ui.action.input > .buttons:last-child > .button {
|
597
|
+
border-radius: 0 @borderRadius @borderRadius 0;
|
598
|
+
}
|
599
|
+
|
600
|
+
/* Input Focus */
|
601
|
+
.ui.action.input:not([class*="left action"]) > input:focus {
|
602
|
+
border-right-color: @focusBorderColor;
|
603
|
+
}
|
604
|
+
|
605
|
+
.ui.ui[class*="left action"].input > input:focus {
|
606
|
+
border-left-color: @focusBorderColor;
|
607
|
+
}
|
615
608
|
}
|
616
609
|
|
617
610
|
& when (@variationInputInverted) {
|
618
|
-
|
619
|
-
|
620
|
-
|
621
|
-
|
622
|
-
|
623
|
-
|
624
|
-
|
625
|
-
|
611
|
+
/* --------------------
|
612
|
+
Inverted
|
613
|
+
--------------------- */
|
614
|
+
|
615
|
+
/* Standard */
|
616
|
+
.ui.inverted.input > input {
|
617
|
+
border: none;
|
618
|
+
}
|
626
619
|
}
|
627
620
|
|
628
621
|
& when (@variationInputFluid) {
|
629
|
-
|
630
|
-
|
631
|
-
|
632
|
-
|
633
|
-
.ui.fluid.input {
|
634
|
-
display: flex;
|
635
|
-
}
|
636
|
-
.ui.fluid.input > input {
|
637
|
-
width: 0 !important;
|
638
|
-
}
|
639
|
-
}
|
622
|
+
/* --------------------
|
623
|
+
Fluid
|
624
|
+
--------------------- */
|
640
625
|
|
626
|
+
.ui.fluid.input {
|
627
|
+
display: flex;
|
628
|
+
}
|
629
|
+
.ui.fluid.input > input {
|
630
|
+
width: 0 !important;
|
631
|
+
}
|
632
|
+
}
|
641
633
|
|
642
634
|
& when (@variationInputFile) {
|
643
|
-
|
644
|
-
|
645
|
-
|
646
|
-
|
647
|
-
|
648
|
-
|
649
|
-
|
650
|
-
|
651
|
-
|
652
|
-
|
653
|
-
|
654
|
-
|
655
|
-
|
656
|
-
|
657
|
-
|
658
|
-
|
659
|
-
|
660
|
-
|
661
|
-
|
662
|
-
|
663
|
-
|
664
|
-
|
665
|
-
|
666
|
-
|
667
|
-
|
668
|
-
|
669
|
-
|
670
|
-
|
671
|
-
color: @fileButtonTextColor;
|
672
|
-
&:hover {
|
673
|
-
background: @fileButtonBackgroundHover;
|
674
|
-
color: @fileButtonTextColor;
|
675
|
-
}
|
676
|
-
}
|
677
|
-
& when (@supportIE) {
|
678
|
-
.ui.action.file.input input[type="file"]::-ms-browse {
|
679
|
-
display: none;
|
680
|
-
}
|
681
|
-
.ui.form .field input[type="file"]::-ms-browse,
|
682
|
-
.ui.file.input input[type="file"]::-ms-browse {
|
683
|
-
border: none;
|
684
|
-
cursor: pointer;
|
685
|
-
padding: @padding;
|
686
|
-
margin: 0;
|
687
|
-
background: @fileButtonBackground;
|
688
|
-
font-weight: @fileButtonFontWeight;
|
689
|
-
color: @fileButtonTextColor;
|
690
|
-
&:hover {
|
691
|
-
background: @fileButtonBackgroundHover;
|
635
|
+
/* --------------------
|
636
|
+
File
|
637
|
+
--------------------- */
|
638
|
+
|
639
|
+
/* width hack for chrome/edge */
|
640
|
+
.ui.file.input {
|
641
|
+
width: 100%;
|
642
|
+
& input[type="file"] {
|
643
|
+
width: 0;
|
644
|
+
}
|
645
|
+
}
|
646
|
+
|
647
|
+
.ui.form .field > input[type="file"],
|
648
|
+
.ui.file.input:not(.action) input[type="file"] {
|
649
|
+
padding: 0;
|
650
|
+
}
|
651
|
+
|
652
|
+
.ui.action.file.input input[type="file"]::-webkit-file-upload-button {
|
653
|
+
display: none;
|
654
|
+
}
|
655
|
+
.ui.form .field input[type="file"]::-webkit-file-upload-button,
|
656
|
+
.ui.file.input input[type="file"]::-webkit-file-upload-button {
|
657
|
+
border: none;
|
658
|
+
cursor: pointer;
|
659
|
+
padding: @padding;
|
660
|
+
margin-right: @fileButtonMargin;
|
661
|
+
background: @fileButtonBackground;
|
662
|
+
font-weight: @fileButtonFontWeight;
|
692
663
|
color: @fileButtonTextColor;
|
693
|
-
}
|
694
|
-
}
|
695
|
-
/* IE needs additional styling for input field :S */
|
696
|
-
@media all and (-ms-high-contrast: none) {
|
697
|
-
.ui.file.input > input[type="file"],
|
698
|
-
input[type="file"].ui.file.input {
|
699
|
-
padding: 0 !important;
|
700
|
-
}
|
701
|
-
}
|
702
|
-
}
|
703
|
-
|
704
|
-
.ui.action.file.input input[type="file"]::file-selector-button {
|
705
|
-
display: none;
|
706
|
-
}
|
707
|
-
.ui.form .field input[type="file"]::file-selector-button,
|
708
|
-
.ui.file.input input[type="file"]::file-selector-button {
|
709
|
-
border: none;
|
710
|
-
cursor: pointer;
|
711
|
-
padding: @padding;
|
712
|
-
margin-right: @fileButtonMargin;
|
713
|
-
background: @fileButtonBackground;
|
714
|
-
font-weight: @fileButtonFontWeight;
|
715
|
-
color: @fileButtonTextColor;
|
716
|
-
&:hover {
|
717
|
-
background: @fileButtonBackgroundHover;
|
718
|
-
color: @fileButtonTextColor;
|
719
|
-
}
|
720
|
-
}
|
721
|
-
& when (@variationInputInvalid) {
|
722
|
-
.ui.form .field input[type="file"]:required:invalid,
|
723
|
-
.ui.file.input input[type="file"]:required:invalid {
|
724
|
-
color: @negativeTextColor;
|
725
|
-
background: @negativeBackgroundColor;
|
726
|
-
border-color: @negativeBorderColor;
|
727
|
-
}
|
728
|
-
}
|
729
|
-
|
730
|
-
input[type="file"].ui.invisible.file.input,
|
731
|
-
.ui.invisible.file.input input[type="file"] {
|
732
|
-
left: -99999px;
|
733
|
-
position: absolute;
|
734
|
-
}
|
735
|
-
|
736
|
-
input[type="file"].ui.file.input:focus + label.ui.button:not(.basic):not(.tertiary),
|
737
|
-
.ui.file.input input[type="file"]:focus + label.ui.button:not(.basic):not(.tertiary) {
|
738
|
-
background: @fileButtonBackgroundHover;
|
739
|
-
color: @hoveredTextColor;
|
740
|
-
&.inverted {
|
741
|
-
background: @fileButtonInvertedBackgroundHover;
|
742
|
-
}
|
743
|
-
}
|
744
|
-
|
745
|
-
/* this is related to existing buttons, so the button color variable is used here! */
|
746
|
-
& when not (@variationButtonColors = false) {
|
747
|
-
each(@variationButtonColors, {
|
748
|
-
@color: @value;
|
749
|
-
@h: @colors[@@color][hover];
|
750
|
-
@lh: @colors[@@color][lightHover];
|
751
|
-
|
752
|
-
input[type="file"].ui.file.input:focus + label.ui.@{color}.button:not(.basic):not(.tertiary),
|
753
|
-
.ui.file.input input[type="file"]:focus + label.ui.@{color}.button:not(.basic):not(.tertiary) {
|
754
|
-
background-color: @h;
|
755
|
-
color: @white;
|
756
|
-
&.inverted when (@variationButtonInverted) {
|
757
|
-
background-color: @lh;
|
758
|
-
}
|
759
|
-
}
|
760
|
-
})
|
761
|
-
}
|
762
|
-
|
763
|
-
& when not (@variationInputColors = false) {
|
764
|
-
each(@variationInputColors, {
|
765
|
-
@color: @value;
|
766
|
-
@c: @colors[@@color][color];
|
767
|
-
@h: @colors[@@color][hover];
|
768
|
-
|
769
|
-
input[type="file"].ui.@{color}.file.input::-webkit-file-upload-button,
|
770
|
-
.ui.@{color}.file.input input[type="file"]::-webkit-file-upload-button {
|
771
|
-
background: @c;
|
772
|
-
color: @white;
|
773
664
|
&:hover {
|
774
|
-
|
775
|
-
|
776
|
-
|
777
|
-
|
778
|
-
|
779
|
-
.ui
|
780
|
-
|
781
|
-
|
782
|
-
|
783
|
-
|
784
|
-
|
785
|
-
|
786
|
-
|
787
|
-
|
788
|
-
|
789
|
-
|
790
|
-
|
665
|
+
background: @fileButtonBackgroundHover;
|
666
|
+
color: @fileButtonTextColor;
|
667
|
+
}
|
668
|
+
}
|
669
|
+
& when (@supportIE) {
|
670
|
+
.ui.action.file.input input[type="file"]::-ms-browse {
|
671
|
+
display: none;
|
672
|
+
}
|
673
|
+
.ui.form .field input[type="file"]::-ms-browse,
|
674
|
+
.ui.file.input input[type="file"]::-ms-browse {
|
675
|
+
border: none;
|
676
|
+
cursor: pointer;
|
677
|
+
padding: @padding;
|
678
|
+
margin: 0;
|
679
|
+
background: @fileButtonBackground;
|
680
|
+
font-weight: @fileButtonFontWeight;
|
681
|
+
color: @fileButtonTextColor;
|
682
|
+
&:hover {
|
683
|
+
background: @fileButtonBackgroundHover;
|
684
|
+
color: @fileButtonTextColor;
|
685
|
+
}
|
686
|
+
}
|
687
|
+
|
688
|
+
/* IE needs additional styling for input field :S */
|
689
|
+
@media all and (-ms-high-contrast: none) {
|
690
|
+
.ui.file.input > input[type="file"],
|
691
|
+
input[type="file"].ui.file.input {
|
692
|
+
padding: 0 !important;
|
693
|
+
}
|
694
|
+
}
|
695
|
+
}
|
696
|
+
|
697
|
+
.ui.action.file.input input[type="file"]::file-selector-button {
|
698
|
+
display: none;
|
699
|
+
}
|
700
|
+
.ui.form .field input[type="file"]::file-selector-button,
|
701
|
+
.ui.file.input input[type="file"]::file-selector-button {
|
702
|
+
border: none;
|
703
|
+
cursor: pointer;
|
704
|
+
padding: @padding;
|
705
|
+
margin-right: @fileButtonMargin;
|
706
|
+
background: @fileButtonBackground;
|
707
|
+
font-weight: @fileButtonFontWeight;
|
708
|
+
color: @fileButtonTextColor;
|
791
709
|
&:hover {
|
792
|
-
|
710
|
+
background: @fileButtonBackgroundHover;
|
711
|
+
color: @fileButtonTextColor;
|
712
|
+
}
|
713
|
+
}
|
714
|
+
& when (@variationInputInvalid) {
|
715
|
+
.ui.form .field input[type="file"]:required:invalid,
|
716
|
+
.ui.file.input input[type="file"]:required:invalid {
|
717
|
+
color: @negativeTextColor;
|
718
|
+
background: @negativeBackgroundColor;
|
719
|
+
border-color: @negativeBorderColor;
|
793
720
|
}
|
794
|
-
|
795
|
-
|
796
|
-
|
721
|
+
}
|
722
|
+
|
723
|
+
input[type="file"].ui.invisible.file.input,
|
724
|
+
.ui.invisible.file.input input[type="file"] {
|
725
|
+
left: -99999px;
|
726
|
+
position: absolute;
|
727
|
+
}
|
728
|
+
|
729
|
+
input[type="file"].ui.file.input:focus + label.ui.button:not(.basic):not(.tertiary),
|
730
|
+
.ui.file.input input[type="file"]:focus + label.ui.button:not(.basic):not(.tertiary) {
|
731
|
+
background: @fileButtonBackgroundHover;
|
732
|
+
color: @hoveredTextColor;
|
733
|
+
&.inverted {
|
734
|
+
background: @fileButtonInvertedBackgroundHover;
|
735
|
+
}
|
736
|
+
}
|
737
|
+
|
738
|
+
/* this is related to existing buttons, so the button color variable is used here! */
|
739
|
+
& when not (@variationButtonColors = false) {
|
740
|
+
each(@variationButtonColors, {
|
741
|
+
@color: @value;
|
742
|
+
@h: @colors[@@color][hover];
|
743
|
+
@lh: @colors[@@color][lightHover];
|
744
|
+
|
745
|
+
input[type="file"].ui.file.input:focus + label.ui.@{color}.button:not(.basic):not(.tertiary),
|
746
|
+
.ui.file.input input[type="file"]:focus + label.ui.@{color}.button:not(.basic):not(.tertiary) {
|
747
|
+
background-color: @h;
|
748
|
+
color: @white;
|
749
|
+
&.inverted when (@variationButtonInverted) {
|
750
|
+
background-color: @lh;
|
751
|
+
}
|
752
|
+
}
|
753
|
+
});
|
754
|
+
}
|
755
|
+
|
756
|
+
& when not (@variationInputColors = false) {
|
757
|
+
each(@variationInputColors, {
|
758
|
+
@color: @value;
|
759
|
+
@c: @colors[@@color][color];
|
760
|
+
@h: @colors[@@color][hover];
|
761
|
+
|
762
|
+
input[type="file"].ui.@{color}.file.input::-webkit-file-upload-button,
|
763
|
+
.ui.@{color}.file.input input[type="file"]::-webkit-file-upload-button {
|
764
|
+
background: @c;
|
765
|
+
color: @white;
|
766
|
+
&:hover {
|
767
|
+
background: @h;
|
768
|
+
}
|
769
|
+
}
|
770
|
+
& when (@supportIE) {
|
771
|
+
input[type="file"].ui.@{color}.file.input::-ms-browse,
|
772
|
+
.ui.@{color}.file.input input[type="file"]::-ms-browse {
|
773
|
+
background: @c;
|
774
|
+
color: @white;
|
775
|
+
&:hover {
|
776
|
+
background: @h;
|
777
|
+
}
|
778
|
+
}
|
779
|
+
}
|
780
|
+
input[type="file"].ui.@{color}.file.input::file-selector-button,
|
781
|
+
.ui.@{color}.file.input input[type="file"]::file-selector-button {
|
782
|
+
background: @c;
|
783
|
+
color: @white;
|
784
|
+
&:hover {
|
785
|
+
background: @h;
|
786
|
+
}
|
787
|
+
}
|
788
|
+
});
|
789
|
+
}
|
797
790
|
}
|
798
791
|
|
799
|
-
|
792
|
+
/* --------------------
|
800
793
|
Size
|
801
|
-
|
794
|
+
--------------------- */
|
802
795
|
|
803
796
|
.ui.input {
|
804
|
-
|
797
|
+
font-size: @relativeMedium;
|
805
798
|
}
|
806
799
|
& when not (@variationInputSizes = false) {
|
807
|
-
|
808
|
-
|
809
|
-
|
810
|
-
|
811
|
-
|
812
|
-
|
800
|
+
each(@variationInputSizes, {
|
801
|
+
@s: @{value}InputSize;
|
802
|
+
.ui.@{value}.input {
|
803
|
+
font-size: @@s;
|
804
|
+
}
|
805
|
+
});
|
813
806
|
}
|
814
807
|
|
815
808
|
.loadUIOverrides();
|