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 +4 -4
- data/app/assets/javascripts/semantic-ui/modules/accordion.js +1 -1
- data/app/assets/javascripts/semantic-ui/modules/dimmer.js +1 -1
- data/app/assets/javascripts/semantic-ui/modules/dropdown.js +20 -7
- data/app/assets/javascripts/semantic-ui/modules/modal.js +1 -1
- data/app/assets/stylesheets/semantic-ui/elements/button.less +3 -3
- data/app/assets/stylesheets/semantic-ui/elements/segment.less +6 -0
- data/app/assets/stylesheets/semantic-ui/modules/modal.less +6 -1
- data/app/assets/stylesheets/semantic-ui/views/list.less +1 -1
- data/lib/semantic/ui/rails/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: d80aabefa4f0ba1c36b015ef4d3376a903f2d01d
|
4
|
+
data.tar.gz: 31d9df6c9d6c9230bef60a5ffbb62f65e55517fc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f9e7e5c22f26f43eca0ecf5e3e1a9dae5d80f79bd613865836e88b153ebeccde9868d657c70bbedbe7a024cfca1c679509c65f7c06699ce85237db26869bc786
|
7
|
+
data.tar.gz: 339f595b66d172a00ac8dd8affe175fdb40a9b727fef491b018e27622e30556b7653ca8440e7d054e41f86e9517cce95bbcb2ed00b60c53b7f62bf904029bcc6
|
@@ -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)
|
214
|
-
|
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()
|
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)
|
333
|
-
|
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)
|
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
|
|
@@ -122,7 +122,7 @@
|
|
122
122
|
Hover
|
123
123
|
---------------*/
|
124
124
|
|
125
|
-
.ui.button:
|
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:
|
143
|
-
.ui.active.button:
|
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
|
+
}
|
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.
|
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-
|
11
|
+
date: 2013-11-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: less-rails
|