dlegr250_material_design 0.3.77 → 0.3.78

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: c350c3e73ea0f073250e0a4c2418572ad9888098
4
- data.tar.gz: 84e89128fbd18edbfca93133c0897ffa20d7e5a0
3
+ metadata.gz: c5b76efb2aba16894cf5b5e3846564ba33ba6cd1
4
+ data.tar.gz: 9103c0b1fd5a34b794648b63974b4158a243cc0b
5
5
  SHA512:
6
- metadata.gz: 3bf4725752b6256f5d77849863082de6ea3a01af20b07449408cfc8186617f25e0c066dc5ec60ccc214a04c7997a3cd6dd44f6a920a708a986e8d6470dcabcea
7
- data.tar.gz: c278900bceeb231fd66a468afa0ad3b018b38f61f3c57504f0651260275247322678af724c6740291631d977d282ba3186ec67df3e693e78edeebb1c4e25f5a9
6
+ metadata.gz: c1ab14faca0be63f7bd400e91a4df61262f804cefd2ebd4a3e3dc83e7328c70fd9cf84d4a8fe0749e0f3bb1286c00cd2f3941bd6d719ab573aca19205c3d5fef
7
+ data.tar.gz: 6a439c0a382468b4efee6bd8de488a96d5859ad6c13d6a7abf37bec43a7d5f2d6829ce728b60d2237d7578da3cec16a370fc00fdee7d508e43a8ea1213f07049
@@ -1,3 +1,3 @@
1
1
  module Dlegr250MaterialDesign
2
- VERSION = "0.3.77"
2
+ VERSION = "0.3.78"
3
3
  end
@@ -9,6 +9,7 @@ $(document).on "ready page:load", ->
9
9
  App.MD.Layout.init()
10
10
  App.MD.Menus.init()
11
11
  App.MD.Dialog.init()
12
+ App.MD.ExpansionPanels.init()
12
13
  App.MD.Tabs.init()
13
14
  App.MD.Forms.init()
14
15
  App.MD.InputMasks.init()
@@ -0,0 +1,13 @@
1
+ #======================================================================
2
+ # Add triggers to show/hide expansion panels.
3
+ #======================================================================
4
+ class App.MD.ExpansionPanels
5
+ @init: () ->
6
+ @setVariables()
7
+ @setEvents()
8
+
9
+ @setVariables: () ->
10
+
11
+ @setEvents: () ->
12
+ $("body").on "click", ".expansion-panel-summary", (event) =>
13
+ $(event.target).parent(".expansion-panel").toggleClass("open")
@@ -13,6 +13,7 @@
13
13
  //= require components/layout
14
14
  //= require components/menus
15
15
  //= require components/dialog
16
+ //= require components/expansion_panels
16
17
  //= require components/tabs
17
18
  //= require components/forms
18
19
  //= require components/input_masks
@@ -0,0 +1,28 @@
1
+ //======================================================================
2
+ // EXAMPLE:
3
+ //======================================================================
4
+ .expansion-panel {
5
+ .expansion-panel-summary-more { display: block; }
6
+ .expansion-panel-summary-less { display: none; }
7
+
8
+ .expansion-panel-summary {
9
+ cursor: pointer;
10
+ }
11
+
12
+ .expansion-panel-details {
13
+ display: none;
14
+ }
15
+ }
16
+
17
+ .expansion-panel.open {
18
+ .expansion-panel-summary {
19
+ background-color: color("hover");
20
+ }
21
+
22
+ .expansion-panel-summary-more { display: none !important; }
23
+ .expansion-panel-summary-less { display: block !important; }
24
+
25
+ .expansion-panel-details {
26
+ display: block !important;
27
+ }
28
+ }
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dlegr250_material_design
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.77
4
+ version: 0.3.78
5
5
  platform: ruby
6
6
  authors:
7
7
  - Daniel LeGrand
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2016-10-07 00:00:00.000000000 Z
11
+ date: 2016-10-11 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: 'WARNING: ALPHA CODE, NOT PRODUCTION READY. ACTIVELY UNDER DEVELOPMENT
14
14
  AS OF AUG 2016. Implement Google Material Design spec with modern browsers in mind
@@ -37,6 +37,7 @@ files:
37
37
  - lib/dlegr250_material_design/version.rb
38
38
  - vendor/assets/javascripts/base/init.js.coffee
39
39
  - vendor/assets/javascripts/components/dialog.coffee
40
+ - vendor/assets/javascripts/components/expansion_panels.coffee
40
41
  - vendor/assets/javascripts/components/forms.coffee
41
42
  - vendor/assets/javascripts/components/input_masks.coffee
42
43
  - vendor/assets/javascripts/components/layout.coffee
@@ -67,6 +68,7 @@ files:
67
68
  - vendor/assets/stylesheets/components/description_lists.scss
68
69
  - vendor/assets/stylesheets/components/dialogs.scss
69
70
  - vendor/assets/stylesheets/components/dividers.scss
71
+ - vendor/assets/stylesheets/components/expansion_panels.scss
70
72
  - vendor/assets/stylesheets/components/forms/check_boxes.scss
71
73
  - vendor/assets/stylesheets/components/forms/fields.scss
72
74
  - vendor/assets/stylesheets/components/forms/helper_texts.scss