Skip to content

Commit

Permalink
Updated distribution to version 2.4.1
Browse files Browse the repository at this point in the history
  • Loading branch information
Semantic-Pusher-Robot committed Oct 13, 2018
1 parent a3628f3 commit 4f9f583
Show file tree
Hide file tree
Showing 13 changed files with 38 additions and 29 deletions.
12 changes: 6 additions & 6 deletions definitions/collections/grid.less
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@
margin: (@rowSpacing / 2) (@gutterWidth / 2);
}
.ui.grid .column + .ui.vertical.divider {
height: ~"calc(50% - "(@rowSpacing/2)~")";
height: calc(50% - (@rowSpacing / 2));
}

/* Remove Border on Last Horizontal Segment */
Expand Down Expand Up @@ -1077,7 +1077,7 @@
top: 0em;
left: 0px;

width: ~"calc(100% - "@gutterWidth~")";
width: calc(100% - @gutterWidth);
height: 1px;

margin: 0% (@gutterWidth / 2);
Expand Down Expand Up @@ -1112,12 +1112,12 @@
.ui.relaxed[class*="vertically divided"].grid > .row:before {
margin-left: (@relaxedGutterWidth / 2);
margin-right: (@relaxedGutterWidth / 2);
width: ~"calc(100% - "@relaxedGutterWidth~")";
width: calc(100% - @relaxedGutterWidth);
}
.ui[class*="very relaxed"][class*="vertically divided"].grid > .row:before {
margin-left: @veryRelaxedGutterWidth;
margin-right: @veryRelaxedGutterWidth;
width: ~"calc(100% - "@veryRelaxedGutterWidth~")";
margin-left: (@veryRelaxedGutterWidth / 2);
margin-right: (@veryRelaxedGutterWidth / 2);
width: calc(100% - @veryRelaxedGutterWidth);
}

