mumuki-styles 1.15.1 → 1.15.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 49b95f8fcec5ef36f11660173d8f730eb66f3a4f
4
- data.tar.gz: e39c877bc60abca963835abacf1580b774cb1d70
3
+ metadata.gz: 674216b443c03a9321dd23982bf9fe07335b7db2
4
+ data.tar.gz: b64ace560a30a6e537baf566c4d40e4e9c0f8bab
5
5
  SHA512:
6
- metadata.gz: 35a83efa8f1f7d787d0579570519578fa5d6ddb0861cc858f793425670d19ff3d3b1ea6b379b2afda46fcf961c73fb26c737dc232e1a82992e9679bd75a7317b
7
- data.tar.gz: d025d168648ad52f245cfc2fcb4d9a1f38002b25bb1851d5a6a4d42c1465d79edfa6824d856c27e11548bb4ecd15d59a3f5842b38995769c9b9b6b36768ba6d7
6
+ metadata.gz: 23af8d17c476160a9a0dbb7462c9eacd19c7dea540393861227223edbd56f199f35be0f132594ffa72c4a5186f3c75ed150df965fe23381cfc8c09b7582f76fa
7
+ data.tar.gz: ed541f61ed8c2b625d40b6fa86165281b53552c1a96619cec49c220e17971f4a2e266239ff84e373544188acd24a1d0cc1d51eeb6d19025046fe93e5a36b40d2
data/README.md CHANGED
@@ -1,60 +1,8 @@
1
1
  # mumuki-styles
2
2
 
3
- ### How to use it in with rails-assets?
4
-
5
- 1. Add the following code into `Gemfile`
6
-
7
- ```ruby
8
- source 'https://rails-assets.org' do
9
- gem 'rails-assets-mumuki-styles'
10
- end
11
- ```
12
-
13
- or use a specific version
14
-
15
- ```ruby
16
- source 'https://rails-assets.org' do
17
- gem 'rails-assets-mumuki-styles', '1.3.0'
18
- end
19
- ```
20
-
21
- 1. Install it running
22
-
23
- ```bash
24
- bundle install
25
- ```
26
-
27
- 1. Add the following code into `app/assets/javascripts/application.js`
28
-
29
- ```js
30
- //= require mumuki-styles
31
- //= require bootstrap-sass
32
- ```
33
-
34
- 1. Add the following code into `app/assets/stylesheets/application.scss`
3
+ ## Components
35
4
 
36
- ```scss
37
- @import "mumuki-styles";
38
- ```
39
- **Note**: If you do not use SCSS, add `*= require mumuki-styles` to `app/assets/stylesheets/application.css` file
40
-
41
-
42
- ### How to use it with bower?
43
-
44
- 1. Run `bower install --save mumuki-styles`
45
- 1. Add the css and js files to `index.html`
46
-
47
- ```html
48
- <link rel="stylesheet" href="bower_compoments/mumuki-styles/dist/css/mumuki-styles.css">
49
- <script src="bower_compoments/mumuki-styles/dist/javascript/mumuki-styles.js"></script>
50
- ```
51
- 1. if you are using SCSS, simply import the scss file
52
-
53
- ```scss
54
- @import "bower_compoments/mumuki-styles/dist/scss/mumuki-styles.scss"
55
- ```
56
-
57
- ### Using mu-file-browser
5
+ ### mu-file-browser
58
6
 
59
7
  ```html
60
8
  <div
@@ -91,6 +39,9 @@
91
39
 
92
40
  With jQuery you can use function `$('.mu-file-browser').renderFileBrowser()`;
93
41
 
42
+
43
+ ### mu-erd
44
+
94
45
  ```html
95
46
  <div
96
47
  class='mu-erd'
@@ -154,6 +105,7 @@ With jQuery you can use function `$('.mu-file-browser').renderFileBrowser()`;
154
105
 
155
106
  With jQuery you can use function `$('.mu-erd').renderERD()`;
156
107
 
108
+ ### mu-browser
157
109
 
