semantic-ui-rails 0.8.4.1 → 0.8.5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (32) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +1 -0
  3. data/app/assets/javascripts/semantic-ui/modules/accordion.js +1 -1
  4. data/app/assets/javascripts/semantic-ui/modules/behavior/api.js +1 -1
  5. data/app/assets/javascripts/semantic-ui/modules/behavior/form.js +1 -1
  6. data/app/assets/javascripts/semantic-ui/modules/behavior/state.js +1 -1
  7. data/app/assets/javascripts/semantic-ui/modules/chatroom.js +1 -1
  8. data/app/assets/javascripts/semantic-ui/modules/checkbox.js +1 -1
  9. data/app/assets/javascripts/semantic-ui/modules/dimmer.js +1 -1
  10. data/app/assets/javascripts/semantic-ui/modules/dropdown.js +1 -1
  11. data/app/assets/javascripts/semantic-ui/modules/modal.js +2 -2
  12. data/app/assets/javascripts/semantic-ui/modules/nag.js +1 -1
  13. data/app/assets/javascripts/semantic-ui/modules/rating.js +1 -1
  14. data/app/assets/javascripts/semantic-ui/modules/search.js +1 -1
  15. data/app/assets/javascripts/semantic-ui/modules/shape.js +1 -1
  16. data/app/assets/javascripts/semantic-ui/modules/sidebar.js +1 -1
  17. data/app/assets/javascripts/semantic-ui/modules/tab.js +1 -1
  18. data/app/assets/javascripts/semantic-ui/modules/transition.js +1 -2
  19. data/app/assets/javascripts/semantic-ui/modules/video.js +1 -1
  20. data/app/assets/stylesheets/semantic-ui/elements/image.less +181 -181
  21. data/app/assets/stylesheets/semantic-ui/modules/accordion.less +197 -197
  22. data/app/assets/stylesheets/semantic-ui/modules/chatroom.less +280 -280
  23. data/app/assets/stylesheets/semantic-ui/modules/dimmer.less +2 -0
  24. data/app/assets/stylesheets/semantic-ui/modules/modal.less +5 -2
  25. data/app/assets/stylesheets/semantic-ui/modules/nag.less +172 -172
  26. data/app/assets/stylesheets/semantic-ui/modules/popup.less +255 -255
  27. data/app/assets/stylesheets/semantic-ui/modules/video.less +98 -98
  28. data/lib/generators/semantic/install/templates/semantic-ui.css.less +1 -1
  29. data/lib/semantic/ui/rails/version.rb +1 -1
  30. data/semantic-ui-rails.gemspec +1 -0
  31. data/semantic.thor +15 -5
  32. metadata +15 -1
@@ -1,98 +1,98 @@
1
- /*
2
- * # Semantic - Video
3
- * http://github.com/jlukic/semantic-ui/
4
- *
5
- *
6
- * Copyright 2013 Contributors
7
- * Released under the MIT license
8
- * http://opensource.org/licenses/MIT
9
- *
10
- */
11
-
12
-
13
- /*******************************
14
- Video
15
- *******************************/
16
-
17
- .ui.video {
18
- position: relative;
19
- max-width: 100%;
20
- }
21
-
22
- /*--------------
23
- Content
24
- ---------------*/
25
-
26
- /* Placeholder Image */
27
- .ui.video .placeholder {
28
- background-color: #333333;
29
- }
30
-
31
- /* Play Icon Overlay */
32
- .ui.video .play {
33
- cursor: pointer;
34
- position: absolute;
35
- top: 0px;
36
- left: 0px;
37
- z-index: 10;
38
-
39
- width: 100%;
40
- height: 100%;
41
-
42
- -ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=60)";
43
- filter: alpha(opacity=60);
44
- opacity: 0.6;
45
-
46
- -webkit-transition: opacity 0.3s;
47
- -moz-transition: opacity 0.3s;
48
- -o-transition: opacity 0.3s;
49
- -ms-transition: opacity 0.3s;
50
- transition: opacity 0.3s;
51
- }
52
- .ui.video .play.icon:before {
53
- position: absolute;
54
- top: 50%;
55
- left: 50%;
56
- z-index: 11;
57
-
58
- font-size: 6rem;
59
- margin: -3rem 0em 0em -3rem;
60
- color: #FFFFFF;
61
- text-shadow: 0px 3px 3px rgba(0, 0, 0, 0.4);
62
- }
63
-
64
- .ui.video .placeholder {
65
- display: block;
66
- width: 100%;
67
- height: 100%;
68
- }
69
-
70
- /* IFrame Embed */
71
- .ui.video .embed {
72
- display: none;
73
- }
74
-
75
- /*******************************
76
- States
77
- *******************************/
78
-
79
- /*--------------
80
- Hover
81
- ---------------*/
82
-
83
- .ui.video .play:hover {
84
- opacity: 1;
85
- }
86
-
87
-
88
- /*--------------
89
- Active
90
- ---------------*/
91
-
92
- .ui.video.active .play,
93
- .ui.video.active .placeholder {
94
- display: none;
95
- }
96
- .ui.video.active .embed {
97
- display: block;
98
- }
1
+ /*
2
+ * # Semantic - Video
3
+ * http://github.com/jlukic/semantic-ui/
4
+ *
5
+ *
6
+ * Copyright 2013 Contributors
7
+ * Released under the MIT license
8
+ * http://opensource.org/licenses/MIT
9
+ *
10
+ */
11
+
12
+
13
+ /*******************************
14
+ Video
15
+ *******************************/
16
+
17
+ .ui.video {
18
+ position: relative;
19
+ max-width: 100%;
20
+ }
21
+
22
+ /*--------------
23
+ Content
24
+ ---------------*/
25
+
26
+ /* Placeholder Image */
27
+ .ui.video .placeholder {
28
+ background-color: #333333;
29
+ }
30
+
31
+ /* Play Icon Overlay */
32
+ .ui.video .play {
33
+ cursor: pointer;
34
+ position: absolute;
35
+ top: 0px;
36
+ left: 0px;
37
+ z-index: 10;
38
+
39
+ width: 100%;
40
+ height: 100%;
41
+
42
+ -ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=60)";
43
+ filter: alpha(opacity=60);
44
+ opacity: 0.6;
45
+
46
+ -webkit-transition: opacity 0.3s;
47
+ -moz-transition: opacity 0.3s;
48
+ -o-transition: opacity 0.3s;
49
+ -ms-transition: opacity 0.3s;
50
+ transition: opacity 0.3s;
51
+ }
52
+ .ui.video .play.icon:before {
53
+ position: absolute;
54
+ top: 50%;
55
+ left: 50%;
56
+ z-index: 11;
57
+
58
+ font-size: 6rem;
59
+ margin: -3rem 0em 0em -3rem;
60
+ color: #FFFFFF;
61
+ text-shadow: 0px 3px 3px rgba(0, 0, 0, 0.4);
62
+ }
63
+
64
+ .ui.video .placeholder {
65
+ display: block;
66
+ width: 100%;
67
+ height: 100%;
68
+ }
69
+
70
+ /* IFrame Embed */
71
+ .ui.video .embed {
72
+ display: none;
73
+ }
74
+
75
+ /*******************************
76
+ States
77
+ *******************************/
78
+
79
+ /*--------------
80
+ Hover
81
+ ---------------*/
82
+
83
+ .ui.video .play:hover {
84
+ opacity: 1;
85
+ }
86
+
87
+
88
+ /*--------------
89
+ Active
90
+ ---------------*/
91
+
92
+ .ui.video.active .play,
93
+ .ui.video.active .placeholder {
94
+ display: none;
95
+ }
96
+ .ui.video.active .embed {
97
+ display: block;
98
+ }
@@ -33,7 +33,6 @@
33
33
  @import 'semantic-ui/modules/dimmer.less';
