semantic-ui-sass 1.11.5.0 → 1.12.3.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.
Files changed (71) hide show
  1. checksums.yaml +4 -4
  2. data/.gitignore +4 -1
  3. data/CHANGELOG.md +4 -0
  4. data/README.md +1 -1
  5. data/app/assets/javascripts/semantic-ui/accordion.js +1 -1
  6. data/app/assets/javascripts/semantic-ui/api.js +1 -1
  7. data/app/assets/javascripts/semantic-ui/checkbox.js +4 -4
  8. data/app/assets/javascripts/semantic-ui/dimmer.js +1 -1
  9. data/app/assets/javascripts/semantic-ui/dropdown.js +10 -5
  10. data/app/assets/javascripts/semantic-ui/form.js +1 -1
  11. data/app/assets/javascripts/semantic-ui/modal.js +1 -1
  12. data/app/assets/javascripts/semantic-ui/nag.js +1 -1
  13. data/app/assets/javascripts/semantic-ui/popup.js +2 -2
  14. data/app/assets/javascripts/semantic-ui/progress.js +4 -4
  15. data/app/assets/javascripts/semantic-ui/rating.js +1 -1
  16. data/app/assets/javascripts/semantic-ui/search.js +1 -1
  17. data/app/assets/javascripts/semantic-ui/shape.js +1 -1
  18. data/app/assets/javascripts/semantic-ui/sidebar.js +1 -1
  19. data/app/assets/javascripts/semantic-ui/site.js +1 -1
  20. data/app/assets/javascripts/semantic-ui/state.js +1 -1
  21. data/app/assets/javascripts/semantic-ui/sticky.js +47 -27
  22. data/app/assets/javascripts/semantic-ui/tab.js +1 -1
  23. data/app/assets/javascripts/semantic-ui/transition.js +1 -1
  24. data/app/assets/javascripts/semantic-ui/video.js +1 -1
  25. data/app/assets/javascripts/semantic-ui/visibility.js +96 -37
  26. data/app/assets/stylesheets/semantic-ui/collections/_breadcrumb.scss +1 -1
  27. data/app/assets/stylesheets/semantic-ui/collections/_form.scss +7 -5
  28. data/app/assets/stylesheets/semantic-ui/collections/_grid.scss +10 -1
  29. data/app/assets/stylesheets/semantic-ui/collections/_menu.scss +1 -1
  30. data/app/assets/stylesheets/semantic-ui/collections/_message.scss +1 -1
  31. data/app/assets/stylesheets/semantic-ui/collections/_table.scss +1 -1
  32. data/app/assets/stylesheets/semantic-ui/elements/_button.scss +1 -1
  33. data/app/assets/stylesheets/semantic-ui/elements/_divider.scss +1 -1
  34. data/app/assets/stylesheets/semantic-ui/elements/_flag.scss +2 -2
  35. data/app/assets/stylesheets/semantic-ui/elements/_header.scss +1 -1
  36. data/app/assets/stylesheets/semantic-ui/elements/_icon.scss +6 -2
  37. data/app/assets/stylesheets/semantic-ui/elements/_image.scss +1 -1
  38. data/app/assets/stylesheets/semantic-ui/elements/_input.scss +70 -57
  39. data/app/assets/stylesheets/semantic-ui/elements/_label.scss +1 -1
  40. data/app/assets/stylesheets/semantic-ui/elements/_list.scss +1 -1
  41. data/app/assets/stylesheets/semantic-ui/elements/_loader.scss +1 -1
  42. data/app/assets/stylesheets/semantic-ui/elements/_rail.scss +1 -1
  43. data/app/assets/stylesheets/semantic-ui/elements/_reveal.scss +1 -1
  44. data/app/assets/stylesheets/semantic-ui/elements/_segment.scss +1 -1
  45. data/app/assets/stylesheets/semantic-ui/elements/_step.scss +1 -1
  46. data/app/assets/stylesheets/semantic-ui/globals/_reset.scss +1 -1
  47. data/app/assets/stylesheets/semantic-ui/globals/_site.scss +2 -2
  48. data/app/assets/stylesheets/semantic-ui/modules/_accordion.scss +1 -1
  49. data/app/assets/stylesheets/semantic-ui/modules/_checkbox.scss +1 -1
  50. data/app/assets/stylesheets/semantic-ui/modules/_dimmer.scss +1 -1
  51. data/app/assets/stylesheets/semantic-ui/modules/_dropdown.scss +3 -7
  52. data/app/assets/stylesheets/semantic-ui/modules/_modal.scss +1 -1
  53. data/app/assets/stylesheets/semantic-ui/modules/_nag.scss +1 -1
  54. data/app/assets/stylesheets/semantic-ui/modules/_popup.scss +1 -4
  55. data/app/assets/stylesheets/semantic-ui/modules/_progress.scss +1 -1
  56. data/app/assets/stylesheets/semantic-ui/modules/_rating.scss +1 -1
  57. data/app/assets/stylesheets/semantic-ui/modules/_search.scss +1 -1
  58. data/app/assets/stylesheets/semantic-ui/modules/_shape.scss +1 -1
  59. data/app/assets/stylesheets/semantic-ui/modules/_sidebar.scss +1 -1
  60. data/app/assets/stylesheets/semantic-ui/modules/_sticky.scss +1 -1
  61. data/app/assets/stylesheets/semantic-ui/modules/_tab.scss +1 -1
  62. data/app/assets/stylesheets/semantic-ui/modules/_transition.scss +1 -1
  63. data/app/assets/stylesheets/semantic-ui/modules/_video.scss +1 -1
  64. data/app/assets/stylesheets/semantic-ui/views/_ad.scss +1 -1
  65. data/app/assets/stylesheets/semantic-ui/views/_card.scss +5 -1
  66. data/app/assets/stylesheets/semantic-ui/views/_comment.scss +1 -1
  67. data/app/assets/stylesheets/semantic-ui/views/_feed.scss +1 -1
  68. data/app/assets/stylesheets/semantic-ui/views/_item.scss +1 -1
  69. data/app/assets/stylesheets/semantic-ui/views/_statistic.scss +1 -1
  70. data/lib/semantic/ui/sass/version.rb +1 -1
  71. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 0c460323250441d6213701b0c5aee384cd846389
