Skip to content

Commit

Permalink
chore(release): update dist
Browse files Browse the repository at this point in the history
  • Loading branch information
Sean Hamilton committed Jun 16, 2019
1 parent c7fbe3f commit f39895a
Show file tree
Hide file tree
Showing 22 changed files with 552 additions and 185 deletions.
1 change: 0 additions & 1 deletion definitions/behaviors/api.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ $.isWindow = $.isWindow || function(obj) {
return obj != null && obj === obj.window;
};

var
window = (typeof window != 'undefined' && window.Math == Math)
? window
: (typeof self != 'undefined' && self.Math == Math)
Expand Down
7 changes: 4 additions & 3 deletions definitions/behaviors/form.js
Original file line number Diff line number Diff line change
Expand Up @@ -298,9 +298,10 @@ $.fn.form = function(parameters) {
} else {
module.set.clean();
}
if (e) {

if (e && e.namespace === 'dirty') {
e.stopImmediatePropagation();
e.preventDefault();
}
}
},
Expand Down Expand Up @@ -909,7 +910,7 @@ $.fn.form = function(parameters) {
return;
}
$.each(validation[field].rules, function(index, rule) {
if(rules.indexOf(rule.type) !== -1) {
if(rule && rules.indexOf(rule.type) !== -1) {
module.debug('Removed rule', rule.type);
validation[field].rules.splice(index, 1);
}
Expand Down
7 changes: 5 additions & 2 deletions definitions/collections/form.less
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,7 @@
}

/* Text Area */
.ui.input textarea,
.ui.form textarea {
margin: 0;
-webkit-appearance: none;
Expand Down Expand Up @@ -186,19 +187,21 @@
Transparent
---------------------*/

.ui.form .field .transparent.input input,
.ui.form .field .transparent.input:not(.icon) input,
.ui.form .field input.transparent,
.ui.form .field textarea.transparent {
padding: @transparentPadding !important;
padding: @transparentPadding;
}

.ui.form .field input.transparent,
.ui.form .field textarea.transparent {
border-color: transparent !important;
background-color: transparent !important;
box-shadow: none !important;
}

.ui.form .field.error .transparent.input input,
.ui.form .field.error .transparent.input textarea,
.ui.form .field.error input.transparent,
.ui.form .field.error textarea.transparent {
background-color: @transparentFormErrorBackground !important;
Expand Down
15 changes: 13 additions & 2 deletions definitions/collections/menu.less
Original file line number Diff line number Diff line change
Expand Up @@ -1044,9 +1044,10 @@ Floated Menu / Item


/* Active */
.ui.secondary.inverted.pointing.menu .active.item {
.ui.ui.secondary.inverted.pointing.menu .active.item {
border-color: @secondaryPointingInvertedActiveBorderColor;
color: @secondaryPointingInvertedActiveColor;
background-color: transparent;
}

/*--------------
Expand Down Expand Up @@ -1305,8 +1306,11 @@ each(@colors, {

& when not (@color=secondary) {
.ui.ui.menu .@{color}.active.item,
.ui.ui.@{color}.menu .active.item:hover,
.ui.ui.@{color}.menu .active.item {
border-color: @c;
& when not (@secondaryPointingActiveBorderColor = currentColor) {
border-color: @c;
}
color: @c;
}
}
Expand Down Expand Up @@ -1430,6 +1434,7 @@ each(@colors, {
each(@colors, {
@color: replace(@key, '@', '');
@c: @colors[@@color][color];
@h: @colors[@@color][hover];

& when not (@color=secondary) {
.ui.ui.inverted.menu .@{color}.active.item,
Expand All @@ -1442,9 +1447,15 @@ each(@colors, {
.ui.ui.inverted.@{color}.menu .active.item {
background-color: @invertedColoredActiveBackground;
}
.ui.inverted.pointing.@{color}.menu .active.item {
background-color: @h;
}
}
})

.ui.ui.ui.inverted.pointing.menu .active.item:after{
background-color: inherit;
}

/*--------------
Fitted
Expand Down
22 changes: 16 additions & 6 deletions definitions/collections/table.less
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,10 @@
width: 100%;
padding: 0;
}
.ui.table:not(.unstackable) > thead,
.ui.table:not(.unstackable) > thead > tr,
.ui.table:not(.unstackable) > tfoot,
.ui.table:not(.unstackable) > tfoot > tr,
.ui.table:not(.unstackable) > tbody,
.ui.table:not(.unstackable) > tr,
.ui.table:not(.unstackable) > tbody > tr,
Expand Down Expand Up @@ -196,10 +200,10 @@
box-shadow: @responsiveRowBoxShadow;
}

.ui.table:not(.unstackable) > tr > th,
.ui.table:not(.unstackable) > thead > tr > th,
.ui.table:not(.unstackable) > tbody > tr > th,
.ui.table:not(.unstackable) > tfoot > tr > th,
.ui.ui.ui.ui.table:not(.unstackable) > tr > th,
.ui.ui.ui.ui.table:not(.unstackable) > thead > tr > th,
.ui.ui.ui.ui.table:not(.unstackable) > tbody > tr > th,
.ui.ui.ui.ui.table:not(.unstackable) > tfoot > tr > th,
.ui.ui.ui.ui.table:not(.unstackable) > tr > td,
.ui.ui.ui.ui.table:not(.unstackable) > tbody > tr > td {
background: none;
Expand Down Expand Up @@ -411,6 +415,10 @@
@media only screen and (max-width : @largestTabletScreen) {

.ui[class*="tablet stackable"].table,
.ui[class*="tablet stackable"].table > thead,
.ui[class*="tablet stackable"].table > thead > tr,
.ui[class*="tablet stackable"].table > tfoot,
.ui[class*="tablet stackable"].table > tfoot > tr,
.ui[class*="tablet stackable"].table > tbody,
.ui[class*="tablet stackable"].table > tbody > tr,
.ui[class*="tablet stackable"].table > tr,
Expand Down Expand Up @@ -670,6 +678,8 @@ each(@colors, {
@l: @colors[@@color][light];
@lh: @colors[@@color][lightHover];
@r: @colors[@@color][ribbon];
@b: @colors[@@color][bright];
@bh: @colors[@@color][brightHover];
@isDark: @colors[@@color][isDark];
@isVeryDark: @colors[@@color][isVeryDark];

Expand All @@ -687,7 +697,7 @@ each(@colors, {
background: @l;
}
& when not (@isDark) {
background: screen(@l,@blendingBaseColor);
background: @b;
}
& when (@isVeryDark) {
color: @white;
Expand All @@ -703,7 +713,7 @@ each(@colors, {
background: @lh;
}
& when not (@isDark) {
background: screen(@lh,@blendingBaseColor);
background: @bh;
}
& when (@isVeryDark) {
color: @white;
Expand Down
70 changes: 15 additions & 55 deletions definitions/elements/button.less
Original file line number Diff line number Diff line change
Expand Up @@ -1335,6 +1335,7 @@
.ui.fluid.vertical.buttons > .button {
display: flex;
width: auto;
justify-content: center;
}

.ui.two.vertical.buttons > .button {
Expand Down Expand Up @@ -1392,6 +1393,10 @@ each(@colors, {
@la: @colors[@@color][lightActive];
@lt: @colors[@@color][lightText];
@ls: @colors[@@color][lightShadow];
@ty: @colors[@@color][tertiary];
@tyh: @colors[@@color][tertiaryHover];
@tyf: @colors[@@color][tertiaryFocus];
@tya: @colors[@@color][tertiaryActive];
@isDark: @colors[@@color][isDark];
@isVeryDark: @colors[@@color][isVeryDark];

Expand Down Expand Up @@ -1570,20 +1575,12 @@ each(@colors, {
.ui.tertiary.@{color}.button {
background: transparent;

.tertiaryButtonColor() when (@isVeryDark) {
@_tertiaryButtonColor: lighten(@c, 20%);
}
.tertiaryButtonColor() when not (@isVeryDark) {
@_tertiaryButtonColor: saturate(@c, 20%);
}
.tertiaryButtonColor();

& when (@tertiaryWithUnderline = true) {
box-shadow: inset 0 -@tertiaryLineHeight 0 @_tertiaryButtonColor ;
box-shadow: inset 0 -@tertiaryLineHeight 0 @ty;
}

& when (@tertiaryWithOverline = true) {
box-shadow: inset 0 @tertiaryLineHeight 0 @_tertiaryButtonColor ;
box-shadow: inset 0 @tertiaryLineHeight 0 @ty;
}

& when (@tertiaryWithUnderline = false) and (@tertiaryWithOverline = false){
Expand All @@ -1596,67 +1593,38 @@ each(@colors, {
.ui.tertiary.@{color}.buttons button:hover,
.ui.tertiary.@{color}.button:hover {

.tertiaryButtonColorHover() when (@isVeryDark) {
@_tertiaryButtonColorHover: lighten(@h, 40%);
}
.tertiaryButtonColorHover() when not (@isVeryDark) {
@_tertiaryButtonColorHover: desaturate(@h, 20%);
}
.tertiaryButtonColorHover();

& when (@tertiaryHoverWithUnderline = true) {
box-shadow: inset 0 -@tertiaryLineHeight 0 @_tertiaryButtonColorHover ;
box-shadow: inset 0 -@tertiaryLineHeight 0 @tyh;
}

& when (@tertiaryHoverWithOverline = true) {
box-shadow: inset 0 @tertiaryLineHeight 0 @_tertiaryButtonColorHover ;
box-shadow: inset 0 @tertiaryLineHeight 0 @tyh;
}

& when (@tertiaryHoverWithUnderline = false) and (@tertiaryHoverWithOverline = false) {
box-shadow: none ;
}

& when (@isVeryDark) {
color: lighten(@h, 20%) ;
}

& when not (@isVeryDark) {
color: @_tertiaryButtonColorHover ;
}
color: @tyh;
}

.ui.tertiary.@{color}.buttons .button:focus,
.ui.tertiary.@{color}.buttons .tertiary.button:focus,
.ui.tertiary.@{color}.button:focus {


.tertiaryButtonColorFocus() when (@isVeryDark) {
@_tertiaryButtonColorFocus: lighten(@f, 40%);
}
.tertiaryButtonColorFocus() when not (@isVeryDark) {
@_tertiaryButtonColorFocus: desaturate(@f, 20%);
}
.tertiaryButtonColorFocus();

& when (@tertiaryFocusWithUnderline = true) {
box-shadow: inset 0 -@tertiaryLineHeight 0 @_tertiaryButtonColorFocus ;
box-shadow: inset 0 -@tertiaryLineHeight 0 @tyf;
}

& when (@tertiaryFocusWithOverline = true) {
box-shadow: inset 0 @tertiaryLineHeight 0 @_tertiaryButtonColorFocus ;
box-shadow: inset 0 @tertiaryLineHeight 0 @tyf;
}

& when (@tertiaryFocusWithUnderline = false) and (@tertiaryFocusWithOverline = false) {
box-shadow: none;
}

& when (@isVeryDark) {
color: lighten(@f, 20%) ;
}

& when not (@isVeryDark) {
color: @_tertiaryButtonColorFocus ;
}
color: @tyf;
}

.ui.tertiary.@{color}.buttons .active.button,
Expand All @@ -1666,20 +1634,12 @@ each(@colors, {
.ui.tertiary.@{color}.buttons .tertiary.button:active,
.ui.tertiary.@{color}.button:active {

.tertiaryButtonColorActive() when (@isVeryDark) {
@_tertiaryButtonColorActive: lighten(@a, 20%);
}
.tertiaryButtonColorActive() when not (@isVeryDark) {
@_tertiaryButtonColorActive: saturate(@a, 20%);
}
.tertiaryButtonColorActive();

& when (@tertiaryActiveWithUnderline = true) {
box-shadow: inset 0 -@tertiaryLineHeight 0 @_tertiaryButtonColorActive ;
box-shadow: inset 0 -@tertiaryLineHeight 0 @tya;
}

& when (@tertiaryActiveWithOverline = true) {
box-shadow: inset 0 @tertiaryLineHeight 0 @_tertiaryButtonColorActive ;
box-shadow: inset 0 @tertiaryLineHeight 0 @tya;
}

& when (@tertiaryActiveWithUnderline = false) and (@tertiaryActiveWithOverline = false) {
Expand Down
36 changes: 21 additions & 15 deletions definitions/elements/input.less
Original file line number Diff line number Diff line change
Expand Up @@ -211,22 +211,25 @@
.ui.transparent.input > input {
border-color: transparent !important;
background-color: transparent !important;
padding: 0 !important;
padding: 0;
box-shadow: none !important;
border-radius: 0 !important;
}
.field .ui.transparent.input > textarea {
padding: @padding;
}

/* Transparent Icon */
.ui.transparent.icon.input > i.icon {
:not(.field) > .ui.transparent.icon.input > i.icon {
width: @transparentIconWidth;
}
.ui.transparent.icon.input > input {
padding-left: 0 !important;
padding-right: @transparentIconMargin !important;
:not(.field) > .ui.transparent.icon.input > input {
padding-left: 0;
padding-right: @transparentIconMargin;
}
.ui.transparent[class*="left icon"].input > input {
padding-left: @transparentIconMargin !important;
padding-right: 0 !important;
:not(.field) > .ui.transparent[class*="left icon"].input > input {
padding-left: @transparentIconMargin;
padding-right: 0;
}

/* Transparent Inverted */
Expand Down Expand Up @@ -271,9 +274,9 @@
.ui.icon.input > i.icon:not(.link) {
pointer-events: none;
}
.ui.icon.input > textarea,
.ui.icon.input > input {
padding-right: @iconMargin !important;
.ui.ui.icon.input > textarea,
.ui.ui.icon.input > input {
padding-right: @iconMargin;
}

.ui.icon.input > i.icon:before,
Expand Down Expand Up @@ -303,10 +306,10 @@
right: auto;
left: @circularIconHorizontalOffset;
}
.ui[class*="left icon"].input > textarea,
.ui[class*="left icon"].input > input {
padding-left: @iconMargin !important;
padding-right: @horizontalPadding !important;
.ui.ui[class*="left icon"].input > textarea,
.ui.ui[class*="left icon"].input > input {
padding-left: @iconMargin;
padding-right: @horizontalPadding;
}

/* Focus */
Expand Down Expand Up @@ -395,6 +398,9 @@
.ui.icon.input > textarea ~ .icon {
height: @textareaIconHeight;
}
:not(.field) > .ui.transparent.icon.input > textarea ~ .icon {
height: @transparentTextareaIconHeight;
}

/* Corner Label Position */
.ui.input > .ui.corner.label {
Expand Down
Loading

0 comments on commit f39895a

Please sign in to comment.