semantic-ui-sass 0.9.2.0 → 0.9.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- 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/dimmer.js +1 -1
- data/app/assets/javascripts/semantic-ui/dropdown.js +20 -7
- data/app/assets/javascripts/semantic-ui/modal.js +1 -1
- data/app/assets/stylesheets/semantic-ui/elements/_button.scss +3 -3
- data/app/assets/stylesheets/semantic-ui/elements/_segment.scss +8 -0
- data/app/assets/stylesheets/semantic-ui/modules/_modal.scss +4 -0
- data/app/assets/stylesheets/semantic-ui/views/_list.scss +1 -1
- data/lib/semantic/ui/sass/version.rb +2 -2
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 933bdcf6cfe3af17e4a3409d52db5c8d3ba43e8d
|
4
|
+
data.tar.gz: 63992307ab53a0bd77cc1d95e03ecc7898fb49dd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 59e6ae5ca61c0857f2cb8e39010f4a4b7a103e661fb6457a3edb3ca5522f208383aec3b801a31b3d24f1a37e9c68d80d0961c8ae1aaa39b1c4f9dc9d04882be9
|
7
|
+
data.tar.gz: 11e4eba43186d21da3e63b2c3809ba02369fd593791eeeeca2f621c21e2dc3b4f0e89424eda3c291f99b800e2a50490e597c1cb43e4d615dfbca5d087a418bd1
|
data/CHANGELOG.md
CHANGED
data/README.md
CHANGED
@@ -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
|
|
@@ -81,7 +81,7 @@
|
|
81
81
|
Hover
|
82
82
|
---------------*/
|
83
83
|
|
84
|
-
.ui.button:
|
84
|
+
.ui.button:hover {
|
85
85
|
background-image: -webkit-gradient(linear, top left, bottom left, from(rgba(0, 0, 0, 0)), to(rgba(0, 0, 0, 0.08)));
|
86
86
|
background-image: -webkit-linear-gradient(rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.08));
|
87
87
|
background-image: linear-gradient(rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.08));
|
@@ -101,8 +101,8 @@
|
|
101
101
|
Down
|
102
102
|
---------------*/
|
103
103
|
|
104
|
-
.ui.button:
|
105
|
-
.ui.active.button:
|
104
|
+
.ui.button:active,
|
105
|
+
.ui.active.button:active {
|
106
106
|
background-color: #F1F1F1;
|
107
107
|
color: rgba(0, 0, 0, 0.7);
|
108
108
|
-webkit-box-shadow: 0px 0px 0px 1px rgba(0, 0, 0, 0.05) inset !important;
|
@@ -347,6 +347,14 @@
|
|
347
347
|
box-shadow: none;
|
348
348
|
}
|
349
349
|
|
350
|
+
.ui.inverted.segment .segment {
|
351
|
+
color: rgba(0, 0, 0, 0.7);
|
352
|
+
}
|
353
|
+
|
354
|
+
.ui.inverted.segment .inverted.segment {
|
355
|
+
color: #FFFFFF;
|
356
|
+
}
|
357
|
+
|
350
358
|
.ui.inverted.segment,
|
351
359
|
.ui.primary.inverted.segment {
|
352
360
|
background-color: #222222;
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: semantic-ui-sass
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.9.
|
4
|
+
version: 0.9.3.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- doabit
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-11-
|
11
|
+
date: 2013-11-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -305,7 +305,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
305
305
|
version: '0'
|
306
306
|
requirements: []
|
307
307
|
rubyforge_project:
|
308
|
-
rubygems_version: 2.
|
308
|
+
rubygems_version: 2.1.11
|
309
309
|
signing_key:
|
310
310
|
specification_version: 4
|
311
311
|
summary: Semantic UI, converted to Sass and ready to drop into Rails & Compass.
|