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 17, 2020
1 parent f20e2ab commit 970734b
Show file tree
Hide file tree
Showing 14 changed files with 1,078 additions and 953 deletions.
14 changes: 8 additions & 6 deletions definitions/collections/grid.less
Original file line number Diff line number Diff line change
Expand Up @@ -1906,25 +1906,27 @@ each(@colors, {
Very compact
-----------------*/

.ui[class*="very compact"].grid > .column:not(.row),
.ui[class*="very compact"].grid > .row > .column {
.ui.ui.ui[class*="very compact"].grid > .column:not(.row),
.ui.ui.ui[class*="very compact"].grid > .row > .column {
padding-left: (@veryCompactGutterWidth / 2);
padding-right: (@compactGutterWidth / 2);
padding-right: (@veryCompactGutterWidth / 2);
}

.ui[class*="very compact"].grid > * {
.ui.ui.ui[class*="very compact"].grid > * {
padding-left: (@veryCompactGutterWidth / 2);
padding-right: (@veryCompactGutterWidth / 2);
}

/* Row */
.ui[class*="very compact"].grid > .row {
.ui.ui.ui[class*="very compact"].grid > .row {
padding-top: (@veryCompactRowSpacing / 2);
padding-bottom: (@veryCompactRowSpacing / 2);
padding-left: (@veryCompactGutterWidth * 1.5);
padding-right: (@veryCompactGutterWidth * 1.5);
}

/* Columns */
.ui[class*="very compact"].grid > .column:not(.row) {
.ui.ui.ui[class*="very compact"].grid > .column:not(.row) {
padding-top: (@veryCompactRowSpacing / 2);
padding-bottom: (@veryCompactRowSpacing / 2);
}
Expand Down
4 changes: 2 additions & 2 deletions definitions/elements/icon.less
Original file line number Diff line number Diff line change
Expand Up @@ -288,15 +288,15 @@ each(@colors, {
i.icon,
i.icons {
font-size: @medium;
line-height: 1;
vertical-align: middle;
line-height: @lineHeight;
}
& when not (@variationIconSizes = false) {
each(@variationIconSizes, {
@s: @@value;
i.@{value}.@{value}.@{value}.icon,
i.@{value}.@{value}.@{value}.icons {
font-size: @s;
vertical-align: middle;
}
})
}
Expand Down
47 changes: 45 additions & 2 deletions definitions/elements/label.less
Original file line number Diff line number Diff line change
Expand Up @@ -168,13 +168,30 @@ a.ui.label {
margin-bottom: @attachedSegmentPadding !important;
}

.ui.segment:not(.basic) > .ui.top.attached.label {
margin-top: @attachedOffset;
}
.ui.segment:not(.basic) > .ui.bottom.attached.label {
margin-bottom: @attachedOffset;
}
.ui.segment:not(.basic) > .ui.attached.label:not(.right) {
margin-left: @attachedOffset;
}
.ui.segment:not(.basic) > .ui.right.attached.label {
margin-right: @attachedOffset;
}
.ui.segment:not(.basic) > .ui.attached.label:not(.left):not(.right) {
width: @attachedWidthOffset;
}



/*******************************
Types
*******************************/
& when (@variationLabelImage) {
.ui.image.label {
width: auto !important;
width: auto;
margin-top: 0;
margin-bottom: 0;
max-width: 9999px;
Expand All @@ -185,6 +202,9 @@ a.ui.label {
padding: @imageLabelPadding;
border-radius: @imageLabelBorderRadius;
box-shadow: @imageLabelBoxShadow;
&.attached:not(.basic) when (@variationLabelAttached) {
padding: @imageLabelPadding;
}
}

.ui.image.label img {
Expand All @@ -202,6 +222,17 @@ a.ui.label {
padding: @imageLabelDetailPadding;
border-radius: 0 @imageLabelBorderRadius @imageLabelBorderRadius 0;
}
& when (@variationLabelAttached) {
.ui.bottom.attached.image.label:not(.right) > img,
.ui.top.right.attached.image.label > img {
border-top-left-radius: 0;
}

.ui.top.attached.image.label:not(.right) > img,
.ui.bottom.right.attached.image.label > img {
border-bottom-left-radius: 0;
}
}
}

& when (@variationLabelTag) {
Expand Down Expand Up @@ -483,7 +514,7 @@ a.ui.label {

.ui[class*="top left attached"].label {
width: auto;
margin-top: 0 !important;
margin-top: 0;
border-radius: @attachedCornerBorderRadius 0 @attachedBorderRadius 0;
}

Expand Down Expand Up @@ -610,6 +641,18 @@ a.ui.active.label:hover:before {
border: @basicBorder;
color: @basicColor;
box-shadow: @basicBoxShadow;
padding-top: @basicVerticalPadding;
padding-bottom: @basicVerticalPadding;
padding-right: @basicHorizontalPadding;
}
.ui.basic.labels:not(.tag):not(.image):not(.ribbon) .label,
.ui.basic.label:not(.tag):not(.image):not(.ribbon) {
padding-left: @basicHorizontalPadding;
}
& when (@variationLabelImage) {
.ui.basic.image.label {
padding-left: @basicImageLabelPadding;
}
}

/* Link */
Expand Down
3 changes: 3 additions & 0 deletions definitions/elements/text.less
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,9 @@
/*******************************
Text
*******************************/
span.ui.text {
line-height: @lineHeight;
}

each(@colors, {
@color: replace(@key, '@', '');
Expand Down
9 changes: 7 additions & 2 deletions definitions/modules/calendar.js
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,7 @@ $.fn.calendar = function(parameters) {
popup: $container,
on: on,
hoverable: on === 'hover',
closable: on === 'click',
onShow: onShow,
onVisible: onVisible,
onHide: settings.onHide,
Expand Down Expand Up @@ -1342,16 +1343,20 @@ $.fn.calendar.settings = {
if (!text) {
return null;
}
text = ('' + text).trim().toLowerCase();
text = String(text).trim();
if (text.length === 0) {
return null;
}
if(text.match(/^[0-9]{4}[\/\-\.][0-9]{2}[\/\-\.][0-9]{2}$/)){
text += ' 00:00:00';
}
// Reverse date and month in some cases
text = settings.monthFirst ? text : text.replace(/[\/\-\.]/g,'/').replace(/([0-9]+)\/([0-9]+)/,'$2/$1');
text = settings.monthFirst || !text.match(/^[0-9]{2}[\/\-\.]/) ? text : text.replace(/[\/\-\.]/g,'/').replace(/([0-9]+)\/([0-9]+)/,'$2/$1');
var textDate = new Date(text);
if(!isNaN(textDate.getDate())) {
return textDate;
}
text = text.toLowerCase();

var i, j, k;
var minute = -1, hour = -1, day = -1, month = -1, year = -1;
Expand Down
3 changes: 3 additions & 0 deletions definitions/modules/dimmer.less
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,9 @@
transform-style: @transformStyle;
perspective: @perspective;
transform-origin: center center;
&.modals {
-moz-perspective: none;
}
}
}

Expand Down
2 changes: 1 addition & 1 deletion definitions/modules/dropdown.js
Original file line number Diff line number Diff line change
Expand Up @@ -4035,7 +4035,7 @@ $.fn.dropdown.settings = {
message : '.message',
menuIcon : '.dropdown.icon',
search : 'input.search, .menu > .search > input, .menu input.search',
sizer : '> input.sizer',
sizer : '> span.sizer',
text : '> .text:not(.icon)',
unselectable : '.disabled, .filtered',
clearIcon : '> .remove.icon'
Expand Down
16 changes: 12 additions & 4 deletions definitions/modules/dropdown.less
Original file line number Diff line number Diff line change
Expand Up @@ -318,9 +318,10 @@
}

/* Automatically float dropdown menu right on last menu item */
.ui.menu .right.menu .dropdown:last-child .menu:not(.left),
.ui.menu .right.dropdown.item .menu:not(.left),
.ui.buttons > .ui.dropdown:last-child .menu:not(.left) {
.ui.menu .right.menu .dropdown:last-child > .menu:not(.left),
.ui.menu .right.dropdown.item > .menu:not(.left),
.ui.buttons > .ui.dropdown:last-child > .menu:not(.left) {
left: auto;
right: 0;
}

Expand Down Expand Up @@ -1096,7 +1097,7 @@ select.ui.dropdown {

.ui.dropdown > .left.menu .menu,
.ui.dropdown .menu .left.menu {
left: auto !important;
left: auto;
right: 100%;
margin: @leftSubMenuMargin !important;
border-radius: @leftSubMenuBorderRadius !important;
Expand Down Expand Up @@ -1325,6 +1326,13 @@ select.ui.dropdown {
left: 100%;
opacity: 1;
}
.ui.simple.dropdown > .menu > .item:active > .left.menu,
.ui.simple.dropdown .menu .item:hover > .left.menu,
.right.menu .ui.simple.dropdown > .menu > .item:active > .menu:not(.right),
.right.menu .ui.simple.dropdown > .menu .item:hover > .menu:not(.right) {
left: auto;
right: 100%;
}
& when (@variationDropdownDisabled) {
.ui.simple.disabled.dropdown:hover .menu {
display: none;
Expand Down
1 change: 1 addition & 0 deletions themes/default/elements/icon.variables
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@
@width: @iconWidth;
@height: 1em;
@distanceFromText: 0.25rem;
@lineHeight: 1;


/* Variations */
Expand Down
7 changes: 7 additions & 0 deletions themes/default/elements/label.variables
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,10 @@
@basicHoverBorder: @basicBorder;
@basicHoverBoxShadow: @basicBoxShadow;

@basicVerticalPadding: e(%("calc(%d - %d)", @verticalPadding, @basicBorderWidth));
@basicHorizontalPadding: e(%("calc(%d - %d)", @horizontalPadding, @basicBorderWidth));
@basicImageLabelPadding: e(%("calc(%d - %d)", @imageLabelTextDistance, @basicBorderWidth));

/* Tag */
@tagCircleColor: @white;
@tagCircleSize: 0.5em;
Expand Down Expand Up @@ -200,6 +204,9 @@
@attachedCornerBorderRadius: @3px;
@attachedBorderRadius: @borderRadius;

@attachedOffset: -@borderWidth;
@attachedWidthOffset: e(%("calc(100%% + %d)", @borderWidth * 2));

/* Corner */
@cornerSizeRatio: 1;
@cornerTransition: color @labelTransitionDuration @labelTransitionEasing;
Expand Down
2 changes: 2 additions & 0 deletions themes/default/elements/text.variables
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
/*-------------------
Element
--------------------*/
@lineHeight: 1;

@mini: 0.4em;
@tiny: 0.5em;
@small: 0.75em;
Expand Down
18 changes: 17 additions & 1 deletion themes/default/globals/variation.variables
Original file line number Diff line number Diff line change
Expand Up @@ -532,9 +532,25 @@
@variationToastVertical: true;
@variationToastAttached: true;

/* Loading */
/* Transition */
@variationTransitionDisabled: true;
@variationTransitionLoading: true;
@variationTransitionBrowse: true;
@variationTransitionDrop: true;
@variationTransitionFade: true;
@variationTransitionFlip: true;
@variationTransitionScale: true;
@variationTransitionFly: true;
@variationTransitionSlide: true;
@variationTransitionSwing: true;
@variationTransitionZoom: true;
@variationTransitionFlash: true;
@variationTransitionShake: true;
@variationTransitionBounce: true;
@variationTransitionTada: true;
@variationTransitionPulse: true;
@variationTransitionJiggle: true;
@variationTransitionGlow: true;

/* Emojis */
@variationEmojiColons: true;
Expand Down
2 changes: 1 addition & 1 deletion themes/default/modules/dropdown.variables
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@
@subMenuLeft: 100%;
@subMenuRight: auto;
@subMenuDistanceAway: -0.5em;
@subMenuMargin: 0 0 0 @subMenuDistanceAway;
@subMenuMargin: 0 @subMenuDistanceAway;
@subMenuBorderRadius: @borderRadius;
@subMenuZIndex: 21;

Expand Down
Loading

0 comments on commit 970734b

Please sign in to comment.