Skip to content

Commit 4f9f583

Browse files
Updated distribution to version 2.4.1
1 parent a3628f3 commit 4f9f583

File tree

13 files changed

+38
-29
lines changed

13 files changed

+38
-29
lines changed

definitions/collections/grid.less

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@
139139
margin: (@rowSpacing / 2) (@gutterWidth / 2);
140140
}
141141
.ui.grid .column + .ui.vertical.divider {
142-
height: ~"calc(50% - "(@rowSpacing/2)~")";
142+
height: calc(50% - (@rowSpacing / 2));
143143
}
144144

145145
/* Remove Border on Last Horizontal Segment */
@@ -1077,7 +1077,7 @@
10771077
top: 0em;
10781078
left: 0px;
10791079

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

10831083
margin: 0% (@gutterWidth / 2);
@@ -1112,12 +1112,12 @@
11121112
.ui.relaxed[class*="vertically divided"].grid > .row:before {
11131113
margin-left: (@relaxedGutterWidth / 2);
11141114
margin-right: (@relaxedGutterWidth / 2);
1115-
width: ~"calc(100% - "@relaxedGutterWidth~")";
1115+
width: calc(100% - @relaxedGutterWidth);
11161116
}
11171117
.ui[class*="very relaxed"][class*="vertically divided"].grid > .row:before {
1118-
margin-left: @veryRelaxedGutterWidth;
1119-
margin-right: @veryRelaxedGutterWidth;
1120-
width: ~"calc(100% - "@veryRelaxedGutterWidth~")";
1118+
margin-left: (@veryRelaxedGutterWidth / 2);
1119+
margin-right: (@veryRelaxedGutterWidth / 2);
1120+
width: calc(100% - @veryRelaxedGutterWidth);
11211121
}
11221122

