Skip to content

Commit

Permalink
Updated distribution to version 2.3.2
Browse files Browse the repository at this point in the history
  • Loading branch information
Semantic-Pusher-Robot committed Jun 18, 2018
1 parent fc68696 commit a46d6dc
Show file tree
Hide file tree
Showing 11 changed files with 376 additions and 203 deletions.
137 changes: 136 additions & 1 deletion definitions/elements/button.less
Original file line number Diff line number Diff line change
Expand Up @@ -3124,6 +3124,74 @@
margin-left: -@basicColoredBorderSize;
}

/* Inverted */
.ui.inverted.primary.buttons .button,
.ui.inverted.primary.button {
background-color: transparent;
box-shadow: 0px 0px 0px @invertedBorderSize @lightPrimaryColor inset !important;
color: @lightPrimaryColor;
}
.ui.inverted.primary.buttons .button:hover,
.ui.inverted.primary.button:hover,
.ui.inverted.primary.buttons .button:focus,
.ui.inverted.primary.button:focus,
.ui.inverted.primary.buttons .button.active,
.ui.inverted.primary.button.active,
.ui.inverted.primary.buttons .button:active,
.ui.inverted.primary.button:active {
box-shadow: none !important;
color: @lightPrimaryTextColor;
}
.ui.inverted.primary.buttons .button:hover,
.ui.inverted.primary.button:hover {
background-color: @lightPrimaryColorHover;
}
.ui.inverted.primary.buttons .button:focus,
.ui.inverted.primary.button:focus {
background-color: @lightPrimaryColorFocus;
}
.ui.inverted.primary.buttons .active.button,
.ui.inverted.primary.active.button {
background-color: @lightPrimaryColorActive;
}
.ui.inverted.primary.buttons .button:active,
.ui.inverted.primary.button:active {
background-color: @lightPrimaryColorDown;
}

/* Inverted Basic */
.ui.inverted.primary.basic.buttons .button,
.ui.inverted.primary.buttons .basic.button,
.ui.inverted.primary.basic.button {
background-color: transparent;
box-shadow: @basicInvertedBoxShadow !important;
color: @white !important;
}
.ui.inverted.primary.basic.buttons .button:hover,
.ui.inverted.primary.buttons .basic.button:hover,
.ui.inverted.primary.basic.button:hover {
box-shadow: 0px 0px 0px @invertedBorderSize @lightPrimaryColorHover inset !important;
color: @lightPrimaryColor !important;
}
.ui.inverted.primary.basic.buttons .button:focus,
.ui.inverted.primary.basic.buttons .button:focus,
.ui.inverted.primary.basic.button:focus {
box-shadow: 0px 0px 0px @invertedBorderSize @lightPrimaryColorFocus inset !important;
color: @lightPrimaryColor !important;
}
.ui.inverted.primary.basic.buttons .active.button,
.ui.inverted.primary.buttons .basic.active.button,
.ui.inverted.primary.basic.active.button {
box-shadow: 0px 0px 0px @invertedBorderSize @lightPrimaryColorActive inset !important;
color: @lightPrimaryColor !important;
}
.ui.inverted.primary.basic.buttons .button:active,
.ui.inverted.primary.buttons .basic.button:active,
.ui.inverted.primary.basic.button:active {
box-shadow: 0px 0px 0px @invertedBorderSize @lightPrimaryColorDown inset !important;
color: @lightPrimaryColor !important;
}

/*-------------------
Secondary
--------------------*/
Expand Down Expand Up @@ -3199,6 +3267,74 @@
margin-left: -@basicColoredBorderSize;
}

/* Inverted */
.ui.inverted.secondary.buttons .button,
.ui.inverted.secondary.button {
background-color: transparent;
box-shadow: 0px 0px 0px @invertedBorderSize @lightSecondaryColor inset !important;
color: @lightSecondaryColor;
}
.ui.inverted.secondary.buttons .button:hover,
.ui.inverted.secondary.button:hover,
.ui.inverted.secondary.buttons .button:focus,
.ui.inverted.secondary.button:focus,
.ui.inverted.secondary.buttons .button.active,
.ui.inverted.secondary.button.active,
.ui.inverted.secondary.buttons .button:active,
.ui.inverted.secondary.button:active {
box-shadow: none !important;
color: @lightSecondaryTextColor;
}
.ui.inverted.secondary.buttons .button:hover,
.ui.inverted.secondary.button:hover {
background-color: @lightSecondaryColorHover;
}
.ui.inverted.secondary.buttons .button:focus,
.ui.inverted.secondary.button:focus {
background-color: @lightSecondaryColorFocus;
}
.ui.inverted.secondary.buttons .active.button,
.ui.inverted.secondary.active.button {
background-color: @lightSecondaryColorActive;
}
.ui.inverted.secondary.buttons .button:active,
.ui.inverted.secondary.button:active {
background-color: @lightSecondaryColorDown;
}

/* Inverted Basic */
.ui.inverted.secondary.basic.buttons .button,
.ui.inverted.secondary.buttons .basic.button,
.ui.inverted.secondary.basic.button {
background-color: transparent;
box-shadow: @basicInvertedBoxShadow !important;
color: @white !important;
}
.ui.inverted.secondary.basic.buttons .button:hover,
.ui.inverted.secondary.buttons .basic.button:hover,
.ui.inverted.secondary.basic.button:hover {
box-shadow: 0px 0px 0px @invertedBorderSize @lightSecondaryColorHover inset !important;
color: @lightSecondaryColor !important;
}
.ui.inverted.secondary.basic.buttons .button:focus,
.ui.inverted.secondary.basic.buttons .button:focus,
.ui.inverted.secondary.basic.button:focus {
box-shadow: 0px 0px 0px @invertedBorderSize @lightSecondaryColorFocus inset !important;
color: @lightSecondaryColor !important;
}
.ui.inverted.secondary.basic.buttons .active.button,
.ui.inverted.secondary.buttons .basic.active.button,
.ui.inverted.secondary.basic.active.button {
box-shadow: 0px 0px 0px @invertedBorderSize @lightSecondaryColorActive inset !important;
color: @lightSecondaryColor !important;
}
.ui.inverted.secondary.basic.buttons .button:active,
.ui.inverted.secondary.buttons .basic.button:active,
.ui.inverted.secondary.basic.button:active {
box-shadow: 0px 0px 0px @invertedBorderSize @lightSecondaryColorDown inset !important;
color: @lightSecondaryColor !important;
}

/*---------------
Positive
----------------*/
Expand Down Expand Up @@ -3423,4 +3559,3 @@
}

.loadUIOverrides();

