Skip to content

Commit

Permalink
Updated distribution to version 2.3.1
Browse files Browse the repository at this point in the history
  • Loading branch information
Semantic-Pusher-Robot committed Mar 19, 2018
1 parent d25d642 commit fc68696
Show file tree
Hide file tree
Showing 48 changed files with 4,077 additions and 1,746 deletions.
2 changes: 1 addition & 1 deletion definitions/behaviors/api.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

;(function ($, window, document, undefined) {

"use strict";
'use strict';

var
window = (typeof window != 'undefined' && window.Math == Math)
Expand Down
12 changes: 6 additions & 6 deletions definitions/behaviors/form.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

;(function ($, window, document, undefined) {

"use strict";
'use strict';

window = (typeof window != 'undefined' && window.Math == Math)
? window
Expand Down Expand Up @@ -435,16 +435,16 @@ $.fn.form = function(parameters) {
var
ruleName = module.get.ruleName(rule),
ancillary = module.get.ancillaryValue(rule),
prompt = rule.prompt || settings.prompt[ruleName] || settings.text.unspecifiedRule,
$field = module.get.field(field.identifier),
value = $field.val(),
prompt = $.isFunction(rule.prompt)
? rule.prompt(value)
: rule.prompt || settings.prompt[ruleName] || settings.text.unspecifiedRule,
requiresValue = (prompt.search('{value}') !== -1),
requiresName = (prompt.search('{name}') !== -1),
$label,
$field,
name
;
if(requiresName || requiresValue) {
$field = module.get.field(field.identifier);
}
if(requiresValue) {
prompt = prompt.replace('{value}', $field.val());
}
Expand Down
4 changes: 2 additions & 2 deletions definitions/behaviors/visibility.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

;(function ($, window, document, undefined) {

"use strict";
'use strict';

window = (typeof window != 'undefined' && window.Math == Math)
? window
Expand Down Expand Up @@ -933,7 +933,7 @@ $.fn.visibility = function(parameters) {
element.percentagePassed = 0;

// meta calculations
element.onScreen = (element.topVisible && !element.bottomPassed);
element.onScreen = ((element.topVisible || element.passing) && !element.bottomPassed);
element.passing = (element.topPassed && !element.bottomPassed);
element.offScreen = (!element.onScreen);

Expand Down
4 changes: 2 additions & 2 deletions definitions/collections/menu.less
Original file line number Diff line number Diff line change
Expand Up @@ -452,9 +452,9 @@

.ui.menu .item.disabled,
.ui.menu .item.disabled:hover {
cursor: default;
cursor: default !important;
background-color: transparent !important;
color: @disabledTextColor;
color: @disabledTextColor !important;
}


Expand Down
2 changes: 1 addition & 1 deletion definitions/elements/icon.less
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ i.disabled.icon {

i.fitted.icon {
width: auto;
margin: 0em;
margin: 0em !important;
}

/*-------------------
Expand Down
4 changes: 2 additions & 2 deletions definitions/elements/image.less
Original file line number Diff line number Diff line change
Expand Up @@ -319,8 +319,8 @@ img.ui.bordered.image {
}

.ui.images .image,
.ui.images img,
.ui.images svg {
.ui.images > img,
.ui.images > svg {
display: inline-block;
margin: 0em @imageHorizontalMargin @imageVerticalMargin;
}
Expand Down
2 changes: 2 additions & 0 deletions definitions/elements/reveal.less
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@
.ui.slide.reveal > .content {
display: block;
width: 100%;
white-space: normal;
float: left;

margin: 0em;
Expand Down Expand Up @@ -154,6 +155,7 @@
.ui.move.reveal > .content {
display: block;
float: left;
white-space: normal;

margin: 0em;
transition: @moveTransition;
Expand Down
2 changes: 1 addition & 1 deletion definitions/modules/accordion.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

;(function ($, window, document, undefined) {

"use strict";
'use strict';

window = (typeof window != 'undefined' && window.Math == Math)
? window
Expand Down
2 changes: 1 addition & 1 deletion definitions/modules/checkbox.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

;(function ($, window, document, undefined) {

"use strict";
'use strict';

window = (typeof window != 'undefined' && window.Math == Math)
? window
Expand Down
2 changes: 1 addition & 1 deletion definitions/modules/dimmer.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

;(function ($, window, document, undefined) {

"use strict";
'use strict';

window = (typeof window != 'undefined' && window.Math == Math)
? window
Expand Down
16 changes: 11 additions & 5 deletions definitions/modules/dropdown.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

;(function ($, window, document, undefined) {

"use strict";
'use strict';

window = (typeof window != 'undefined' && window.Math == Math)
? window
Expand Down Expand Up @@ -1617,7 +1617,7 @@ $.fn.dropdown = function(parameters) {
: text
;
if( module.can.activate( $(element) ) ) {
module.set.value(value, $(element));
module.set.value(value, text, $(element));
if(module.is.multiple() && !module.is.allFiltered()) {
return;
}
Expand Down Expand Up @@ -2283,7 +2283,7 @@ $.fn.dropdown = function(parameters) {
var
length = module.get.query().length
;
$search.val( text.substr(0 , length));
$search.val( text.substr(0, length));
},
scrollPosition: function($item, forceScroll) {
var
Expand Down Expand Up @@ -2579,14 +2579,17 @@ $.fn.dropdown = function(parameters) {
escapedValue = module.escape.value(value),
$label
;
if(settings.ignoreCase) {
escapedValue = escapedValue.toLowerCase();
}
$label = $('<a />')
.addClass(className.label)
.attr('data-' + metadata.value, escapedValue)
.html(templates.label(escapedValue, text))
;
$label = settings.onLabelCreate.call($label, escapedValue, text);

if(module.has.value(value)) {
if(module.has.label(value)) {
module.debug('User selection already exists, skipping', escapedValue);
return;
}
Expand Down Expand Up @@ -3043,6 +3046,9 @@ $.fn.dropdown = function(parameters) {
escapedValue = module.escape.value(value),
$labels = $module.find(selector.label)
;
if(settings.ignoreCase) {
escapedValue = escapedValue.toLowerCase();
}
return ($labels.filter('[data-' + metadata.value + '="' + module.escape.string(escapedValue) +'"]').length > 0);
},
maxSelections: function() {
Expand Down Expand Up @@ -3889,7 +3895,7 @@ $.fn.dropdown.settings.templates = {
? 'disabled '
: ''
;
html += '<div class="'+ maybeDisabled +'item" data-value="' + option[fields.value] + '"' + maybeText + '>'
html += '<div class="'+ maybeDisabled +'item" data-value="' + option[fields.value] + '"' + maybeText + '>';
html += option[fields.name];
html += '</div>';
});
Expand Down
2 changes: 1 addition & 1 deletion definitions/modules/embed.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

;(function ($, window, document, undefined) {

"use strict";
'use strict';

window = (typeof window != 'undefined' && window.Math == Math)
? window
Expand Down
2 changes: 1 addition & 1 deletion definitions/modules/modal.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

;(function ($, window, document, undefined) {

"use strict";
'use strict';

window = (typeof window != 'undefined' && window.Math == Math)
? window
Expand Down
2 changes: 1 addition & 1 deletion definitions/modules/nag.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

;(function ($, window, document, undefined) {

"use strict";
'use strict';

window = (typeof window != 'undefined' && window.Math == Math)
? window
Expand Down
2 changes: 1 addition & 1 deletion definitions/modules/popup.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

;(function ($, window, document, undefined) {

"use strict";
'use strict';

window = (typeof window != 'undefined' && window.Math == Math)
? window
Expand Down
2 changes: 1 addition & 1 deletion definitions/modules/progress.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

;(function ($, window, document, undefined) {

"use strict";
'use strict';

window = (typeof window != 'undefined' && window.Math == Math)
? window
Expand Down
2 changes: 1 addition & 1 deletion definitions/modules/rating.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

;(function ($, window, document, undefined) {

"use strict";
'use strict';

window = (typeof window != 'undefined' && window.Math == Math)
? window
Expand Down
7 changes: 4 additions & 3 deletions definitions/modules/search.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

;(function ($, window, document, undefined) {

"use strict";
'use strict';

window = (typeof window != 'undefined' && window.Math == Math)
? window
Expand Down Expand Up @@ -596,9 +596,10 @@ $.fn.search = function(parameters) {
addResult = function(array, result) {
var
notResult = ($.inArray(result, results) == -1),
notFuzzyResult = ($.inArray(result, fuzzyResults) == -1)
notFuzzyResult = ($.inArray(result, fuzzyResults) == -1),
notExactResults = ($.inArray(result, exactResults) == -1)
;
if(notResult && notFuzzyResult) {
if(notResult && notFuzzyResult && notExactResults) {
array.push(result);
}
}
Expand Down
12 changes: 12 additions & 0 deletions definitions/modules/search.less
Original file line number Diff line number Diff line change
Expand Up @@ -270,6 +270,18 @@
color: @resultActiveDescriptionColor;
}

/*--------------------
Disabled
----------------------*/

/* Disabled */
.ui.disabled.search {
cursor: default;
pointer-events: none;
opacity: @disabledOpacity;
}


/*******************************
Types
*******************************/
Expand Down
2 changes: 1 addition & 1 deletion definitions/modules/shape.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

;(function ($, window, document, undefined) {

"use strict";
'use strict';

window = (typeof window != 'undefined' && window.Math == Math)
? window
Expand Down
2 changes: 1 addition & 1 deletion definitions/modules/sidebar.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

;(function ($, window, document, undefined) {

"use strict";
'use strict';

window = (typeof window != 'undefined' && window.Math == Math)
? window
Expand Down
2 changes: 1 addition & 1 deletion definitions/modules/sticky.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

;(function ($, window, document, undefined) {

"use strict";
'use strict';

window = (typeof window != 'undefined' && window.Math == Math)
? window
Expand Down
2 changes: 1 addition & 1 deletion definitions/modules/tab.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

;(function ($, window, document, undefined) {

"use strict";
'use strict';

window = (typeof window != 'undefined' && window.Math == Math)
? window
Expand Down
2 changes: 1 addition & 1 deletion definitions/modules/transition.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

;(function ($, window, document, undefined) {

"use strict";
'use strict';

window = (typeof window != 'undefined' && window.Math == Math)
? window
Expand Down
2 changes: 1 addition & 1 deletion package.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ var
Package.describe({
name : 'semantic:ui',
summary : 'Semantic UI - LESS Release of Semantic UI',
version : '2.3.0',
version : '2.3.1',
git : 'git://github.com/Semantic-Org/Semantic-UI-LESS.git',
});

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "semantic-ui-less",
"version": "2.3.0",
"version": "2.3.1",
"title": "Semantic UI",
"description": "LESS Only distribution of Semantic UI",
"homepage": "http://www.semantic-ui.com",
Expand Down
2 changes: 1 addition & 1 deletion themes/basic/elements/button.variables
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

/* Button Variables */
@textTransform: none;
@fontWeight: normal;
@fontWeight: @normal;
@textColor: #333333;

@primaryColor: #333333;
Expand Down
4 changes: 2 additions & 2 deletions themes/basic/modules/progress.variables
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,6 @@
@progressWidth: 100%;
@progressTextAlign: center;

@labelFontWeight: normal;
@labelFontWeight: @normal;
@labelTextAlign: left;
@labelHeight: 1.5em;
@labelHeight: 1.5em;
4 changes: 2 additions & 2 deletions themes/bookish/elements/header.variables
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
--------------------*/

@headerFont : 'Karma', 'Times New Roman', serif;
@fontWeight: normal;
@fontWeight: @normal;

@iconSize: 1.5em;
@iconOffset: 0.2em;
Expand Down Expand Up @@ -34,4 +34,4 @@
@largeFontSize: 1.33em;
@mediumFontSize: 1.33em;
@smallFontSize: 1em;
@tinyFontSize: 0.9em;
@tinyFontSize: 0.9em;
Loading

0 comments on commit fc68696

Please sign in to comment.