mui-sass 0.6.8 → 0.7.2
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/CHANGELOG.md +5 -0
- data/README.md +1 -44
- data/lib/mui/sass/version.rb +1 -1
- data/mui-sass.gemspec +3 -4
- data/vendor/assets/javascripts/mui.js +4 -3
- metadata +8 -22
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8400cb1705e8d6109e0cc081cf7ac991cdc518dc
|
4
|
+
data.tar.gz: 12a9878c235f2022c166764ea2eac6b3b0258a97
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a730cfc2c2d8da39b41c5fbeb8f8aaeaabfcade04c717ff5e756cac50af9e03b4a803abf66d6f2763108153cd8be4036306369d59226c1e78b7b80bf4dcde39c
|
7
|
+
data.tar.gz: 42c5d15d505ca317aa1405054864dd1232674dc803b3899cdfdc71f925bc9ccd8b1a0b36a26c26eb46580a9e5e59593eeb0912075cd906c1bf20f1cf32eb8e96
|
data/CHANGELOG.md
CHANGED
data/README.md
CHANGED
@@ -5,15 +5,12 @@
|
|
5
5
|
|
6
6
|
[MUI](https://www.muicss.com/) is a lightweight CSS framework that follows Google's Material Design guidelines
|
7
7
|
|
8
|
-
`mui-sass` is a Sass-powered version of MUI framework for your
|
8
|
+
`mui-sass` is a Sass-powered version of MUI framework for your Ruby applications.
|
9
9
|
|
10
10
|
`mui-sass` allows to include MUI framework Sass and JavaScript components. React, Angular, HTML Email, WebComponents are not included.
|
11
11
|
|
12
12
|
## Installation
|
13
13
|
|
14
|
-
* [Ruby on Rails](#ruby-on-rails)
|
15
|
-
* [Compass](#compass)
|
16
|
-
|
17
14
|
### Ruby on Rails
|
18
15
|
|
19
16
|
Open your Rails application's Gemfile and add this line:
|
@@ -40,46 +37,6 @@ Open `app/assets/javascripts/application.js` file and add this line:
|
|
40
37
|
|
41
38
|
Restart Rails web server if it was running and now your Rails application is powered by Sass version of MUI framework.
|
42
39
|
|
43
|
-
### Compass
|
44
|
-
|
45
|
-
To use Compass extension you'll need to install `mui-sass` gem:
|
46
|
-
|
47
|
-
```
|
48
|
-
gem install mui-sass
|
49
|
-
```
|
50
|
-
|
51
|
-
#### Existing Compass project
|
52
|
-
|
53
|
-
If you have an existing Compass project, open `config.rb` file and require `mui-sass` there:
|
54
|
-
|
55
|
-
```ruby
|
56
|
-
require 'mui-sass'
|
57
|
-
```
|
58
|
-
|
59
|
-
Navigate to your project's folder and run command:
|
60
|
-
|
61
|
-
```
|
62
|
-
compass install mui -r mui-sass
|
63
|
-
```
|
64
|
-
|
65
|
-
This will create new file `styles.scss`, that imports MUI components.
|
66
|
-
|
67
|
-
Instead of the install command provided above, you can manually import `mui`:
|
68
|
-
|
69
|
-
```
|
70
|
-
@import 'mui';
|
71
|
-
```
|
72
|
-
|
73
|
-
#### New Compass project
|
74
|
-
|
75
|
-
If you are creating a new Compass project and wish to include `mui-sass` run command:
|
76
|
-
|
77
|
-
```
|
78
|
-
compass create project-name -r mui-sass --using mui
|
79
|
-
```
|
80
|
-
|
81
|
-
This command will create a new Compass project with `styles.scss` file, which imports MUI components.
|
82
|
-
|
83
40
|
## Usage
|
84
41
|
|
85
42
|
By default, using `@import 'mui';` and `//= require mui`, all of MUI components are imported.
|
data/lib/mui/sass/version.rb
CHANGED
data/mui-sass.gemspec
CHANGED
@@ -21,9 +21,8 @@ Gem::Specification.new do |spec|
|
|
21
21
|
|
22
22
|
spec.required_ruby_version = '>= 2.0.0'
|
23
23
|
|
24
|
-
spec.add_runtime_dependency 'sass', '~> 3.
|
24
|
+
spec.add_runtime_dependency 'sass', '~> 3.4'
|
25
25
|
|
26
|
-
spec.add_development_dependency 'rspec', '~> 3.
|
27
|
-
spec.add_development_dependency '
|
28
|
-
spec.add_development_dependency 'rails', '~> 4.0'
|
26
|
+
spec.add_development_dependency 'rspec', '~> 3.5'
|
27
|
+
spec.add_development_dependency 'rails', '~> 4.2'
|
29
28
|
end
|
@@ -704,8 +704,9 @@ function enableScrollLockFn() {
|
|
704
704
|
|
705
705
|
/**
|
706
706
|
* Turn off window scroll lock.
|
707
|
+
* @param {Boolean} resetPos - Reset scroll position to original value.
|
707
708
|
*/
|
708
|
-
function disableScrollLockFn() {
|
709
|
+
function disableScrollLockFn(resetPos) {
|
709
710
|
// ignore
|
710
711
|
if (scrollLock === 0) return;
|
711
712
|
|
@@ -718,7 +719,7 @@ function disableScrollLockFn() {
|
|
718
719
|
doc = document;
|
719
720
|
|
720
721
|
jqLite.removeClass(doc.body, scrollLockCls);
|
721
|
-
win.scrollTo(scrollLockPos.left, scrollLockPos.top);
|
722
|
+
if (resetPos) win.scrollTo(scrollLockPos.left, scrollLockPos.top);
|
722
723
|
}
|
723
724
|
}
|
724
725
|
|
@@ -1575,7 +1576,7 @@ Menu.prototype.destroy = function() {
|
|
1575
1576
|
this.selectEl.focus();
|
1576
1577
|
|
1577
1578
|
// remove scroll lock
|
1578
|
-
util.disableScrollLock();
|
1579
|
+
util.disableScrollLock(true);
|
1579
1580
|
|
1580
1581
|
// remove event handlers
|
1581
1582
|
jqLite.off(this.menuEl, 'click', this.clickCallbackFn);
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mui-sass
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.7.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Dmitriy Tarasov
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-
|
11
|
+
date: 2016-09-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: sass
|
@@ -16,56 +16,42 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '3.
|
19
|
+
version: '3.4'
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: '3.
|
26
|
+
version: '3.4'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: rspec
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
31
|
- - "~>"
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: '3.
|
33
|
+
version: '3.5'
|
34
34
|
type: :development
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
38
|
- - "~>"
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version: '3.
|
41
|
-
- !ruby/object:Gem::Dependency
|
42
|
-
name: compass
|
43
|
-
requirement: !ruby/object:Gem::Requirement
|
44
|
-
requirements:
|
45
|
-
- - "~>"
|
46
|
-
- !ruby/object:Gem::Version
|
47
|
-
version: '1.0'
|
48
|
-
type: :development
|
49
|
-
prerelease: false
|
50
|
-
version_requirements: !ruby/object:Gem::Requirement
|
51
|
-
requirements:
|
52
|
-
- - "~>"
|
53
|
-
- !ruby/object:Gem::Version
|
54
|
-
version: '1.0'
|
40
|
+
version: '3.5'
|
55
41
|
- !ruby/object:Gem::Dependency
|
56
42
|
name: rails
|
57
43
|
requirement: !ruby/object:Gem::Requirement
|
58
44
|
requirements:
|
59
45
|
- - "~>"
|
60
46
|
- !ruby/object:Gem::Version
|
61
|
-
version: '4.
|
47
|
+
version: '4.2'
|
62
48
|
type: :development
|
63
49
|
prerelease: false
|
64
50
|
version_requirements: !ruby/object:Gem::Requirement
|
65
51
|
requirements:
|
66
52
|
- - "~>"
|
67
53
|
- !ruby/object:Gem::Version
|
68
|
-
version: '4.
|
54
|
+
version: '4.2'
|
69
55
|
description: MUI is a lightweight framework that follows Google's Material Design
|
70
56
|
guidelines
|
71
57
|
email:
|