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 +4 -4
- data/lib/dlegr250_material_design/version.rb +1 -1
- data/vendor/assets/javascripts/base/init.js.coffee +1 -0
- data/vendor/assets/javascripts/components/expansion_panels.coffee +13 -0
- data/vendor/assets/javascripts/dlegr250_material_design.js +1 -0
- data/vendor/assets/stylesheets/components/expansion_panels.scss +28 -0
- metadata +4 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c5b76efb2aba16894cf5b5e3846564ba33ba6cd1
|
4
|
+
data.tar.gz: 9103c0b1fd5a34b794648b63974b4158a243cc0b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c1ab14faca0be63f7bd400e91a4df61262f804cefd2ebd4a3e3dc83e7328c70fd9cf84d4a8fe0749e0f3bb1286c00cd2f3941bd6d719ab573aca19205c3d5fef
|
7
|
+
data.tar.gz: 6a439c0a382468b4efee6bd8de488a96d5859ad6c13d6a7abf37bec43a7d5f2d6829ce728b60d2237d7578da3cec16a370fc00fdee7d508e43a8ea1213f07049
|
@@ -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")
|
@@ -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.
|
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-
|
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
|