fomantic-ui 2.10.0-beta.2 → 2.10.0-beta.4
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/.all-contributorsrc +9 -0
- package/CONTRIBUTING.md +4 -1
- package/CONTRIBUTORS.md +1 -0
- package/FAQ.md +7 -2
- package/README.md +1 -4
- package/ROADMAP.md +4 -4
- package/SECURITY.md +8 -7
- 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 +6 -6
- 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 -2
- package/dist/components/button.min.css +2 -2
- package/dist/components/calendar.css +1 -2
- package/dist/components/calendar.js +7 -7
- 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 -2
- package/dist/components/checkbox.js +1 -9
- package/dist/components/checkbox.min.css +2 -2
- package/dist/components/checkbox.min.js +2 -2
- package/dist/components/comment.css +1 -1
- package/dist/components/comment.min.css +1 -1
- package/dist/components/container.css +2 -4
- package/dist/components/container.min.css +2 -2
- package/dist/components/dimmer.css +1 -11
- package/dist/components/dimmer.js +4 -4
- package/dist/components/dimmer.min.css +2 -2
- package/dist/components/dimmer.min.js +1 -1
- package/dist/components/divider.css +1 -2
- package/dist/components/divider.min.css +2 -2
- package/dist/components/dropdown.css +24 -47
- package/dist/components/dropdown.js +30 -34
- package/dist/components/dropdown.min.css +2 -2
- package/dist/components/dropdown.min.js +2 -2
- package/dist/components/embed.css +1 -1
- package/dist/components/embed.js +2 -2
- package/dist/components/embed.min.css +1 -1
- package/dist/components/embed.min.js +1 -1
- package/dist/components/emoji.css +1 -1
- package/dist/components/emoji.min.css +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/flyout.css +2 -3
- package/dist/components/flyout.js +5 -45
- package/dist/components/flyout.min.css +2 -2
- package/dist/components/flyout.min.js +2 -2
- package/dist/components/form.css +5 -95
- package/dist/components/form.js +11 -16
- package/dist/components/form.min.css +2 -2
- package/dist/components/form.min.js +2 -2
- package/dist/components/grid.css +2 -58
- package/dist/components/grid.min.css +2 -2
- package/dist/components/header.css +1 -1
- package/dist/components/header.min.css +1 -1
- package/dist/components/icon.css +4 -4
- package/dist/components/icon.min.css +2 -2
- package/dist/components/image.css +1 -1
- package/dist/components/image.min.css +1 -1
- package/dist/components/input.css +1 -536
- 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 -3
- package/dist/components/list.min.css +2 -2
- package/dist/components/loader.css +1 -1
- package/dist/components/loader.min.css +1 -1
- package/dist/components/menu.css +1 -9
- package/dist/components/menu.min.css +2 -2
- package/dist/components/message.css +1 -1
- package/dist/components/message.min.css +1 -1
- package/dist/components/modal.css +5 -9
- package/dist/components/modal.js +6 -30
- package/dist/components/modal.min.css +2 -2
- package/dist/components/modal.min.js +2 -2
- package/dist/components/nag.css +1 -1
- package/dist/components/nag.js +2 -2
- 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 -2
- package/dist/components/popup.js +8 -8
- package/dist/components/popup.min.css +2 -2
- package/dist/components/popup.min.js +1 -1
- package/dist/components/progress.css +1 -1
- package/dist/components/progress.js +7 -7
- 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 +2 -9
- package/dist/components/search.js +8 -8
- package/dist/components/search.min.css +2 -2
- package/dist/components/search.min.js +2 -2
- package/dist/components/segment.css +2 -7
- package/dist/components/segment.min.css +2 -2
- package/dist/components/shape.css +1 -2
- package/dist/components/shape.js +2 -2
- package/dist/components/shape.min.css +2 -2
- package/dist/components/shape.min.js +1 -1
- package/dist/components/sidebar.css +2 -3
- package/dist/components/sidebar.js +3 -44
- package/dist/components/sidebar.min.css +2 -2
- package/dist/components/sidebar.min.js +2 -2
- package/dist/components/site.css +9 -25
- package/dist/components/site.js +1 -1
- package/dist/components/site.min.css +2 -2
- package/dist/components/site.min.js +1 -1
- package/dist/components/slider.css +1 -1
- package/dist/components/slider.js +5 -5
- package/dist/components/slider.min.css +1 -1
- package/dist/components/slider.min.js +2 -2
- package/dist/components/state.js +3 -3
- 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 +5 -5
- 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 +10 -10
- package/dist/components/tab.min.css +1 -1
- package/dist/components/tab.min.js +1 -1
- package/dist/components/table.css +3 -37
- package/dist/components/table.min.css +2 -2
- package/dist/components/text.css +1 -1
- package/dist/components/text.min.css +1 -1
- package/dist/components/toast.css +1 -3
- package/dist/components/toast.js +5 -5
- package/dist/components/toast.min.css +1 -1
- package/dist/components/toast.min.js +2 -2
- package/dist/components/transition.css +1 -1
- package/dist/components/transition.js +6 -6
- package/dist/components/transition.min.css +1 -1
- package/dist/components/transition.min.js +1 -1
- package/dist/components/visibility.js +2 -2
- package/dist/components/visibility.min.js +1 -1
- package/dist/semantic.css +92 -1100
- package/dist/semantic.js +142 -264
- package/dist/semantic.min.css +2 -2
- package/dist/semantic.min.js +2 -2
- package/package.json +3 -4
- package/src/README.md +3 -3
- package/src/definitions/behaviors/api.js +5 -5
- package/src/definitions/behaviors/form.js +10 -15
- package/src/definitions/behaviors/state.js +2 -2
- package/src/definitions/behaviors/visibility.js +1 -1
- package/src/definitions/collections/form.less +1 -13
- package/src/definitions/collections/grid.less +1 -61
- package/src/definitions/collections/menu.less +0 -11
- package/src/definitions/collections/table.less +1 -35
- package/src/definitions/elements/input.less +1 -61
- package/src/definitions/elements/segment.less +0 -6
- package/src/definitions/globals/site.less +2 -18
- package/src/definitions/modules/calendar.js +6 -6
- package/src/definitions/modules/checkbox.js +0 -8
- package/src/definitions/modules/dimmer.js +3 -3
- package/src/definitions/modules/dimmer.less +0 -9
- package/src/definitions/modules/dropdown.js +29 -33
- package/src/definitions/modules/dropdown.less +20 -42
- package/src/definitions/modules/embed.js +1 -1
- package/src/definitions/modules/flyout.js +4 -44
- package/src/definitions/modules/modal.js +5 -29
- package/src/definitions/modules/modal.less +1 -1
- package/src/definitions/modules/nag.js +1 -1
- package/src/definitions/modules/popup.js +7 -7
- package/src/definitions/modules/progress.js +6 -6
- package/src/definitions/modules/search.js +7 -7
- package/src/definitions/modules/search.less +0 -3
- package/src/definitions/modules/shape.js +1 -1
- package/src/definitions/modules/sidebar.js +2 -43
- package/src/definitions/modules/slider.js +4 -4
- package/src/definitions/modules/slider.less +1 -1
- package/src/definitions/modules/sticky.js +4 -4
- package/src/definitions/modules/tab.js +9 -9
- package/src/definitions/modules/toast.js +4 -4
- package/src/definitions/modules/toast.less +1 -1
- package/src/definitions/modules/transition.js +5 -5
- package/src/theme.less +0 -13
- package/src/themes/basic/elements/icon.variables +1 -1
- package/src/themes/default/collections/grid.variables +0 -30
- package/src/themes/default/collections/table.variables +1 -5
- package/src/themes/default/elements/icon.variables +3 -3
- package/src/themes/default/globals/site.variables +8 -15
- package/src/themes/default/globals/variation.variables +0 -1
- package/src/themes/default/modules/slider.variables +1 -1
- package/src/themes/github/elements/icon.variables +1 -1
- package/src/themes/material/elements/icon.variables +1 -1
- package/tasks/README.md +1 -1
- package/tasks/admin/components/create.js +1 -14
- package/tasks/admin/components/init.js +12 -37
- package/tasks/admin/components/update.js +7 -11
- package/tasks/admin/distributions/create.js +1 -11
- package/tasks/admin/distributions/init.js +10 -35
- package/tasks/admin/distributions/update.js +7 -8
- package/tasks/admin/publish.js +1 -1
- package/tasks/admin/register.js +3 -4
- package/tasks/admin/release.js +2 -2
- package/tasks/build/css.js +5 -5
- package/tasks/build/javascript.js +3 -3
- package/tasks/check-install.js +0 -1
- package/tasks/clean.js +5 -5
- package/tasks/collections/admin.js +1 -1
- package/tasks/collections/docs.js +2 -2
- package/tasks/config/admin/github.js +2 -10
- package/tasks/config/admin/templates/README.md +2 -2
- package/tasks/config/admin/templates/bower.json +2 -4
- package/tasks/config/admin/templates/composer.json +1 -1
- package/tasks/config/admin/templates/css-package.js +0 -1
- package/tasks/config/project/config.js +6 -6
- package/tasks/config/project/install.js +3 -4
- package/tasks/config/project/release.js +1 -1
- package/tasks/config/tasks.js +2 -9
- package/tasks/config/user.js +2 -4
- package/tasks/docs/metadata.js +8 -11
- package/tasks/docs/serve.js +3 -1
- package/tasks/install.js +14 -20
- package/tasks/rtl/watch.js +1 -1
- package/tasks/watch.js +4 -2
- package/types/fomantic-ui-calendar.d.ts +1 -1
- package/types/fomantic-ui-dropdown.d.ts +1 -1
- package/types/fomantic-ui-flyout.d.ts +1 -1
- package/types/fomantic-ui-form.d.ts +0 -7
- package/types/fomantic-ui-modal.d.ts +1 -1
- package/types/fomantic-ui-search.d.ts +6 -0
- package/types/fomantic-ui-toast.d.ts +1 -1
- package/src/themes/basic/assets/fonts/icons.woff +0 -0
- package/src/themes/default/assets/fonts/Lato-Bold.woff +0 -0
- package/src/themes/default/assets/fonts/Lato-BoldItalic.woff +0 -0
- package/src/themes/default/assets/fonts/Lato-Italic.woff +0 -0
- package/src/themes/default/assets/fonts/Lato-Regular.woff +0 -0
- package/src/themes/default/assets/fonts/LatoLatin-Bold.woff +0 -0
- package/src/themes/default/assets/fonts/LatoLatin-BoldItalic.woff +0 -0
- package/src/themes/default/assets/fonts/LatoLatin-Italic.woff +0 -0
- package/src/themes/default/assets/fonts/LatoLatin-Regular.woff +0 -0
- package/src/themes/default/assets/fonts/brand-icons.woff +0 -0
- package/src/themes/default/assets/fonts/icons.woff +0 -0
- package/src/themes/default/assets/fonts/outline-icons.woff +0 -0
- package/src/themes/github/assets/fonts/octicons.woff +0 -0
- package/src/themes/material/assets/fonts/icons.woff +0 -0
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "fomantic-ui",
|
3
|
-
"version": "2.10.0-beta.
|
3
|
+
"version": "2.10.0-beta.4+fcf090f",
|
4
4
|
"description": "Fomantic empowers designers and developers by creating a shared vocabulary for UI.",
|
5
5
|
"keywords": [
|
6
6
|
"fomantic-ui",
|
@@ -42,8 +42,8 @@
|
|
42
42
|
"@octokit/core": "^6.1.4",
|
43
43
|
"@octokit/rest": "^21.1.1",
|
44
44
|
"browserslist": "^4.21.4",
|
45
|
-
"del": "^6.1.1",
|
46
45
|
"extend": "^3.0.2",
|
46
|
+
"fs-extra": "^11.3.0",
|
47
47
|
"gulp": "^5.0.0",
|
48
48
|
"gulp-autoprefixer": "^8.0.0",
|
49
49
|
"gulp-chmod": "^3.0.0",
|
@@ -65,13 +65,12 @@
|
|
65
65
|
"less": "^3.12.0 || ^4.0.0",
|
66
66
|
"map-stream": "^0.1.0",
|
67
67
|
"merge-stream": "^2.0.0",
|
68
|
-
"mkdirp": "^1.0.4",
|
69
68
|
"normalize-path": "^3.0.0",
|
70
69
|
"ordered-read-streams": "^1.0.1",
|
71
70
|
"replace-ext": "^1.0.0",
|
72
71
|
"require-dot-file": "^0.4.0",
|
73
72
|
"wrench-sui": "^0.0.3",
|
74
|
-
"
|
73
|
+
"js-yaml": "^4.1.0"
|
75
74
|
},
|
76
75
|
"devDependencies": {
|
77
76
|
"@internal/eslint-plugin": "file:.eslint",
|
package/src/README.md
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
|
3
3
|
### Built-In Tools
|
4
4
|
|
5
|
-
From the Fomantic directory you can
|
5
|
+
From the Fomantic directory you can set up gulp to build Fomantic by running.
|
6
6
|
|
7
7
|
```bash
|
8
8
|
npm install
|
@@ -68,7 +68,7 @@ filename | usage | Initial Name
|
|
68
68
|
|
69
69
|
You will only need to use Fomantic's build tools while refining your UI. When designing pages, you can rely on the compiled css packages in `dist/`.
|
70
70
|
|
71
|
-
When creating your UI you can try <a href="http://www.learnsemantic.com/themes/creating.html">downloading different themes</a>, adjusting your <a href="http://www.learnsemantic.com/developing/customizing.html#setting-global-variables">site-wide settings</a> (font-family, colors, etc) and tweaking components in your site's <a href="http://www.learnsemantic.com/developing/customizing.html#designing-for-the-long-now">component overrides</a>.
|
71
|
+
When creating your UI you can try <a href="http://www.learnsemantic.com/themes/creating.html">downloading different themes</a>, adjusting your <a href="http://www.learnsemantic.com/developing/customizing.html#setting-global-variables">site-wide settings</a> (font-family, colors, etc.) and tweaking components in your site's <a href="http://www.learnsemantic.com/developing/customizing.html#designing-for-the-long-now">component overrides</a>.
|
72
72
|
|
73
73
|
Files in the `examples/` folder of your project can be useful for testing out changes in your UI. For example, you might run `gulp watch` download a new theme to `src/site/themes/` then adjust your `theme.config` file with the name of the new theme and refresh `examples/kitchensink.html` to inspect changes in the theme.
|
74
74
|
|
@@ -120,7 +120,7 @@ You may also specify your own custom LESS in `site/elements/button.overrides`. T
|
|
120
120
|
|
121
121
|
You can modify `theme.config` to use any prepackaged theme available in `src/themes/`.
|
122
122
|
|
123
|
-
For example you can modify `theme.config` to use a `github` button theme by changing
|
123
|
+
For example, you can modify `theme.config` to use a `github` button theme by changing
|
124
124
|
|
125
125
|
```less
|
126
126
|
@button: 'github';
|
@@ -211,7 +211,7 @@
|
|
211
211
|
// call beforesend and get any settings changes
|
212
212
|
requestSettings = module.get.settings();
|
213
213
|
|
214
|
-
// check if before send
|
214
|
+
// check if before send canceled request
|
215
215
|
if (requestSettings === false) {
|
216
216
|
module.cancelled = true;
|
217
217
|
module.error(error.beforeSend);
|
@@ -767,8 +767,8 @@
|
|
767
767
|
},
|
768
768
|
errorFromRequest: function (response, status, httpMessage) {
|
769
769
|
return $.isPlainObject(response) && response.error !== undefined
|
770
|
-
? response.error // use
|
771
|
-
: (settings.error[status] !== undefined // use server error message
|
770
|
+
? response.error // use JSON error message
|
771
|
+
: (settings.error[status] !== undefined // use the server error message
|
772
772
|
? settings.error[status]
|
773
773
|
: httpMessage);
|
774
774
|
},
|
@@ -1125,7 +1125,7 @@
|
|
1125
1125
|
// whether to add default data to url data
|
1126
1126
|
defaultData: true,
|
1127
1127
|
|
1128
|
-
// whether to serialize closest form
|
1128
|
+
// whether to serialize the closest form
|
1129
1129
|
// use true to convert complex named keys like a[b][1][c][] into a nested object
|
1130
1130
|
// use 'formdata' for formdata web api
|
1131
1131
|
serializeForm: false,
|
@@ -1162,7 +1162,7 @@
|
|
1162
1162
|
// after request
|
1163
1163
|
onResponse: false, // function(response) { },
|
1164
1164
|
|
1165
|
-
// response was successful
|
1165
|
+
// response was successful if JSON passed validation
|
1166
1166
|
onSuccess: function (response, $module) {},
|
1167
1167
|
|
1168
1168
|
// request finished without aborting
|
@@ -377,10 +377,10 @@
|
|
377
377
|
if (currentValue === undefined || currentValue === null) {
|
378
378
|
currentValue = '';
|
379
379
|
} else if (Array.isArray(currentValue)) {
|
380
|
-
// multiple select values are returned as arrays which are never equal, so do string conversion first
|
380
|
+
// multiple select values are returned as arrays which are never equal, so do the string conversion first
|
381
381
|
currentValue = currentValue.toString();
|
382
382
|
}
|
383
|
-
// Boolean values can be encoded as "true/false" or "True/False" depending on underlying frameworks so we need a case
|
383
|
+
// Boolean values can be encoded as "true/false" or "True/False" depending on underlying frameworks, so we need a case-insensitive comparison
|
384
384
|
var boolRegex = /^(true|false)$/i;
|
385
385
|
var isBoolValue = boolRegex.test(initialValue) && boolRegex.test(currentValue);
|
386
386
|
if (isBoolValue) {
|
@@ -494,7 +494,7 @@
|
|
494
494
|
event.returnValue = settings.text.leavingMessage;
|
495
495
|
}
|
496
496
|
|
497
|
-
// For
|
497
|
+
// For older...
|
498
498
|
return settings.text.leavingMessage;
|
499
499
|
}
|
500
500
|
},
|
@@ -1315,7 +1315,7 @@
|
|
1315
1315
|
if (typeof settings.errorFocus === 'string') {
|
1316
1316
|
$focusElement = $(document).find(settings.errorFocus);
|
1317
1317
|
hasTabIndex = $focusElement.is('[tabindex]');
|
1318
|
-
// to be able to focus/scroll into non
|
1318
|
+
// to be able to focus/scroll into non-input elements, we need a tabindex
|
1319
1319
|
if (!hasTabIndex) {
|
1320
1320
|
$focusElement.attr('tabindex', -1);
|
1321
1321
|
}
|
@@ -1843,11 +1843,6 @@
|
|
1843
1843
|
return !(value === undefined || value === '' || (Array.isArray(value) && value.length === 0));
|
1844
1844
|
},
|
1845
1845
|
|
1846
|
-
/* Deprecated */
|
1847
|
-
empty: function (value) {
|
1848
|
-
return $.fn.form.settings.rules.notEmpty(value);
|
1849
|
-
},
|
1850
|
-
|
1851
1846
|
// checkbox checked
|
1852
1847
|
checked: function () {
|
1853
1848
|
return $(this).filter(':checked').length > 0;
|
@@ -1858,7 +1853,7 @@
|
|
1858
1853
|
return $.fn.form.settings.regExp.email.test(value);
|
1859
1854
|
},
|
1860
1855
|
|
1861
|
-
// value is most likely url
|
1856
|
+
// value is most likely the url
|
1862
1857
|
url: function (value) {
|
1863
1858
|
return $.fn.form.settings.regExp.url.test(value);
|
1864
1859
|
},
|
@@ -1934,7 +1929,7 @@
|
|
1934
1929
|
);
|
1935
1930
|
},
|
1936
1931
|
|
1937
|
-
// is valid number (with decimal)
|
1932
|
+
// is it a valid number (with decimal)
|
1938
1933
|
decimal: function (value, range) {
|
1939
1934
|
return $.fn.form.settings.rules.range(value, range, 'decimal');
|
1940
1935
|
},
|
@@ -1944,7 +1939,7 @@
|
|
1944
1939
|
return $.fn.form.settings.rules.range(value, range, 'number');
|
1945
1940
|
},
|
1946
1941
|
|
1947
|
-
// is value (case
|
1942
|
+
// is value (case-insensitive)
|
1948
1943
|
is: function (value, text) {
|
1949
1944
|
text = typeof text === 'string'
|
1950
1945
|
? text.toLowerCase()
|
@@ -1961,7 +1956,7 @@
|
|
1961
1956
|
return value == text;
|
1962
1957
|
},
|
1963
1958
|
|
1964
|
-
// value is not another value (case
|
1959
|
+
// value is not another value (case-insensitive)
|
1965
1960
|
not: function (value, notValue) {
|
1966
1961
|
value = typeof value === 'string'
|
1967
1962
|
? value.toLowerCase()
|
@@ -1973,7 +1968,7 @@
|
|
1973
1968
|
return value != notValue;
|
1974
1969
|
},
|
1975
1970
|
|
1976
|
-
// value is not another value (case
|
1971
|
+
// value is not another value (case-sensitive)
|
1977
1972
|
notExactly: function (value, notValue) {
|
1978
1973
|
return value != notValue;
|
1979
1974
|
},
|
@@ -2038,7 +2033,7 @@
|
|
2038
2033
|
: false;
|
2039
2034
|
},
|
2040
2035
|
|
2041
|
-
// different
|
2036
|
+
// different from another field
|
2042
2037
|
different: function (value, identifier, module) {
|
2043
2038
|
var matchingValue = module.get.value(identifier, true);
|
2044
2039
|
|
@@ -73,7 +73,7 @@
|
|
73
73
|
initialize: function () {
|
74
74
|
module.verbose('Initializing module');
|
75
75
|
|
76
|
-
// allow module to guess desired state based on element
|
76
|
+
// allow module to guess the desired state based on the element
|
77
77
|
if (settings.automatic) {
|
78
78
|
module.add.defaults();
|
79
79
|
}
|
@@ -615,7 +615,7 @@
|
|
615
615
|
// whether to automatically map default states
|
616
616
|
automatic: true,
|
617
617
|
|
618
|
-
// activate / deactivate changes all elements instantiated at same time
|
618
|
+
// activate / deactivate changes all elements instantiated at the same time
|
619
619
|
sync: false,
|
620
620
|
|
621
621
|
// default flash text duration, used for temporarily changing text of an element
|
@@ -1211,7 +1211,7 @@
|
|
1211
1211
|
// whether to refresh calculations after page resize event
|
1212
1212
|
refreshOnResize: true,
|
1213
1213
|
|
1214
|
-
// should call callbacks on refresh event (resize, etc)
|
1214
|
+
// should call callbacks on refresh event (resize, etc.)
|
1215
1215
|
checkOnRefresh: true,
|
1216
1216
|
|
1217
1217
|
// callback should only occur one time
|
@@ -406,9 +406,6 @@
|
|
406
406
|
.ui.form ::placeholder {
|
407
407
|
color: @inputPlaceholderColor;
|
408
408
|
}
|
409
|
-
.ui.form :-ms-input-placeholder when (@supportIE) {
|
410
|
-
color: @inputPlaceholderColor !important;
|
411
|
-
}
|
412
409
|
.ui.form ::-moz-placeholder {
|
413
410
|
opacity: 1;
|
414
411
|
}
|
@@ -416,9 +413,6 @@
|
|
416
413
|
.ui.form :focus::placeholder {
|
417
414
|
color: @inputPlaceholderFocusColor;
|
418
415
|
}
|
419
|
-
.ui.form :focus:-ms-input-placeholder when (@supportIE) {
|
420
|
-
color: @inputPlaceholderFocusColor !important;
|
421
|
-
}
|
422
416
|
|
423
417
|
/* --------------------
|
424
418
|
Focus
|
@@ -645,7 +639,7 @@
|
|
645
639
|
border-color: @formStates[@@state][inputHoverBorderColor];
|
646
640
|
}
|
647
641
|
|
648
|
-
/* Preserve Native Select
|
642
|
+
/* Preserve Native Select Styling */
|
649
643
|
.ui.form .field.@{state} select {
|
650
644
|
-webkit-appearance: menulist-button;
|
651
645
|
}
|
@@ -675,17 +669,11 @@
|
|
675
669
|
.ui.form .@{state} ::placeholder {
|
676
670
|
color: @formStates[@@state][inputPlaceholderColor];
|
677
671
|
}
|
678
|
-
.ui.form .@{state} :-ms-input-placeholder when (@supportIE) {
|
679
|
-
color: @formStates[@@state][inputPlaceholderColor] !important;
|
680
|
-
}
|
681
672
|
|
682
673
|
.ui.form .@{state} .ui.dropdown > input:focus ~ .default.text,
|
683
674
|
.ui.form .@{state} :focus::placeholder {
|
684
675
|
color: @formStates[@@state][inputPlaceholderFocusColor];
|
685
676
|
}
|
686
|
-
.ui.form .@{state} :focus:-ms-input-placeholder when (@supportIE) {
|
687
|
-
color: @formStates[@@state][inputPlaceholderFocusColor] !important;
|
688
|
-
}
|
689
677
|
|
690
678
|
/*------------------
|
691
679
|
Dropdown State
|
@@ -160,58 +160,6 @@
|
|
160
160
|
Variations
|
161
161
|
*******************************/
|
162
162
|
|
163
|
-
& when (@variationGridPage) {
|
164
|
-
/* -----------------------
|
165
|
-
Page Grid
|
166
|
-
------------------------- */
|
167
|
-
|
168
|
-
@media only screen and (max-width: @largestMobileScreen) {
|
169
|
-
.ui.page.grid {
|
170
|
-
width: @mobileWidth;
|
171
|
-
padding-left: @mobileGutter;
|
172
|
-
padding-right: @mobileGutter;
|
173
|
-
margin-left: 0;
|
174
|
-
margin-right: 0;
|
175
|
-
}
|
176
|
-
}
|
177
|
-
@media only screen and (min-width: @tabletBreakpoint) and (max-width: @largestTabletScreen) {
|
178
|
-
.ui.page.grid {
|
179
|
-
width: @tabletWidth;
|
180
|
-
margin-left: @tabletMargin;
|
181
|
-
margin-right: @tabletMargin;
|
182
|
-
padding-left: @tabletGutter;
|
183
|
-
padding-right: @tabletGutter;
|
184
|
-
}
|
185
|
-
}
|
186
|
-
@media only screen and (min-width: @computerBreakpoint) and (max-width: @largestSmallMonitor) {
|
187
|
-
.ui.page.grid {
|
188
|
-
width: @computerWidth;
|
189
|
-
margin-left: @computerMargin;
|
190
|
-
margin-right: @computerMargin;
|
191
|
-
padding-left: @computerGutter;
|
192
|
-
padding-right: @computerGutter;
|
193
|
-
}
|
194
|
-
}
|
195
|
-
@media only screen and (min-width: @largeMonitorBreakpoint) and (max-width: @largestLargeMonitor) {
|
196
|
-
.ui.page.grid {
|
197
|
-
width: @largeMonitorWidth;
|
198
|
-
margin-left: @largeMonitorMargin;
|
199
|
-
margin-right: @largeMonitorMargin;
|
200
|
-
padding-left: @largeMonitorGutter;
|
201
|
-
padding-right: @largeMonitorGutter;
|
202
|
-
}
|
203
|
-
}
|
204
|
-
@media only screen and (min-width: @widescreenMonitorBreakpoint) {
|
205
|
-
.ui.page.grid {
|
206
|
-
width: @widescreenMonitorWidth;
|
207
|
-
margin-left: @widescreenMargin;
|
208
|
-
margin-right: @widescreenMargin;
|
209
|
-
padding-left: @widescreenMonitorGutter;
|
210
|
-
padding-right: @widescreenMonitorGutter;
|
211
|
-
}
|
212
|
-
}
|
213
|
-
}
|
214
|
-
|
215
163
|
/* -------------------
|
216
164
|
Column Count
|
217
165
|
-------------------- */
|
@@ -338,13 +286,6 @@
|
|
338
286
|
width: @sixteenColumn !important;
|
339
287
|
}
|
340
288
|
|
341
|
-
& when (@variationGridCelled) and (@variationGridPage) {
|
342
|
-
/* Celled Page */
|
343
|
-
.ui.celled.page.grid {
|
344
|
-
box-shadow: none;
|
345
|
-
}
|
346
|
-
}
|
347
|
-
|
348
289
|
& when (@variationGridWide) {
|
349
290
|
/* -------------------
|
350
291
|
Column Width
|
@@ -1724,8 +1665,7 @@
|
|
1724
1665
|
}
|
1725
1666
|
|
1726
1667
|
/* Don't pad inside segment or nested grid */
|
1727
|
-
.ui.grid .ui.stackable.grid
|
1728
|
-
.ui.segment@{notVertical} .ui.stackable.page.grid {
|
1668
|
+
.ui.grid .ui.stackable.grid {
|
1729
1669
|
margin-left: -(@stackableGutter / 2);
|
1730
1670
|
margin-right: -(@stackableGutter / 2);
|
1731
1671
|
}
|
@@ -296,11 +296,6 @@
|
|
296
296
|
}
|
297
297
|
.ui.vertical.menu .dropdown.item .menu {
|
298
298
|
left: 100%;
|
299
|
-
& when (@supportIE) {
|
300
|
-
/* IE needs 0, all others support max-content to show dropdown icon inline, so keep both settings! */
|
301
|
-
min-width: 0;
|
302
|
-
}
|
303
|
-
|
304
299
|
min-width: max-content;
|
305
300
|
margin: 0 0 0 @dropdownMenuDistance;
|
306
301
|
box-shadow: @dropdownVerticalMenuBoxShadow;
|
@@ -1598,12 +1593,6 @@ Floated Menu / Item
|
|
1598
1593
|
}
|
1599
1594
|
& when (@variationMenuVertical) {
|
1600
1595
|
.ui.compact.vertical.menu {
|
1601
|
-
& when (@supportIE) {
|
1602
|
-
/* IE hack to make dropdown icons appear inline */
|
1603
|
-
// stylelint-disable-next-line value-no-vendor-prefix
|
1604
|
-
display: -ms-inline-flexbox !important;
|
1605
|
-
}
|
1606
|
-
|
1607
1596
|
display: inline-block;
|
1608
1597
|
}
|
1609
1598
|
}
|
@@ -519,32 +519,6 @@
|
|
519
519
|
}
|
520
520
|
}
|
521
521
|
|
522
|
-
& when (@supportIE) {
|
523
|
-
/* IE scrollbar color needs hex values */
|
524
|
-
@media all and (-ms-high-contrast: none) {
|
525
|
-
.ui.scrolling.table > thead,
|
526
|
-
.ui.scrolling.table > tfoot {
|
527
|
-
scrollbar-face-color: currentColor;
|
528
|
-
scrollbar-shadow-color: currentColor;
|
529
|
-
scrollbar-track-color: currentColor;
|
530
|
-
scrollbar-arrow-color: currentColor;
|
531
|
-
}
|
532
|
-
.ui.scrolling.table > thead {
|
533
|
-
color: @headerBackgroundHex;
|
534
|
-
}
|
535
|
-
.ui.scrolling.table > tfoot {
|
536
|
-
color: @footerBackgroundHex;
|
537
|
-
}
|
538
|
-
& when (@variationTableInverted) {
|
539
|
-
.ui.inverted.scrolling.table > thead {
|
540
|
-
color: @invertedHeaderBackgroundHex;
|
541
|
-
}
|
542
|
-
.ui.inverted.scrolling.table > tfoot {
|
543
|
-
color: @invertedFooterBackgroundHex;
|
544
|
-
}
|
545
|
-
}
|
546
|
-
}
|
547
|
-
}
|
548
522
|
& when (@variationTableInverted) {
|
549
523
|
.ui.inverted.scrolling.table > tbody::-webkit-scrollbar-track {
|
550
524
|
background: @trackInvertedBackground;
|
@@ -558,15 +532,7 @@
|
|
558
532
|
.ui.inverted.scrolling.table > tbody::-webkit-scrollbar-thumb:hover {
|
559
533
|
background: @thumbInvertedHoverBackground;
|
560
534
|
}
|
561
|
-
|
562
|
-
.ui.inverted.scrolling.table > tbody {
|
563
|
-
/* IE11 */
|
564
|
-
scrollbar-face-color: @thumbInvertedBackgroundHex;
|
565
|
-
scrollbar-shadow-color: @thumbInvertedBackgroundHex;
|
566
|
-
scrollbar-track-color: @trackInvertedBackgroundHex;
|
567
|
-
scrollbar-arrow-color: @trackInvertedBackgroundHex;
|
568
|
-
}
|
569
|
-
}
|
535
|
+
|
570
536
|
@supports (-moz-appearance: none) {
|
571
537
|
.ui.inverted.scrolling.table > tbody {
|
572
538
|
/* firefox: first color thumb, second track */
|
@@ -78,9 +78,6 @@
|
|
78
78
|
.ui.input > input::-moz-placeholder {
|
79
79
|
opacity: 1;
|
80
80
|
}
|
81
|
-
.ui.input > input:-ms-input-placeholder when (@supportIE) {
|
82
|
-
color: @placeholderColor;
|
83
|
-
}
|
84
81
|
|
85
82
|
/*******************************
|
86
83
|
States
|
@@ -166,12 +163,6 @@
|
|
166
163
|
.ui.input > input:focus::placeholder {
|
167
164
|
color: @placeholderFocusColor;
|
168
165
|
}
|
169
|
-
& when (@supportIE) {
|
170
|
-
.ui.input.focus > input:-ms-input-placeholder,
|
171
|
-
.ui.input > input:focus:-ms-input-placeholder {
|
172
|
-
color: @placeholderFocusColor;
|
173
|
-
}
|
174
|
-
}
|
175
166
|
|
176
167
|
& when not (@variationInputStates = false) {
|
177
168
|
/* --------------------
|
@@ -193,29 +184,17 @@
|
|
193
184
|
color: @formStates[@@state][color];
|
194
185
|
box-shadow: @formStates[@@state][boxShadow];
|
195
186
|
}
|
196
|
-
.ui.input > input:not(:-ms-input-placeholder):invalid when (@supportIE){
|
197
|
-
background-color: @formStates[@@state][background];
|
198
|
-
border-color: @formStates[@@state][borderColor];
|
199
|
-
color: @formStates[@@state][color];
|
200
|
-
box-shadow: @formStates[@@state][boxShadow];
|
201
|
-
}
|
202
187
|
}
|
203
188
|
|
204
189
|
/* Placeholder */
|
205
190
|
.ui.input.@{state} > input::placeholder {
|
206
191
|
color: @formStates[@@state][inputPlaceholderColor];
|
207
192
|
}
|
208
|
-
.ui.input.@{state} > input:-ms-input-placeholder when (@supportIE) {
|
209
|
-
color: @formStates[@@state][inputPlaceholderColor] !important;
|
210
|
-
}
|
211
193
|
|
212
194
|
/* Focused Placeholder */
|
213
195
|
.ui.input.@{state} > input:focus::placeholder {
|
214
196
|
color: @formStates[@@state][inputPlaceholderFocusColor];
|
215
197
|
}
|
216
|
-
.ui.input.@{state} > input:focus:-ms-input-placeholder when (@supportIE){
|
217
|
-
color: @formStates[@@state][inputPlaceholderFocusColor] !important;
|
218
|
-
}
|
219
198
|
});
|
220
199
|
}
|
221
200
|
|
@@ -265,9 +244,6 @@
|
|
265
244
|
.ui.transparent.inverted.input > input::placeholder {
|
266
245
|
color: @transparentInvertedPlaceholderColor;
|
267
246
|
}
|
268
|
-
.ui.transparent.inverted.input > input:-ms-input-placeholder when (@supportIE) {
|
269
|
-
color: @transparentInvertedPlaceholderColor;
|
270
|
-
}
|
271
247
|
}
|
272
248
|
}
|
273
249
|
|
@@ -675,33 +651,6 @@
|
|
675
651
|
color: @fileButtonTextColor;
|
676
652
|
}
|
677
653
|
}
|
678
|
-
& when (@supportIE) {
|
679
|
-
.ui.action.file.input input[type="file"]::-ms-browse {
|
680
|
-
display: none;
|
681
|
-
}
|
682
|
-
.ui.form .field input[type="file"]::-ms-browse,
|
683
|
-
.ui.file.input input[type="file"]::-ms-browse {
|
684
|
-
border: none;
|
685
|
-
cursor: pointer;
|
686
|
-
padding: @padding;
|
687
|
-
margin: 0;
|
688
|
-
background: @fileButtonBackground;
|
689
|
-
font-weight: @fileButtonFontWeight;
|
690
|
-
color: @fileButtonTextColor;
|
691
|
-
&:hover {
|
692
|
-
background: @fileButtonBackgroundHover;
|
693
|
-
color: @fileButtonTextColor;
|
694
|
-
}
|
695
|
-
}
|
696
|
-
|
697
|
-
/* IE needs additional styling for input field :S */
|
698
|
-
@media all and (-ms-high-contrast: none) {
|
699
|
-
.ui.file.input > input[type="file"],
|
700
|
-
input[type="file"].ui.file.input {
|
701
|
-
padding: 0 !important;
|
702
|
-
}
|
703
|
-
}
|
704
|
-
}
|
705
654
|
|
706
655
|
.ui.action.file.input input[type="file"]::file-selector-button {
|
707
656
|
display: none;
|
@@ -776,16 +725,7 @@
|
|
776
725
|
background: @h;
|
777
726
|
}
|
778
727
|
}
|
779
|
-
|
780
|
-
input[type="file"].ui.@{color}.file.input::-ms-browse,
|
781
|
-
.ui.@{color}.file.input input[type="file"]::-ms-browse {
|
782
|
-
background: @c;
|
783
|
-
color: @white;
|
784
|
-
&:hover {
|
785
|
-
background: @h;
|
786
|
-
}
|
787
|
-
}
|
788
|
-
}
|
728
|
+
|
789
729
|
input[type="file"].ui.@{color}.file.input::file-selector-button,
|
790
730
|
.ui.@{color}.file.input input[type="file"]::file-selector-button {
|
791
731
|
background: @c;
|
@@ -94,7 +94,6 @@
|
|
94
94
|
}
|
95
95
|
|
96
96
|
/* Grid */
|
97
|
-
.ui.page.grid.segment,
|
98
97
|
.ui.grid > .row > .ui.segment.column,
|
99
98
|
.ui.grid > .ui.segment.column {
|
100
99
|
padding-top: @pageGridMargin;
|
@@ -484,11 +483,6 @@
|
|
484
483
|
/* Horizontal Segment */
|
485
484
|
.ui.horizontal.segments@{notCompact} > .segment@{notCompact} {
|
486
485
|
flex: 1 1 auto;
|
487
|
-
& when (@supportIE) {
|
488
|
-
// https://github.com/Semantic-Org/Semantic-UI/issues/2550
|
489
|
-
// stylelint-disable-next-line property-no-vendor-prefix
|
490
|
-
-ms-flex: 1 1 0;
|
491
|
-
}
|
492
486
|
}
|
493
487
|
.ui.horizontal.segments > .segment {
|
494
488
|
margin: 0;
|
@@ -148,15 +148,7 @@ a:hover {
|
|
148
148
|
body ::-webkit-scrollbar-thumb:hover {
|
149
149
|
background: @thumbHoverBackground;
|
150
150
|
}
|
151
|
-
|
152
|
-
body .ui {
|
153
|
-
/* IE11 */
|
154
|
-
scrollbar-face-color: @thumbBackgroundHex;
|
155
|
-
scrollbar-shadow-color: @thumbBackgroundHex;
|
156
|
-
scrollbar-track-color: @trackBackgroundHex;
|
157
|
-
scrollbar-arrow-color: @trackBackgroundHex;
|
158
|
-
}
|
159
|
-
}
|
151
|
+
|
160
152
|
@supports (-moz-appearance: none) {
|
161
153
|
body .ui {
|
162
154
|
/* firefox: first color thumb, second track */
|
@@ -178,15 +170,7 @@ a:hover {
|
|
178
170
|
body .ui.inverted:not(.dimmer)::-webkit-scrollbar-thumb:hover {
|
179
171
|
background: @thumbInvertedHoverBackground;
|
180
172
|
}
|
181
|
-
|
182
|
-
body .ui.inverted:not(.dimmer) {
|
183
|
-
/* IE11 */
|
184
|
-
scrollbar-face-color: @thumbInvertedBackgroundHex;
|
185
|
-
scrollbar-shadow-color: @thumbInvertedBackgroundHex;
|
186
|
-
scrollbar-track-color: @trackInvertedBackgroundHex;
|
187
|
-
scrollbar-arrow-color: @trackInvertedBackgroundHex;
|
188
|
-
}
|
189
|
-
}
|
173
|
+
|
190
174
|
@supports (-moz-appearance: none) {
|
191
175
|
body .ui.inverted:not(.dimmer) {
|
192
176
|
/* firefox: first color thumb, second track */
|
@@ -149,7 +149,7 @@
|
|
149
149
|
$container = $('<div/>', { id: module.popupId }).addClass(className.popup).appendTo($document.find(settings.context));
|
150
150
|
} else {
|
151
151
|
// prepend the popup element to the activator's parent so that it has less chance of messing with
|
152
|
-
// the styling (
|
152
|
+
// the styling (e.g., input action button needs to be the last child to have the correct border radius)
|
153
153
|
var
|
154
154
|
$activatorParent = $activator.parent(),
|
155
155
|
domPositionFunction = $activatorParent.closest(selector.append).length > 0 ? 'appendTo' : 'prependTo'
|
@@ -631,7 +631,7 @@
|
|
631
631
|
}
|
632
632
|
var parent = target.parent();
|
633
633
|
if (parent.data(metadata.date) || parent.data(metadata.focusDate) || parent.data(metadata.mode)) {
|
634
|
-
// clicked on a child element, switch to parent (used when clicking directly on prev/next <i> icon element)
|
634
|
+
// clicked on a child element, switch to parent (used when clicking directly on the prev/next <i> icon element)
|
635
635
|
target = parent;
|
636
636
|
}
|
637
637
|
var date = target.data(metadata.date);
|
@@ -1623,12 +1623,12 @@
|
|
1623
1623
|
|
1624
1624
|
context: false,
|
1625
1625
|
|
1626
|
-
type: 'datetime', // picker type
|
1626
|
+
type: 'datetime', // picker type. can be 'datetime', 'date', 'time', 'month', or 'year'
|
1627
1627
|
firstDayOfWeek: 0, // day for first day column (0 = Sunday)
|
1628
1628
|
constantHeight: true, // add rows to shorter months to keep day calendar height consistent (6 rows)
|
1629
1629
|
today: false, // show a 'today/now' button at the bottom of the calendar
|
1630
1630
|
closable: true, // close the popup after selecting a date/time
|
1631
|
-
monthFirst:
|
1631
|
+
monthFirst: false, // month before day when parsing date from a text
|
1632
1632
|
touchReadonly: true, // set input to readonly on touch devices
|
1633
1633
|
inline: false, // create the calendar inline instead of inside a popup
|
1634
1634
|
on: null, // when to show the popup (defaults to 'focus' for input, 'click' for others)
|
@@ -1645,7 +1645,7 @@
|
|
1645
1645
|
multiMonth: 1, // show multiple months when in 'day' mode
|
1646
1646
|
monthOffset: 0, // position current month by offset when multimonth > 1
|
1647
1647
|
minTimeGap: 5,
|
1648
|
-
showWeekNumbers: false, // show Number of
|
1648
|
+
showWeekNumbers: false, // show Number of Weeks at the very first column of a dayView
|
1649
1649
|
disabledHours: [], // specific hour(s) which won't be selectable and contain additional information.
|
1650
1650
|
disabledDates: [], // specific day(s) which won't be selectable and contain additional information.
|
1651
1651
|
disabledDaysOfWeek: [], // day(s) which won't be selectable(s) (0 = Sunday)
|
@@ -1940,7 +1940,7 @@
|
|
1940
1940
|
|
1941
1941
|
var date = new Date(year, month - 1, day, hour, minute);
|
1942
1942
|
if (date.getMonth() !== month - 1 || date.getFullYear() !== year) {
|
1943
|
-
// month or year don't match up, switch to last day of the month
|
1943
|
+
// month or year don't match up, switch to the last day of the month
|
1944
1944
|
date = new Date(year, month, 0, hour, minute);
|
1945
1945
|
}
|
1946
1946
|
|