158
110
  ```html
159
111
  <div
@@ -191,6 +143,50 @@ gem 'mumuki-styles', github: 'mumuki/mumuki-styles', branch: 'master'
191
143
 
192
144
  And then bundle install
193
145
 
146
+ ### How to use it in with rails-assets?
147
+
148
+ 1. Add the following code into `Gemfile`
149
+
150
+ ```ruby
151
+ gem 'mumuki-styles'
152
+ ```
153
+
154
+ 1. Install it running
155
+
156
+ ```bash
157
+ bundle install
158
+ ```
159
+
160
+ 1. Add the following code into `app/assets/javascripts/application.js`
161
+
162
+ ```js
163
+ //= require mumuki-styles
164
+ ```
165
+
166
+ 1. Add the following code into `app/assets/stylesheets/application.scss`
167
+
168
+ ```scss
169
+ @import "mumuki-styles";
170
+ ```
171
+ **Note**: If you do not use SCSS, add `*= require mumuki-styles` to `app/assets/stylesheets/application.css` file
172
+
173
+
174
+ ### How to use it with bower?
175
+
176
+ 1. Run `bower install --save mumuki-styles`
177
+ 1. Add the css and js files to `index.html`
178
+
179
+ ```html
180
+ <link rel="stylesheet" href="bower_compoments/mumuki-styles/dist/css/mumuki-styles.css">
181
+ <script src="bower_compoments/mumuki-styles/dist/javascript/mumuki-styles.js"></script>
182
+ ```
183
+ 1. if you are using SCSS, simply import the scss file
184
+
185
+ ```scss
186
+ @import "bower_compoments/mumuki-styles/dist/scss/mumuki-styles.scss"
187
+ ```
188
+
189
+
194
190
  ## Ruby Version
195
191
 
196
192
  `mumuki-styles` works with Ruby 2.3.1
@@ -12621,6 +12621,12 @@ if (typeof jQuery === 'undefined') {
12621
12621
  }
12622
12622
  }
12623
12623
 
12624
+ mumuki.resize = function (callback) {
12625
+ window.addEventListener('resize', callback);
12626
+ setTimeout(callback, 500);
12627
+ callback();
12628
+ }
12629
+
12624
12630
  })(window, document);
12625
12631
 
12626
12632
 
@@ -12761,7 +12767,9 @@ mumuki.load(function () {
12761
12767
  return self;
12762
12768
  }
12763
12769
 
12764
- $('.mu-file-browser').renderFileBrowser();
12770
+ mumuki.resize(function () {
12771
+ $('.mu-file-browser').renderFileBrowser();
12772
+ });
12765
12773
 
12766
12774
  });
12767
12775
 
@@ -12807,13 +12815,25 @@ mumuki.load(function () {
12807
12815
  return { x1: x1, x2: x2, y1: y1, y2: y2, mi: (x1 + x2) / 2, dx1: -C, dx2: C };
12808
12816
  },
12809
12817
  up_right: function ($entity, $column) {
12810
- return;
12818
+ var x1 = $entity.from.position().left + $entity.from.width() + BORDER;
12819
+ var y1 = $column.from.position().top + $column.from.height() / 2 + 5;
12820
+ var x2 = $entity.to.position().left;
12821
+ var y2 = $column.to.position().top + $column.to.height() / 2 + 5;
12822
+ return { x1: x1, x2: x2, y1: y1, y2: y2, mi: (x1 + x2) / 2, dx1: C, dx2: -C };
12811
12823
  },
12812
12824
  down_left: function ($entity, $column) {
12813
- return;
12825
+ var x1 = $entity.from.position().left;
12826
+ var y1 = $column.from.position().top + $column.from.height() / 2 + 5;
12827
+ var x2 = $entity.to.position().left + $entity.to.width() + BORDER;
12828
+ var y2 = $column.to.position().top + $column.to.height() / 2 + 5;
12829
+ return { x1: x1, x2: x2, y1: y1, y2: y2, mi: (x1 + x2) / 2, dx1: -C, dx2: C };
12814
12830
  },
12815
12831
  down_right: function ($entity, $column) {
12816
- return;
12832
+ var x1 = $entity.from.position().left + $entity.from.width() + BORDER;
12833
+ var y1 = $column.from.position().top + $column.from.height() / 2 + 5;
12834
+ var x2 = $entity.to.position().left;
12835
+ var y2 = $column.to.position().top + $column.to.height() / 2 + 5;
12836
+ return { x1: x1, x2: x2, y1: y1, y2: y2, mi: (x1 + x2) / 2, dx1: C, dx2: -C };
12817
12837
  },
12818
12838
  }
12819
12839
 
@@ -12985,12 +13005,10 @@ mumuki.load(function () {
12985
13005
  return self;
12986
13006
  }
12987
13007
 
12988
- window.addEventListener('resize', function () {
13008
+ mumuki.resize(function () {
12989
13009
  $('.mu-erd').renderERD();
12990
13010
  });
12991
13011
 
12992
- $('.mu-erd').renderERD();
12993
-
12994
13012
  });
12995
13013
 
12996
13014
  mumuki.load(function () {
@@ -13064,6 +13082,8 @@ mumuki.load(function () {
13064
13082
  return self;
13065
13083
  }
13066
13084
 
13067
- $('.mu-browser').renderWebBrowser();
13085
+ mumuki.resize(function () {
13086
+ $('.mu-browser').renderWebBrowser();
13087
+ });
13068
13088
 
13069
13089
  });
@@ -2,7 +2,6 @@
2
2
  width: 100%;
3
3
  position: relative;
4
4
  header {
5
- margin: 15px;
6
5
  margin-bottom: 0;
7
6
  padding: 15px;
8
7
  border: $mu-component-border;
@@ -30,7 +29,6 @@
30
29
  main {
31
30
  border: $mu-component-border;
32
31
  border-top: none;
33
- margin: 15px;
34
32
  margin-top: 0;
35
33
  ul {
36
34
  @include display-flex(row wrap, flex-start, flex-start);
@@ -9560,7 +9560,6 @@ pre code {
9560
9560
  width: 100%;
9561
9561
  position: relative; }
9562
9562
  .mu-file-browser header {
9563
- margin: 15px;
9564
9563
  margin-bottom: 0;
9565
9564
  padding: 15px;
9566
9565
  border: 2px solid #cfd9db;
@@ -9586,7 +9585,6 @@ pre code {
9586
9585
  .mu-file-browser main {
9587
9586
  border: 2px solid #cfd9db;
9588
9587
  border-top: none;
9589
- margin: 15px;
9590
9588
  margin-top: 0; }
9591
9589
  .mu-file-browser main ul {
9592
9590
  display: flex;
@@ -1,5 +1,5 @@
1
1
  module Mumuki
2
2
  module Styles
3
- VERSION = "1.15.1"
3
+ VERSION = "1.15.2"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mumuki-styles
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.15.1
4
+ version: 1.15.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Federico Scarpa
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-12-29 00:00:00.000000000 Z
11
+ date: 2018-01-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler