less-rails-semantic_ui 1.11.4.0 → 1.11.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/assets/javascripts/semantic_ui/definitions/behaviors/visibility.js +33 -28
- data/assets/javascripts/semantic_ui/definitions/modules/dimmer.js +1 -1
- data/assets/javascripts/semantic_ui/definitions/modules/dropdown.js +13 -5
- data/assets/stylesheets/semantic_ui/definitions/collections/grid.less +11 -15
- data/assets/stylesheets/semantic_ui/definitions/modules/dropdown.less +19 -11
- data/assets/stylesheets/semantic_ui/definitions/modules/progress.less +1 -1
- data/assets/stylesheets/semantic_ui/definitions/views/card.less +1 -1
- data/assets/stylesheets/semantic_ui/themes/default/elements/header.variables +1 -1
- data/assets/stylesheets/semantic_ui/themes/default/modules/dropdown.variables +12 -9
- data/assets/stylesheets/semantic_ui/themes/default/views/card.variables +1 -1
- data/lib/less/rails/semantic_ui/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8f4f846c20673112036c94383c7e5aaf0a9c0f66
|
4
|
+
data.tar.gz: cabb4b99f6798c3e187f26555b692b316fab2409
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cd3cd11b4ab9bb0468f74fa4d753005712a57b5fbea711c67419546f66dc5ab89c51e08de6293d1233aff45dcfee7b06f865e7255d9d2b1345d68ad917b4caf1
|
7
|
+
data.tar.gz: 9e607d5deb9768f0f7e45ed657b58e988a3f36aeb945101ae286d7b47a70ef20f6b1561a15ffc84a49485487eb2319e670a6e74a7afde71e7bb01f4d18b0e587
|
@@ -44,7 +44,7 @@ $.fn.visibility = function(parameters) {
|
|
44
44
|
$window = $(window),
|
45
45
|
$module = $(this),
|
46
46
|
$context = $(settings.context),
|
47
|
-
$
|
47
|
+
$images = $module.find('img'),
|
48
48
|
|
49
49
|
selector = $module.selector || '',
|
50
50
|
instance = $module.data(moduleNamespace),
|
@@ -130,6 +130,38 @@ $.fn.visibility = function(parameters) {
|
|
130
130
|
$context
|
131
131
|
.on('scroll' + eventNamespace, module.event.scroll)
|
132
132
|
;
|
133
|
+
if($images.length > 0) {
|
134
|
+
module.bind.imageLoad();
|
135
|
+
}
|
136
|
+
},
|
137
|
+
imageLoad: function() {
|
138
|
+
var
|
139
|
+
imageCount = $images.length,
|
140
|
+
index = imageCount,
|
141
|
+
loadedCount = 0,
|
142
|
+
images = [],
|
143
|
+
cache = [],
|
144
|
+
cacheImage = document.createElement('img'),
|
145
|
+
handleLoad = function() {
|
146
|
+
loadedCount++;
|
147
|
+
if(loadedCount >= imageCount) {
|
148
|
+
module.debug('Images finished loading inside element, refreshing position');
|
149
|
+
module.refresh();
|
150
|
+
}
|
151
|
+
}
|
152
|
+
;
|
153
|
+
$images
|
154
|
+
.each(function() {
|
155
|
+
images.push( $(this).attr('src') );
|
156
|
+
})
|
157
|
+
;
|
158
|
+
while(index--) {
|
159
|
+
cacheImage = document.createElement('img');
|
160
|
+
cacheImage.onload = handleLoad;
|
161
|
+
cacheImage.onerror = handleLoad;
|
162
|
+
cacheImage.src = images[index];
|
163
|
+
cache.push(cacheImage);
|
164
|
+
}
|
133
165
|
}
|
134
166
|
},
|
135
167
|
|
@@ -153,33 +185,6 @@ $.fn.visibility = function(parameters) {
|
|
153
185
|
}
|
154
186
|
},
|
155
187
|
|
156
|
-
precache: function(images, callback) {
|
157
|
-
if (!(images instanceof Array)) {
|
158
|
-
images = [images];
|
159
|
-
}
|
160
|
-
var
|
161
|
-
imagesLength = images.length,
|
162
|
-
loadedCounter = 0,
|
163
|
-
cache = [],
|
164
|
-
cacheImage = document.createElement('img'),
|
165
|
-
handleLoad = function() {
|
166
|
-
loadedCounter++;
|
167
|
-
if (loadedCounter >= images.length) {
|
168
|
-
if ($.isFunction(callback)) {
|
169
|
-
callback();
|
170
|
-
}
|
171
|
-
}
|
172
|
-
}
|
173
|
-
;
|
174
|
-
while (imagesLength--) {
|
175
|
-
cacheImage = document.createElement('img');
|
176
|
-
cacheImage.onload = handleLoad;
|
177
|
-
cacheImage.onerror = handleLoad;
|
178
|
-
cacheImage.src = images[imagesLength];
|
179
|
-
cache.push(cacheImage);
|
180
|
-
}
|
181
|
-
},
|
182
|
-
|
183
188
|
should: {
|
184
189
|
trackChanges: function() {
|
185
190
|
if(methodInvoked && queryArguments.length > 0) {
|
@@ -154,7 +154,7 @@ $.fn.dimmer = function(parameters) {
|
|
154
154
|
;
|
155
155
|
if(settings.variation) {
|
156
156
|
module.debug('Creating dimmer with variation', settings.variation);
|
157
|
-
$element.addClass(
|
157
|
+
$element.addClass(settings.variation);
|
158
158
|
}
|
159
159
|
if(settings.dimmerName) {
|
160
160
|
module.debug('Creating named dimmer', settings.dimmerName);
|
@@ -31,7 +31,7 @@ $.fn.dropdown = function(parameters) {
|
|
31
31
|
;
|
32
32
|
|
33
33
|
$allModules
|
34
|
-
.each(function(
|
34
|
+
.each(function() {
|
35
35
|
var
|
36
36
|
settings = ( $.isPlainObject(parameters) )
|
37
37
|
? $.extend(true, {}, $.fn.dropdown.settings, parameters)
|
@@ -210,16 +210,17 @@ $.fn.dropdown = function(parameters) {
|
|
210
210
|
.prependTo($module)
|
211
211
|
;
|
212
212
|
}
|
213
|
-
module.
|
213
|
+
module.refresh();
|
214
214
|
},
|
215
215
|
reference: function() {
|
216
216
|
var
|
217
|
+
index = $allModules.index($module),
|
217
218
|
$firstModules,
|
218
219
|
$lastModules
|
219
220
|
;
|
220
221
|
module.debug('Dropdown behavior was called on select, replacing with closest dropdown');
|
221
222
|
// replace module reference
|
222
|
-
$module = $module.
|
223
|
+
$module = $module.parent(selector.dropdown);
|
223
224
|
module.refresh();
|
224
225
|
// adjust all modules
|
225
226
|
$firstModules = $allModules.slice(0, index);
|
@@ -471,6 +472,9 @@ $.fn.dropdown = function(parameters) {
|
|
471
472
|
module.event.item.click.call($selectedItem);
|
472
473
|
module.remove.filteredItem();
|
473
474
|
}
|
475
|
+
else {
|
476
|
+
module.hide();
|
477
|
+
}
|
474
478
|
},
|
475
479
|
|
476
480
|
event: {
|
@@ -964,19 +968,23 @@ $.fn.dropdown = function(parameters) {
|
|
964
968
|
module.verbose('Ambiguous dropdown value using strict type check', $choice, value);
|
965
969
|
if( optionValue === value ) {
|
966
970
|
$selectedItem = $(this);
|
971
|
+
return true;
|
967
972
|
}
|
968
973
|
else if( !$selectedItem && optionText === value ) {
|
969
974
|
$selectedItem = $(this);
|
975
|
+
return true;
|
970
976
|
}
|
971
977
|
}
|
972
978
|
else {
|
973
979
|
if( optionValue == value ) {
|
974
980
|
module.verbose('Found select item by value', optionValue, value);
|
975
981
|
$selectedItem = $(this);
|
982
|
+
return true;
|
976
983
|
}
|
977
984
|
else if( !$selectedItem && optionText == value ) {
|
978
985
|
module.verbose('Found select item by text', optionText, value);
|
979
986
|
$selectedItem = $(this);
|
987
|
+
return true;
|
980
988
|
}
|
981
989
|
}
|
982
990
|
})
|
@@ -1179,7 +1187,7 @@ $.fn.dropdown = function(parameters) {
|
|
1179
1187
|
selectedText,
|
1180
1188
|
selectedValue
|
1181
1189
|
;
|
1182
|
-
if($selectedItem) {
|
1190
|
+
if($selectedItem && !$selectedItem.hasClass(className.active) ) {
|
1183
1191
|
module.debug('Setting selected menu item to', $selectedItem);
|
1184
1192
|
module.remove.activeItem();
|
1185
1193
|
module.remove.selectedItem();
|
@@ -1559,7 +1567,7 @@ $.fn.dropdown = function(parameters) {
|
|
1559
1567
|
});
|
1560
1568
|
}
|
1561
1569
|
clearTimeout(module.performance.timer);
|
1562
|
-
module.performance.timer = setTimeout(module.performance.display,
|
1570
|
+
module.performance.timer = setTimeout(module.performance.display, 500);
|
1563
1571
|
},
|
1564
1572
|
display: function() {
|
1565
1573
|
var
|
@@ -1251,10 +1251,11 @@
|
|
1251
1251
|
}
|
1252
1252
|
|
1253
1253
|
.ui.stretched.grid > .row > .column,
|
1254
|
-
.ui.stretched.grid > .column,
|
1254
|
+
.ui.stretched.grid > .column:not(.row),
|
1255
1255
|
.ui.grid .stretched.column,
|
1256
1256
|
.ui.grid > .stretched.row > .column {
|
1257
1257
|
display: flex !important;
|
1258
|
+
flex-direction: column;
|
1258
1259
|
}
|
1259
1260
|
.ui.stretched.grid > .row > .column > *,
|
1260
1261
|
.ui.stretched.grid > .column > *,
|
@@ -1427,27 +1428,24 @@
|
|
1427
1428
|
table-layout: fixed;
|
1428
1429
|
width: 100% !important;
|
1429
1430
|
}
|
1430
|
-
.ui[class*="equal width"].grid > .column,
|
1431
|
+
.ui[class*="equal width"].grid > .column:not(.row),
|
1431
1432
|
.ui[class*="equal width"].grid > .row > .column,
|
1432
1433
|
.ui.grid > [class*="equal width"].row > .column {
|
1433
1434
|
display: table-cell;
|
1434
1435
|
}
|
1435
1436
|
|
1436
1437
|
/* Flexbox (Experimental / Overrides Where Supported) */
|
1437
|
-
.ui[class*="equal width"].grid
|
1438
|
-
display: flex;
|
1439
|
-
flex-direction: column;
|
1440
|
-
}
|
1438
|
+
.ui[class*="equal width"].grid,
|
1441
1439
|
.ui[class*="equal width"].grid > .row,
|
1442
1440
|
.ui.grid > [class*="equal width"].row {
|
1443
1441
|
display: flex;
|
1444
1442
|
flex-direction: row;
|
1443
|
+
flex-wrap: wrap;
|
1445
1444
|
}
|
1446
|
-
.ui[class*="equal width"].grid > .column,
|
1445
|
+
.ui[class*="equal width"].grid > .column:not(.row),
|
1447
1446
|
.ui[class*="equal width"].grid > .row > .column,
|
1448
1447
|
.ui.grid > [class*="equal width"].row > .column {
|
1449
1448
|
display: block;
|
1450
|
-
flex-direction: column;
|
1451
1449
|
flex-grow: 1;
|
1452
1450
|
}
|
1453
1451
|
|
@@ -1466,23 +1464,21 @@
|
|
1466
1464
|
table-layout: fixed;
|
1467
1465
|
width: 100% !important;
|
1468
1466
|
}
|
1469
|
-
.ui[class*="equal height"].grid > .column,
|
1467
|
+
.ui[class*="equal height"].grid > .column:not(.row),
|
1470
1468
|
.ui[class*="equal height"].grid > .row > .column,
|
1471
1469
|
.ui.grid > [class*="equal height"].row > .column {
|
1472
1470
|
display: table-cell;
|
1473
1471
|
}
|
1474
1472
|
|
1475
1473
|
/* Flexbox (Experimental / Overrides Where Supported) */
|
1476
|
-
.ui[class*="equal height"].grid
|
1477
|
-
display: flex;
|
1478
|
-
flex-direction: column;
|
1479
|
-
}
|
1474
|
+
.ui[class*="equal height"].grid,
|
1480
1475
|
.ui[class*="equal height"].grid > .row,
|
1481
|
-
.ui.grid > [class*="equal height"].row
|
1476
|
+
.ui.grid > [class*="equal height"].row {
|
1482
1477
|
display: flex;
|
1483
1478
|
flex-direction: row;
|
1479
|
+
flex-wrap: wrap;
|
1484
1480
|
}
|
1485
|
-
.ui[class*="equal height"].grid > .column,
|
1481
|
+
.ui[class*="equal height"].grid > .column:not(.row),
|
1486
1482
|
.ui[class*="equal height"].grid > .row > .column,
|
1487
1483
|
.ui.grid > [class*="equal height"].row > .column {
|
1488
1484
|
display: block;
|
@@ -264,6 +264,7 @@
|
|
264
264
|
.ui.dropdown .menu > .item > .image,
|
265
265
|
.ui.dropdown .menu > .item > img {
|
266
266
|
margin-left: 0em;
|
267
|
+
float: @itemElementFloat;
|
267
268
|
margin-right: @itemElementDistance;
|
268
269
|
}
|
269
270
|
|
@@ -405,7 +406,7 @@ select.ui.dropdown {
|
|
405
406
|
/* Scrollbar in IE */
|
406
407
|
@media all and (-ms-high-contrast:none) {
|
407
408
|
.ui.selection.dropdown .menu {
|
408
|
-
min-width: calc(100% - @scrollBarWidth);
|
409
|
+
min-width: ~"calc(100% - "@scrollBarWidth~")";
|
409
410
|
}
|
410
411
|
}
|
411
412
|
|
@@ -435,7 +436,7 @@ select.ui.dropdown {
|
|
435
436
|
border-top: @selectionItemDivider;
|
436
437
|
padding-left: @selectionHorizontalPadding !important;
|
437
438
|
/* Add in spacing for scroll bar */
|
438
|
-
padding-right: calc(@selectionHorizontalPadding + 1em) !important;
|
439
|
+
padding-right: ~"calc("@selectionHorizontalPadding~" + 1em) !important~";
|
439
440
|
white-space: normal;
|
440
441
|
word-wrap: normal;
|
441
442
|
}
|
@@ -455,22 +456,29 @@ select.ui.dropdown {
|
|
455
456
|
border: @selectionBorder;
|
456
457
|
opacity: @disabledOpacity !important;
|
457
458
|
}
|
459
|
+
/* Visible */
|
460
|
+
.ui.selection.dropdown.visible {
|
461
|
+
border-color: @selectionVisibleBorderColor;
|
462
|
+
box-shadow: @selectionVisibleBoxShadow;
|
463
|
+
}
|
464
|
+
|
465
|
+
.ui.selection.visible.dropdown .menu {
|
466
|
+
border-color: @selectionVisibleBorderColor;
|
467
|
+
box-shadow: @selectionVisibleMenuBoxShadow;
|
468
|
+
}
|
469
|
+
|
458
470
|
|
459
471
|
/* Visible Hover */
|
460
472
|
.ui.selection.visible.dropdown:hover {
|
461
473
|
border-color: @selectionVisibleHoverBorderColor;
|
462
474
|
box-shadow: @selectionVisibleHoverBoxShadow;
|
463
475
|
}
|
464
|
-
|
465
|
-
|
476
|
+
|
477
|
+
.ui.selection.visible.dropdown .menu {
|
478
|
+
border-color: @selectionVisibleHoverBorderColor;
|
466
479
|
box-shadow: @selectionVisibleHoverMenuBoxShadow;
|
467
480
|
}
|
468
481
|
|
469
|
-
/* Visible */
|
470
|
-
.ui.selection.dropdown.visible {
|
471
|
-
border-color: @selectionVisibleBorderColor;
|
472
|
-
box-shadow: @selectionVisibleBoxShadow;
|
473
|
-
}
|
474
482
|
|
475
483
|
/* Active Item */
|
476
484
|
.ui.selection.active.dropdown > .text:not(.default),
|
@@ -612,7 +620,7 @@ select.ui.dropdown {
|
|
612
620
|
.ui.dropdown .menu > .item:hover {
|
613
621
|
background: @hoveredItemBackground;
|
614
622
|
color: @hoveredItemColor;
|
615
|
-
z-index:
|
623
|
+
z-index: @hoveredZIndex;
|
616
624
|
}
|
617
625
|
|
618
626
|
/*--------------------
|
@@ -675,7 +683,7 @@ select.ui.dropdown {
|
|
675
683
|
visibility: hidden;
|
676
684
|
}
|
677
685
|
.ui.dropdown .filtered.item {
|
678
|
-
display: none;
|
686
|
+
display: none !important;
|
679
687
|
}
|
680
688
|
|
681
689
|
|
@@ -49,10 +49,10 @@
|
|
49
49
|
@itemHeight: auto;
|
50
50
|
@itemDivider: none;
|
51
51
|
@itemColor: @textColor;
|
52
|
-
@itemVerticalPadding:
|
53
|
-
@itemHorizontalPadding:
|
52
|
+
@itemVerticalPadding: @relativeMini;
|
53
|
+
@itemHorizontalPadding: @relativeLarge;
|
54
54
|
@itemFontWeight: normal;
|
55
|
-
@itemLineHeight:
|
55
|
+
@itemLineHeight: 1em;
|
56
56
|
@itemLineHeightOffset: (@itemLineHeight - 1em);
|
57
57
|
@itemTextTransform: none;
|
58
58
|
@itemBoxShadow: none;
|
@@ -91,6 +91,7 @@
|
|
91
91
|
@menuImageMaxHeight: 2.5em;
|
92
92
|
|
93
93
|
/* Item Sub-Element */
|
94
|
+
@itemElementFloat: none;
|
94
95
|
@itemElementDistance: 0.75em;
|
95
96
|
|
96
97
|
/* Sub-Menu Dropdown Icon */
|
@@ -171,16 +172,17 @@
|
|
171
172
|
@selectionHoverBoxShadow: 0px 0px 2px 0px rgba(0, 0, 0, 0.05);
|
172
173
|
|
173
174
|
/* Visible */
|
174
|
-
@selectionVisibleBorderColor: @borderColor;
|
175
|
-
@selectionVisibleBoxShadow: 0px 0px 4px 0px rgba(0, 0, 0, 0.08);
|
176
175
|
@selectionVisibleTextFontWeight: normal;
|
177
176
|
@selectionVisibleTextColor: @hoveredTextColor;
|
178
177
|
|
178
|
+
@selectionVisibleBorderColor: @selectedBorderColor;
|
179
|
+
@selectionVisibleBoxShadow: 0px 0px 4px 0px rgba(0, 0, 0, 0.08);
|
180
|
+
@selectionVisibleMenuBoxShadow: 0px 2px 6px 0px @borderColor;
|
181
|
+
|
179
182
|
/* Visible Hover */
|
180
183
|
@selectionVisibleHoverBorderColor: @selectedBorderColor;
|
181
|
-
@selectionVisibleHoverBoxShadow:
|
182
|
-
@
|
183
|
-
@selectionVisibleHoverMenuBoxShadow: 0px 2px 6px 0px rgba(0, 0, 0, 0.1);
|
184
|
+
@selectionVisibleHoverBoxShadow: @selectionVisibleBoxShadow;
|
185
|
+
@selectionVisibleHoverMenuBoxShadow: @selectionVisibleMenuBoxShadow;
|
184
186
|
|
185
187
|
@selectionVisibleConnectingBorder: 0em;
|
186
188
|
@selectionVisibleIconOpacity: 1;
|
@@ -212,6 +214,7 @@
|
|
212
214
|
/* Hovered */
|
213
215
|
@hoveredItemBackground: @transparentBlack;
|
214
216
|
@hoveredItemColor: @selectedTextColor;
|
217
|
+
@hoveredZIndex: @menuZIndex + 2;
|
215
218
|
|
216
219
|
/* Default Text */
|
217
220
|
@defaultTextColor: rgba(179, 179, 179, 0.7);
|
@@ -221,8 +224,8 @@
|
|
221
224
|
@loadingZIndex: -1;
|
222
225
|
|
223
226
|
/* Active Menu Item */
|
224
|
-
@activeItemBackground: transparent;
|
225
227
|
@activeItemZIndex: @menuZIndex + 1;
|
228
|
+
@activeItemBackground: transparent;
|
226
229
|
@activeItemBoxShadow: none;
|
227
230
|
@activeItemFontWeight: bold;
|
228
231
|
@activeItemColor: @selectedTextColor;
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: less-rails-semantic_ui
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.11.
|
4
|
+
version: 1.11.5.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Maxim Dobryakov
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-03-
|
11
|
+
date: 2015-03-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: less-rails
|