semantic-ui-rails 0.9.2 → 0.9.3

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 4a2923afb10f0d24311ee5cdc442dfae2d0de821
4
- data.tar.gz: e2f2606b0859cc5cf07406586289194957f5a00e
3
+ metadata.gz: d80aabefa4f0ba1c36b015ef4d3376a903f2d01d
4
+ data.tar.gz: 31d9df6c9d6c9230bef60a5ffbb62f65e55517fc
5
5
  SHA512:
6
- metadata.gz: ba9ae0ddf38275a3857f69706be6b7a2107afc97040c55e223fcce8257c20a37bad1dbba88ede12f4121c40de74f10419e8eec39467afcdb88a6d12aaff944e0
7
- data.tar.gz: 42c0682a1d826d41d29a900119383afe54b10133c0c64fac6161cf6805a1e4ab12fdb7777bf31382981935203227456f2cf658eb424d2d61abafe932e0cf5cce
6
+ metadata.gz: f9e7e5c22f26f43eca0ecf5e3e1a9dae5d80f79bd613865836e88b153ebeccde9868d657c70bbedbe7a024cfca1c679509c65f7c06699ce85237db26869bc786
7
+ data.tar.gz: 339f595b66d172a00ac8dd8affe175fdb40a9b727fef491b018e27622e30556b7653ca8440e7d054e41f86e9517cce95bbcb2ed00b60c53b7f62bf904029bcc6
@@ -406,7 +406,7 @@ $.fn.accordion.settings = {
406
406
  selector : {
407
407
  title : '.title',
408
408
  content : '.content'
409
- },
409
+ }
410
410
 
411
411
 
412
412
  };
@@ -164,7 +164,7 @@ $.fn.dimmer = function(parameters) {
164
164
  complete : function() {
165
165
  module.set.active();
166
166
  callback();
167
- },
167
+ }
168
168
  })
169
169
  ;
170
170
  }
@@ -210,8 +210,12 @@ $.fn.dropdown = function(parameters) {
210
210
  click: function (event) {
211
211
  var
212
212
  $choice = $(this),
213
- text = $choice.data(metadata.text) || $choice.text(),
214
- value = $choice.data(metadata.value) || text.toLowerCase()
213
+ text = ( $choice.data(metadata.text) !== undefined )
214
+ ? $choice.data(metadata.text)
215
+ : $choice.text(),
216
+ value = ( $choice.data(metadata.value) !== undefined)
217
+ ? $choice.data(metadata.value)
218
+ : text.toLowerCase()
215
219
  ;
216
220
  if( $choice.find(selector.menu).size() === 0 ) {
217
221
  module.determine.selectAction(text, value);
@@ -322,15 +326,21 @@ $.fn.dropdown = function(parameters) {
322
326
  ;
323
327
  value = (value !== undefined)
324
328
  ? value
325
- : ( module.get.value() || module.get.text() )
329
+ : ( module.get.value() !== undefined)
330
+ ? module.get.value()
331
+ : module.get.text()
326
332
  ;
327
333
  if(value) {
328
334
  $item
329
335
  .each(function() {
330
336
  var
331
337
  $choice = $(this),
332
- optionText = $choice.data(metadata.text) || $choice.text(),
333
- optionValue = $choice.data(metadata.value) || optionText.toLowerCase()
338
+ optionText = ( $choice.data(metadata.text) !== undefined )
339
+ ? $choice.data(metadata.text)
340
+ : $choice.text(),
341
+ optionValue = ( $choice.data(metadata.value) !== undefined )
342
+ ? $choice.data(metadata.value)
343
+ : optionText.toLowerCase()
334
344
  ;
335
345
  if( optionValue == value || optionText == value ) {
336
346
  $selectedItem = $(this);
@@ -369,7 +379,10 @@ $.fn.dropdown = function(parameters) {
369
379
  ;
370
380
  if($selectedItem) {
371
381
  module.debug('Setting selected menu item to', $selectedItem);
372
- selectedText = $selectedItem.data(metadata.text) || $selectedItem.text();
382
+ selectedText = ($selectedItem.data(metadata.text) !== undefined)
383
+ ? $selectedItem.data(metadata.text)
384
+ : $selectedItem.text()
385
+ ;
373
386
  $item
374
387
  .removeClass(className.active)
375
388
  ;
@@ -783,7 +796,7 @@ $.fn.dropdown.settings = {
783
796
  transition : 'slide down',
784
797
  duration : 250,
785
798
 
786
- onChange : function(){},
799
+ onChange : function(value, text){},
787
800
  onShow : function(){},
788
801
  onHide : function(){},
789
802
 
@@ -676,7 +676,7 @@ $.fn.modal.settings = {
676
676
  className : {
677
677
  active : 'active',
678
678
  scrolling : 'scrolling'
679
- },
679
+ }
680
680
  };
681
681
 
682
682
 
@@ -122,7 +122,7 @@
122
122
  Hover
123
123
  ---------------*/
124
124
 
125
- .ui.button:not(.loading):hover {
125
+ .ui.button:hover {
126
126
  background-image: linear-gradient(rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.08));
127
127
  color: rgba(0, 0, 0, 0.7);
128
128
  }
@@ -139,8 +139,8 @@
139
139
  Down
140
140
  ---------------*/
141
141
 
142
- .ui.button:not(.loading):active,
143
- .ui.active.button:not(.loading):active {
142
+ .ui.button:active,
143
+ .ui.active.button:active {
144
144
  background-color: #F1F1F1;
145
145
  color: rgba(0, 0, 0, 0.7);
146
146
  box-shadow: 0px 0px 0px 1px rgba(0, 0, 0, 0.05) inset !important;
@@ -385,6 +385,12 @@
385
385
  -moz-box-shadow: none;
386
386
  box-shadow: none;
387
387
  }
388
+ .ui.inverted.segment .segment {
389
+ color: rgba(0, 0, 0, 0.7);
390
+ }
391
+ .ui.inverted.segment .inverted.segment {
392
+ color: #FFFFFF;
393
+ }
388
394
  .ui.inverted.segment,
389
395
  .ui.primary.inverted.segment {
390
396
  background-color: #222222;
@@ -31,6 +31,11 @@
31
31
  -webkit-border-radius: 5px;
32
32
  -moz-border-radius: 5px;
33
33
  border-radius: 5px;
34
+
35
+ -webkit-user-select: text;
36
+ -moz-user-select: text;
37
+ -ms-user-select: text;
38
+ user-select: text;
34
39
  }
35
40
 
36
41
 
@@ -285,4 +290,4 @@
285
290
  width: 44%;
286
291
  margin-left: -22%;
287
292
  }
288
- }
293
+ }
@@ -105,7 +105,7 @@ ol.ui.list li,
105
105
  line-height: 1.2;
106
106
  }
107
107
  .ui.list .item > .icon + .content {
108
- float: left;
108
+ display: table-cell;
109
109
  vertical-align: top;
110
110
  }
111
111
 
@@ -1,7 +1,7 @@
1
1
  module Semantic
2
2
  module Ui
3
3
  module Rails
4
- VERSION = "0.9.2"
4
+ VERSION = "0.9.3"
5
5
  end
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: semantic-ui-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.2
4
+ version: 0.9.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - nd0ut
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-11-09 00:00:00.000000000 Z
11
+ date: 2013-11-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: less-rails