Skip to content

Commit

Permalink
Updated distribution to version 2.5.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Semantic-Pusher-Robot committed Oct 6, 2022
1 parent e439521 commit 806bd67
Show file tree
Hide file tree
Showing 11 changed files with 57 additions and 14 deletions.
17 changes: 17 additions & 0 deletions definitions/elements/button.less
Original file line number Diff line number Diff line change
Expand Up @@ -879,6 +879,23 @@
transform: translateY(-50%);
}

/* Loading */
.ui.labeled.icon.button > .icon.loading {
animation: none;
}
.ui.labeled.icon.button > .icon.loading:before {
animation: labeled-button-icon-loading @loadingIconDuration linear infinite;
}

@keyframes labeled-button-icon-loading {
from {
transform: translateY(-50%) rotate(0deg);
}
to {
transform: translateY(-50%) rotate(360deg);
}
}

.ui.labeled.icon.buttons .button > .icon {
border-radius: 0em;
}
Expand Down
12 changes: 8 additions & 4 deletions definitions/elements/icon.less
Original file line number Diff line number Diff line change
Expand Up @@ -71,15 +71,19 @@ i.icon:before {
i.icon.loading {
height: 1em;
line-height: 1;
}

i.icon.loading {
animation: icon-loading @loadingDuration linear infinite;
}

@keyframes icon-loading {
from {
from {
transform: rotate(0deg);
}
to {
}
to {
transform: rotate(360deg);
}
}
}

/*******************************
Expand Down
2 changes: 1 addition & 1 deletion definitions/modules/dimmer.js
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ $.fn.dimmer = function(parameters) {

event: {
click: function(event) {
module.verbose('Determining if event occured on dimmer', event);
module.verbose('Determining if event occurred on dimmer', event);
if( $dimmer.find(event.target).length === 0 || $(event.target).is(selector.content) ) {
module.hide();
event.stopImmediatePropagation();
Expand Down
6 changes: 3 additions & 3 deletions definitions/modules/dropdown.less
Original file line number Diff line number Diff line change
Expand Up @@ -314,9 +314,9 @@
}

/* Automatically float dropdown menu right on last menu item */
.ui.menu .right.menu .dropdown:last-child .menu,
.ui.menu .right.dropdown.item .menu,
.ui.buttons > .ui.dropdown:last-child .menu {
.ui.menu .right.menu .dropdown:last-child > .menu,
.ui.menu .right.dropdown.item > .menu,
.ui.buttons > .ui.dropdown:last-child > .menu {
left: auto;
right: 0em;
}
Expand Down
3 changes: 3 additions & 0 deletions definitions/modules/modal.js
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,9 @@ $.fn.modal = function(parameters) {
},

destroy: function() {
if (observer) {
observer.disconnect();
}
module.verbose('Destroying previous modal');
$module
.removeData(moduleNamespace)
Expand Down
22 changes: 20 additions & 2 deletions definitions/modules/sticky.js
Original file line number Diff line number Diff line change
Expand Up @@ -402,6 +402,18 @@ $.fn.sticky = function(parameters) {
module.determineContainer();
}
else {
var tallestHeight = Math.max(module.cache.context.height, module.cache.element.height);
if(tallestHeight - $container.outerHeight() > settings.jitter) {
module.debug('Context is taller than container. Specifying exact height for container', module.cache.context.height);
$container.css({
height: tallestHeight,
});
}
else {
$container.css({
height: '',
});
}
if( Math.abs($container.outerHeight() - module.cache.context.height) > settings.jitter) {
module.debug('Context has padding, specifying exact height for container', module.cache.context.height);
$container.css({
Expand Down Expand Up @@ -438,7 +450,7 @@ $.fn.sticky = function(parameters) {
},
size: function() {
if(module.cache.element.height !== 0 && module.cache.element.width !== 0) {
element.style.setProperty('width', module.cache.element.width + 'px', 'important');
element.style.setProperty('width', module.cache.element.width + 'px', 'important');
element.style.setProperty('height', module.cache.element.height + 'px', 'important');
}
}
Expand Down Expand Up @@ -501,7 +513,7 @@ $.fn.sticky = function(parameters) {
module.bindBottom();
}
else if(scroll.top > element.top) {
if( (element.height + scroll.top - elementScroll) >= context.bottom ) {
if((element.height + scroll.top - elementScroll) >= context.bottom && element.height < context.height) {
module.debug('Initial element position is bottom of container');
module.bindBottom();
}
Expand Down Expand Up @@ -580,6 +592,9 @@ $.fn.sticky = function(parameters) {
bindTop: function() {
module.debug('Binding element to top of parent container');
module.remove.offset();
if(settings.setSize) {
module.set.size();
}
$module
.css({
left : '',
Expand All @@ -597,6 +612,9 @@ $.fn.sticky = function(parameters) {
bindBottom: function() {
module.debug('Binding element to bottom of parent container');
module.remove.offset();
if(settings.setSize) {
module.set.size();
}
$module
.css({
left : '',
Expand Down
2 changes: 1 addition & 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.1',
version : '2.5.0',
git : 'git://github.com/Semantic-Org/Semantic-UI-LESS.git',
});

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.1",
"version": "2.5.0",
"title": "Semantic UI",
"description": "LESS Only distribution of Semantic UI",
"homepage": "http://www.semantic-ui.com",
Expand Down
2 changes: 1 addition & 1 deletion theme.less
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
@import "@{themesFolder}/default/globals/site.variables";

/* Packaged site.variables */
@import "@{themesFolder}/@{site}/globals/site.variables";
@import (optional) "@{themesFolder}/@{site}/globals/site.variables";

/* Component's site.variables */
@import (optional) "@{themesFolder}/@{theme}/globals/site.variables";
Expand Down
1 change: 1 addition & 0 deletions themes/default/elements/button.variables
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,7 @@

/* Icon */
@iconButtonOpacity: 0.9;
@loadingIconDuration: 2s;

/* Labeled */
@labeledLabelFontSize: @medium;
Expand Down
Loading

0 comments on commit 806bd67

Please sign in to comment.