4
- data.tar.gz: dadfe9981bd299eba2d7e7c1836c89ad89d874fe
3
+ metadata.gz: a33808ada5b475e8802efba4fe1fba3d6fe02bc3
4
+ data.tar.gz: b408a272d99c2c0639e21bb5e2034f6f6d1f436c
5
5
  SHA512:
6
- metadata.gz: e50041fb9261ebeb1ca032a87fcb66674a4538088289c7d8e6cfe640b5394a2f58adf9aa12454e744ccc6bcd56a0a5859165af7f5a8eab74586b39818691be90
7
- data.tar.gz: 805f0a70cb14963c7b12cdf840b5768df2ea48fb21b4c69b5d4e390b8c5eb2bfb71db6486ab441439a387637c5a1009095185662468d269c6d60b3e2922dc059
6
+ metadata.gz: 8fa04803e8b55ff9aa1e43883765d314bd3438990c11818ababdde3907e208692d0c8a008529ef0a533e10df6df8866c5e4fa3cb477ebe13ffebddec67df93eb
7
+ data.tar.gz: 2a2cdd90c8e7c4e139f6efab024de091be4416f4c047d9f23d76fc4b64ba7a74dbad11e108921e26d441ea20847b0b2341dcfac4a0e10af57fa4ace01e381e1d
data/.gitignore CHANGED
@@ -17,8 +17,11 @@ test/version_tmp
17
17
  tmp
18
18
  .DS_Store
19
19
  .env
20
+ .project
21
+ .idea
20
22
 
