materialize-sass 0.95.3.3 → 0.95.3.4
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 +7 -0
- data/README.md +1 -1
- data/app/assets/fonts/roboto/Roboto-Bold.woff +0 -0
- data/app/assets/fonts/roboto/Roboto-Bold.woff2 +0 -0
- data/app/assets/fonts/roboto/Roboto-Light.woff +0 -0
- data/app/assets/fonts/roboto/Roboto-Light.woff2 +0 -0
- data/app/assets/fonts/roboto/Roboto-Medium.woff +0 -0
- data/app/assets/fonts/roboto/Roboto-Medium.woff2 +0 -0
- data/app/assets/fonts/roboto/Roboto-Regular.woff +0 -0
- data/app/assets/fonts/roboto/Roboto-Regular.woff2 +0 -0
- data/app/assets/fonts/roboto/Roboto-Thin.woff +0 -0
- data/app/assets/fonts/roboto/Roboto-Thin.woff2 +0 -0
- data/app/assets/javascripts/materialize-sprockets.js +2 -1
- data/app/assets/javascripts/materialize/buttons.js +4 -4
- data/app/assets/javascripts/materialize/collapsible.js +11 -14
- data/app/assets/javascripts/materialize/dropdown.js +5 -1
- data/app/assets/javascripts/materialize/forms.js +157 -151
- data/app/assets/javascripts/materialize/global.js +18 -0
- data/app/assets/javascripts/materialize/init.js +5 -1
- data/app/assets/javascripts/materialize/leanModal.js +0 -1
- data/app/assets/javascripts/materialize/pushpin.js +1 -14
- data/app/assets/javascripts/materialize/scrollFire.js +60 -21
- data/app/assets/javascripts/materialize/scrollspy.js +4 -7
- data/app/assets/javascripts/materialize/sideNav.js +58 -21
- data/app/assets/javascripts/materialize/slider.js +1 -1
- data/app/assets/javascripts/materialize/toasts.js +90 -73
- data/app/assets/javascripts/materialize/transitions.js +57 -61
- data/app/assets/javascripts/materialize/waves.js +6 -3
- data/app/assets/stylesheets/materialize/components/_buttons.scss +3 -3
- data/app/assets/stylesheets/materialize/components/_cards.scss +5 -7
- data/app/assets/stylesheets/materialize/components/_collapsible.scss +3 -11
- data/app/assets/stylesheets/materialize/components/_dropdown.scss +1 -1
- data/app/assets/stylesheets/materialize/components/_form.scss +178 -162
- data/app/assets/stylesheets/materialize/components/_global.scss +11 -10
- data/app/assets/stylesheets/materialize/components/_icons-material-design.scss +766 -2230
- data/app/assets/stylesheets/materialize/components/_materialbox.scss +2 -3
- data/app/assets/stylesheets/materialize/components/_modal.scss +3 -3
- data/app/assets/stylesheets/materialize/components/_navbar.scss +4 -7
- data/app/assets/stylesheets/materialize/components/_prefixer.scss +0 -40
- data/app/assets/stylesheets/materialize/components/_preloader.scss +2 -4
- data/app/assets/stylesheets/materialize/components/_sideNav.scss +9 -9
- data/app/assets/stylesheets/materialize/components/_slider.scss +6 -6
- data/app/assets/stylesheets/materialize/components/_table_of_contents.scss +1 -1
- data/app/assets/stylesheets/materialize/components/_tabs.scss +2 -2
- data/app/assets/stylesheets/materialize/components/_toast.scss +4 -5
- data/app/assets/stylesheets/materialize/components/_tooltip.scss +2 -2
- data/app/assets/stylesheets/materialize/components/date_picker/_default.date.scss +20 -47
- data/lib/materialize-sass.rb +75 -6
- data/lib/materialize-sass/engine.rb +13 -0
- data/lib/materialize-sass/version.rb +1 -1
- metadata +9 -15
data/lib/materialize-sass.rb
CHANGED
@@ -2,14 +2,83 @@ require "materialize-sass/version"
|
|
2
2
|
|
3
3
|
module Materialize
|
4
4
|
module Sass
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
5
|
+
# give credit to bootstrap-sass
|
6
|
+
class << self
|
7
|
+
|
8
|
+
def load!
|
9
|
+
#register_compass_extension if compass?
|
10
|
+
if rails?
|
11
|
+
register_rails_engine
|
12
|
+
elsif sprockets?
|
13
|
+
register_sprockets
|
9
14
|
end
|
10
|
-
|
11
|
-
|
15
|
+
configure_sass
|
16
|
+
end
|
17
|
+
|
18
|
+
# Paths
|
19
|
+
def gem_path
|
20
|
+
@gem_path ||= File.expand_path '..', File.dirname(__FILE__)
|
21
|
+
end
|
22
|
+
|
23
|
+
def stylesheets_path
|
24
|
+
File.join assets_path, 'stylesheets'
|
25
|
+
end
|
26
|
+
|
27
|
+
def fonts_path
|
28
|
+
File.join assets_path, 'fonts'
|
29
|
+
end
|
30
|
+
|
31
|
+
def javascripts_path
|
32
|
+
File.join assets_path, 'javascripts'
|
33
|
+
end
|
34
|
+
|
35
|
+
def assets_path
|
36
|
+
@assets_path ||= File.join gem_path, 'app/assets'
|
37
|
+
end
|
38
|
+
|
39
|
+
# Environment detection helpers
|
40
|
+
def sprockets?
|
41
|
+
defined?(::Sprockets)
|
12
42
|
end
|
43
|
+
|
44
|
+
#def compass?
|
45
|
+
# defined?(::Compass)
|
46
|
+
#end
|
47
|
+
|
48
|
+
def rails?
|
49
|
+
defined?(::Rails)
|
50
|
+
end
|
51
|
+
|
52
|
+
private
|
53
|
+
|
54
|
+
def configure_sass
|
55
|
+
require 'sass'
|
56
|
+
::Sass.load_paths << stylesheets_path
|
57
|
+
#::Sass::Script::Number.precision = [8, ::Sass::Script::Number.precision].max
|
58
|
+
end
|
59
|
+
|
60
|
+
#def register_compass_extension
|
61
|
+
# ::Compass::Frameworks.register(
|
62
|
+
# 'materialize',
|
63
|
+
# :version => Materialize::Sass::VERSION,
|
64
|
+
# :path => gem_path,
|
65
|
+
# :stylesheets_directory => stylesheets_path,
|
66
|
+
# :templates_directory => File.join(gem_path, 'templates')
|
67
|
+
# )
|
68
|
+
#end
|
69
|
+
|
70
|
+
def register_rails_engine
|
71
|
+
require 'materialize-sass/engine'
|
72
|
+
end
|
73
|
+
|
74
|
+
def register_sprockets
|
75
|
+
Sprockets.append_path(stylesheets_path)
|
76
|
+
Sprockets.append_path(fonts_path)
|
77
|
+
Sprockets.append_path(javascripts_path)
|
78
|
+
end
|
79
|
+
|
13
80
|
end
|
14
81
|
end
|
15
82
|
end
|
83
|
+
|
84
|
+
Materialize::Sass.load!
|
@@ -0,0 +1,13 @@
|
|
1
|
+
module Materialize
|
2
|
+
module Sass
|
3
|
+
class Engine < ::Rails::Engine
|
4
|
+
initializer 'materialize-sass.assets.precompile' do |app|
|
5
|
+
%w(stylesheets javascripts fonts images).each do |sub|
|
6
|
+
app.config.assets.paths << root.join('app/assets', sub).to_s
|
7
|
+
end
|
8
|
+
app.config.assets.precompile << %r(material-design-icons/Material-Design-Icons\.(?:eot|svg|ttf|woff2?)$)
|
9
|
+
app.config.assets.precompile << %r(roboto/Roboto-Bold\.(?:eot|svg|ttf|woff2?)$)
|
10
|
+
end
|
11
|
+
end
|
12
|
+
end
|
13
|
+
end
|
metadata
CHANGED
@@ -1,20 +1,18 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: materialize-sass
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.95.3.
|
5
|
-
prerelease:
|
4
|
+
version: 0.95.3.4
|
6
5
|
platform: ruby
|
7
6
|
authors:
|
8
7
|
- mkhairi
|
9
8
|
autorequire:
|
10
9
|
bindir: bin
|
11
10
|
cert_chain: []
|
12
|
-
date: 2015-03-
|
11
|
+
date: 2015-03-20 00:00:00.000000000 Z
|
13
12
|
dependencies:
|
14
13
|
- !ruby/object:Gem::Dependency
|
15
14
|
name: bundler
|
16
15
|
requirement: !ruby/object:Gem::Requirement
|
17
|
-
none: false
|
18
16
|
requirements:
|
19
17
|
- - ~>
|
20
18
|
- !ruby/object:Gem::Version
|
@@ -22,7 +20,6 @@ dependencies:
|
|
22
20
|
type: :development
|
23
21
|
prerelease: false
|
24
22
|
version_requirements: !ruby/object:Gem::Requirement
|
25
|
-
none: false
|
26
23
|
requirements:
|
27
24
|
- - ~>
|
28
25
|
- !ruby/object:Gem::Version
|
@@ -30,7 +27,6 @@ dependencies:
|
|
30
27
|
- !ruby/object:Gem::Dependency
|
31
28
|
name: rake
|
32
29
|
requirement: !ruby/object:Gem::Requirement
|
33
|
-
none: false
|
34
30
|
requirements:
|
35
31
|
- - ~>
|
36
32
|
- !ruby/object:Gem::Version
|
@@ -38,7 +34,6 @@ dependencies:
|
|
38
34
|
type: :development
|
39
35
|
prerelease: false
|
40
36
|
version_requirements: !ruby/object:Gem::Requirement
|
41
|
-
none: false
|
42
37
|
requirements:
|
43
38
|
- - ~>
|
44
39
|
- !ruby/object:Gem::Version
|
@@ -46,7 +41,6 @@ dependencies:
|
|
46
41
|
- !ruby/object:Gem::Dependency
|
47
42
|
name: sass
|
48
43
|
requirement: !ruby/object:Gem::Requirement
|
49
|
-
none: false
|
50
44
|
requirements:
|
51
45
|
- - ~>
|
52
46
|
- !ruby/object:Gem::Version
|
@@ -54,7 +48,6 @@ dependencies:
|
|
54
48
|
type: :runtime
|
55
49
|
prerelease: false
|
56
50
|
version_requirements: !ruby/object:Gem::Requirement
|
57
|
-
none: false
|
58
51
|
requirements:
|
59
52
|
- - ~>
|
60
53
|
- !ruby/object:Gem::Version
|
@@ -102,6 +95,7 @@ files:
|
|
102
95
|
- app/assets/javascripts/materialize/date_picker/picker.js
|
103
96
|
- app/assets/javascripts/materialize/dropdown.js
|
104
97
|
- app/assets/javascripts/materialize/forms.js
|
98
|
+
- app/assets/javascripts/materialize/global.js
|
105
99
|
- app/assets/javascripts/materialize/hammer.min.js
|
106
100
|
- app/assets/javascripts/materialize/init.js
|
107
101
|
- app/assets/javascripts/materialize/jquery.easing.1.3.js
|
@@ -153,31 +147,31 @@ files:
|
|
153
147
|
- app/assets/stylesheets/materialize/components/date_picker/_default.scss
|
154
148
|
- app/assets/stylesheets/materialize/components/date_picker/_default.time.scss
|
155
149
|
- lib/materialize-sass.rb
|
150
|
+
- lib/materialize-sass/engine.rb
|
156
151
|
- lib/materialize-sass/version.rb
|
157
152
|
- materialize-sass.gemspec
|
158
153
|
homepage: https://github.com/mkhairi/materialize-sass
|
159
154
|
licenses:
|
160
155
|
- MIT
|
156
|
+
metadata: {}
|
161
157
|
post_install_message:
|
162
158
|
rdoc_options: []
|
163
159
|
require_paths:
|
164
160
|
- lib
|
165
161
|
required_ruby_version: !ruby/object:Gem::Requirement
|
166
|
-
none: false
|
167
162
|
requirements:
|
168
|
-
- -
|
163
|
+
- - '>='
|
169
164
|
- !ruby/object:Gem::Version
|
170
165
|
version: '0'
|
171
166
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
172
|
-
none: false
|
173
167
|
requirements:
|
174
|
-
- -
|
168
|
+
- - '>='
|
175
169
|
- !ruby/object:Gem::Version
|
176
170
|
version: '0'
|
177
171
|
requirements: []
|
178
172
|
rubyforge_project:
|
179
|
-
rubygems_version:
|
173
|
+
rubygems_version: 2.4.6
|
180
174
|
signing_key:
|
181
|
-
specification_version:
|
175
|
+
specification_version: 4
|
182
176
|
summary: Materialzecss sass for rails.
|
183
177
|
test_files: []
|