11231123
/*----------------------

definitions/collections/menu.less

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,7 @@
211211

212212
/* Menu */
213213
.ui.menu .dropdown.item .menu {
214-
min-width: ~"calc(100% - 1px)";
214+
min-width: calc(100% - 1px);
215215
border-radius: 0em 0em @dropdownMenuBorderRadius @dropdownMenuBorderRadius;
216216
background: @dropdownBackground;
217217
margin: @dropdownMenuDistance 0px 0px;

definitions/modules/dropdown.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -605,7 +605,6 @@ $.fn.dropdown = function(parameters) {
605605
else {
606606
if(settings.on == 'click') {
607607
$module
608-
.on('click' + eventNamespace, selector.icon, module.event.icon.click)
609608
.on('click' + eventNamespace, module.event.test.toggle)
610609
;
611610
}
@@ -621,6 +620,7 @@ $.fn.dropdown = function(parameters) {
621620
;
622621
}
623622
$module
623+
.on('click' + eventNamespace, selector.icon, module.event.icon.click)
624624
.on('mousedown' + eventNamespace, module.event.mousedown)
625625
.on('mouseup' + eventNamespace, module.event.mouseup)
626626
.on('focus' + eventNamespace, module.event.focus)
@@ -1022,7 +1022,7 @@ $.fn.dropdown = function(parameters) {
10221022
if($icon.hasClass(className.clear)) {
10231023
module.clear();
10241024
}
1025-
else {
1025+
else if (module.can.click()) {
10261026
module.toggle();
10271027
}
10281028
}

definitions/modules/dropdown.less

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1110,7 +1110,7 @@ select.ui.dropdown {
11101110
@media all and (-ms-high-contrast:none) {
11111111
.ui.scrolling.dropdown .menu,
11121112
.ui.dropdown .scrolling.menu {
1113-
min-width: ~"calc(100% - "@scrollbarWidth~")";
1113+
min-width: calc(100% - @scrollbarWidth);
11141114
}
11151115
}
11161116
@media only screen and (max-width : @largestMobileScreen) {

definitions/modules/embed.js

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

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

13-
'use strict';
13+
"use strict";
1414

1515
window = (typeof window != 'undefined' && window.Math == Math)
1616
? window
@@ -181,6 +181,7 @@ $.fn.embed = function(parameters) {
181181
// clears embed
182182
reset: function() {
183183
module.debug('Clearing embed and showing placeholder');
184+
module.remove.data();
184185
module.remove.active();
185186
module.remove.embed();
186187
module.showPlaceholder();
@@ -300,6 +301,15 @@ $.fn.embed = function(parameters) {
300301
},
301302

302303
remove: {
304+
data: function() {
305+
$module
306+
.removeData(metadata.id)
307+
.removeData(metadata.icon)
308+
.removeData(metadata.placeholder)
309+
.removeData(metadata.source)
310+
.removeData(metadata.url)
311+
;
312+
},
303313
active: function() {
304314
$module.removeClass(className.active);
305315
},

definitions/modules/modal.less

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -421,12 +421,8 @@
421421

422422
.ui.fullscreen.modal {
423423
width: @fullScreenWidth !important;
424-
left: @fullScreenOffset !important;
425424
margin: @fullScreenMargin;
426425
}
427-
.ui.fullscreen.scrolling.modal {
428-
left: 0em !important;
429-
}
430426
.ui.fullscreen.modal > .header {
431427
padding-right: @closeHitbox;
432428
}

package.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ var
55
Package.describe({
66
name : 'semantic:ui',
77
summary : 'Semantic UI - LESS Release of Semantic UI',
8-
version : '2.4.0',
8+
version : '2.4.1',
99
git : 'git://github.com/Semantic-Org/Semantic-UI-LESS.git',
1010
});
1111

@@ -130,6 +130,7 @@ Package.onUse(function(api) {
130130
'definitions/elements/label.less',
131131
'definitions/elements/list.less',
132132
'definitions/elements/loader.less',
133+
'definitions/elements/placeholder.less',
133134
'definitions/elements/rail.less',
134135
'definitions/elements/reveal.less',
135136
'definitions/elements/segment.less',
@@ -277,6 +278,8 @@ Package.onUse(function(api) {
277278
'themes/default/elements/list.variables',
278279
'themes/default/elements/loader.overrides',
279280
'themes/default/elements/loader.variables',
281+
'themes/default/elements/placeholder.overrides',
282+
'themes/default/elements/placeholder.variables',
280283
'themes/default/elements/rail.overrides',
281284
'themes/default/elements/rail.variables',
282285
'themes/default/elements/reveal.overrides',

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "semantic-ui-less",
3-
"version": "2.4.0",
3+
"version": "2.4.1",
44
"title": "Semantic UI",
55
"description": "LESS Only distribution of Semantic UI",
66
"homepage": "http://www.semantic-ui.com",

themes/default/collections/menu.variables

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -321,7 +321,7 @@
321321
@tabularVerticalBackground: none @tabularBackgroundColor;
322322

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

326326
@tabularActiveBackground: none @white;
327327
@tabularActiveColor: @selectedTextColor;
@@ -430,7 +430,7 @@
430430
@attachedTopOffset: 0px;
431431
@attachedBottomOffset: 0px;
432432
@attachedHorizontalOffset: -@borderWidth;
433-
@attachedWidth: ~"calc(100% + "-@attachedHorizontalOffset * 2~")";
433+
@attachedWidth: calc(100% - (@attachedHorizontalOffset * 2));
434434
@attachedBoxShadow: none;
435435
@attachedBorder: @borderWidth solid @solidBorderColor;
436436
@attachedBottomBoxShadow:

themes/default/collections/table.variables

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@
152152
@attachedTopOffset: 0px;
153153
@attachedBottomOffset: 0px;
154154
@attachedHorizontalOffset: -@borderWidth;
155-
@attachedWidth: ~"calc(100% + "-@attachedHorizontalOffset * 2~")";
155+
@attachedWidth: calc(100% - (@attachedHorizontalOffset * 2));
156156
@attachedBoxShadow: none;
157157
@attachedBorder: @borderWidth solid @solidBorderColor;
158158
@attachedBottomBoxShadow:

0 commit comments

Comments
 (0)