21
23
  spec/dummy/db/*.sqlite3
22
24
  spec/dummy/log/*.log
23
25
  spec/dummy/tmp/
24
- spec/dummy/.sass-cache
26
+ spec/dummy/.sass-cache
27
+
@@ -1,3 +1,7 @@
1
+ ## 1.12.3.0
2
+
3
+ * Update Semantic UI to 1.12.3
4
+
1
5
  ## 1.11.4.1
2
6
 
3
7
  * Removes reference to a absent icon file
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', branch: 'v1.0beta'
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 - Accordion
2
+ * # Semantic UI 1.12.3 - Accordion
3
3
  * http://github.com/semantic-org/semantic-ui/
4
4
  *
5
5
  *
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * # Semantic UI - API
2
+ * # Semantic UI 1.12.3 - API
3
3
  * http://github.com/semantic-org/semantic-ui/
4
4
  *
5
5
  *
@@ -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 = $(this);
97
- $label = $(this).find(selector.label).first();
98
- $input = $(this).find(selector.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 - Dimmer
2
+ * # Semantic UI 1.12.3 - Dimmer
3
3
  * http://github.com/semantic-org/semantic-ui/
4
4
  *
5
5
  *
@@ -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 = $allModules.slice(index + 1);
228
- $allModules = $firstModules.add($module).add($lastModules);
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 - Form Validation
2
+ * # Semantic UI 1.12.3 - Form Validation
3
3
  * http://github.com/semantic-org/semantic-ui/
4
4
  *
5
5
  *
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * # Semantic UI - Modal
2
+ * # Semantic UI 1.12.3 - Modal
3
3
  * http://github.com/semantic-org/semantic-ui/
4
4
  *
5
5
  *
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * # Semantic UI - Nag
2
+ * # Semantic UI 1.12.3 - Nag
3
3
  * http://github.com/semantic-org/semantic-ui/
4
4
  *
5
5
  *
@@ -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 - Rating
2
+ * # Semantic UI 1.12.3 - Rating
3
3
  * http://github.com/semantic-org/semantic-ui/
4
4
  *
5
5
  *
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * # Semantic UI - Search
2
+ * # Semantic UI 1.12.3 - Search
3
3
  * http://github.com/semantic-org/semantic-ui/
4
4
  *
5
5
  *
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * # Semantic UI - Shape
2
+ * # Semantic UI 1.12.3 - Shape
3
3
  * http://github.com/semantic-org/semantic-ui/
4
4
  *
5
5
  *
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * # Semantic UI - Sidebar
2
+ * # Semantic UI 1.12.3 - Sidebar
3
3
  * http://github.com/semantic-org/semantic-ui/
4
4
  *
5
5
  *
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * # Semantic UI - Site
2
+ * # Semantic UI 1.12.3 - Site
3
3
  * http://github.com/semantic-org/semantic-ui/
4
4
  *
5
5
  *
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * # Semantic UI - State
2
+ * # Semantic UI 1.12.3 - State
3
3
  * http://github.com/semantic-org/semantic-ui/
4
4
  *
5
5
  *
@@ -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 module');
90
+ module.verbose('Destroying previous instance');
91
91
  module.reset();
92
92
  if(observer) {
93
93
  observer.disconnect();
94
94
  }
95
- $window.off('resize' + eventNamespace, module.event.resize);
96
- $scroll.off('scroll' + eventNamespace, module.event.scroll);
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
- }, 20);
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.on('resize' + eventNamespace, module.event.resize);
151
- $scroll.on('scroll' + eventNamespace, module.event.scroll);
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
- requestAnimationFrame(function() {
158
- module.refresh();
159
- module.stick();
160
- });
174
+ module.verbose('Window resized');
175
+ requestAnimationFrame(module.refresh);
161
176
  },
162
177
  scroll: function() {
163
178
  requestAnimationFrame(function() {
164
- module.stick();
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
- scroll: function(scroll) {
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
- currentScroll = module.get.currentElementScroll(),
279
- possibleScroll = (currentScroll + delta),
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 (possibleScroll > maxScroll ) {
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 : $scroll.scrollTop() + offset,
384
- bottom : $scroll.scrollTop() + offset + window.height
403
+ top : cachedPosition + offset,
404
+ bottom : cachedPosition + offset + window.height
385
405
  },
386
406
  direction = module.get.direction(scroll.top),
387
- elementScroll = module.get.elementScroll(scroll.top),
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.scroll(scroll.top);
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 );
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * # Semantic UI - Tab
2
+ * # Semantic UI 1.12.3 - Tab
3
3
  * http://github.com/semantic-org/semantic-ui/
4
4
  *
5
5
  *
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * # Semantic UI - Transition
2
+ * # Semantic UI 1.12.3 - Transition
3
3
  * http://github.com/semantic-org/semantic-ui/
4
4
  *
5
5
  *