26 changes: 13 additions & 13 deletions definitions/elements/label.less
Original file line number Diff line number Diff line change
Expand Up @@ -566,7 +566,7 @@ a.ui.red.label:hover{
}
/* Basic */
.ui.basic.red.label {
background-color: @white !important;
background-color: @basicBackground !important;
color: @red !important;
border-color: @red !important;
}
Expand Down Expand Up @@ -602,7 +602,7 @@ a.ui.orange.label:hover{
}
/* Basic */
.ui.basic.orange.label {
background-color: @white !important;
background-color: @basicBackground !important;
color: @orange !important;
border-color: @orange !important;
}
Expand Down Expand Up @@ -638,7 +638,7 @@ a.ui.yellow.label:hover{
}
/* Basic */
.ui.basic.yellow.label {
background-color: @white !important;
background-color: @basicBackground !important;
color: @yellow !important;
border-color: @yellow !important;
}
Expand Down Expand Up @@ -674,7 +674,7 @@ a.ui.olive.label:hover{
}
/* Basic */
.ui.basic.olive.label {
background-color: @white !important;
background-color: @basicBackground !important;
color: @olive !important;
border-color: @olive !important;
}
Expand Down Expand Up @@ -710,7 +710,7 @@ a.ui.green.label:hover{
}
/* Basic */
.ui.basic.green.label {
background-color: @white !important;
background-color: @basicBackground !important;
color: @green !important;
border-color: @green !important;
}
Expand Down Expand Up @@ -746,7 +746,7 @@ a.ui.teal.label:hover{
}
/* Basic */
.ui.basic.teal.label {
background-color: @white !important;
background-color: @basicBackground !important;
color: @teal !important;
border-color: @teal !important;
}
Expand Down Expand Up @@ -782,7 +782,7 @@ a.ui.blue.label:hover{
}
/* Basic */
.ui.basic.blue.label {
background-color: @white !important;
background-color: @basicBackground !important;
color: @blue !important;
border-color: @blue !important;
}
Expand Down Expand Up @@ -818,7 +818,7 @@ a.ui.violet.label:hover{
}
/* Basic */
.ui.basic.violet.label {
background-color: @white !important;
background-color: @basicBackground !important;
color: @violet !important;
border-color: @violet !important;
}
Expand Down Expand Up @@ -854,7 +854,7 @@ a.ui.purple.label:hover{
}
/* Basic */
.ui.basic.purple.label {
background-color: @white !important;
background-color: @basicBackground !important;
color: @purple !important;
border-color: @purple !important;
}
Expand Down Expand Up @@ -890,7 +890,7 @@ a.ui.pink.label:hover{
}
/* Basic */
.ui.basic.pink.label {
background-color: @white !important;
background-color: @basicBackground !important;
color: @pink !important;
border-color: @pink !important;
}
Expand Down Expand Up @@ -926,7 +926,7 @@ a.ui.brown.label:hover{
}
/* Basic */
.ui.basic.brown.label {
background-color: @white !important;
background-color: @basicBackground !important;
color: @brown !important;
border-color: @brown !important;
}
Expand Down Expand Up @@ -962,7 +962,7 @@ a.ui.grey.label:hover{
}
/* Basic */
.ui.basic.grey.label {
background-color: @white !important;
background-color: @basicBackground !important;
color: @grey !important;
border-color: @grey !important;
}
Expand Down Expand Up @@ -998,7 +998,7 @@ a.ui.black.label:hover{
}
/* Basic */
.ui.basic.black.label {
background-color: @white !important;
background-color: @basicBackground !important;
color: @black !important;
border-color: @black !important;
}
Expand Down
10 changes: 10 additions & 0 deletions definitions/modules/dimmer.js
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,10 @@ $.fn.dimmer = function(parameters) {

bind: {
events: function() {
if(module.is.page()) {
// touch events default to passive, due to changes in chrome to optimize mobile perf
$dimmable.get(0).addEventListener('touchmove', module.event.preventScroll, { passive: false });
}
if(settings.on == 'hover') {
$dimmable
.on('mouseenter' + eventNamespace, module.show)
Expand Down Expand Up @@ -141,6 +145,9 @@ $.fn.dimmer = function(parameters) {

unbind: {
events: function() {
if(module.is.page()) {
$dimmable.get(0).removeEventListener('touchmove', module.event.preventScroll, { passive: false });
}
$module
.removeData(moduleNamespace)
;
Expand All @@ -157,6 +164,9 @@ $.fn.dimmer = function(parameters) {
module.hide();
event.stopImmediatePropagation();
}
},
preventScroll: function(event) {
event.preventDefault();
}
},

Expand Down
17 changes: 13 additions & 4 deletions definitions/modules/dropdown.js
Original file line number Diff line number Diff line change
Expand Up @@ -754,10 +754,19 @@ $.fn.dropdown = function(parameters) {
callback();
},
onSuccess : function(response) {
module.remove.message();
module.setup.menu({
values: response[fields.remoteValues]
});
var
values = response[fields.remoteValues],
hasRemoteValues = ($.isArray(values) && values.length > 0)
;
if(hasRemoteValues) {
module.remove.message();
module.setup.menu({
values: response[fields.remoteValues]
});
}
else {
module.add.message(message.noResults);
}
callback();
}
}
Expand Down
3 changes: 0 additions & 3 deletions definitions/views/statistic.less
Original file line number Diff line number Diff line change
Expand Up @@ -77,9 +77,6 @@
.ui.statistics:first-child {
margin-top: 0em;
}
.ui.statistics:last-child {
margin-bottom: 0em;
}


/*******************************
Expand Down
12 changes: 11 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.3.1',
version : '2.3.2',
git : 'git://github.com/Semantic-Org/Semantic-UI-LESS.git',
});

Expand Down Expand Up @@ -227,11 +227,21 @@ Package.onUse(function(api) {
'themes/classic/views/card.variables',
'themes/colored/modules/checkbox.overrides',
'themes/colored/modules/checkbox.variables',
'themes/default/assets/fonts/brand-icons.eot',
'themes/default/assets/fonts/brand-icons.svg',
'themes/default/assets/fonts/brand-icons.ttf',
'themes/default/assets/fonts/brand-icons.woff',
'themes/default/assets/fonts/brand-icons.woff2',
'themes/default/assets/fonts/icons.eot',
'themes/default/assets/fonts/icons.svg',
'themes/default/assets/fonts/icons.ttf',
'themes/default/assets/fonts/icons.woff',
'themes/default/assets/fonts/icons.woff2',
'themes/default/assets/fonts/outline-icons.eot',
'themes/default/assets/fonts/outline-icons.svg',
'themes/default/assets/fonts/outline-icons.ttf',
'themes/default/assets/fonts/outline-icons.woff',
'themes/default/assets/fonts/outline-icons.woff2',
'themes/default/assets/images/flags.png',
'themes/default/collections/breadcrumb.overrides',
'themes/default/collections/breadcrumb.variables',
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.3.1",
"version": "2.3.2",
"title": "Semantic UI",
"description": "LESS Only distribution of Semantic UI",
"homepage": "http://www.semantic-ui.com",
Expand Down
2 changes: 2 additions & 0 deletions themes/default/elements/button.variables
Original file line number Diff line number Diff line change
Expand Up @@ -318,12 +318,14 @@
/* Ordinality */
@primaryBackgroundImage: @coloredBackgroundImage;
@primaryTextColor: @invertedTextColor;
@lightPrimaryTextColor: @invertedTextColor;
@primaryTextShadow: @invertedTextShadow;
@primaryBoxShadow: @coloredBoxShadow;

@secondaryBackgroundImage: @coloredBackgroundImage;
@secondaryTextColor: @invertedTextColor;
@secondaryTextShadow: @invertedTextShadow;
@lightSecondaryTextColor: @invertedTextColor;
@secondaryBoxShadow: @coloredBoxShadow;

@positiveBackgroundImage: @coloredBackgroundImage;
Expand Down
1 change: 1 addition & 0 deletions themes/default/elements/icon.overrides
Original file line number Diff line number Diff line change
Expand Up @@ -1677,6 +1677,7 @@ i.icon.youtube.play:before { content: "\f167"; }
i.icon.vk,
i.icon.vnv,
i.icon.vuejs,
i.icon.wechat,
i.icon.weibo,
i.icon.weixin,
i.icon.whatsapp,
Expand Down
Loading

0 comments on commit a46d6dc

Please sign in to comment.