dlegr250_material_design 0.5.56 → 0.5.57

Sign up to get free protection for your applications and to get access to all the features.
Files changed (32) hide show
  1. checksums.yaml +4 -4
  2. data/lib/dlegr250_material_design/version.rb +1 -1
  3. data/vendor/assets/javascripts/components/clockpicker.coffee +31 -0
  4. data/vendor/assets/javascripts/components/combobox.coffee +28 -0
  5. data/vendor/assets/javascripts/components/datepicker.coffee +29 -0
  6. data/vendor/assets/javascripts/components/expansion_panels.coffee +14 -0
  7. data/vendor/assets/javascripts/components/form_submit_buttons.coffee +4 -0
  8. data/vendor/assets/javascripts/components/html_editor.coffee +94 -0
  9. data/vendor/assets/javascripts/dlegr250_material_design.js +2 -6
  10. data/vendor/assets/javascripts/extensions/jquery/binary_insert.coffee +61 -0
  11. data/vendor/assets/javascripts/extensions/jquery/increment_and_decrement.coffee +19 -0
  12. data/vendor/assets/javascripts/extensions/jquery/positioning.coffee +22 -0
  13. data/vendor/assets/javascripts/extensions/jquery/spinner.coffee +13 -0
  14. data/vendor/assets/javascripts/third_party/autosize.min.3.0.20.js +6 -0
  15. data/vendor/assets/javascripts/third_party/jquery.clockpicker.js +737 -0
  16. data/vendor/assets/javascripts/third_party/moment.min.2.17.1.js +551 -0
  17. data/vendor/assets/javascripts/third_party/mousetrap.min.1.6.0.js +11 -0
  18. data/vendor/assets/javascripts/third_party/pikaday.base.js +1201 -0
  19. data/vendor/assets/javascripts/third_party/pikaday.jquery.js +56 -0
  20. data/vendor/assets/javascripts/third_party/scroll_scope.min.js +4 -0
  21. data/vendor/assets/javascripts/third_party/select2.min.4.0.3.js +3 -0
  22. data/vendor/assets/javascripts/third_party/sortable.js +1481 -0
  23. data/vendor/assets/stylesheets/base/global_classes.scss +0 -6
  24. data/vendor/assets/stylesheets/components/comments.scss +43 -4
  25. data/vendor/assets/stylesheets/components/cursors.scss +6 -0
  26. data/vendor/assets/stylesheets/components/dialogs.scss +5 -2
  27. data/vendor/assets/stylesheets/components/expansion_panels.scss +19 -0
  28. data/vendor/assets/stylesheets/components/lists.scss +48 -4
  29. data/vendor/assets/stylesheets/dlegr250_material_design.scss +2 -0
  30. data/vendor/assets/stylesheets/layouts/application/appbar.scss +4 -4
  31. metadata +23 -3
  32. data/vendor/assets/javascripts/extensions/jquery.js.coffee +0 -65
@@ -121,12 +121,6 @@
121
121
  margin-bottom: $button-fab-height * 2;
122
122
  }
123
123
 
124
- // Cursors
125
- //----------------------------------------------------------------------
126
-
127
- .cursor-default { cursor: default !important; }
128
- .cursor-disabled { cursor: not-allowed !important; }
129
-
130
124
  // Hover
131
125
  //----------------------------------------------------------------------
132
126
 
@@ -1,15 +1,40 @@
1
+ // Comment
2
+ //----------------------------------------------------------------------
3
+
1
4
  .comment {
5
+ border: none;
2
6
  margin: 0;
3
7
  padding: $spacing-normal 0;
4
8
  @include rounded-corners(0);
5
9
  }
6
10
 
11
+ .comment:not(:last-child) {
12
+ border-bottom: none;
13
+ }
14
+
7
15
  .comment:first-child {
8
- padding-top: 0;
16
+ padding-top: $spacing-normal;
9
17
  }
10
18
 
