semantic-ui-sass 1.11.5.0 → 1.12.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +4 -1
- data/CHANGELOG.md +4 -0
- data/README.md +1 -1
- data/app/assets/javascripts/semantic-ui/accordion.js +1 -1
- data/app/assets/javascripts/semantic-ui/api.js +1 -1
- data/app/assets/javascripts/semantic-ui/checkbox.js +4 -4
- data/app/assets/javascripts/semantic-ui/dimmer.js +1 -1
- data/app/assets/javascripts/semantic-ui/dropdown.js +10 -5
- data/app/assets/javascripts/semantic-ui/form.js +1 -1
- data/app/assets/javascripts/semantic-ui/modal.js +1 -1
- data/app/assets/javascripts/semantic-ui/nag.js +1 -1
- data/app/assets/javascripts/semantic-ui/popup.js +2 -2
- data/app/assets/javascripts/semantic-ui/progress.js +4 -4
- data/app/assets/javascripts/semantic-ui/rating.js +1 -1
- data/app/assets/javascripts/semantic-ui/search.js +1 -1
- data/app/assets/javascripts/semantic-ui/shape.js +1 -1
- data/app/assets/javascripts/semantic-ui/sidebar.js +1 -1
- data/app/assets/javascripts/semantic-ui/site.js +1 -1
- data/app/assets/javascripts/semantic-ui/state.js +1 -1
- data/app/assets/javascripts/semantic-ui/sticky.js +47 -27
- data/app/assets/javascripts/semantic-ui/tab.js +1 -1
- data/app/assets/javascripts/semantic-ui/transition.js +1 -1
- data/app/assets/javascripts/semantic-ui/video.js +1 -1
- data/app/assets/javascripts/semantic-ui/visibility.js +96 -37
- data/app/assets/stylesheets/semantic-ui/collections/_breadcrumb.scss +1 -1
- data/app/assets/stylesheets/semantic-ui/collections/_form.scss +7 -5
- data/app/assets/stylesheets/semantic-ui/collections/_grid.scss +10 -1
- data/app/assets/stylesheets/semantic-ui/collections/_menu.scss +1 -1
- data/app/assets/stylesheets/semantic-ui/collections/_message.scss +1 -1
- data/app/assets/stylesheets/semantic-ui/collections/_table.scss +1 -1
- data/app/assets/stylesheets/semantic-ui/elements/_button.scss +1 -1
- data/app/assets/stylesheets/semantic-ui/elements/_divider.scss +1 -1
- data/app/assets/stylesheets/semantic-ui/elements/_flag.scss +2 -2
- data/app/assets/stylesheets/semantic-ui/elements/_header.scss +1 -1
- data/app/assets/stylesheets/semantic-ui/elements/_icon.scss +6 -2
- data/app/assets/stylesheets/semantic-ui/elements/_image.scss +1 -1
- data/app/assets/stylesheets/semantic-ui/elements/_input.scss +70 -57
- data/app/assets/stylesheets/semantic-ui/elements/_label.scss +1 -1
- data/app/assets/stylesheets/semantic-ui/elements/_list.scss +1 -1
- data/app/assets/stylesheets/semantic-ui/elements/_loader.scss +1 -1
- data/app/assets/stylesheets/semantic-ui/elements/_rail.scss +1 -1
- data/app/assets/stylesheets/semantic-ui/elements/_reveal.scss +1 -1
- data/app/assets/stylesheets/semantic-ui/elements/_segment.scss +1 -1
- data/app/assets/stylesheets/semantic-ui/elements/_step.scss +1 -1
- data/app/assets/stylesheets/semantic-ui/globals/_reset.scss +1 -1
- data/app/assets/stylesheets/semantic-ui/globals/_site.scss +2 -2
- data/app/assets/stylesheets/semantic-ui/modules/_accordion.scss +1 -1
- data/app/assets/stylesheets/semantic-ui/modules/_checkbox.scss +1 -1
- data/app/assets/stylesheets/semantic-ui/modules/_dimmer.scss +1 -1
- data/app/assets/stylesheets/semantic-ui/modules/_dropdown.scss +3 -7
- data/app/assets/stylesheets/semantic-ui/modules/_modal.scss +1 -1
- data/app/assets/stylesheets/semantic-ui/modules/_nag.scss +1 -1
- data/app/assets/stylesheets/semantic-ui/modules/_popup.scss +1 -4
- data/app/assets/stylesheets/semantic-ui/modules/_progress.scss +1 -1
- data/app/assets/stylesheets/semantic-ui/modules/_rating.scss +1 -1
- data/app/assets/stylesheets/semantic-ui/modules/_search.scss +1 -1
- data/app/assets/stylesheets/semantic-ui/modules/_shape.scss +1 -1
- data/app/assets/stylesheets/semantic-ui/modules/_sidebar.scss +1 -1
- data/app/assets/stylesheets/semantic-ui/modules/_sticky.scss +1 -1
- data/app/assets/stylesheets/semantic-ui/modules/_tab.scss +1 -1
- data/app/assets/stylesheets/semantic-ui/modules/_transition.scss +1 -1
- data/app/assets/stylesheets/semantic-ui/modules/_video.scss +1 -1
- data/app/assets/stylesheets/semantic-ui/views/_ad.scss +1 -1
- data/app/assets/stylesheets/semantic-ui/views/_card.scss +5 -1
- data/app/assets/stylesheets/semantic-ui/views/_comment.scss +1 -1
- data/app/assets/stylesheets/semantic-ui/views/_feed.scss +1 -1
- data/app/assets/stylesheets/semantic-ui/views/_item.scss +1 -1
- data/app/assets/stylesheets/semantic-ui/views/_statistic.scss +1 -1
- data/lib/semantic/ui/sass/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: a33808ada5b475e8802efba4fe1fba3d6fe02bc3
|
4
|
+
data.tar.gz: b408a272d99c2c0639e21bb5e2034f6f6d1f436c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8fa04803e8b55ff9aa1e43883765d314bd3438990c11818ababdde3907e208692d0c8a008529ef0a533e10df6df8866c5e4fa3cb477ebe13ffebddec67df93eb
|
7
|
+
data.tar.gz: 2a2cdd90c8e7c4e139f6efab024de091be4416f4c047d9f23d76fc4b64ba7a74dbad11e108921e26d441ea20847b0b2341dcfac4a0e10af57fa4ace01e381e1d
|
data/.gitignore
CHANGED
data/CHANGELOG.md
CHANGED
data/README.md
CHANGED
@@ -9,7 +9,7 @@ The gem only has default theme.
|
|
9
9
|
## Installation and Usage
|
10
10
|
|
11
11
|
```ruby
|
12
|
-
gem 'semantic-ui-sass', github: 'doabit/semantic-ui-sass'
|
12
|
+
gem 'semantic-ui-sass', github: 'doabit/semantic-ui-sass'
|
13
13
|
```
|
14
14
|
|
15
15
|
`bundle install` and restart your server to make the files available through the pipeline.
|
@@ -1,5 +1,5 @@
|
|
1
1
|
/*!
|
2
|
-
* # Semantic UI - Checkbox
|
2
|
+
* # Semantic UI 1.12.3 - Checkbox
|
3
3
|
* http://github.com/semantic-org/semantic-ui/
|
4
4
|
*
|
5
5
|
*
|
@@ -93,9 +93,9 @@ $.fn.checkbox = function(parameters) {
|
|
93
93
|
},
|
94
94
|
|
95
95
|
refresh: function() {
|
96
|
-
$module = $(
|
97
|
-
$label = $(
|
98
|
-
$input = $(
|
96
|
+
$module = $(element);
|
97
|
+
$label = $(element).find(selector.label).first();
|
98
|
+
$input = $(element).find(selector.input);
|
99
99
|
},
|
100
100
|
|
101
101
|
observeChanges: function() {
|
@@ -1,5 +1,5 @@
|
|
1
1
|
/*!
|
2
|
-
* # Semantic UI - Dropdown
|
2
|
+
* # Semantic UI 1.12.3 - Dropdown
|
3
3
|
* http://github.com/semantic-org/semantic-ui/
|
4
4
|
*
|
5
5
|
*
|
@@ -224,8 +224,13 @@ $.fn.dropdown = function(parameters) {
|
|
224
224
|
module.refresh();
|
225
225
|
// adjust all modules
|
226
226
|
$firstModules = $allModules.slice(0, index);
|
227
|
-
$lastModules
|
228
|
-
$allModules
|
227
|
+
$lastModules = $allModules.slice(index + 1);
|
228
|
+
$allModules = $firstModules.add($module).add($lastModules);
|
229
|
+
// invoke method in context of current instance
|
230
|
+
if(methodInvoked) {
|
231
|
+
instance = module;
|
232
|
+
module.invoke(query);
|
233
|
+
}
|
229
234
|
}
|
230
235
|
},
|
231
236
|
|
@@ -580,8 +585,8 @@ $.fn.dropdown = function(parameters) {
|
|
580
585
|
.closest(selector.item)
|
581
586
|
.addClass(className.selected)
|
582
587
|
;
|
588
|
+
event.preventDefault();
|
583
589
|
}
|
584
|
-
event.preventDefault();
|
585
590
|
}
|
586
591
|
// right arrow (show sub-menu)
|
587
592
|
if(pressedKey == keys.rightArrow) {
|
@@ -595,8 +600,8 @@ $.fn.dropdown = function(parameters) {
|
|
595
600
|
.find(selector.item).eq(0)
|
596
601
|
.addClass(className.selected)
|
597
602
|
;
|
603
|
+
event.preventDefault();
|
598
604
|
}
|
599
|
-
event.preventDefault();
|
600
605
|
}
|
601
606
|
// up arrow (traverse menu up)
|
602
607
|
if(pressedKey == keys.upArrow) {
|
@@ -1,5 +1,5 @@
|
|
1
1
|
/*!
|
2
|
-
* # Semantic UI - Popup
|
2
|
+
* # Semantic UI 1.12.3 - Popup
|
3
3
|
* http://github.com/semantic-org/semantic-ui/
|
4
4
|
*
|
5
5
|
*
|
@@ -760,7 +760,7 @@ $.fn.popup = function(parameters) {
|
|
760
760
|
}
|
761
761
|
else if(!settings.lastResort) {
|
762
762
|
module.debug('Popup could not find a position in view', $popup);
|
763
|
-
module.error(error.cannotPlace, element);
|
763
|
+
// module.error(error.cannotPlace, element);
|
764
764
|
module.remove.attempts();
|
765
765
|
module.remove.loading();
|
766
766
|
module.reset();
|
@@ -1,5 +1,5 @@
|
|
1
1
|
/*!
|
2
|
-
* # Semantic UI - Progress
|
2
|
+
* # Semantic UI 1.12.3 - Progress
|
3
3
|
* http://github.com/semantic-org/semantic-ui/
|
4
4
|
*
|
5
5
|
*
|
@@ -236,7 +236,7 @@ $.fn.progress = function(parameters) {
|
|
236
236
|
if(settings.precision === 0) {
|
237
237
|
return Math.round(displayPercent);
|
238
238
|
}
|
239
|
-
return Math.round(displayPercent * (10 * settings.precision) / (10 * settings.precision)
|
239
|
+
return Math.round(displayPercent * (10 * settings.precision)) / (10 * settings.precision);
|
240
240
|
},
|
241
241
|
|
242
242
|
percent: function() {
|
@@ -361,11 +361,11 @@ $.fn.progress = function(parameters) {
|
|
361
361
|
percent = Math.round(percent);
|
362
362
|
}
|
363
363
|
else {
|
364
|
-
percent = Math.round(percent * (10 * settings.precision) / (10 * settings.precision)
|
364
|
+
percent = Math.round(percent * (10 * settings.precision)) / (10 * settings.precision);
|
365
365
|
}
|
366
366
|
module.percent = percent;
|
367
367
|
if(module.total) {
|
368
|
-
module.value = Math.round( (percent / 100) * module.total);
|
368
|
+
module.value = Math.round( (percent / 100) * module.total * (10 * settings.precision)) / (10 * settings.precision);
|
369
369
|
}
|
370
370
|
else if(settings.limitValues) {
|
371
371
|
module.value = (module.value > 100)
|
@@ -1,5 +1,5 @@
|
|
1
1
|
/*!
|
2
|
-
* # Semantic UI - Sticky
|
2
|
+
* # Semantic UI 1.12.3 - Sticky
|
3
3
|
* http://github.com/semantic-org/semantic-ui/
|
4
4
|
*
|
5
5
|
*
|
@@ -87,13 +87,18 @@ $.fn.sticky = function(parameters) {
|
|
87
87
|
},
|
88
88
|
|
89
89
|
destroy: function() {
|
90
|
-
module.verbose('Destroying previous
|
90
|
+
module.verbose('Destroying previous instance');
|
91
91
|
module.reset();
|
92
92
|
if(observer) {
|
93
93
|
observer.disconnect();
|
94
94
|
}
|
95
|
-
$window
|
96
|
-
|
95
|
+
$window
|
96
|
+
.off('load' + eventNamespace, module.event.load)
|
97
|
+
.off('resize' + eventNamespace, module.event.resize)
|
98
|
+
;
|
99
|
+
$scroll
|
100
|
+
.off('scrollchange' + eventNamespace, module.event.scrollchange)
|
101
|
+
;
|
97
102
|
$module.removeData(moduleNamespace);
|
98
103
|
},
|
99
104
|
|
@@ -107,7 +112,7 @@ $.fn.sticky = function(parameters) {
|
|
107
112
|
module.timer = setTimeout(function() {
|
108
113
|
module.verbose('DOM tree modified, updating sticky menu');
|
109
114
|
module.refresh();
|
110
|
-
},
|
115
|
+
}, 100);
|
111
116
|
});
|
112
117
|
observer.observe(element, {
|
113
118
|
childList : true,
|
@@ -147,23 +152,36 @@ $.fn.sticky = function(parameters) {
|
|
147
152
|
|
148
153
|
bind: {
|
149
154
|
events: function() {
|
150
|
-
$window
|
151
|
-
|
155
|
+
$window
|
156
|
+
.on('load' + eventNamespace, module.event.load)
|
157
|
+
.on('resize' + eventNamespace, module.event.resize)
|
158
|
+
;
|
159
|
+
// pub/sub pattern
|
160
|
+
$scroll
|
161
|
+
.off('scroll' + eventNamespace)
|
162
|
+
.on('scroll' + eventNamespace, module.event.scroll)
|
163
|
+
.on('scrollchange' + eventNamespace, module.event.scrollchange)
|
164
|
+
;
|
152
165
|
}
|
153
166
|
},
|
154
167
|
|
155
168
|
event: {
|
169
|
+
load: function() {
|
170
|
+
module.verbose('Page contents finished loading');
|
171
|
+
requestAnimationFrame(module.refresh);
|
172
|
+
},
|
156
173
|
resize: function() {
|
157
|
-
|
158
|
-
|
159
|
-
module.stick();
|
160
|
-
});
|
174
|
+
module.verbose('Window resized');
|
175
|
+
requestAnimationFrame(module.refresh);
|
161
176
|
},
|
162
177
|
scroll: function() {
|
163
178
|
requestAnimationFrame(function() {
|
164
|
-
|
165
|
-
settings.onScroll.call(element);
|
179
|
+
$scroll.trigger('scrollchange' + eventNamespace, $scroll.scrollTop() );
|
166
180
|
});
|
181
|
+
},
|
182
|
+
scrollchange: function(event, scrollPosition) {
|
183
|
+
module.stick(scrollPosition);
|
184
|
+
settings.onScroll.call(element);
|
167
185
|
}
|
168
186
|
},
|
169
187
|
|
@@ -189,7 +207,7 @@ $.fn.sticky = function(parameters) {
|
|
189
207
|
},
|
190
208
|
|
191
209
|
save: {
|
192
|
-
|
210
|
+
lastScroll: function(scroll) {
|
193
211
|
module.lastScroll = scroll;
|
194
212
|
},
|
195
213
|
positions: function() {
|
@@ -268,6 +286,7 @@ $.fn.sticky = function(parameters) {
|
|
268
286
|
: Math.abs(parseInt($module.css('bottom'), 10)) || 0
|
269
287
|
;
|
270
288
|
},
|
289
|
+
|
271
290
|
elementScroll: function(scroll) {
|
272
291
|
scroll = scroll || $scroll.scrollTop();
|
273
292
|
var
|
@@ -275,14 +294,14 @@ $.fn.sticky = function(parameters) {
|
|
275
294
|
window = module.cache.window,
|
276
295
|
delta = module.get.scrollChange(scroll),
|
277
296
|
maxScroll = (element.height - window.height + settings.offset),
|
278
|
-
|
279
|
-
possibleScroll = (
|
297
|
+
elementScroll = module.get.currentElementScroll(),
|
298
|
+
possibleScroll = (elementScroll + delta),
|
280
299
|
elementScroll
|
281
300
|
;
|
282
301
|
if(module.cache.fits || possibleScroll < 0) {
|
283
302
|
elementScroll = 0;
|
284
303
|
}
|
285
|
-
else if
|
304
|
+
else if(possibleScroll > maxScroll ) {
|
286
305
|
elementScroll = maxScroll;
|
287
306
|
}
|
288
307
|
else {
|
@@ -313,8 +332,8 @@ $.fn.sticky = function(parameters) {
|
|
313
332
|
$container = $module.offsetParent();
|
314
333
|
}
|
315
334
|
else {
|
316
|
-
module.debug('Settings container size', module.cache.context.height);
|
317
335
|
if( Math.abs($container.height() - module.cache.context.height) > 5) {
|
336
|
+
module.debug('Context has padding, specifying exact height for container', module.cache.context.height);
|
318
337
|
$container.css({
|
319
338
|
height: module.cache.context.height
|
320
339
|
});
|
@@ -369,8 +388,9 @@ $.fn.sticky = function(parameters) {
|
|
369
388
|
}
|
370
389
|
},
|
371
390
|
|
372
|
-
stick: function() {
|
391
|
+
stick: function(scroll) {
|
373
392
|
var
|
393
|
+
cachedPosition = scroll || $scroll.scrollTop(),
|
374
394
|
cache = module.cache,
|
375
395
|
fits = cache.fits,
|
376
396
|
element = cache.element,
|
@@ -380,11 +400,13 @@ $.fn.sticky = function(parameters) {
|
|
380
400
|
? settings.bottomOffset
|
381
401
|
: settings.offset,
|
382
402
|
scroll = {
|
383
|
-
top :
|
384
|
-
bottom :
|
403
|
+
top : cachedPosition + offset,
|
404
|
+
bottom : cachedPosition + offset + window.height
|
385
405
|
},
|
386
406
|
direction = module.get.direction(scroll.top),
|
387
|
-
elementScroll =
|
407
|
+
elementScroll = (fits)
|
408
|
+
? 0
|
409
|
+
: module.get.elementScroll(scroll.top),
|
388
410
|
|
389
411
|
// shorthand
|
390
412
|
doesntFit = !fits,
|
@@ -392,13 +414,12 @@ $.fn.sticky = function(parameters) {
|
|
392
414
|
;
|
393
415
|
|
394
416
|
// save current scroll for next run
|
395
|
-
module.save.
|
417
|
+
module.save.lastScroll(scroll.top);
|
396
418
|
|
397
419
|
if(elementVisible) {
|
398
420
|
|
399
421
|
if( module.is.initialPosition() ) {
|
400
422
|
if(scroll.top >= context.bottom) {
|
401
|
-
console.log(scroll.top, context.bottom);
|
402
423
|
module.debug('Element bottom of container');
|
403
424
|
module.bindBottom();
|
404
425
|
}
|
@@ -553,13 +574,12 @@ $.fn.sticky = function(parameters) {
|
|
553
574
|
module.unbind();
|
554
575
|
module.unfix();
|
555
576
|
module.resetCSS();
|
577
|
+
module.remove.offset();
|
556
578
|
},
|
557
579
|
|
558
580
|
resetCSS: function() {
|
559
581
|
$module
|
560
582
|
.css({
|
561
|
-
top : '',
|
562
|
-
bottom : '',
|
563
583
|
width : '',
|
564
584
|
height : ''
|
565
585
|
})
|
@@ -789,4 +809,4 @@ $.fn.sticky.settings = {
|
|
789
809
|
|
790
810
|
};
|
791
811
|
|
792
|
-
})( jQuery, window , document );
|
812
|
+
})( jQuery, window , document );
|