/*----------------------
Expand Down
2 changes: 1 addition & 1 deletion definitions/collections/menu.less
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@

/* Menu */
.ui.menu .dropdown.item .menu {
min-width: ~"calc(100% - 1px)";
min-width: calc(100% - 1px);
border-radius: 0em 0em @dropdownMenuBorderRadius @dropdownMenuBorderRadius;
background: @dropdownBackground;
margin: @dropdownMenuDistance 0px 0px;
Expand Down
4 changes: 2 additions & 2 deletions definitions/modules/dropdown.js
Original file line number Diff line number Diff line change
Expand Up @@ -605,7 +605,6 @@ $.fn.dropdown = function(parameters) {
else {
if(settings.on == 'click') {
$module
.on('click' + eventNamespace, selector.icon, module.event.icon.click)
.on('click' + eventNamespace, module.event.test.toggle)
;
}
Expand All @@ -621,6 +620,7 @@ $.fn.dropdown = function(parameters) {
;
}
$module
.on('click' + eventNamespace, selector.icon, module.event.icon.click)
.on('mousedown' + eventNamespace, module.event.mousedown)
.on('mouseup' + eventNamespace, module.event.mouseup)
.on('focus' + eventNamespace, module.event.focus)
Expand Down Expand Up @@ -1022,7 +1022,7 @@ $.fn.dropdown = function(parameters) {
if($icon.hasClass(className.clear)) {
module.clear();
}
else {
else if (module.can.click()) {
module.toggle();
}
}
Expand Down
2 changes: 1 addition & 1 deletion definitions/modules/dropdown.less
Original file line number Diff line number Diff line change
Expand Up @@ -1110,7 +1110,7 @@ select.ui.dropdown {
@media all and (-ms-high-contrast:none) {
.ui.scrolling.dropdown .menu,
.ui.dropdown .scrolling.menu {
min-width: ~"calc(100% - "@scrollbarWidth~")";
min-width: calc(100% - @scrollbarWidth);
}
}
@media only screen and (max-width : @largestMobileScreen) {
Expand Down
12 changes: 11 additions & 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 Expand Up @@ -181,6 +181,7 @@ $.fn.embed = function(parameters) {
// clears embed
reset: function() {
module.debug('Clearing embed and showing placeholder');
module.remove.data();
module.remove.active();
module.remove.embed();
module.showPlaceholder();
Expand Down Expand Up @@ -300,6 +301,15 @@ $.fn.embed = function(parameters) {
},

remove: {
data: function() {
$module
.removeData(metadata.id)
.removeData(metadata.icon)
.removeData(metadata.placeholder)
.removeData(metadata.source)
.removeData(metadata.url)
;
},
active: function() {
$module.removeClass(className.active);
},
Expand Down
4 changes: 0 additions & 4 deletions definitions/modules/modal.less
Original file line number Diff line number Diff line change
Expand Up @@ -421,12 +421,8 @@

.ui.fullscreen.modal {
width: @fullScreenWidth !important;
left: @fullScreenOffset !important;
margin: @fullScreenMargin;
}
.ui.fullscreen.scrolling.modal {
left: 0em !important;
}
.ui.fullscreen.modal > .header {
padding-right: @closeHitbox;
}
Expand Down
5 changes: 4 additions & 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.4.0',
version : '2.4.1',
git : 'git://github.com/Semantic-Org/Semantic-UI-LESS.git',
});

Expand Down Expand Up @@ -130,6 +130,7 @@ Package.onUse(function(api) {
'definitions/elements/label.less',
'definitions/elements/list.less',
'definitions/elements/loader.less',
'definitions/elements/placeholder.less',
'definitions/elements/rail.less',
'definitions/elements/reveal.less',
'definitions/elements/segment.less',
Expand Down Expand Up @@ -277,6 +278,8 @@ Package.onUse(function(api) {
'themes/default/elements/list.variables',
'themes/default/elements/loader.overrides',
'themes/default/elements/loader.variables',
'themes/default/elements/placeholder.overrides',
'themes/default/elements/placeholder.variables',
'themes/default/elements/rail.overrides',
'themes/default/elements/rail.variables',
'themes/default/elements/reveal.overrides',
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.4.0",
"version": "2.4.1",
"title": "Semantic UI",
"description": "LESS Only distribution of Semantic UI",
"homepage": "http://www.semantic-ui.com",
Expand Down
4 changes: 2 additions & 2 deletions themes/default/collections/menu.variables
Original file line number Diff line number Diff line change
Expand Up @@ -321,7 +321,7 @@
@tabularVerticalBackground: none @tabularBackgroundColor;

@tabularFluidOffset: 1px;
@tabularFluidWidth: ~"calc(100% + "(@tabularFluidOffset * 2)~")";
@tabularFluidWidth: calc(100% + (@tabularFluidOffset * 2));

@tabularActiveBackground: none @white;
@tabularActiveColor: @selectedTextColor;
Expand Down Expand Up @@ -430,7 +430,7 @@
@attachedTopOffset: 0px;
@attachedBottomOffset: 0px;
@attachedHorizontalOffset: -@borderWidth;
@attachedWidth: ~"calc(100% + "-@attachedHorizontalOffset * 2~")";
@attachedWidth: calc(100% - (@attachedHorizontalOffset * 2));
@attachedBoxShadow: none;
@attachedBorder: @borderWidth solid @solidBorderColor;
@attachedBottomBoxShadow:
Expand Down
2 changes: 1 addition & 1 deletion themes/default/collections/table.variables
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@
@attachedTopOffset: 0px;
@attachedBottomOffset: 0px;
@attachedHorizontalOffset: -@borderWidth;
@attachedWidth: ~"calc(100% + "-@attachedHorizontalOffset * 2~")";
@attachedWidth: calc(100% - (@attachedHorizontalOffset * 2));
@attachedBoxShadow: none;
@attachedBorder: @borderWidth solid @solidBorderColor;
@attachedBottomBoxShadow:
Expand Down
14 changes: 7 additions & 7 deletions themes/default/elements/label.variables
Original file line number Diff line number Diff line change
Expand Up @@ -130,18 +130,18 @@
@ribbonShadowColor: rgba(0, 0, 0, 0.15);

@ribbonMargin: 1rem;
@ribbonOffset: ~"calc("-@ribbonMargin~" - "@ribbonTriangleSize~")";
@ribbonDistance: ~"calc("@ribbonMargin~" + "@ribbonTriangleSize~")";
@rightRibbonOffset: ~"calc(100% + "@ribbonMargin~" + "@ribbonTriangleSize~")";
@ribbonOffset: calc(-@ribbonMargin - @ribbonTriangleSize);
@ribbonDistance: calc(@ribbonMargin + @ribbonTriangleSize);
@rightRibbonOffset: calc(100% + @ribbonMargin + @ribbonTriangleSize);

@ribbonImageTopDistance: 1rem;
@ribbonImageMargin: -0.05rem; /* Rounding Offset on Triangle */
@ribbonImageOffset: ~"calc("-@ribbonImageMargin~" - "@ribbonTriangleSize~")";
@rightRibbonImageOffset: ~"calc(100% + "@ribbonImageMargin~" + "@ribbonTriangleSize~")";
@ribbonImageOffset: calc(-@ribbonImageMargin - @ribbonTriangleSize);
@rightRibbonImageOffset: calc(100% + @ribbonImageMargin + @ribbonTriangleSize);

@ribbonTableMargin: @relativeMini; /* Rounding Offset on Triangle */
@ribbonTableOffset: ~"calc("-@ribbonTableMargin~" - "@ribbonTriangleSize~")";
@rightRibbonTableOffset: ~"calc(100% + "@ribbonTableMargin~" + "@ribbonTriangleSize~")";
@ribbonTableOffset: calc(-@ribbonTableMargin - @ribbonTriangleSize);
@rightRibbonTableOffset: calc(100% + @ribbonTableMargin + @ribbonTriangleSize);


/* Colors */
Expand Down
2 changes: 1 addition & 1 deletion themes/default/elements/segment.variables
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@
@attachedTopOffset: 0px;
@attachedBottomOffset: 0px;
@attachedHorizontalOffset: -@borderWidth;
@attachedWidth: ~"calc(100% + "-@attachedHorizontalOffset * 2~")";
@attachedWidth: calc(100% - (@attachedHorizontalOffset * 2));
@attachedBoxShadow: none;
@attachedBorder: @borderWidth solid @solidBorderColor;
@attachedBottomBoxShadow:
Expand Down
2 changes: 1 addition & 1 deletion themes/default/elements/step.variables
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@

@attachedHorizontalOffset: -@borderWidth;
@attachedVerticalOffset: 0;
@attachedWidth: ~"calc(100% + "-@attachedHorizontalOffset * 2~")";
@attachedWidth: calc(100% + (-@attachedHorizontalOffset * 2));

@orderedFontFamily: inherit;
@orderedFontWeight: @bold;
Expand Down

0 comments on commit 4f9f583

Please sign in to comment.