11
- .comment:not(:last-child) {
12
- border-bottom: 1px solid color("divider");
19
+ .comment:last-child {
20
+ padding-bottom: 0;
21
+ }
22
+
23
+ // Comment form container
24
+ //----------------------------------------------------------------------
25
+
26
+ .comment-form {
27
+ background-color: color("grey-100");
28
+ border: 1px solid color("divider");
29
+ // margin-bottom: $spacing-normal;
30
+ padding: $spacing-normal;
31
+ @include rounded-corners();
32
+ }
33
+
34
+ .comment-form-edit {
35
+ background-color: color("highlight");
36
+ margin-top: $spacing-normal;
37
+ // margin-bottom: 0;
13
38
  }
14
39
 
15
40
  // Comment header
@@ -67,5 +92,19 @@
67
92
  .comment-form-actions,
68
93
  .new-comment-actions {
69
94
  padding-top: $spacing-small;
70
- text-align: right;
95
+ text-align: left;
96
+ }
97
+
98
+ // Comment form trigger
99
+ //----------------------------------------------------------------------
100
+
101
+ .comment-form-trigger {
102
+ background-color: color("white");
103
+ border: 1px solid color("divider");
104
+ color: color("helper");
105
+ font-size: $font-size-text-field;
106
+ padding: $spacing-small;
107
+ text-align: left;
108
+ width: 100%;
109
+ @include rounded-corners();
71
110
  }
@@ -0,0 +1,6 @@
1
+ // Cursors
2
+ //----------------------------------------------------------------------
3
+
4
+ .cursor-default { cursor: default !important; }
5
+ .cursor-disabled { cursor: not-allowed !important; }
6
+ .cursor-drag { cursor: move !important; }
@@ -158,7 +158,9 @@
158
158
  @include list-item-primary();
159
159
  flex: 1;
160
160
  font-size: $font-size-large;
161
- font-weight: 400;
161
+ // font-weight: 400;
162
+ font-weight: bold;
163
+ padding: $spacing-normal;
162
164
  }
163
165
 
164
166
  .dialog-header-primary-subtext {
@@ -178,7 +180,8 @@
178
180
  //----------------------------------------------------------------------
179
181
 
180
182
  .dialog-content {
181
- padding: $spacing-normal;
183
+ // padding: $spacing-normal;
184
+ padding: $spacing-large;
182
185
  }
183
186
 
184
187
  .dialog-scrollable,
@@ -0,0 +1,19 @@
1
+ [data-behavior="expansion-panel"] {
2
+ [data-behavior="expansion-panel-summary"] {
3
+ display: block;
4
+ }
5
+
6
+ [data-behavior="expansion-panel-details"] {
7
+ display: none;
8
+ }
9
+ }
10
+
11
+ [data-behavior="expansion-panel"][data-state="expanded"] {
12
+ [data-behavior="expansion-panel-summary"] {
13
+ display: none;
14
+ }
15
+
16
+ [data-behavior="expansion-panel-details"] {
17
+ display: block;
18
+ }
19
+ }
@@ -127,31 +127,75 @@ ol {
127
127
  border-bottom: 1px solid color("divider");
128
128
  }
129
129
 
130
+ // Hoverable
131
+ // .list-hoverable {
132
+ // .list-item {
133
+ // &:hover { background-color: color("hover"); }
134
+ // &:active { background-color: darken(color("hover"), 3%); }
135
+ // }
136
+ //
137
+ // .button-icon {
138
+ // &:hover { background-color: darken(color("hover"), 7%); }
139
+ // &:active { background-color: darken(color("hover"), 12%); }
140
+ // }
141
+ // }
142
+ //
143
+ // .list-hoverable-blue {
144
+ // .list-item {
145
+ // &:hover { background-color: color("hover-blue"); }
146
+ // &:active { background-color: darken(color("hover-blue"), 3%); }
147
+ // }
148
+ //
149
+ // .button-icon {
150
+ // &:hover { background-color: darken(color("hover-blue"), 7%); }
151
+ // &:active { background-color: darken(color("hover-blue"), 12%); }
152
+ // }
153
+ // }
154
+
130
155
  // Hoverable
131
156
  .list-hoverable {
132
157
  .list-item {
133
- &:hover { background-color: color("hover"); }
134
158
  &:active { background-color: darken(color("hover"), 3%); }
135
159
  }
136
160
 
137
161
  .button-icon {
138
- &:hover { background-color: darken(color("hover"), 7%); }
139
162
  &:active { background-color: darken(color("hover"), 12%); }
140
163
  }
141
164
  }
142
165
 
143
166
  .list-hoverable-blue {
144
167
  .list-item {
145
- &:hover { background-color: color("hover-blue"); }
146
168
  &:active { background-color: darken(color("hover-blue"), 3%); }
147
169
  }
148
170
 
149
171
  .button-icon {
150
- &:hover { background-color: darken(color("hover-blue"), 7%); }
151
172
  &:active { background-color: darken(color("hover-blue"), 12%); }
152
173
  }
153
174
  }
154
175
 
176
+ // Devices with pointers
177
+ @media (hover: hover) {
178
+ .list-hoverable {
179
+ .list-item {
180
+ &:hover { background-color: color("hover"); }
181
+ }
182
+
183
+ .button-icon {
184
+ &:hover { background-color: darken(color("hover"), 7%); }
185
+ }
186
+ }
187
+
188
+ .list-hoverable-blue {
189
+ .list-item {
190
+ &:hover { background-color: color("hover-blue"); }
191
+ }
192
+
193
+ .button-icon {
194
+ &:hover { background-color: darken(color("hover-blue"), 7%); }
195
+ }
196
+ }
197
+ }
198
+
155
199
  // Aligned top instead of centered
156
200
  .list-align-top {
157
201
  .list-item {
@@ -34,6 +34,8 @@
34
34
  @import "components/dividers";
35
35
  @import "components/boxes";
36
36
  @import "components/buttons";
37
+ @import "components/cursors";
38
+ @import "components/expansion_panels";
37
39
  @import "components/draggable";
38
40
  @import "components/subheaders";
39
41
  @import "components/forms/fields";
@@ -63,10 +63,10 @@
63
63
  &:hover {
64
64
  background-color: darken($color-primary, 7%);
65
65
  }
66
-
67
- &:active {
68
- background-color: darken($color-primary, 12%);
69
- }
66
+ //
67
+ // &:active {
68
+ // background-color: darken($color-primary, 12%);
69
+ // }
70
70
  }
71
71
  }
72
72
 
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.5.56
4
+ version: 0.5.57
5
5
  platform: ruby
6
6
  authors:
7
7
  - Daniel LeGrand
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2017-03-19 00:00:00.000000000 Z
11
+ date: 2017-04-05 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,8 +37,14 @@ files:
37
37
  - lib/dlegr250_material_design.rb
38
38
  - lib/dlegr250_material_design/version.rb
39
39
  - vendor/assets/javascripts/base/init.js.coffee
40
+ - vendor/assets/javascripts/components/clockpicker.coffee
41
+ - vendor/assets/javascripts/components/combobox.coffee
42
+ - vendor/assets/javascripts/components/datepicker.coffee
40
43
  - vendor/assets/javascripts/components/dialog.coffee
44
+ - vendor/assets/javascripts/components/expansion_panels.coffee
45
+ - vendor/assets/javascripts/components/form_submit_buttons.coffee
41
46
  - vendor/assets/javascripts/components/forms.coffee
47
+ - vendor/assets/javascripts/components/html_editor.coffee
42
48
  - vendor/assets/javascripts/components/input_masks.coffee
43
49
  - vendor/assets/javascripts/components/layout.coffee
44
50
  - vendor/assets/javascripts/components/menus.coffee
@@ -50,11 +56,23 @@ files:
50
56
  - vendor/assets/javascripts/components/utility.coffee
51
57
  - vendor/assets/javascripts/dlegr250_material_design.js
52
58
  - vendor/assets/javascripts/extensions/coffeescript.js.coffee
53
- - vendor/assets/javascripts/extensions/jquery.js.coffee
59
+ - vendor/assets/javascripts/extensions/jquery/binary_insert.coffee
60
+ - vendor/assets/javascripts/extensions/jquery/increment_and_decrement.coffee
61
+ - vendor/assets/javascripts/extensions/jquery/positioning.coffee
62
+ - vendor/assets/javascripts/extensions/jquery/spinner.coffee
63
+ - vendor/assets/javascripts/third_party/autosize.min.3.0.20.js
54
64
  - vendor/assets/javascripts/third_party/handlebars.latest.js
55
65
  - vendor/assets/javascripts/third_party/jquery.autonumeric.1-9-44.js
66
+ - vendor/assets/javascripts/third_party/jquery.clockpicker.js
56
67
  - vendor/assets/javascripts/third_party/jquery.inputmask.min.3.2.8-11.js
57
68
  - vendor/assets/javascripts/third_party/jquery.scroll_scope.min.0.1.0.js
69
+ - vendor/assets/javascripts/third_party/moment.min.2.17.1.js
70
+ - vendor/assets/javascripts/third_party/mousetrap.min.1.6.0.js
71
+ - vendor/assets/javascripts/third_party/pikaday.base.js
72
+ - vendor/assets/javascripts/third_party/pikaday.jquery.js
73
+ - vendor/assets/javascripts/third_party/scroll_scope.min.js
74
+ - vendor/assets/javascripts/third_party/select2.min.4.0.3.js
75
+ - vendor/assets/javascripts/third_party/sortable.js
58
76
  - vendor/assets/stylesheets/base/base.scss
59
77
  - vendor/assets/stylesheets/base/global_classes.scss
60
78
  - vendor/assets/stylesheets/base/mixins.scss
@@ -70,10 +88,12 @@ files:
70
88
  - vendor/assets/stylesheets/components/cards.scss
71
89
  - vendor/assets/stylesheets/components/circles.scss
72
90
  - vendor/assets/stylesheets/components/comments.scss
91
+ - vendor/assets/stylesheets/components/cursors.scss
73
92
  - vendor/assets/stylesheets/components/description_lists.scss
74
93
  - vendor/assets/stylesheets/components/dialogs.scss
75
94
  - vendor/assets/stylesheets/components/dividers.scss
76
95
  - vendor/assets/stylesheets/components/draggable.scss
96
+ - vendor/assets/stylesheets/components/expansion_panels.scss
77
97
  - vendor/assets/stylesheets/components/forms/check_boxes.scss
78
98
  - vendor/assets/stylesheets/components/forms/fields.scss
79
99
  - vendor/assets/stylesheets/components/forms/helper_texts.scss
@@ -1,65 +0,0 @@
1
- #======================================================================
2
- # Extensions to jQuery core.
3
- # See: http://stackoverflow.com/a/5638717/667772
4
- # See: http://jsfiddle.net/giobongio/RyFje/1/
5
- #======================================================================
6
-
7
- # Center an absolute element horizontally and vertically in window
8
- #----------------------------------------------------------------------
9
-
10
- jQuery.extend jQuery.fn,
11
- absoluteCenter: ->
12
- @each ->
13
- element = $(this)
14
- element.css("left", ($(document).width() - element.width()) / 2)
15
- element.css("top", ($(document).height() - element.height()) / 2)
16
- element
17
-
18
- horizontalCenter: ->
19
- @each ->
20
- element = $(this)
21
- element.css("left", ($(document).width() - element.width()) / 2)
22
- element
23
-
24
- verticalCenter: ->
25
- @each ->
26
- element = $(this)
27
- element.css("top", ($(document).height() - element.height()) / 2)
28
- element
29
-
30
- # Change content of element to be centered spinner
31
- #----------------------------------------------------------------------
32
-
33
- jQuery.extend jQuery.fn,
34
- replaceWithSpinner: (options = {}) ->
35
- color = options["color"] || "primary"
36
- size = options["size"] || "normal"
37
-
38
- @each ->
39
- element = $(this)
40
- spinner = $("<div class='spinner-container'><div class='spinner spinner-#{color} spinner-#{size}'></div></div>")
41
- element.html(spinner)
42
- element
43
-
44
- # Increment / decrement integer values
45
- #----------------------------------------------------------------------
46
-
47
- jQuery.extend jQuery.fn,
48
- increment: ->
49
- @each ->
50
- $element = $(this)
51
- $value = parseInt($element.text())
52
- if $value != NaN
53
- $element.text($value + 1)
54
- $element
55
-
56
- decrement: ->
57
- @each ->
58
- $element = $(this)
59
- $value = parseInt($element.text())
60
- if $value != NaN
61
- if $value <= 0
62
- $element.text(0)
63
- else
64
- $element.text($value - 1)
65
- $element