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 Jul 28, 2019
1 parent d06478a commit af523c7
Show file tree
Hide file tree
Showing 37 changed files with 571 additions and 304 deletions.
18 changes: 9 additions & 9 deletions definitions/behaviors/form.js
Original file line number Diff line number Diff line change
Expand Up @@ -733,23 +733,23 @@ $.fn.form = function(parameters) {
case 'date':
values[name] = settings.formatter.date(date);
break;

case 'datetime':
values[name] = settings.formatter.datetime(date);
break;

case 'time':
values[name] = settings.formatter.time(date);
break;

case 'month':
values[name] = settings.formatter.month(date);
break;

case 'year':
values[name] = settings.formatter.year(date);
break;

default:
module.debug('Wrong calendar mode', $calendar, type);
values[name] = '';
Expand Down Expand Up @@ -860,7 +860,7 @@ $.fn.form = function(parameters) {
}
if(settings.inline) {
if(!promptExists) {
$prompt = settings.templates.prompt(errors);
$prompt = settings.templates.prompt(errors, className.label);
$prompt
.appendTo($fieldGroup)
;
Expand Down Expand Up @@ -1506,7 +1506,7 @@ $.fn.form.settings = {

className : {
error : 'error',
label : 'ui prompt label',
label : 'ui basic red pointing prompt label',
pressed : 'down',
success : 'success'
},
Expand All @@ -1533,9 +1533,9 @@ $.fn.form.settings = {
},

// template that produces label
prompt: function(errors) {
prompt: function(errors, labelClasses) {
return $('<div/>')
.addClass('ui basic red pointing prompt label')
.addClass(labelClasses)
.html(errors[0])
;
}
Expand Down
11 changes: 7 additions & 4 deletions definitions/collections/form.less
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,9 @@
Checkbox margin
---------------------*/

.ui.form .fields:not(.grouped):not(.inline) .field:not(:only-child) label + .ui.ui.checkbox {
margin-top: @checkboxLabelFieldTopMargin;
}
.ui.form .fields:not(.grouped):not(.inline) .field:not(:only-child) .ui.checkbox {
margin-top: @inputLineHeight + @checkboxFieldTopMargin;
}
Expand Down Expand Up @@ -490,10 +493,10 @@
}

/* On Field(s) */
.ui.form .fields.error .field label,
.ui.form .field.error label,
.ui.form .fields.error .field .input,
.ui.form .field.error .input {
.ui.ui.form .fields.error .field label,
.ui.ui.form .field.error label,
.ui.ui.form .fields.error .field .input,
.ui.ui.form .field.error .input {
color: @formErrorColor;
}

Expand Down
15 changes: 4 additions & 11 deletions definitions/collections/table.less
Original file line number Diff line number Diff line change
Expand Up @@ -283,23 +283,17 @@
background: @definitionHeaderBackground;
font-weight: @definitionHeaderFontWeight;
color: @definitionHeaderColor;
box-shadow: -@borderWidth -@borderWidth 0 @borderWidth @definitionPageBackground;
box-shadow: -@coloredBorderSizeCover -@coloredBorderSize 0 @coloredBorderSizeCover @definitionPageBackground;
-moz-transform: scale(1);
}

.ui.definition.table > tfoot:not(.full-width) > tr > th:first-child {
pointer-events: none;
background: @definitionFooterBackground;
font-weight: @definitionFooterFontWeight;
color: @definitionFooterColor;
box-shadow: -@borderWidth @borderWidth 0 @borderWidth @definitionPageBackground;
}

/* Remove Border */
.ui.celled.definition.table > thead:not(.full-width) > tr > th:first-child {
box-shadow: 0 -@borderWidth 0 @borderWidth @definitionPageBackground;
}
.ui.celled.definition.table > tfoot:not(.full-width) > tr > th:first-child {
box-shadow: 0 @borderWidth 0 @borderWidth @definitionPageBackground;
box-shadow: -@coloredBorderSizeCover @coloredBorderSize 0 @coloredBorderSizeCover @definitionPageBackground;
-moz-transform: scale(1);
}

/* Highlight Defining Column */
Expand Down Expand Up @@ -330,7 +324,6 @@
border-left: @borderWidth solid @borderColor;
}


/*******************************
States
*******************************/
Expand Down
78 changes: 39 additions & 39 deletions definitions/elements/container.less
Original file line number Diff line number Diff line change
Expand Up @@ -24,78 +24,78 @@
/* All Sizes */
.ui.container {
display: block;
max-width: @maxWidth !important;
max-width: @maxWidth;
}

/* Mobile */
@media only screen and (max-width: @largestMobileScreen) {
.ui.container {
width: @mobileWidth !important;
margin-left: @mobileGutter !important;
margin-right: @mobileGutter !important;
.ui.ui.ui.container:not(.fluid) {
width: @mobileWidth;
margin-left: @mobileGutter;
margin-right: @mobileGutter;
}
.ui.grid.container {
width: @mobileGridWidth !important;
.ui.ui.grid.container {
width: @mobileGridWidth;
}
.ui.relaxed.grid.container {
width: @mobileRelaxedGridWidth !important;
.ui.ui.relaxed.grid.container {
width: @mobileRelaxedGridWidth;
}
.ui.very.relaxed.grid.container {
width: @mobileVeryRelaxedGridWidth !important;
.ui.ui.very.relaxed.grid.container {
width: @mobileVeryRelaxedGridWidth;
}
}

/* Tablet */
@media only screen and (min-width: @tabletBreakpoint) and (max-width: @largestTabletScreen) {
.ui.container {
.ui.ui.ui.container:not(.fluid) {
width: @tabletWidth;
margin-left: @tabletGutter !important;
margin-right: @tabletGutter !important;
margin-left: @tabletGutter;
margin-right: @tabletGutter;
}
.ui.grid.container {
width: @tabletGridWidth !important;
.ui.ui.grid.container {
width: @tabletGridWidth;
}
.ui.relaxed.grid.container {
width: @tabletRelaxedGridWidth !important;
.ui.ui.relaxed.grid.container {
width: @tabletRelaxedGridWidth;
}
.ui.very.relaxed.grid.container {
width: @tabletVeryRelaxedGridWidth !important;
.ui.ui.very.relaxed.grid.container {
width: @tabletVeryRelaxedGridWidth;
}
}

/* Small Monitor */
@media only screen and (min-width: @computerBreakpoint) and (max-width: @largestSmallMonitor) {
.ui.container {
.ui.ui.ui.container:not(.fluid) {
width: @computerWidth;
margin-left: @computerGutter !important;
margin-right: @computerGutter !important;
margin-left: @computerGutter;
margin-right: @computerGutter;
}
.ui.grid.container {
width: @computerGridWidth !important;
.ui.ui.grid.container {
width: @computerGridWidth;
}
.ui.relaxed.grid.container {
width: @computerRelaxedGridWidth !important;
.ui.ui.relaxed.grid.container {
width: @computerRelaxedGridWidth;
}
.ui.very.relaxed.grid.container {
width: @computerVeryRelaxedGridWidth !important;
.ui.ui.very.relaxed.grid.container {
width: @computerVeryRelaxedGridWidth;
}
}

/* Large Monitor */
@media only screen and (min-width: @largeMonitorBreakpoint) {
.ui.container {
.ui.ui.ui.container:not(.fluid) {
width: @largeMonitorWidth;
margin-left: @largeMonitorGutter !important;
margin-right: @largeMonitorGutter !important;
margin-left: @largeMonitorGutter;
margin-right: @largeMonitorGutter;
}
.ui.grid.container {
width: @largeMonitorGridWidth !important;
.ui.ui.grid.container {
width: @largeMonitorGridWidth;
}
.ui.relaxed.grid.container {
width: @largeMonitorRelaxedGridWidth !important;
.ui.ui.relaxed.grid.container {
width: @largeMonitorRelaxedGridWidth;
}
.ui.very.relaxed.grid.container {
width: @largeMonitorVeryRelaxedGridWidth !important;
.ui.ui.very.relaxed.grid.container {
width: @largeMonitorVeryRelaxedGridWidth;
}
}

Expand All @@ -107,7 +107,7 @@
/* Text Container */
.ui.text.container {
font-family: @textFontFamily;
max-width: @textWidth !important;
max-width: @textWidth;
line-height: @textLineHeight;
font-size: @textSize;
}
Expand Down
2 changes: 1 addition & 1 deletion definitions/elements/image.less
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ img.ui.image {
*******************************/

.ui.hidden.images,
.ui.hidden.image {
.ui.ui.hidden.image {
display: none;
}
.ui.hidden.transition.images,
Expand Down
7 changes: 3 additions & 4 deletions definitions/elements/label.less
Original file line number Diff line number Diff line change
Expand Up @@ -159,12 +159,11 @@ a.ui.label {
}

/* Padding on next content after a label */
.ui.top.attached.label:first-child + :not(.attached),
.ui.top.attached.label + [class*="right floated"] + * {
.ui.top.attached.label ~ :first-of-type:not(.attached) {
margin-top: @attachedSegmentPadding !important;
}
.ui.bottom.attached.label:first-child ~ :last-child:not(.attached) {
margin-top: 0;
.ui.bottom.attached.label ~ :last-child:not(.attached) {
margin-top:0;
margin-bottom: @attachedSegmentPadding !important;
}

Expand Down
3 changes: 3 additions & 0 deletions definitions/elements/step.less
Original file line number Diff line number Diff line change
Expand Up @@ -337,6 +337,9 @@
}

/* Active Arrow */
.ui.steps .step:after {
display: @arrowDisplay;
}
.ui.steps .active.step:after {
display: @activeArrowDisplay;
}
Expand Down
8 changes: 6 additions & 2 deletions definitions/modules/accordion.js
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,10 @@ $.fn.accordion = function(parameters) {
debug : settings.debug,
verbose : settings.verbose,
duration : settings.duration,
skipInlineHidden : true
skipInlineHidden : true,
onComplete: function() {
$activeContent.children().removeClass(className.transition);
}
})
;
}
Expand Down Expand Up @@ -591,7 +594,8 @@ $.fn.accordion.settings = {

className : {
active : 'active',
animating : 'animating'
animating : 'animating',
transition: 'transition'
},

selector : {
Expand Down
3 changes: 2 additions & 1 deletion definitions/modules/checkbox.js
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,7 @@ $.fn.checkbox = function(parameters) {
$input.blur();
shortcutPressed = true;
}
else if(!event.ctrlKey && ( key == keyCode.space || key == keyCode.enter) ) {
else if(!event.ctrlKey && ( key == keyCode.space || (key == keyCode.enter && settings.enableEnterKey)) ) {
module.verbose('Enter/space key pressed, toggling checkbox');
module.toggle();
shortcutPressed = true;
Expand Down Expand Up @@ -829,6 +829,7 @@ $.fn.checkbox.settings = {
// delegated event context
uncheckable : 'auto',
fireOnInit : false,
enableEnterKey : true,

onChange : function(){},

Expand Down
48 changes: 47 additions & 1 deletion definitions/modules/checkbox.less
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
font-style: normal;

min-height: @checkboxSize;
font-size: @medium;
font-size: @relativeMedium;
line-height: @checkboxLineHeight;
min-width: @checkboxSize;
}
Expand Down Expand Up @@ -688,4 +688,50 @@
background-color: @toggleOnFocusLaneColor !important;
}

/*--------------------
Size
---------------------*/

each(@variationCheckboxSizes, {
@raw: @{value}Raw;
@size: @{value}CheckboxSize;
@circleScale: @{value}CheckboxCircleScale;
@circleLeft: @{value}CheckboxCircleLeft;

.ui.@{value}.checkbox {
font-size: @@size;
}

& when (@@raw > 1) {
.ui.@{value}.form .checkbox,
.ui.@{value}.checkbox {
&:not(.slider):not(.toggle):not(.radio) {
&
.box:after,
.box:before,
label:after,
label:before {
transform: scale(@@raw);
transform-origin:left;
}
}
&.radio {
&
.box:before,
label:before {
transform: scale(@@raw);
transform-origin:left;
}
&
.box:after,
label:after {
transform:scale(@@circleScale);
transform-origin:left;
left: @@circleLeft;
}
}
}
}
})

.loadUIOverrides();
Loading

0 comments on commit af523c7

Please sign in to comment.