From ca3a3013a68eb005965e9a34df4ecff4eedefbdf Mon Sep 17 00:00:00 2001 From: jlukic Date: Wed, 8 Jul 2015 12:18:42 -0400 Subject: [PATCH 01/20] #1369 Popups should not preserve content by default --- src/definitions/modules/popup.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/definitions/modules/popup.js b/src/definitions/modules/popup.js index 16360ab44..a5eaecaef 100644 --- a/src/definitions/modules/popup.js +++ b/src/definitions/modules/popup.js @@ -1219,7 +1219,7 @@ $.fn.popup.settings = { inline : false, // popup should be removed from page on hide - preserve : true, + preserve : false, // popup should not close when being hovered on hoverable : false, From a99f26a288992b10585921128ec33ae57f1d8aaf Mon Sep 17 00:00:00 2001 From: jlukic Date: Wed, 8 Jul 2015 12:20:24 -0400 Subject: [PATCH 02/20] #1369 rlsnotes --- RELEASE-NOTES.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/RELEASE-NOTES.md b/RELEASE-NOTES.md index 73e444722..ac3915184 100644 --- a/RELEASE-NOTES.md +++ b/RELEASE-NOTES.md @@ -1,5 +1,9 @@ ## RELEASE NOTES +### Version 2.0.3 - July 8, 2015 + +- **Popup** - Popup `preserve` setting (which preserves popup in DOM to avoid regenerating on each show/hide) was set to `true` by default causing generated popups to remain in DOM. #1369 + ### Version 2.0.2 - July 7, 2015 **[Reported Bugs](https://github.com/Semantic-Org/Semantic-UI/issues?q=is%3Aissue+milestone%3A2.0.2+is%3Aclosed)** From c7e16efe3db9342ee29a6f7fd5655406bf56547a Mon Sep 17 00:00:00 2001 From: jlukic Date: Thu, 9 Jul 2015 16:33:24 -0400 Subject: [PATCH 03/20] Metadata can now be used to parse content links in docs --- tasks/docs/metadata.js | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/tasks/docs/metadata.js b/tasks/docs/metadata.js index 95009e7db..bfc86305d 100644 --- a/tasks/docs/metadata.js +++ b/tasks/docs/metadata.js @@ -51,7 +51,7 @@ function parser(file, callback) { var /** @type {string} */ text = String(file.contents.toString('utf8')), - lines = text.split('\n') + lines = text.split('\n'), filename = file.path.substring(0, file.path.length - 4), key = 'server/documents', position = filename.indexOf(key) @@ -106,11 +106,12 @@ function parser(file, callback) { // Parse yaml. meta = YAML.parse(yaml.join('\n')); if(meta && meta.type && meta.title && inArray(meta.type, categories) ) { - meta.category = meta.type; - meta.filename = filename; - meta.title = meta.title; + meta.category = meta.type; + meta.filename = filename; + meta.url = '/' + filename; + meta.title = meta.title; // Primary key will by filepath - data[filename] = meta; + data[meta.element] = meta; } else { // skip From 00f17f73459ae6dc9449f097d434b36b7ad55456 Mon Sep 17 00:00:00 2001 From: jlukic Date: Thu, 9 Jul 2015 16:39:01 -0400 Subject: [PATCH 04/20] Fix URL validation isssue with form --- RELEASE-NOTES.md | 1 + src/definitions/behaviors/form.js | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/RELEASE-NOTES.md b/RELEASE-NOTES.md index ac3915184..f9dbe8390 100644 --- a/RELEASE-NOTES.md +++ b/RELEASE-NOTES.md @@ -3,6 +3,7 @@ ### Version 2.0.3 - July 8, 2015 - **Popup** - Popup `preserve` setting (which preserves popup in DOM to avoid regenerating on each show/hide) was set to `true` by default causing generated popups to remain in DOM. #1369 +- **Form** - Form url validation had a typo causing it not to work correctly. ### Version 2.0.2 - July 7, 2015 diff --git a/src/definitions/behaviors/form.js b/src/definitions/behaviors/form.js index 15baef78f..9d64e803a 100644 --- a/src/definitions/behaviors/form.js +++ b/src/definitions/behaviors/form.js @@ -1247,7 +1247,7 @@ $.fn.form.settings = { // value is most likely url url: function(value) { - return $.fn.form.settings.regExp.url.match(value); + return $.fn.form.settings.regExp.url.test(value); } } From a39cf66afe8da22a262522c019ace80569abeca0 Mon Sep 17 00:00:00 2001 From: jlukic Date: Thu, 9 Jul 2015 16:42:05 -0400 Subject: [PATCH 05/20] Fix errored input border radius --- RELEASE-NOTES.md | 1 + src/themes/default/collections/form.variables | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/RELEASE-NOTES.md b/RELEASE-NOTES.md index f9dbe8390..7113f13c4 100644 --- a/RELEASE-NOTES.md +++ b/RELEASE-NOTES.md @@ -4,6 +4,7 @@ - **Popup** - Popup `preserve` setting (which preserves popup in DOM to avoid regenerating on each show/hide) was set to `true` by default causing generated popups to remain in DOM. #1369 - **Form** - Form url validation had a typo causing it not to work correctly. +- **Input** - Fixed errored input field having incorrect border radius with `labeled input` ### Version 2.0.2 - July 7, 2015 diff --git a/src/themes/default/collections/form.variables b/src/themes/default/collections/form.variables index 6413b8e1a..05f562784 100644 --- a/src/themes/default/collections/form.variables +++ b/src/themes/default/collections/form.variables @@ -110,7 +110,7 @@ /* Input Error */ -@inputErrorBorderRadius: @inputBorderRadius; +@inputErrorBorderRadius: ''; @inputErrorBoxShadow: none; /* Dropdown Error */ From f32cc39b276c35188f72cfbee80acf0a7892b117 Mon Sep 17 00:00:00 2001 From: jlukic Date: Thu, 9 Jul 2015 16:46:44 -0400 Subject: [PATCH 06/20] Update URL again --- RELEASE-NOTES.md | 2 +- src/definitions/behaviors/form.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/RELEASE-NOTES.md b/RELEASE-NOTES.md index 7113f13c4..ca9e3ec04 100644 --- a/RELEASE-NOTES.md +++ b/RELEASE-NOTES.md @@ -3,7 +3,7 @@ ### Version 2.0.3 - July 8, 2015 - **Popup** - Popup `preserve` setting (which preserves popup in DOM to avoid regenerating on each show/hide) was set to `true` by default causing generated popups to remain in DOM. #1369 -- **Form** - Form url validation had a typo causing it not to work correctly. +- **Form** - URL regexp will now match now works correctly, and matches against non `http://` prefixed urls like `www.google.com` - **Input** - Fixed errored input field having incorrect border radius with `labeled input` ### Version 2.0.2 - July 7, 2015 diff --git a/src/definitions/behaviors/form.js b/src/definitions/behaviors/form.js index 9d64e803a..2d9f6ada2 100644 --- a/src/definitions/behaviors/form.js +++ b/src/definitions/behaviors/form.js @@ -989,7 +989,7 @@ $.fn.form.settings = { email : "[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?", integer : /^\-?\d+$/, flags : /^\/(.*)\/(.*)?/, - url : /(ftp|http|https):\/\/(\w+:{0,1}\w*@)?(\S+)(:[0-9]+)?(\/|\/([\w#!:.?+=&%@!\-\/]))?/i + url : /(https?:\/\/(?:www\.|(?!www))[^\s\.]+\.[^\s]{2,}|www\.[^\s]+\.[^\s]{2,})/i }, selector : { From f8645a6131962acb604dd04e0685c8f74ce3dd9b Mon Sep 17 00:00:00 2001 From: jlukic Date: Thu, 9 Jul 2015 18:26:09 -0400 Subject: [PATCH 07/20] Fixes #2552 issue with last step --- src/definitions/elements/step.less | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/definitions/elements/step.less b/src/definitions/elements/step.less index ab51bfdbf..9f3de6802 100755 --- a/src/definitions/elements/step.less +++ b/src/definitions/elements/step.less @@ -64,7 +64,7 @@ margin-right: 0em; } .ui.steps .step:last-child:after { - display: @lastArrowDisplay; + display: @lastArrowDisplay !important; } /******************************* @@ -241,7 +241,7 @@ display: @verticalActiveArrowDisplay; } .ui.vertical.steps .step:last-child:after { - display: @verticalLastArrowDisplay; + display: @verticalLastArrowDisplay !important; } From 3c91c57d98e21f362d19b00403b95decc18aa96e Mon Sep 17 00:00:00 2001 From: jlukic Date: Thu, 9 Jul 2015 18:27:29 -0400 Subject: [PATCH 08/20] Update rlsnotes --- RELEASE-NOTES.md | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/RELEASE-NOTES.md b/RELEASE-NOTES.md index ca9e3ec04..039df92f9 100644 --- a/RELEASE-NOTES.md +++ b/RELEASE-NOTES.md @@ -2,10 +2,14 @@ ### Version 2.0.3 - July 8, 2015 +**[Reported Bugs](https://github.com/Semantic-Org/Semantic-UI/issues?q=is%3Aissue+milestone%3A2.0.3+is%3Aclosed)** +- **Steps** - Last `step` no longer incorrectly shows arrow #2552 - **Popup** - Popup `preserve` setting (which preserves popup in DOM to avoid regenerating on each show/hide) was set to `true` by default causing generated popups to remain in DOM. #1369 -- **Form** - URL regexp will now match now works correctly, and matches against non `http://` prefixed urls like `www.google.com` - **Input** - Fixed errored input field having incorrect border radius with `labeled input` +**Additional Bugs** +- **Form** - URL regexp will now match now works correctly, and matches against non `http://` prefixed urls like `www.google.com` + ### Version 2.0.2 - July 7, 2015 **[Reported Bugs](https://github.com/Semantic-Org/Semantic-UI/issues?q=is%3Aissue+milestone%3A2.0.2+is%3Aclosed)** From bb5222d9510321636d17a05d682b5eff50514add Mon Sep 17 00:00:00 2001 From: jlukic Date: Fri, 10 Jul 2015 12:10:55 -0400 Subject: [PATCH 09/20] #2576 Modal will remove body style after hiding --- RELEASE-NOTES.md | 1 + 1 file changed, 1 insertion(+) diff --git a/RELEASE-NOTES.md b/RELEASE-NOTES.md index 039df92f9..026e26957 100644 --- a/RELEASE-NOTES.md +++ b/RELEASE-NOTES.md @@ -4,6 +4,7 @@ **[Reported Bugs](https://github.com/Semantic-Org/Semantic-UI/issues?q=is%3Aissue+milestone%3A2.0.3+is%3Aclosed)** - **Steps** - Last `step` no longer incorrectly shows arrow #2552 +- **Modal** - Modal that is larger than page height will now correctly reset body height on remove #2576 - **Popup** - Popup `preserve` setting (which preserves popup in DOM to avoid regenerating on each show/hide) was set to `true` by default causing generated popups to remain in DOM. #1369 - **Input** - Fixed errored input field having incorrect border radius with `labeled input` From 6fbabf4c2bc996341c13995d220c47f4d20bce22 Mon Sep 17 00:00:00 2001 From: jlukic Date: Fri, 10 Jul 2015 12:11:08 -0400 Subject: [PATCH 10/20] #2576 Modal will remove body style after hiding --- src/definitions/modules/modal.js | 22 ++++++++++++---------- 1 file changed, 12 insertions(+), 10 deletions(-) diff --git a/src/definitions/modules/modal.js b/src/definitions/modules/modal.js index 8c44f34f8..b2adead4b 100644 --- a/src/definitions/modules/modal.js +++ b/src/definitions/modules/modal.js @@ -408,10 +408,8 @@ $.fn.modal = function(parameters) { hideDimmer: function() { if( $dimmable.dimmer('is animating') || ($dimmable.dimmer('is active')) ) { $dimmable.dimmer('hide', function() { - if(settings.transition && $.fn.transition !== undefined && $module.transition('is supported')) { - module.remove.clickaway(); - module.remove.screenHeight(); - } + module.remove.clickaway(); + module.remove.screenHeight(); }); } else { @@ -497,14 +495,18 @@ $.fn.modal = function(parameters) { ; } }, - screenHeight: function() { - if(module.cache.height > module.cache.pageHeight) { - module.debug('Removing page height'); - $body - .css('height', '') - ; + bodyStyle: function() { + if($body.attr('style') === '') { + module.verbose('Removing style attribute'); + $body.removeAttr('style'); } }, + screenHeight: function() { + module.debug('Removing page height'); + $body + .css('height', '') + ; + }, keyboardShortcuts: function() { module.verbose('Removing keyboard shortcuts'); $document From 8bb724440e969a8e9f396dacc314b28818906474 Mon Sep 17 00:00:00 2001 From: jlukic Date: Fri, 10 Jul 2015 12:13:23 -0400 Subject: [PATCH 11/20] #2558 Fixes vertical divider border right in stackable grid --- RELEASE-NOTES.md | 1 + src/definitions/elements/divider.less | 1 + 2 files changed, 2 insertions(+) diff --git a/RELEASE-NOTES.md b/RELEASE-NOTES.md index 026e26957..fdc9231a7 100644 --- a/RELEASE-NOTES.md +++ b/RELEASE-NOTES.md @@ -7,6 +7,7 @@ - **Modal** - Modal that is larger than page height will now correctly reset body height on remove #2576 - **Popup** - Popup `preserve` setting (which preserves popup in DOM to avoid regenerating on each show/hide) was set to `true` by default causing generated popups to remain in DOM. #1369 - **Input** - Fixed errored input field having incorrect border radius with `labeled input` +- **Divider/Grid** - `vertical divider` no longer has inexplicable right border when stacked on mobile #2558 **Additional Bugs** - **Form** - URL regexp will now match now works correctly, and matches against non `http://` prefixed urls like `www.google.com` diff --git a/src/definitions/elements/divider.less b/src/definitions/elements/divider.less index 7539a622b..863a61fcd 100755 --- a/src/definitions/elements/divider.less +++ b/src/definitions/elements/divider.less @@ -155,6 +155,7 @@ position: static; left: 0; border-left: none; + border-right: none; content: ''; display: table-cell; position: relative; From 2fc6cf1bce96b33fa239f282e08a7da40f5a00a9 Mon Sep 17 00:00:00 2001 From: jlukic Date: Fri, 10 Jul 2015 12:18:22 -0400 Subject: [PATCH 12/20] Fixes initialized checkbox double trigger with for/id match. #2572 #2581 --- src/definitions/modules/checkbox.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/definitions/modules/checkbox.js b/src/definitions/modules/checkbox.js index 029344bf0..b7e7c197c 100644 --- a/src/definitions/modules/checkbox.js +++ b/src/definitions/modules/checkbox.js @@ -177,6 +177,7 @@ $.fn.checkbox = function(parameters) { return; } module.toggle(); + event.preventDefault(); }, keydown: function(event) { var From 50264b91874c5280782f9f219e80175c26b78695 Mon Sep 17 00:00:00 2001 From: jlukic Date: Fri, 10 Jul 2015 12:20:58 -0400 Subject: [PATCH 13/20] #2581 add rlsnotes and credit --- RELEASE-NOTES.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/RELEASE-NOTES.md b/RELEASE-NOTES.md index fdc9231a7..333fbb635 100644 --- a/RELEASE-NOTES.md +++ b/RELEASE-NOTES.md @@ -3,12 +3,14 @@ ### Version 2.0.3 - July 8, 2015 **[Reported Bugs](https://github.com/Semantic-Org/Semantic-UI/issues?q=is%3Aissue+milestone%3A2.0.3+is%3Aclosed)** +- **Checkbox** - Checkbox initialized with JS and with `for/id` matching would cause toggle to occur twice on click (making it seem as if nothing was updated) **thanks @malacalypse** #2572 - **Steps** - Last `step` no longer incorrectly shows arrow #2552 - **Modal** - Modal that is larger than page height will now correctly reset body height on remove #2576 - **Popup** - Popup `preserve` setting (which preserves popup in DOM to avoid regenerating on each show/hide) was set to `true` by default causing generated popups to remain in DOM. #1369 - **Input** - Fixed errored input field having incorrect border radius with `labeled input` - **Divider/Grid** - `vertical divider` no longer has inexplicable right border when stacked on mobile #2558 + **Additional Bugs** - **Form** - URL regexp will now match now works correctly, and matches against non `http://` prefixed urls like `www.google.com` From 4b7a8fe19138c31893a8dfbe48b5a872eac92ae8 Mon Sep 17 00:00:00 2001 From: jlukic Date: Fri, 10 Jul 2015 12:22:17 -0400 Subject: [PATCH 14/20] #2556 Adds back black icons --- RELEASE-NOTES.md | 2 +- src/definitions/elements/icon.less | 13 +++++++++++++ 2 files changed, 14 insertions(+), 1 deletion(-) diff --git a/RELEASE-NOTES.md b/RELEASE-NOTES.md index 333fbb635..a8e727d90 100644 --- a/RELEASE-NOTES.md +++ b/RELEASE-NOTES.md @@ -9,7 +9,7 @@ - **Popup** - Popup `preserve` setting (which preserves popup in DOM to avoid regenerating on each show/hide) was set to `true` by default causing generated popups to remain in DOM. #1369 - **Input** - Fixed errored input field having incorrect border radius with `labeled input` - **Divider/Grid** - `vertical divider` no longer has inexplicable right border when stacked on mobile #2558 - +- **Icon** - `black icon` have been added back as a color option **Additional Bugs** - **Form** - URL regexp will now match now works correctly, and matches against non `http://` prefixed urls like `www.google.com` diff --git a/src/definitions/elements/icon.less b/src/definitions/elements/icon.less index 0fc4c9bc7..3e5bd8bd1 100755 --- a/src/definitions/elements/icon.less +++ b/src/definitions/elements/icon.less @@ -362,6 +362,19 @@ i.inverted.circular.grey.icon { color: @white !important; } +/* Black */ +i.black.icon { + color: @black !important; +} +i.inverted.black.icon { + color: @lightBlack !important; +} +i.inverted.bordeblack.black.icon, +i.inverted.circular.black.icon { + background-color: @black !important; + color: @white !important; +} + /*------------------- Sizes --------------------*/ From fc84f5a847fa05d80cb5d18dcd2bb2e85a929915 Mon Sep 17 00:00:00 2001 From: jlukic Date: Fri, 10 Jul 2015 12:39:51 -0400 Subject: [PATCH 15/20] Add misssing square/square outline icon #2532 --- src/themes/default/elements/icon.overrides | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/themes/default/elements/icon.overrides b/src/themes/default/elements/icon.overrides index 159c360f1..bcb938336 100644 --- a/src/themes/default/elements/icon.overrides +++ b/src/themes/default/elements/icon.overrides @@ -235,6 +235,8 @@ i.icon.cube:before { content: "\f1b2"; } i.icon.cubes:before { content: "\f1b3"; } i.icon.circle.notched:before { content: "\f1ce"; } i.icon.circle.thin:before { content: "\f1db"; } +i.icon.square.outline:before { content: "\f096"; } +i.icon.square:before { content: "\f0c8"; } /* Item Selection */ i.icon.checkmark:before { content: "\f00c"; } From 197ff5cf1694f1b287a676dca2ab1f0bef9f43d1 Mon Sep 17 00:00:00 2001 From: jlukic Date: Fri, 10 Jul 2015 12:40:04 -0400 Subject: [PATCH 16/20] Add issue number #2556 --- RELEASE-NOTES.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/RELEASE-NOTES.md b/RELEASE-NOTES.md index a8e727d90..5d81b4fde 100644 --- a/RELEASE-NOTES.md +++ b/RELEASE-NOTES.md @@ -9,7 +9,7 @@ - **Popup** - Popup `preserve` setting (which preserves popup in DOM to avoid regenerating on each show/hide) was set to `true` by default causing generated popups to remain in DOM. #1369 - **Input** - Fixed errored input field having incorrect border radius with `labeled input` - **Divider/Grid** - `vertical divider` no longer has inexplicable right border when stacked on mobile #2558 -- **Icon** - `black icon` have been added back as a color option +- **Icon** - `black icon` have been added back as a color option #2556 **Additional Bugs** - **Form** - URL regexp will now match now works correctly, and matches against non `http://` prefixed urls like `www.google.com` From c55ed428b5a397209ebb05714c0cdd98d559a5d1 Mon Sep 17 00:00:00 2001 From: jlukic Date: Fri, 10 Jul 2015 12:40:45 -0400 Subject: [PATCH 17/20] #2532 rlnotes --- RELEASE-NOTES.md | 1 + 1 file changed, 1 insertion(+) diff --git a/RELEASE-NOTES.md b/RELEASE-NOTES.md index 5d81b4fde..329e098d4 100644 --- a/RELEASE-NOTES.md +++ b/RELEASE-NOTES.md @@ -10,6 +10,7 @@ - **Input** - Fixed errored input field having incorrect border radius with `labeled input` - **Divider/Grid** - `vertical divider` no longer has inexplicable right border when stacked on mobile #2558 - **Icon** - `black icon` have been added back as a color option #2556 +- **Icon** - Adds missing `square` and `square outline` icon #2532 **Additional Bugs** - **Form** - URL regexp will now match now works correctly, and matches against non `http://` prefixed urls like `www.google.com` From a942a27ad6b16d0b722c5f18786c9b779e708072 Mon Sep 17 00:00:00 2001 From: jlukic Date: Fri, 10 Jul 2015 12:47:14 -0400 Subject: [PATCH 18/20] #2469 Fix issue with get animation when cache is undefined --- src/definitions/modules/transition.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/definitions/modules/transition.js b/src/definitions/modules/transition.js index 0f84f314f..40b895fb6 100644 --- a/src/definitions/modules/transition.js +++ b/src/definitions/modules/transition.js @@ -553,7 +553,10 @@ $.fn.transition = function() { ; }, currentAnimation: function() { - return module.cache.animation || false; + return (module.cache && module.cache.animation !== undefined) + ? module.cache.animation + : false + ; }, currentDirection: function() { return module.is.inward() From 13ed5f0126e73f1879195c2b855ec112eca62642 Mon Sep 17 00:00:00 2001 From: jlukic Date: Fri, 10 Jul 2015 13:09:22 -0400 Subject: [PATCH 19/20] Fixes #2545, revisits #2552. Issues with arrow variables, github theme display with steps --- RELEASE-NOTES.md | 2 + src/definitions/elements/step.less | 64 +++++++++++++--------- src/themes/default/elements/step.variables | 8 ++- src/themes/github/elements/step.variables | 8 ++- 4 files changed, 53 insertions(+), 29 deletions(-) diff --git a/RELEASE-NOTES.md b/RELEASE-NOTES.md index 329e098d4..73ea17346 100644 --- a/RELEASE-NOTES.md +++ b/RELEASE-NOTES.md @@ -5,12 +5,14 @@ **[Reported Bugs](https://github.com/Semantic-Org/Semantic-UI/issues?q=is%3Aissue+milestone%3A2.0.3+is%3Aclosed)** - **Checkbox** - Checkbox initialized with JS and with `for/id` matching would cause toggle to occur twice on click (making it seem as if nothing was updated) **thanks @malacalypse** #2572 - **Steps** - Last `step` no longer incorrectly shows arrow #2552 +- **Steps** - Fixed `github` theme for steps not displaying correctly in 2.0 #2545 - **Modal** - Modal that is larger than page height will now correctly reset body height on remove #2576 - **Popup** - Popup `preserve` setting (which preserves popup in DOM to avoid regenerating on each show/hide) was set to `true` by default causing generated popups to remain in DOM. #1369 - **Input** - Fixed errored input field having incorrect border radius with `labeled input` - **Divider/Grid** - `vertical divider` no longer has inexplicable right border when stacked on mobile #2558 - **Icon** - `black icon` have been added back as a color option #2556 - **Icon** - Adds missing `square` and `square outline` icon #2532 +- **Transition** - Fixes `get current animation` erroring when `module cache` is cleared. #2469 **Additional Bugs** - **Form** - URL regexp will now match now works correctly, and matches against non `http://` prefixed urls like `www.google.com` diff --git a/src/definitions/elements/step.less b/src/definitions/elements/step.less index 9f3de6802..2b1fdca0e 100755 --- a/src/definitions/elements/step.less +++ b/src/definitions/elements/step.less @@ -39,33 +39,16 @@ border: @stepsBorder; } +/* First Steps */ .ui.steps:first-child { margin-top: 0em; } + +/* Last Steps */ .ui.steps:last-child { margin-bottom: 0em; } -.ui.steps .step:first-child { - padding-left: @horizontalPadding; - border-radius: @stepsBorderRadius 0em 0em @stepsBorderRadius; -} -.ui.steps .step:last-child { - border-radius: 0em @stepsBorderRadius @stepsBorderRadius 0em; -} -.ui.steps .step:only-child { - -webkit-border-radius: @stepsBorderRadius; - -moz-border-radius: @stepsBorderRadius; - border-radius: @stepsBorderRadius; -} - -.ui.steps .step:last-child { - border-right: none; - margin-right: 0em; -} -.ui.steps .step:last-child:after { - display: @lastArrowDisplay !important; -} /******************************* Singular @@ -89,9 +72,10 @@ border-radius: @borderRadius; border: @border; border-right: @divider; + transition: @transition; } - +/* Arrow */ .ui.steps .step:after { display: none; position: absolute; @@ -108,14 +92,33 @@ border-color: @borderColor; border-width: @arrowBorderWidth; + transition: @transition; transform: translateY(-50%) translateX(50%) rotate(-45deg); } -.ui.steps .step, -.ui.steps .step:after { - transition: @transition; +/* First Step */ +.ui.steps .step:first-child { + padding-left: @horizontalPadding; + border-radius: @stepsBorderRadius 0em 0em @stepsBorderRadius; } +/* Only Step */ +.ui.steps .step:only-child { + -webkit-border-radius: @stepsBorderRadius; + -moz-border-radius: @stepsBorderRadius; + border-radius: @stepsBorderRadius; +} + +/* Last Step */ +.ui.steps .step:last-child { + border-radius: 0em @stepsBorderRadius @stepsBorderRadius 0em; +} +.ui.steps .step:last-child { + border-right: none; + margin-right: 0em; +} + + /******************************* Content *******************************/ @@ -213,6 +216,7 @@ justify-content: flex-start; border-radius: @borderRadius; padding: @verticalPadding @horizontalPadding; + border-right: none; border-bottom: @verticalDivider; } .ui.vertical.steps .step:first-child { @@ -241,7 +245,10 @@ display: @verticalActiveArrowDisplay; } .ui.vertical.steps .step:last-child:after { - display: @verticalLastArrowDisplay !important; + display: @verticalLastArrowDisplay; +} +.ui.vertical.steps .active.step:last-child:after { + display: @verticalActiveLastArrowDisplay; } @@ -334,7 +341,12 @@ .ui.steps .active.step:after { display: @activeArrowDisplay; } - +.ui.steps .step:last-child:after { + display: @lastArrowDisplay; +} +.ui.steps .active.step:last-child:after { + display: @activeLastArrowDisplay; +} /* Active Hover */ .ui.steps .link.active.step:hover::after, diff --git a/src/themes/default/elements/step.variables b/src/themes/default/elements/step.variables index 8156aa9c3..2635b609a 100644 --- a/src/themes/default/elements/step.variables +++ b/src/themes/default/elements/step.variables @@ -66,9 +66,11 @@ @arrowBorderWidth: 0px @borderWidth @borderWidth 0px; @arrowDisplay: block; -@activeArrowDisplay: block; @lastArrowDisplay: none; +@activeArrowDisplay: block; +@activeLastArrowDisplay: none; + /* Mobile */ @mobileIconDistance: @iconDistance; @@ -83,8 +85,10 @@ @verticalArrowBorderWidth: 0px @borderWidth @borderWidth 0px; @verticalArrowDisplay: none; +@verticalLastArrowDisplay: @verticalArrowDisplay; + @verticalActiveArrowDisplay: block; -@verticalLastArrowDisplay: block; +@verticalActiveLastArrowDisplay: block; /*------------------- Variations diff --git a/src/themes/github/elements/step.variables b/src/themes/github/elements/step.variables index f62891c83..ff8dad8dc 100644 --- a/src/themes/github/elements/step.variables +++ b/src/themes/github/elements/step.variables @@ -6,6 +6,11 @@ @background: transparent linear-gradient(transparent, rgba(0, 0, 0, 0.07)); @verticalPadding: 1em; +@arrowDisplay: none; +@lastArrowDisplay: none; +@activeArrowDisplay: block; +@activeLastArrowDisplay: block; + /* Group */ @stepsBackground: #FFFFFF; @stepsBoxShadow: 0px 0px 1px 0px rgba(0, 0, 0, 0.15); @@ -17,4 +22,5 @@ /* Arrow */ @arrowTopOffset: 100%; @arrowRightOffset: 50%; -@arrowBorderColor: rgba(0, 0, 0, 0.2); \ No newline at end of file +@arrowBorderColor: rgba(0, 0, 0, 0.2); +@arrowBorderWidth: 0px 0px @borderWidth @borderWidth; From 616c99cdc8fec7f4b1166b852099ad971bef9e3c Mon Sep 17 00:00:00 2001 From: jlukic Date: Fri, 10 Jul 2015 13:24:47 -0400 Subject: [PATCH 20/20] Build 2.0.3 --- RELEASE-NOTES.md | 3 + dist/components/accordion.css | 2 +- dist/components/accordion.js | 2 +- dist/components/accordion.min.css | 2 +- dist/components/accordion.min.js | 2 +- dist/components/ad.css | 2 +- dist/components/ad.min.css | 2 +- dist/components/api.js | 2 +- dist/components/api.min.js | 2 +- dist/components/breadcrumb.css | 2 +- dist/components/breadcrumb.min.css | 2 +- dist/components/button.css | 2 +- dist/components/button.min.css | 2 +- dist/components/card.css | 2 +- dist/components/card.min.css | 2 +- dist/components/checkbox.css | 7 +- dist/components/checkbox.js | 3 +- dist/components/checkbox.min.css | 4 +- dist/components/checkbox.min.js | 4 +- dist/components/comment.css | 2 +- dist/components/comment.min.css | 2 +- dist/components/container.css | 2 +- dist/components/container.min.css | 2 +- dist/components/dimmer.css | 2 +- dist/components/dimmer.js | 2 +- dist/components/dimmer.min.css | 2 +- dist/components/dimmer.min.js | 2 +- dist/components/divider.css | 3 +- dist/components/divider.min.css | 4 +- dist/components/dropdown.css | 2 +- dist/components/dropdown.js | 122 +++++++++++------- dist/components/dropdown.min.css | 2 +- dist/components/dropdown.min.js | 7 +- dist/components/embed.css | 2 +- dist/components/embed.js | 2 +- dist/components/embed.min.css | 2 +- dist/components/embed.min.js | 2 +- dist/components/feed.css | 2 +- dist/components/feed.min.css | 2 +- dist/components/flag.css | 2 +- dist/components/flag.min.css | 2 +- dist/components/form.css | 4 +- dist/components/form.js | 6 +- dist/components/form.min.css | 4 +- dist/components/form.min.js | 4 +- dist/components/grid.css | 2 +- dist/components/grid.min.css | 2 +- dist/components/header.css | 2 +- dist/components/header.min.css | 2 +- dist/components/icon.css | 21 ++- dist/components/icon.min.css | 4 +- dist/components/image.css | 2 +- dist/components/image.min.css | 2 +- dist/components/input.css | 2 +- dist/components/input.min.css | 2 +- dist/components/item.css | 2 +- dist/components/item.min.css | 2 +- dist/components/label.css | 2 +- dist/components/label.min.css | 2 +- dist/components/list.css | 2 +- dist/components/list.min.css | 2 +- dist/components/loader.css | 2 +- dist/components/loader.min.css | 2 +- dist/components/message.css | 2 +- dist/components/message.min.css | 2 +- dist/components/modal.css | 2 +- dist/components/modal.js | 24 ++-- dist/components/modal.min.css | 2 +- dist/components/modal.min.js | 4 +- dist/components/nag.css | 2 +- dist/components/nag.js | 2 +- dist/components/nag.min.css | 2 +- dist/components/nag.min.js | 2 +- dist/components/popup.css | 2 +- dist/components/popup.js | 4 +- dist/components/popup.min.css | 2 +- dist/components/popup.min.js | 4 +- dist/components/progress.css | 2 +- dist/components/progress.js | 2 +- dist/components/progress.min.css | 2 +- dist/components/progress.min.js | 2 +- dist/components/rail.css | 2 +- dist/components/rail.min.css | 2 +- dist/components/rating.css | 2 +- dist/components/rating.js | 2 +- dist/components/rating.min.css | 2 +- dist/components/rating.min.js | 2 +- dist/components/reset.css | 2 +- dist/components/reset.min.css | 2 +- dist/components/reveal.css | 2 +- dist/components/reveal.min.css | 2 +- dist/components/search.css | 2 +- dist/components/search.js | 2 +- dist/components/search.min.css | 2 +- dist/components/search.min.js | 2 +- dist/components/segment.css | 2 +- dist/components/segment.min.css | 2 +- dist/components/shape.css | 2 +- dist/components/shape.js | 2 +- dist/components/shape.min.css | 2 +- dist/components/shape.min.js | 2 +- dist/components/sidebar.css | 2 +- dist/components/sidebar.js | 2 +- dist/components/sidebar.min.css | 2 +- dist/components/sidebar.min.js | 2 +- dist/components/site.css | 2 +- dist/components/site.js | 2 +- dist/components/site.min.css | 2 +- dist/components/site.min.js | 2 +- dist/components/state.js | 2 +- dist/components/state.min.js | 2 +- dist/components/statistic.css | 2 +- dist/components/statistic.min.css | 2 +- dist/components/step.css | 62 +++++---- dist/components/step.min.css | 4 +- dist/components/sticky.css | 2 +- dist/components/sticky.js | 2 +- dist/components/sticky.min.css | 2 +- dist/components/sticky.min.js | 2 +- dist/components/tab.css | 2 +- dist/components/tab.js | 2 +- dist/components/tab.min.css | 2 +- dist/components/tab.min.js | 2 +- dist/components/table.css | 2 +- dist/components/table.min.css | 2 +- dist/components/transition.css | 2 +- dist/components/transition.js | 7 +- dist/components/transition.min.css | 2 +- dist/components/transition.min.js | 4 +- dist/components/visibility.js | 2 +- dist/components/visibility.min.js | 2 +- dist/semantic.css | 196 ++++++++++++++++------------ dist/semantic.js | 198 +++++++++++++++++------------ dist/semantic.min.css | 4 +- dist/semantic.min.js | 21 ++- package.json | 2 +- 136 files changed, 551 insertions(+), 399 deletions(-) diff --git a/RELEASE-NOTES.md b/RELEASE-NOTES.md index 73ea17346..ace7d8d39 100644 --- a/RELEASE-NOTES.md +++ b/RELEASE-NOTES.md @@ -2,6 +2,9 @@ ### Version 2.0.3 - July 8, 2015 +**Docs Updates** +- **Examples** - Source code examples have been greatly improved. Required class names for each example will be highlighted in yellow. Other UI elements used in examples will now link out to their respective by clicking on their respective html. + **[Reported Bugs](https://github.com/Semantic-Org/Semantic-UI/issues?q=is%3Aissue+milestone%3A2.0.3+is%3Aclosed)** - **Checkbox** - Checkbox initialized with JS and with `for/id` matching would cause toggle to occur twice on click (making it seem as if nothing was updated) **thanks @malacalypse** #2572 - **Steps** - Last `step` no longer incorrectly shows arrow #2552 diff --git a/dist/components/accordion.css b/dist/components/accordion.css index fce69ef9a..4c79d1938 100755 --- a/dist/components/accordion.css +++ b/dist/components/accordion.css @@ -1,5 +1,5 @@ /*! - * # Semantic UI 2.0.1 - Accordion + * # Semantic UI 2.0.3 - Accordion * http://github.com/semantic-org/semantic-ui/ * * diff --git a/dist/components/accordion.js b/dist/components/accordion.js index 06777a69d..9682baa60 100644 --- a/dist/components/accordion.js +++ b/dist/components/accordion.js @@ -1,5 +1,5 @@ /*! - * # Semantic UI 2.0.1 - Accordion + * # Semantic UI 2.0.3 - Accordion * http://github.com/semantic-org/semantic-ui/ * * diff --git a/dist/components/accordion.min.css b/dist/components/accordion.min.css index d604372f2..69c2f0265 100755 --- a/dist/components/accordion.min.css +++ b/dist/components/accordion.min.css @@ -1,5 +1,5 @@ /*! - * # Semantic UI 2.0.1 - Accordion + * # Semantic UI 2.0.3 - Accordion * http://github.com/semantic-org/semantic-ui/ * * diff --git a/dist/components/accordion.min.js b/dist/components/accordion.min.js index 49ae76203..01d36f692 100644 --- a/dist/components/accordion.min.js +++ b/dist/components/accordion.min.js @@ -1,5 +1,5 @@ /*! - * # Semantic UI 2.0.1 - Accordion + * # Semantic UI 2.0.3 - Accordion * http://github.com/semantic-org/semantic-ui/ * * diff --git a/dist/components/ad.css b/dist/components/ad.css index d2651a4c3..9f2c6cb76 100644 --- a/dist/components/ad.css +++ b/dist/components/ad.css @@ -1,5 +1,5 @@ /*! - * # Semantic UI 2.0.1 - Ad + * # Semantic UI 2.0.3 - Ad * http://github.com/semantic-org/semantic-ui/ * * diff --git a/dist/components/ad.min.css b/dist/components/ad.min.css index bc37e4fb9..23a05db9c 100644 --- a/dist/components/ad.min.css +++ b/dist/components/ad.min.css @@ -1,5 +1,5 @@ /*! - * # Semantic UI 2.0.1 - Ad + * # Semantic UI 2.0.3 - Ad * http://github.com/semantic-org/semantic-ui/ * * diff --git a/dist/components/api.js b/dist/components/api.js index f660b6f8f..11cd0e1ca 100644 --- a/dist/components/api.js +++ b/dist/components/api.js @@ -1,5 +1,5 @@ /*! - * # Semantic UI 2.0.1 - API + * # Semantic UI 2.0.3 - API * http://github.com/semantic-org/semantic-ui/ * * diff --git a/dist/components/api.min.js b/dist/components/api.min.js index e71400c19..fffc600ca 100644 --- a/dist/components/api.min.js +++ b/dist/components/api.min.js @@ -1,5 +1,5 @@ /*! - * # Semantic UI 2.0.1 - API + * # Semantic UI 2.0.3 - API * http://github.com/semantic-org/semantic-ui/ * * diff --git a/dist/components/breadcrumb.css b/dist/components/breadcrumb.css index 128633bbc..1c951160c 100755 --- a/dist/components/breadcrumb.css +++ b/dist/components/breadcrumb.css @@ -1,5 +1,5 @@ /*! - * # Semantic UI 2.0.1 - Breadcrumb + * # Semantic UI 2.0.3 - Breadcrumb * http://github.com/semantic-org/semantic-ui/ * * diff --git a/dist/components/breadcrumb.min.css b/dist/components/breadcrumb.min.css index 6cfc0cf92..4b3ed7514 100755 --- a/dist/components/breadcrumb.min.css +++ b/dist/components/breadcrumb.min.css @@ -1,5 +1,5 @@ /*! - * # Semantic UI 2.0.1 - Breadcrumb + * # Semantic UI 2.0.3 - Breadcrumb * http://github.com/semantic-org/semantic-ui/ * * diff --git a/dist/components/button.css b/dist/components/button.css index 28cb63ce6..4d613b42a 100755 --- a/dist/components/button.css +++ b/dist/components/button.css @@ -1,5 +1,5 @@ /*! - * # Semantic UI 2.0.1 - Button + * # Semantic UI 2.0.3 - Button * http://github.com/semantic-org/semantic-ui/ * * diff --git a/dist/components/button.min.css b/dist/components/button.min.css index b42d4526f..36468e7a1 100755 --- a/dist/components/button.min.css +++ b/dist/components/button.min.css @@ -1,5 +1,5 @@ /*! - * # Semantic UI 2.0.1 - Button + * # Semantic UI 2.0.3 - Button * http://github.com/semantic-org/semantic-ui/ * * diff --git a/dist/components/card.css b/dist/components/card.css index d6a5ed3e3..84a6f7cec 100755 --- a/dist/components/card.css +++ b/dist/components/card.css @@ -1,5 +1,5 @@ /*! - * # Semantic UI 2.0.1 - Item + * # Semantic UI 2.0.3 - Item * http://github.com/semantic-org/semantic-ui/ * * diff --git a/dist/components/card.min.css b/dist/components/card.min.css index 4ec29292f..149b4c243 100755 --- a/dist/components/card.min.css +++ b/dist/components/card.min.css @@ -1,5 +1,5 @@ /*! - * # Semantic UI 2.0.1 - Item + * # Semantic UI 2.0.3 - Item * http://github.com/semantic-org/semantic-ui/ * * diff --git a/dist/components/checkbox.css b/dist/components/checkbox.css index 1f2ae3678..04114ee5c 100755 --- a/dist/components/checkbox.css +++ b/dist/components/checkbox.css @@ -1,5 +1,5 @@ /*! - * # Semantic UI 2.0.1 - Checkbox + * # Semantic UI 2.0.3 - Checkbox * http://github.com/semantic-org/semantic-ui/ * * @@ -55,10 +55,7 @@ display: block; padding-left: 1.85714em; outline: none; -} -.ui.checkbox .box, -.ui.checkbox label { - font-size: 14px; + font-size: 1em; } .ui.checkbox .box:before, .ui.checkbox label:before { diff --git a/dist/components/checkbox.js b/dist/components/checkbox.js index fa0be88ba..2d1fb2033 100644 --- a/dist/components/checkbox.js +++ b/dist/components/checkbox.js @@ -1,5 +1,5 @@ /*! - * # Semantic UI 2.0.1 - Checkbox + * # Semantic UI 2.0.3 - Checkbox * http://github.com/semantic-org/semantic-ui/ * * @@ -177,6 +177,7 @@ $.fn.checkbox = function(parameters) { return; } module.toggle(); + event.preventDefault(); }, keydown: function(event) { var diff --git a/dist/components/checkbox.min.css b/dist/components/checkbox.min.css index 6bff57899..0344a4f99 100755 --- a/dist/components/checkbox.min.css +++ b/dist/components/checkbox.min.css @@ -1,5 +1,5 @@ /*! - * # Semantic UI 2.0.1 - Checkbox + * # Semantic UI 2.0.3 - Checkbox * http://github.com/semantic-org/semantic-ui/ * * @@ -7,4 +7,4 @@ * Released under the MIT license * http://opensource.org/licenses/MIT * - */.ui.checkbox{position:relative;display:inline-block;-webkit-backface-visibility:hidden;backface-visibility:hidden;outline:0;vertical-align:baseline;min-height:17px;font-size:1rem;line-height:17px;min-width:17px}.ui.checkbox input[type=checkbox],.ui.checkbox input[type=radio]{cursor:pointer;position:absolute;top:0;left:0;opacity:0!important;outline:0;z-index:3;width:17px;height:17px}.ui.checkbox .box,.ui.checkbox label{cursor:auto;position:relative;display:block;padding-left:1.85714em;outline:0;font-size:14px}.ui.checkbox .box:before,.ui.checkbox label:before{position:absolute;top:0;left:0;width:17px;height:17px;content:'';background:#fff;border-radius:.21428571rem;-webkit-transition:border .1s ease,opacity .1s ease,-webkit-transform .1s ease,box-shadow .1s ease;transition:border .1s ease,opacity .1s ease,transform .1s ease,box-shadow .1s ease;border:1px solid #d4d4d5}.ui.checkbox .box:after,.ui.checkbox label:after{position:absolute;font-size:14px;top:0;left:0;width:17px;height:17px;text-align:center;opacity:0;color:rgba(0,0,0,.87);-webkit-transition:border .1s ease,opacity .1s ease,-webkit-transform .1s ease,box-shadow .1s ease;transition:border .1s ease,opacity .1s ease,transform .1s ease,box-shadow .1s ease;font-family:Checkbox}.ui.checkbox label,.ui.checkbox+label{color:rgba(0,0,0,.87);-webkit-transition:color .1s ease;transition:color .1s ease}.ui.checkbox+label{vertical-align:middle}.ui.checkbox .box:hover::before,.ui.checkbox label:hover::before{background:#fff;border-color:rgba(34,36,38,.35)}.ui.checkbox label:hover,.ui.checkbox+label:hover{color:rgba(0,0,0,.8)}.ui.checkbox .box:active::before,.ui.checkbox label:active::before{background:#f9fafb;border-color:rgba(34,36,38,.35)}.ui.checkbox .box:active::after,.ui.checkbox input[type=checkbox]:active~label,.ui.checkbox input[type=radio]:active~label,.ui.checkbox label:active::after{color:rgba(0,0,0,.95)}.ui.checkbox input[type=checkbox]:focus~.box:before,.ui.checkbox input[type=checkbox]:focus~label:before,.ui.checkbox input[type=radio]:focus~.box:before,.ui.checkbox input[type=radio]:focus~label:before{background:#f9fafb;border-color:rgba(34,36,38,.35)}.ui.checkbox input[type=checkbox]:focus~.box:after,.ui.checkbox input[type=checkbox]:focus~label,.ui.checkbox input[type=checkbox]:focus~label:after,.ui.checkbox input[type=radio]:focus~.box:after,.ui.checkbox input[type=radio]:focus~label,.ui.checkbox input[type=radio]:focus~label:after{color:rgba(0,0,0,.95)}.ui.checkbox input:checked~.box:before,.ui.checkbox input:checked~label:before{background:#fff;border-color:rgba(34,36,38,.35)}.ui.checkbox input:checked~.box:after,.ui.checkbox input:checked~label:after{opacity:1;color:rgba(0,0,0,.95)}.ui.checkbox input[type=checkbox]:indeterminate~.box:before,.ui.checkbox input[type=checkbox]:indeterminate~label:before{background:#fff;border-color:rgba(34,36,38,.35)}.ui.checkbox input[type=checkbox]:indeterminate~.box:after,.ui.checkbox input[type=checkbox]:indeterminate~label:after{opacity:1;color:rgba(0,0,0,.95)}.ui.checkbox input[type=checkbox]:checked:focus~.box:before,.ui.checkbox input[type=checkbox]:checked:focus~label:before,.ui.checkbox input[type=checkbox]:indeterminate:focus~.box:before,.ui.checkbox input[type=checkbox]:indeterminate:focus~label:before{background:#f9fafb;border-color:rgba(34,36,38,.35)}.ui.read-only.checkbox,.ui.read-only.checkbox label{cursor:default}.ui.checkbox input[disabled]~.box:after,.ui.checkbox input[disabled]~label,.ui.disabled.checkbox .box:after,.ui.disabled.checkbox label{cursor:default;opacity:.5;color:#000}.ui.checkbox input[type=checkbox].hidden,.ui.checkbox input[type=radio].hidden{z-index:-1}.ui.checkbox input[type=checkbox].hidden+label,.ui.checkbox input[type=radio].hidden+label{cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.ui.radio.checkbox{min-height:15px}.ui.radio.checkbox .box,.ui.radio.checkbox label{padding-left:1.85714em}.ui.radio.checkbox .box:before,.ui.radio.checkbox label:before{content:'';-webkit-transform:none;-ms-transform:none;transform:none;width:15px;height:15px;border-radius:500rem;top:1px;left:0}.ui.radio.checkbox .box:after,.ui.radio.checkbox label:after{border:none;content:''!important;line-height:15px;top:1px;left:0;width:15px;height:15px;border-radius:500rem;-webkit-transform:scale(.46666667);-ms-transform:scale(.46666667);transform:scale(.46666667);background-color:rgba(0,0,0,.87)}.ui.radio.checkbox input[type=radio]:checked~.box:before,.ui.radio.checkbox input[type=radio]:checked~label:before{background-color:#fff}.ui.radio.checkbox input[type=radio]:checked~.box:after,.ui.radio.checkbox input[type=radio]:checked~label:after{background-color:rgba(0,0,0,.95)}.ui.slider.checkbox{min-height:1.25rem}.ui.slider.checkbox input[type=checkbox],.ui.slider.checkbox input[type=radio]{width:3.5rem;height:1.25rem}.ui.slider.checkbox .box,.ui.slider.checkbox label{padding-left:4.5rem;line-height:1rem;color:rgba(0,0,0,.4)}.ui.slider.checkbox .box:before,.ui.slider.checkbox label:before{display:block;position:absolute;content:'';border:none!important;left:0;z-index:1;top:.4rem;background-color:rgba(0,0,0,.05);width:3.5rem;height:.21428571rem;-webkit-transform:none;-ms-transform:none;transform:none;border-radius:500rem;-webkit-transition:background .3s ease;transition:background .3s ease}.ui.slider.checkbox .box:after,.ui.slider.checkbox label:after{background:-webkit-linear-gradient(transparent,rgba(0,0,0,.05)) #fff;background:linear-gradient(transparent,rgba(0,0,0,.05)) #fff;position:absolute;content:''!important;opacity:1;z-index:2;border:none;box-shadow:0 1px 2px 0 rgba(34,36,38,.15),0 0 0 1px rgba(34,36,38,.15) inset;width:1.5rem;height:1.5rem;top:-.25rem;left:0;-webkit-transform:none;-ms-transform:none;transform:none;border-radius:500rem;-webkit-transition:left .3s ease;transition:left .3s ease}.ui.slider.checkbox input[type=checkbox]:focus~.box:before,.ui.slider.checkbox input[type=checkbox]:focus~label:before,.ui.slider.checkbox input[type=radio]:focus~.box:before,.ui.slider.checkbox input[type=radio]:focus~label:before{background-color:rgba(0,0,0,.15);border:none}.ui.slider.checkbox .box:hover,.ui.slider.checkbox label:hover{color:rgba(0,0,0,.8)}.ui.slider.checkbox .box:hover::before,.ui.slider.checkbox label:hover::before{background:rgba(0,0,0,.15)}.ui.slider.checkbox :checked~.box,.ui.slider.checkbox :checked~label{color:rgba(0,0,0,.95)}.ui.slider.checkbox :checked~.box:before,.ui.slider.checkbox :checked~label:before{background-color:#545454}.ui.slider.checkbox :checked~.box:after,.ui.slider.checkbox :checked~label:after{left:2rem}.ui.toggle.checkbox{min-height:1.5rem}.ui.toggle.checkbox input[type=checkbox],.ui.toggle.checkbox input[type=radio]{width:3.5rem;height:1.5rem}.ui.toggle.checkbox .box,.ui.toggle.checkbox label{min-height:1.5rem;padding-left:4.5rem;color:rgba(0,0,0,.87)}.ui.toggle.checkbox label{padding-top:.15em}.ui.toggle.checkbox .box:before,.ui.toggle.checkbox label:before{display:block;position:absolute;content:'';z-index:1;-webkit-transform:none;-ms-transform:none;transform:none;border:none;top:0;background:rgba(0,0,0,.05);width:3.5rem;height:1.5rem;border-radius:500rem}.ui.toggle.checkbox .box:after,.ui.toggle.checkbox label:after{background:-webkit-linear-gradient(transparent,rgba(0,0,0,.05)) #fff;background:linear-gradient(transparent,rgba(0,0,0,.05)) #fff;position:absolute;content:''!important;opacity:1;z-index:2;border:none;box-shadow:0 1px 2px 0 rgba(34,36,38,.15),0 0 0 1px rgba(34,36,38,.15) inset;width:1.5rem;height:1.5rem;top:0;left:0;border-radius:500rem;-webkit-transition:background .3s ease,left .3s ease;transition:background .3s ease,left .3s ease}.ui.toggle.checkbox input[type=checkbox]~.box:after,.ui.toggle.checkbox input[type=checkbox]~label:after,.ui.toggle.checkbox input[type=radio]~.box:after,.ui.toggle.checkbox input[type=radio]~label:after{left:-.05rem}.ui.toggle.checkbox .box:hover::before,.ui.toggle.checkbox input[type=checkbox]:focus~.box:before,.ui.toggle.checkbox input[type=checkbox]:focus~label:before,.ui.toggle.checkbox input[type=radio]:focus~.box:before,.ui.toggle.checkbox input[type=radio]:focus~label:before,.ui.toggle.checkbox label:hover::before{background-color:rgba(0,0,0,.15);border:none}.ui.toggle.checkbox input:checked~.box,.ui.toggle.checkbox input:checked~label{color:rgba(0,0,0,.95)}.ui.toggle.checkbox input:checked~.box:before,.ui.toggle.checkbox input:checked~label:before{background-color:#2185d0}.ui.toggle.checkbox input:checked~.box:after,.ui.toggle.checkbox input:checked~label:after{left:2.15rem}.ui.fitted.checkbox .box,.ui.fitted.checkbox label{padding-left:0!important}.ui.fitted.slider.checkbox,.ui.fitted.toggle.checkbox{width:3.5rem}@font-face{font-family:Checkbox;src:url(data:application/x-font-ttf;charset=utf-8;base64,AAEAAAALAIAAAwAwT1MvMg8SBD8AAAC8AAAAYGNtYXAYVtCJAAABHAAAAFRnYXNwAAAAEAAAAXAAAAAIZ2x5Zn4huwUAAAF4AAABYGhlYWQGPe1ZAAAC2AAAADZoaGVhB30DyAAAAxAAAAAkaG10eBBKAEUAAAM0AAAAHGxvY2EAmgESAAADUAAAABBtYXhwAAkALwAAA2AAAAAgbmFtZSC8IugAAAOAAAABknBvc3QAAwAAAAAFFAAAACAAAwMTAZAABQAAApkCzAAAAI8CmQLMAAAB6wAzAQkAAAAAAAAAAAAAAAAAAAABEAAAAAAAAAAAAAAAAAAAAABAAADoAgPA/8AAQAPAAEAAAAABAAAAAAAAAAAAAAAgAAAAAAADAAAAAwAAABwAAQADAAAAHAADAAEAAAAcAAQAOAAAAAoACAACAAIAAQAg6AL//f//AAAAAAAg6AD//f//AAH/4xgEAAMAAQAAAAAAAAAAAAAAAQAB//8ADwABAAAAAAAAAAAAAgAANzkBAAAAAAEAAAAAAAAAAAACAAA3OQEAAAAAAQAAAAAAAAAAAAIAADc5AQAAAAABAEUAUQO7AvgAGgAAARQHAQYjIicBJjU0PwE2MzIfAQE2MzIfARYVA7sQ/hQQFhcQ/uMQEE4QFxcQqAF2EBcXEE4QAnMWEP4UEBABHRAXFhBOEBCoAXcQEE4QFwAAAAABAAABbgMlAkkAFAAAARUUBwYjISInJj0BNDc2MyEyFxYVAyUQEBf9SRcQEBAQFwK3FxAQAhJtFxAQEBAXbRcQEBAQFwAAAAABAAAASQMlA24ALAAAARUUBwYrARUUBwYrASInJj0BIyInJj0BNDc2OwE1NDc2OwEyFxYdATMyFxYVAyUQEBfuEBAXbhYQEO4XEBAQEBfuEBAWbhcQEO4XEBACEm0XEBDuFxAQEBAX7hAQF20XEBDuFxAQEBAX7hAQFwAAAQAAAAIAAHRSzT9fDzz1AAsEAAAAAADRsdR3AAAAANGx1HcAAAAAA7sDbgAAAAgAAgAAAAAAAAABAAADwP/AAAAEAAAAAAADuwABAAAAAAAAAAAAAAAAAAAABwQAAAAAAAAAAAAAAAIAAAAEAABFAyUAAAMlAAAAAAAAAAoAFAAeAE4AcgCwAAEAAAAHAC0AAQAAAAAAAgAAAAAAAAAAAAAAAAAAAAAAAAAOAK4AAQAAAAAAAQAIAAAAAQAAAAAAAgAHAGkAAQAAAAAAAwAIADkAAQAAAAAABAAIAH4AAQAAAAAABQALABgAAQAAAAAABgAIAFEAAQAAAAAACgAaAJYAAwABBAkAAQAQAAgAAwABBAkAAgAOAHAAAwABBAkAAwAQAEEAAwABBAkABAAQAIYAAwABBAkABQAWACMAAwABBAkABgAQAFkAAwABBAkACgA0ALBDaGVja2JveABDAGgAZQBjAGsAYgBvAHhWZXJzaW9uIDIuMABWAGUAcgBzAGkAbwBuACAAMgAuADBDaGVja2JveABDAGgAZQBjAGsAYgBvAHhDaGVja2JveABDAGgAZQBjAGsAYgBvAHhSZWd1bGFyAFIAZQBnAHUAbABhAHJDaGVja2JveABDAGgAZQBjAGsAYgBvAHhGb250IGdlbmVyYXRlZCBieSBJY29Nb29uLgBGAG8AbgB0ACAAZwBlAG4AZQByAGEAdABlAGQAIABiAHkAIABJAGMAbwBNAG8AbwBuAC4AAAADAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA) format('truetype')}.ui.checkbox input:checked~.box:after,.ui.checkbox input:checked~label:after{content:'\e800'}.ui.checkbox input:indeterminate~.box:after,.ui.checkbox input:indeterminate~label:after{font-size:12px;content:'\e801'} \ No newline at end of file + */.ui.checkbox{position:relative;display:inline-block;-webkit-backface-visibility:hidden;backface-visibility:hidden;outline:0;vertical-align:baseline;min-height:17px;font-size:1rem;line-height:17px;min-width:17px}.ui.checkbox input[type=checkbox],.ui.checkbox input[type=radio]{cursor:pointer;position:absolute;top:0;left:0;opacity:0!important;outline:0;z-index:3;width:17px;height:17px}.ui.checkbox .box,.ui.checkbox label{cursor:auto;position:relative;display:block;padding-left:1.85714em;outline:0;font-size:1em}.ui.checkbox .box:before,.ui.checkbox label:before{position:absolute;top:0;left:0;width:17px;height:17px;content:'';background:#fff;border-radius:.21428571rem;-webkit-transition:border .1s ease,opacity .1s ease,-webkit-transform .1s ease,box-shadow .1s ease;transition:border .1s ease,opacity .1s ease,transform .1s ease,box-shadow .1s ease;border:1px solid #d4d4d5}.ui.checkbox .box:after,.ui.checkbox label:after{position:absolute;font-size:14px;top:0;left:0;width:17px;height:17px;text-align:center;opacity:0;color:rgba(0,0,0,.87);-webkit-transition:border .1s ease,opacity .1s ease,-webkit-transform .1s ease,box-shadow .1s ease;transition:border .1s ease,opacity .1s ease,transform .1s ease,box-shadow .1s ease;font-family:Checkbox}.ui.checkbox label,.ui.checkbox+label{color:rgba(0,0,0,.87);-webkit-transition:color .1s ease;transition:color .1s ease}.ui.checkbox+label{vertical-align:middle}.ui.checkbox .box:hover::before,.ui.checkbox label:hover::before{background:#fff;border-color:rgba(34,36,38,.35)}.ui.checkbox label:hover,.ui.checkbox+label:hover{color:rgba(0,0,0,.8)}.ui.checkbox .box:active::before,.ui.checkbox label:active::before{background:#f9fafb;border-color:rgba(34,36,38,.35)}.ui.checkbox .box:active::after,.ui.checkbox input[type=checkbox]:active~label,.ui.checkbox input[type=radio]:active~label,.ui.checkbox label:active::after{color:rgba(0,0,0,.95)}.ui.checkbox input[type=checkbox]:focus~.box:before,.ui.checkbox input[type=checkbox]:focus~label:before,.ui.checkbox input[type=radio]:focus~.box:before,.ui.checkbox input[type=radio]:focus~label:before{background:#f9fafb;border-color:rgba(34,36,38,.35)}.ui.checkbox input[type=checkbox]:focus~.box:after,.ui.checkbox input[type=checkbox]:focus~label,.ui.checkbox input[type=checkbox]:focus~label:after,.ui.checkbox input[type=radio]:focus~.box:after,.ui.checkbox input[type=radio]:focus~label,.ui.checkbox input[type=radio]:focus~label:after{color:rgba(0,0,0,.95)}.ui.checkbox input:checked~.box:before,.ui.checkbox input:checked~label:before{background:#fff;border-color:rgba(34,36,38,.35)}.ui.checkbox input:checked~.box:after,.ui.checkbox input:checked~label:after{opacity:1;color:rgba(0,0,0,.95)}.ui.checkbox input[type=checkbox]:indeterminate~.box:before,.ui.checkbox input[type=checkbox]:indeterminate~label:before{background:#fff;border-color:rgba(34,36,38,.35)}.ui.checkbox input[type=checkbox]:indeterminate~.box:after,.ui.checkbox input[type=checkbox]:indeterminate~label:after{opacity:1;color:rgba(0,0,0,.95)}.ui.checkbox input[type=checkbox]:checked:focus~.box:before,.ui.checkbox input[type=checkbox]:checked:focus~label:before,.ui.checkbox input[type=checkbox]:indeterminate:focus~.box:before,.ui.checkbox input[type=checkbox]:indeterminate:focus~label:before{background:#f9fafb;border-color:rgba(34,36,38,.35)}.ui.read-only.checkbox,.ui.read-only.checkbox label{cursor:default}.ui.checkbox input[disabled]~.box:after,.ui.checkbox input[disabled]~label,.ui.disabled.checkbox .box:after,.ui.disabled.checkbox label{cursor:default;opacity:.5;color:#000}.ui.checkbox input[type=checkbox].hidden,.ui.checkbox input[type=radio].hidden{z-index:-1}.ui.checkbox input[type=checkbox].hidden+label,.ui.checkbox input[type=radio].hidden+label{cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.ui.radio.checkbox{min-height:15px}.ui.radio.checkbox .box,.ui.radio.checkbox label{padding-left:1.85714em}.ui.radio.checkbox .box:before,.ui.radio.checkbox label:before{content:'';-webkit-transform:none;-ms-transform:none;transform:none;width:15px;height:15px;border-radius:500rem;top:1px;left:0}.ui.radio.checkbox .box:after,.ui.radio.checkbox label:after{border:none;content:''!important;line-height:15px;top:1px;left:0;width:15px;height:15px;border-radius:500rem;-webkit-transform:scale(.46666667);-ms-transform:scale(.46666667);transform:scale(.46666667);background-color:rgba(0,0,0,.87)}.ui.radio.checkbox input[type=radio]:checked~.box:before,.ui.radio.checkbox input[type=radio]:checked~label:before{background-color:#fff}.ui.radio.checkbox input[type=radio]:checked~.box:after,.ui.radio.checkbox input[type=radio]:checked~label:after{background-color:rgba(0,0,0,.95)}.ui.slider.checkbox{min-height:1.25rem}.ui.slider.checkbox input[type=checkbox],.ui.slider.checkbox input[type=radio]{width:3.5rem;height:1.25rem}.ui.slider.checkbox .box,.ui.slider.checkbox label{padding-left:4.5rem;line-height:1rem;color:rgba(0,0,0,.4)}.ui.slider.checkbox .box:before,.ui.slider.checkbox label:before{display:block;position:absolute;content:'';border:none!important;left:0;z-index:1;top:.4rem;background-color:rgba(0,0,0,.05);width:3.5rem;height:.21428571rem;-webkit-transform:none;-ms-transform:none;transform:none;border-radius:500rem;-webkit-transition:background .3s ease;transition:background .3s ease}.ui.slider.checkbox .box:after,.ui.slider.checkbox label:after{background:-webkit-linear-gradient(transparent,rgba(0,0,0,.05)) #fff;background:linear-gradient(transparent,rgba(0,0,0,.05)) #fff;position:absolute;content:''!important;opacity:1;z-index:2;border:none;box-shadow:0 1px 2px 0 rgba(34,36,38,.15),0 0 0 1px rgba(34,36,38,.15) inset;width:1.5rem;height:1.5rem;top:-.25rem;left:0;-webkit-transform:none;-ms-transform:none;transform:none;border-radius:500rem;-webkit-transition:left .3s ease;transition:left .3s ease}.ui.slider.checkbox input[type=checkbox]:focus~.box:before,.ui.slider.checkbox input[type=checkbox]:focus~label:before,.ui.slider.checkbox input[type=radio]:focus~.box:before,.ui.slider.checkbox input[type=radio]:focus~label:before{background-color:rgba(0,0,0,.15);border:none}.ui.slider.checkbox .box:hover,.ui.slider.checkbox label:hover{color:rgba(0,0,0,.8)}.ui.slider.checkbox .box:hover::before,.ui.slider.checkbox label:hover::before{background:rgba(0,0,0,.15)}.ui.slider.checkbox :checked~.box,.ui.slider.checkbox :checked~label{color:rgba(0,0,0,.95)}.ui.slider.checkbox :checked~.box:before,.ui.slider.checkbox :checked~label:before{background-color:#545454}.ui.slider.checkbox :checked~.box:after,.ui.slider.checkbox :checked~label:after{left:2rem}.ui.toggle.checkbox{min-height:1.5rem}.ui.toggle.checkbox input[type=checkbox],.ui.toggle.checkbox input[type=radio]{width:3.5rem;height:1.5rem}.ui.toggle.checkbox .box,.ui.toggle.checkbox label{min-height:1.5rem;padding-left:4.5rem;color:rgba(0,0,0,.87)}.ui.toggle.checkbox label{padding-top:.15em}.ui.toggle.checkbox .box:before,.ui.toggle.checkbox label:before{display:block;position:absolute;content:'';z-index:1;-webkit-transform:none;-ms-transform:none;transform:none;border:none;top:0;background:rgba(0,0,0,.05);width:3.5rem;height:1.5rem;border-radius:500rem}.ui.toggle.checkbox .box:after,.ui.toggle.checkbox label:after{background:-webkit-linear-gradient(transparent,rgba(0,0,0,.05)) #fff;background:linear-gradient(transparent,rgba(0,0,0,.05)) #fff;position:absolute;content:''!important;opacity:1;z-index:2;border:none;box-shadow:0 1px 2px 0 rgba(34,36,38,.15),0 0 0 1px rgba(34,36,38,.15) inset;width:1.5rem;height:1.5rem;top:0;left:0;border-radius:500rem;-webkit-transition:background .3s ease,left .3s ease;transition:background .3s ease,left .3s ease}.ui.toggle.checkbox input[type=checkbox]~.box:after,.ui.toggle.checkbox input[type=checkbox]~label:after,.ui.toggle.checkbox input[type=radio]~.box:after,.ui.toggle.checkbox input[type=radio]~label:after{left:-.05rem}.ui.toggle.checkbox .box:hover::before,.ui.toggle.checkbox input[type=checkbox]:focus~.box:before,.ui.toggle.checkbox input[type=checkbox]:focus~label:before,.ui.toggle.checkbox input[type=radio]:focus~.box:before,.ui.toggle.checkbox input[type=radio]:focus~label:before,.ui.toggle.checkbox label:hover::before{background-color:rgba(0,0,0,.15);border:none}.ui.toggle.checkbox input:checked~.box,.ui.toggle.checkbox input:checked~label{color:rgba(0,0,0,.95)}.ui.toggle.checkbox input:checked~.box:before,.ui.toggle.checkbox input:checked~label:before{background-color:#2185d0}.ui.toggle.checkbox input:checked~.box:after,.ui.toggle.checkbox input:checked~label:after{left:2.15rem}.ui.fitted.checkbox .box,.ui.fitted.checkbox label{padding-left:0!important}.ui.fitted.slider.checkbox,.ui.fitted.toggle.checkbox{width:3.5rem}@font-face{font-family:Checkbox;src:url(data:application/x-font-ttf;charset=utf-8;base64,AAEAAAALAIAAAwAwT1MvMg8SBD8AAAC8AAAAYGNtYXAYVtCJAAABHAAAAFRnYXNwAAAAEAAAAXAAAAAIZ2x5Zn4huwUAAAF4AAABYGhlYWQGPe1ZAAAC2AAAADZoaGVhB30DyAAAAxAAAAAkaG10eBBKAEUAAAM0AAAAHGxvY2EAmgESAAADUAAAABBtYXhwAAkALwAAA2AAAAAgbmFtZSC8IugAAAOAAAABknBvc3QAAwAAAAAFFAAAACAAAwMTAZAABQAAApkCzAAAAI8CmQLMAAAB6wAzAQkAAAAAAAAAAAAAAAAAAAABEAAAAAAAAAAAAAAAAAAAAABAAADoAgPA/8AAQAPAAEAAAAABAAAAAAAAAAAAAAAgAAAAAAADAAAAAwAAABwAAQADAAAAHAADAAEAAAAcAAQAOAAAAAoACAACAAIAAQAg6AL//f//AAAAAAAg6AD//f//AAH/4xgEAAMAAQAAAAAAAAAAAAAAAQAB//8ADwABAAAAAAAAAAAAAgAANzkBAAAAAAEAAAAAAAAAAAACAAA3OQEAAAAAAQAAAAAAAAAAAAIAADc5AQAAAAABAEUAUQO7AvgAGgAAARQHAQYjIicBJjU0PwE2MzIfAQE2MzIfARYVA7sQ/hQQFhcQ/uMQEE4QFxcQqAF2EBcXEE4QAnMWEP4UEBABHRAXFhBOEBCoAXcQEE4QFwAAAAABAAABbgMlAkkAFAAAARUUBwYjISInJj0BNDc2MyEyFxYVAyUQEBf9SRcQEBAQFwK3FxAQAhJtFxAQEBAXbRcQEBAQFwAAAAABAAAASQMlA24ALAAAARUUBwYrARUUBwYrASInJj0BIyInJj0BNDc2OwE1NDc2OwEyFxYdATMyFxYVAyUQEBfuEBAXbhYQEO4XEBAQEBfuEBAWbhcQEO4XEBACEm0XEBDuFxAQEBAX7hAQF20XEBDuFxAQEBAX7hAQFwAAAQAAAAIAAHRSzT9fDzz1AAsEAAAAAADRsdR3AAAAANGx1HcAAAAAA7sDbgAAAAgAAgAAAAAAAAABAAADwP/AAAAEAAAAAAADuwABAAAAAAAAAAAAAAAAAAAABwQAAAAAAAAAAAAAAAIAAAAEAABFAyUAAAMlAAAAAAAAAAoAFAAeAE4AcgCwAAEAAAAHAC0AAQAAAAAAAgAAAAAAAAAAAAAAAAAAAAAAAAAOAK4AAQAAAAAAAQAIAAAAAQAAAAAAAgAHAGkAAQAAAAAAAwAIADkAAQAAAAAABAAIAH4AAQAAAAAABQALABgAAQAAAAAABgAIAFEAAQAAAAAACgAaAJYAAwABBAkAAQAQAAgAAwABBAkAAgAOAHAAAwABBAkAAwAQAEEAAwABBAkABAAQAIYAAwABBAkABQAWACMAAwABBAkABgAQAFkAAwABBAkACgA0ALBDaGVja2JveABDAGgAZQBjAGsAYgBvAHhWZXJzaW9uIDIuMABWAGUAcgBzAGkAbwBuACAAMgAuADBDaGVja2JveABDAGgAZQBjAGsAYgBvAHhDaGVja2JveABDAGgAZQBjAGsAYgBvAHhSZWd1bGFyAFIAZQBnAHUAbABhAHJDaGVja2JveABDAGgAZQBjAGsAYgBvAHhGb250IGdlbmVyYXRlZCBieSBJY29Nb29uLgBGAG8AbgB0ACAAZwBlAG4AZQByAGEAdABlAGQAIABiAHkAIABJAGMAbwBNAG8AbwBuAC4AAAADAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA) format('truetype')}.ui.checkbox input:checked~.box:after,.ui.checkbox input:checked~label:after{content:'\e800'}.ui.checkbox input:indeterminate~.box:after,.ui.checkbox input:indeterminate~label:after{font-size:12px;content:'\e801'} \ No newline at end of file diff --git a/dist/components/checkbox.min.js b/dist/components/checkbox.min.js index 981e02aa1..989da3c87 100644 --- a/dist/components/checkbox.min.js +++ b/dist/components/checkbox.min.js @@ -1,5 +1,5 @@ /*! - * # Semantic UI 2.0.1 - Checkbox + * # Semantic UI 2.0.3 - Checkbox * http://github.com/semantic-org/semantic-ui/ * * @@ -8,4 +8,4 @@ * http://opensource.org/licenses/MIT * */ -!function(e,n,t,i){"use strict";e.fn.checkbox=function(t){var o,r=e(this),a=r.selector||"",c=(new Date).getTime(),d=[],s=arguments[0],l="string"==typeof s,u=[].slice.call(arguments,1);return r.each(function(){var r,b,g=e.extend(!0,{},e.fn.checkbox.settings,t),h=g.className,p=g.namespace,m=g.selector,f=g.error,k="."+p,v="module-"+p,y=e(this),x=e(this).children(m.label),C=e(this).children(m.input),I=y.data(v),O=this;b={initialize:function(){b.verbose("Initializing checkbox",g),b.create.label(),b.bind.events(),b.set.tabbable(),b.hide.input(),b.observeChanges(),b.instantiate(),b.setup()},instantiate:function(){b.verbose("Storing instance of module",b),I=b,y.data(v,b)},destroy:function(){b.verbose("Destroying module"),b.unbind.events(),b.show.input(),y.removeData(v)},fix:{reference:function(){y.is(m.input)&&(b.debug("Behavior called on adjusting invoked element"),y=y.closest(m.checkbox),b.refresh())}},setup:function(){b.is.indeterminate()?(b.debug("Initial value is indeterminate"),b.set.indeterminate(),g.fireOnInit&&(g.onIndeterminate.call(C[0]),g.onChange.call(C[0]))):b.is.checked()?(b.debug("Initial value is checked"),b.set.checked(),g.fireOnInit&&(g.onChecked.call(C[0]),g.onChange.call(C[0]))):(b.debug("Initial value is unchecked"),b.set.unchecked(),g.fireOnInit&&(g.onUnchecked.call(C[0]),g.onChange.call(C[0])))},refresh:function(){x=y.children(m.label),C=y.children(m.input)},hide:{input:function(){b.verbose("Modfying z-index to be unselectable"),C.addClass(h.hidden)}},show:{input:function(){b.verbose("Modfying z-index to be selectable"),C.removeClass(h.hidden)}},observeChanges:function(){"MutationObserver"in n&&(r=new MutationObserver(function(e){b.debug("DOM tree modified, updating selector cache"),b.refresh()}),r.observe(O,{childList:!0,subtree:!0}),b.debug("Setting up mutation observer",r))},attachEvents:function(n,t){var i=e(n);t=e.isFunction(b[t])?b[t]:b.toggle,i.length>0?(b.debug("Attaching checkbox events to element",n,t),i.on("click"+k,t)):b.error(f.notFound)},event:{click:function(n){return e(n.target).is(m.input)?void b.verbose("Using default check action on initialized checkbox"):void b.toggle()},keydown:function(e){var n=e.which,t={enter:13,space:32,escape:27};n==t.escape&&(b.verbose("Escape key pressed blurring field"),C.blur(),e.preventDefault()),e.ctrlKey||n!=t.enter&&n!=t.space||(b.verbose("Enter key pressed, toggling checkbox"),b.toggle(),e.preventDefault())}},check:function(){return!b.is.indeterminate()&&b.is.checked()?void b.debug("Checkbox is already checked"):(b.debug("Checking checkbox",C),b.set.checked(),g.onChecked.call(C[0]),void g.onChange.call(C[0]))},uncheck:function(){return!b.is.indeterminate()&&b.is.unchecked()?void b.debug("Checkbox is already unchecked"):(b.debug("Unchecking checkbox"),b.set.unchecked(),g.onUnchecked.call(C[0]),void g.onChange.call(C[0]))},indeterminate:function(){return b.is.indeterminate()?void b.debug("Checkbox is already indeterminate"):(b.debug("Making checkbox indeterminate"),b.set.indeterminate(),g.onIndeterminate.call(C[0]),void g.onChange.call(C[0]))},determinate:function(){return b.is.determinate()?void b.debug("Checkbox is already determinate"):(b.debug("Making checkbox determinate"),b.set.determinate(),g.onDeterminate.call(C[0]),void g.onChange.call(C[0]))},enable:function(){return b.is.enabled()?void b.debug("Checkbox is already enabled"):(b.debug("Enabling checkbox"),b.set.enabled(),void g.onEnable.call(C[0]))},disable:function(){return b.is.disabled()?void b.debug("Checkbox is already disabled"):(b.debug("Disabling checkbox"),b.set.disabled(),void g.onDisable.call(C[0]))},get:{radios:function(){var n=b.get.name();return e('input[name="'+n+'"]').closest(m.checkbox)},otherRadios:function(){return b.get.radios().not(y)},name:function(){return C.attr("name")}},is:{radio:function(){return C.hasClass(h.radio)||"radio"==C.attr("type")},indeterminate:function(){return C.prop("indeterminate")!==i&&C.prop("indeterminate")},checked:function(){return C.prop("checked")!==i&&C.prop("checked")},disabled:function(){return C.prop("disabled")!==i&&C.prop("disabled")},enabled:function(){return!b.is.disabled()},determinate:function(){return!b.is.indeterminate()},unchecked:function(){return!b.is.checked()}},can:{change:function(){return!(y.hasClass(h.disabled)||y.hasClass(h.readOnly)||C.prop("disabled")||C.prop("readonly"))},uncheck:function(){return"boolean"==typeof g.uncheckable?g.uncheckable:!b.is.radio()}},set:{checked:function(){return b.verbose("Setting class to checked"),y.removeClass(h.indeterminate).addClass(h.checked),b.is.radio()&&b.uncheckOthers(),!b.is.indeterminate()&&b.is.checked()?void b.debug("Input is already checked, skipping input property change"):(b.verbose("Setting state to checked",C[0]),C.prop("indeterminate",!1).prop("checked",!0),void b.trigger.change())},unchecked:function(){return b.verbose("Removing checked class"),y.removeClass(h.indeterminate).removeClass(h.checked),!b.is.indeterminate()&&b.is.unchecked()?void b.debug("Input is already unchecked"):(b.debug("Setting state to unchecked"),C.prop("indeterminate",!1).prop("checked",!1),void b.trigger.change())},indeterminate:function(){return b.verbose("Setting class to indeterminate"),y.addClass(h.indeterminate),b.is.indeterminate()?void b.debug("Input is already indeterminate, skipping input property change"):(b.debug("Setting state to indeterminate"),C.prop("indeterminate",!0),void b.trigger.change())},determinate:function(){return b.verbose("Removing indeterminate class"),y.removeClass(h.indeterminate),b.is.determinate()?void b.debug("Input is already determinate, skipping input property change"):(b.debug("Setting state to determinate"),void C.prop("indeterminate",!1))},disabled:function(){return b.verbose("Setting class to disabled"),y.addClass(h.disabled),b.is.disabled()?void b.debug("Input is already disabled, skipping input property change"):(b.debug("Setting state to disabled"),C.prop("disabled","disabled"),void b.trigger.change())},enabled:function(){return b.verbose("Removing disabled class"),y.removeClass(h.disabled),b.is.enabled()?void b.debug("Input is already enabled, skipping input property change"):(b.debug("Setting state to enabled"),C.prop("disabled",!1),void b.trigger.change())},tabbable:function(){b.verbose("Adding tabindex to checkbox"),C.attr("tabindex")===i&&C.attr("tabindex",0)}},trigger:{change:function(){b.verbose("Triggering change event from programmatic change"),C.trigger("change")}},create:{label:function(){C.prevAll(m.label).length>0?(C.prev(m.label).detach().insertAfter(C),b.debug("Moving existing label",x)):b.has.label()||(x=e("