34
34
  @import 'semantic-ui/modules/rating.less';
35
35
  @import 'semantic-ui/modules/accordion.less';
36
- @import 'semantic-ui/modules/transition.less';
37
36
  @import 'semantic-ui/modules/checkbox.less';
38
37
  @import 'semantic-ui/modules/search.less';
39
38
  @import 'semantic-ui/modules/video.less';
@@ -45,4 +44,5 @@
45
44
  @import 'semantic-ui/modules/tab.less';
46
45
  @import 'semantic-ui/modules/dropdown.less';
47
46
  @import 'semantic-ui/modules/chatroom.less';
47
+ @import 'semantic-ui/modules/transition.less';
48
48
 
@@ -1,7 +1,7 @@
1
1
  module Semantic
2
2
  module Ui
3
3
  module Rails
4
- VERSION = "0.8.4.1"
4
+ VERSION = "0.8.5"
5
5
  end
6
6
  end
7
7
  end
@@ -19,6 +19,7 @@ Gem::Specification.new do |spec|
19
19
  spec.require_paths = ["lib"]
20
20
 
21
21
  spec.add_dependency "less-rails"
22
+ spec.add_dependency "autoprefixer-rails"
22
23
 
23
24
  spec.add_development_dependency "bundler", "~> 1.3"
24
25
  spec.add_development_dependency "rake"
data/semantic.thor CHANGED
@@ -122,12 +122,13 @@ class Semantic < Thor
122
122
  dirs_order.each do |dir|
123
123
  template.write "/* #{dir.capitalize} */ \n"
124
124
 
125
- Dir.glob(source_root + stylesheets + dir + "**/*") do |file|
126
- next if File.directory? file
125
+ file_list = Dir.glob(source_root + stylesheets + dir + "**/*")
127
126
 
128
- filepath = Pathname.new(file)
127
+ # transition should be last
128
+ file_to_end(file_list, /transition.less/)
129
129
 
130
- relative_path = filepath.relative_path_from(stylesheets)
130
+ file_list.each do |filepath|
131
+ relative_path = Pathname.new(filepath).relative_path_from(stylesheets)
131
132
 
132
133
  template.write "@import 'semantic-ui/#{relative_path}'; \n"
133
134
  end
@@ -137,6 +138,15 @@ class Semantic < Thor
137
138
  end
138
139
  end
139
140
 
141
+ def file_to_end(file_list, file_regexp)
142
+ found = file_list.grep(file_regexp)
143
+ file = found.first if found
144
+
145
+ if file
146
+ file_list.insert(file_list.length - 1, file_list.delete_at(file_list.index(file)))
147
+ end
148
+ end
149
+
140
150
  def clean
141
151
  say_status "MESSAGE", "DELETE WORKING DIR"
142
152
  FileUtils.rm_rf 'tmp/updater'
@@ -167,4 +177,4 @@ class Semantic < Thor
167
177
  end
168
178
 
169
179
  end
170
- end
180
+ end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: semantic-ui-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.4.1
4
+ version: 0.8.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - nd0ut
@@ -24,6 +24,20 @@ dependencies:
24
24
  - - ">="
25
25
  - !ruby/object:Gem::Version
26
26
  version: '0'
27
+ - !ruby/object:Gem::Dependency
28
+ name: autoprefixer-rails
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - ">="
32
+ - !ruby/object:Gem::Version
33
+ version: '0'
34
+ type: :runtime
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - ">="
39
+ - !ruby/object:Gem::Version
40
+ version: '0'
27
41
  - !ruby/object:Gem::Dependency
28
42
  name: bundler
29
43
  requirement: !ruby/object:Gem::Requirement