dlegr250_material_design 0.5.86 → 0.5.88

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: 8f61245f50d7c305bb408e852642f7ae737bb988
4
- data.tar.gz: 5250381d0b35e321c3282cefb6bdd7b7342144b6
3
+ metadata.gz: 5758fbd8b0111d7a6a46507488e244fda03963ee
4
+ data.tar.gz: 20569743001d21368b9c7eac18a6f67552a499d6
5
5
  SHA512:
6
- metadata.gz: d7c4b49fa732f85052b33337649e21906bed6a61b84d6814ed60c499ebc476a451098edc1328c8b7fa6c6e9d0968237396826fa32c47466c81d6dd390ffbdaa5
7
- data.tar.gz: 0f459098cd978ece6917758fc70f34a6bd581fea688e86eab52f79ab6a1fbb611a320357e5704c9df2e180010aa23ecd919f2f853c14e4ca108ba1369a624022
6
+ metadata.gz: 17b879ef63c73d17262b4eb168d4462be112dbea910b8cdf1feee66cd1f4fe03fb2ac9f8a82d5d850b2036ed69ce32bcaf935ce7c09be6a2b7194e0fea9650db
7
+ data.tar.gz: 36cf4a95784887c6826b55ca852973684bfa72341c5d9c6283599be9c1428cf06152aee08236128e85035c98e8fc66c31cf75ad165434d728abfece3d96dc3de
@@ -1,3 +1,3 @@
1
1
  module Dlegr250MaterialDesign
2
- VERSION = "0.5.86"
2
+ VERSION = "0.5.88"
3
3
  end
@@ -52,15 +52,15 @@ class App.MD.Dialog
52
52
  element.addClass("visible")
53
53
  element.find("input[autofocus]").focus()
54
54
 
55
- # Add shadow on dialog appbar when scrolling contents
56
- $(".dialog-scrollable, .dialog-scrollable-no-actions").on "scroll", (e) ->
57
- $this = $(this)
58
- $dialogAppbar = $this.parents(".dialog").find(".dialog-appbar")
59
-
60
- if $this.scrollTop()
61
- $dialogAppbar.addClass("scroll-shadow")
62
- else
63
- $dialogAppbar.removeClass("scroll-shadow")
55
+ # # Add shadow on dialog appbar when scrolling contents
56
+ # $(".dialog-scrollable, .dialog-scrollable-no-actions").on "scroll", (e) ->
57
+ # $this = $(this)
58
+ # $dialogAppbar = $this.parents(".dialog").find(".dialog-appbar")
59
+ #
60
+ # if $this.scrollTop()
61
+ # $dialogAppbar.addClass("scroll-shadow")
62
+ # else
63
+ # $dialogAppbar.removeClass("scroll-shadow")
64
64
 
65
65
  false
66
66
 
@@ -1,8 +1,9 @@
1
1
  // Defaults to override
2
2
  //----------------------------------------------------------------------
3
3
 
4
- $body-background-color: #fafafa !default;
4
+ $body-background-color: #ececec !default;
5
5
  $color-primary: #2196f3 !default;
6
+ $color-primary: #4285f4 !default;
6
7
  $color-secondary: #db4437 !default;
7
8
 
8
9
  // SCSS maps of all colors
@@ -6,9 +6,9 @@
6
6
  //----------------------------------------------------------------------
7
7
 
8
8
  $toolbar-height-device-small: 56px !default;
9
- $toolbar-height-device-medium: 64px !default;
10
- $toolbar-height-device-large: 72px !default;
11
- $toolbar-height-device-xlarge: 72px !default;
9
+ $toolbar-height-device-medium: 56px !default;
10
+ $toolbar-height-device-large: 64px !default;
11
+ $toolbar-height-device-xlarge: 64px !default;
12
12
 
13
13
  $toolbar-button-height: 48px !default;
14
14
 
@@ -20,16 +20,7 @@ $sidebar-width: 250px !default;
20
20
  // Text fields
21
21
  //----------------------------------------------------------------------
22
22
 
23
- $text-fields: "
24
- input[type='email'],
25
- input[type='number'],
26
- input[type='search'],
27
- input[type='text'],
28
- input[type='tel'],
29
- input[type='url'],
30
- input[type='password'],
31
- textarea
32
- ";
23
+ $text-fields: "input[type='email'], input[type='number'], input[type='search'], input[type='text'], input[type='tel'], input[type='url'], input[type='password'], textarea";
33
24
 
34
25
  // Dimensions - lists
35
26
  //----------------------------------------------------------------------
@@ -8,13 +8,12 @@
8
8
 
9
9
  .badge {
10
10
  display: inline-block;
11
- font-size: $font-size-normal;
12
11
  letter-spacing: 0.5px;
13
12
  min-width: 18px;
14
- padding: $spacing-small;
13
+ padding: 2px 8px;
15
14
  text-align: center;
16
15
  vertical-align: middle;
17
- @include rounded-corners;
16
+ @include rounded-corners(20px);
18
17
  }
19
18
 
20
19
  .badge-xsmall {
@@ -10,6 +10,8 @@
10
10
  // $buttons: "button, .button, input[type='submit'], input[type='reset'], input[type='button']";
11
11
  $buttons: ".button";
12
12
 
13
+ $default-button-rounded-corners: 4px;
14
+
13
15
  // Buttons - base
14
16
  //----------------------------------------------------------------------
15
17
 
@@ -33,7 +35,7 @@ $buttons: ".button";
33
35
  @include flex-parent();
34
36
  display: inline-flex;
35
37
  @include no-touch-highlight;
36
- @include rounded-corners;
38
+ @include rounded-corners($default-button-rounded-corners);
37
39
  @include transition(all 0.2s ease-in-out);
38
40
  flex: 0 1 auto; // Stop buttons from expanding
39
41
 
@@ -108,22 +110,22 @@ $buttons: ".button";
108
110
  @include rounded-corners(50%);
109
111
  @include transition(background-color 0.30s ease, color 0.30s ease);
110
112
 
111
- &:active {
112
- background-color: darken(color("hover"), 5%);
113
- }
113
+ // &:active {
114
+ // background-color: darken(color("hover"), 5%);
115
+ // }
114
116
  }
115
117
 
116
118
  // Devices with pointers
117
119
  @media (hover: hover) {
118
- .button-icon {
119
- &:hover {
120
- background-color: color("hover");
121
- }
122
-
123
- &:active {
124
- background-color: darken(color("hover"), 5%);
125
- }
126
- }
120
+ // .button-icon {
121
+ // &:hover {
122
+ // background-color: color("hover");
123
+ // }
124
+ //
125
+ // &:active {
126
+ // background-color: darken(color("hover"), 5%);
127
+ // }
128
+ // }
127
129
  }
128
130
 
129
131
  // Button icon - sizes
@@ -131,13 +133,11 @@ $buttons: ".button";
131
133
 
132
134
  .button-icon-small {
133
135
  height: $button-icon-height * 0.8;
134
- // line-height: $button-icon-height * 0.8;
135
136
  width: $button-icon-height * 0.8;
136
137
  }
137
138
 
138
139
  .button-icon-large {
139
140
  height: $button-icon-height * 1.2;
140
- // line-height: $button-icon-height * 1.2;
141
141
  width: $button-icon-height * 1.2;
142
142
  }
143
143
 
@@ -174,6 +174,7 @@ $buttons: ".button";
174
174
  @each $color-name, $color in $colors {
175
175
  .button-raised-#{$color-name} {
176
176
  background-color: $color;
177
+
177
178
  @if $color-name == "white" {
178
179
  color: color("black");
179
180
  } @else if $color-name == "offwhite" {
@@ -181,7 +182,9 @@ $buttons: ".button";
181
182
  } @else {
182
183
  color: color("white");
183
184
  }
185
+
184
186
  // @include box-shadow(0 1px 2px 0 rgba(0, 0, 0, 0.4));
187
+ @include box-shadow(0 1px 2px rgba(0, 0, 0, 0.24));
185
188
 
186
189
  &:hover {
187
190
  background-color: lighten($color, 10%);
@@ -189,7 +192,7 @@ $buttons: ".button";
189
192
 
190
193
  &:active {
191
194
  background-color: darken($color, 5%);
192
- @include box-shadow(0 3px 12px 0 rgba(0, 0, 0, 0.5));
195
+ @include box-shadow(0 3px 9px 0 rgba(0, 0, 0, 0.5));
193
196
  }
194
197
  }
195
198
  }
@@ -262,7 +265,7 @@ $buttons: ".button";
262
265
  position: fixed !important;
263
266
  right: $spacing-large;
264
267
  width: $button-fab-height;
265
- z-index: $layout-depth + 1;
268
+ @include elevation(12);
266
269
  @include box-shadow(0 3px 7px 0 rgba(0, 0, 0, 0.4));
267
270
  @include rounded-corners(250px);
268
271
  @include text-shadow(0 -1px 0 color("helper"));
@@ -309,7 +312,7 @@ $buttons: ".button";
309
312
  height: $button-fab-height;
310
313
  position: fixed !important;
311
314
  right: $spacing-large;
312
- z-index: $layout-depth + 1;
315
+ @include elevation(12);
313
316
  }
314
317
 
315
318
  // Buttons - disabled
@@ -58,7 +58,7 @@
58
58
  }
59
59
 
60
60
  .card-header-secondary-actions {
61
- @include list-item-secondary-actions();
61
+ @include list-item-secondary();
62
62
  }
63
63
 
64
64
  @media (min-width: $device-small) {
@@ -11,7 +11,7 @@
11
11
  top: 0;
12
12
  width: 100%;
13
13
  will-change: scale, opacity;
14
- z-index: $elevation-overlay;
14
+ @include elevation(24);
15
15
  @include flex-parent();
16
16
  @include flex-vertical-align-center();
17
17
  @include transform(scale(1.15));
@@ -85,18 +85,18 @@
85
85
  height: $dialog-header-height;
86
86
  padding: 0 $spacing-small;
87
87
  position: relative;
88
- z-index: $dialog-depth + 1;
88
+ @include elevation(24);
89
89
  }
90
90
 
91
91
  .dialog-appbar-icon {
92
- width: $appbar-button-height;
92
+ width: $toolbar-button-height;
93
93
 
94
94
  // To match up with .appbar-button
95
95
  .button-icon {
96
96
  font-size: $font-size-icon;
97
- height: $appbar-button-height;
98
- line-height: $appbar-button-height;
99
- width: $appbar-button-height;
97
+ height: $toolbar-button-height;
98
+ line-height: $toolbar-button-height;
99
+ width: $toolbar-button-height;
100
100
  }
101
101
  }
102
102
 
@@ -121,7 +121,7 @@
121
121
  }
122
122
 
123
123
  .dialog-appbar-secondary-actions {
124
- @include list-item-secondary-actions();
124
+ @include list-item-secondary();
125
125
  text-align: right;
126
126
  @include flex-parent();
127
127
  }
@@ -139,14 +139,14 @@
139
139
  .dialog-header-icon {
140
140
  padding-top: $spacing-normal;
141
141
  text-align: center;
142
- width: $appbar-button-height;
142
+ width: $toolbar-button-height;
143
143
 
144
144
  // To match up with .appbar-button
145
145
  .button-icon {
146
146
  font-size: $font-size-icon;
147
- height: $appbar-button-height;
148
- line-height: $appbar-button-height;
149
- width: $appbar-button-height;
147
+ height: $toolbar-button-height;
148
+ line-height: $toolbar-button-height;
149
+ width: $toolbar-button-height;
150
150
  }
151
151
  }
152
152
 
@@ -170,7 +170,7 @@
170
170
  }
171
171
 
172
172
  .dialog-header-secondary-actions {
173
- @include list-item-secondary-actions();
173
+ @include list-item-secondary();
174
174
  }
175
175
 
176
176
  @media (min-width: $device-small) {
@@ -9,7 +9,6 @@
9
9
  position: absolute;
10
10
  right: 0;
11
11
  top: 0;
12
- width: 100%;
13
12
  @include elevation(4);
14
13
  @include transition(box-shadow 0.2s ease);
15
14
  @include flex-parent();
@@ -21,6 +20,8 @@
21
20
 
22
21
  .toolbar-section {
23
22
  @include flex-parent();
23
+ display: inline-flex;
24
+ flex: 1;
24
25
  }
25
26
 
26
27
  // Toolbar - title
@@ -28,7 +29,8 @@
28
29
 
29
30
  .toolbar-title {
30
31
  flex: 1; // Fill up empty space
31
- font-size: $font-size-normal;
32
+ font-size: $font-size-normal + 2px;
33
+ margin-left: $spacing-small;
32
34
  @include flex-align-left();
33
35
  @include font-smoothing();
34
36
  @include truncate-text();
@@ -48,6 +50,13 @@
48
50
  padding-top: $spacing-xsmall;
49
51
  }
50
52
 
53
+ @media (min-width: $device-medium) {
54
+ .toolbar-title-supertext,
55
+ .toolbar-title-subtext {
56
+ font-size: $font-size-normal;
57
+ }
58
+ }
59
+
51
60
  // Toolbar - button icon
52
61
  //----------------------------------------------------------------------
53
62
 
@@ -77,6 +86,14 @@
77
86
  }
78
87
  }
79
88
 
89
+ // Special menu button
90
+ @media (min-width: $device-large) {
91
+ .toolbar-button-icon[data-behavior="show-left-sidebar"] {
92
+ color: color("disabled");
93
+ pointer-events: none;
94
+ }
95
+ }
96
+
80
97
  // Toolbar - medium device
81
98
  //----------------------------------------------------------------------
82
99
 
@@ -119,7 +136,7 @@
119
136
  .toolbar-divider {
120
137
  border: 0;
121
138
  display: inline-block;
122
- height: 80%;
139
+ height: 60%;
123
140
  margin: 0 $spacing-xsmall;
124
141
  width: 0;
125
142
  }
@@ -51,7 +51,7 @@ ol {
51
51
  }
52
52
 
53
53
  .list-item-secondary-actions {
54
- @include list-item-secondary-actions();
54
+ @include list-item-secondary();
55
55
  }
56
56
 
57
57
  // Lists - links in text
@@ -240,5 +240,5 @@ ol {
240
240
  }
241
241
 
242
242
  .list-header-secondary-actions {
243
- @include list-item-secondary-actions();
243
+ @include list-item-secondary();
244
244
  }
@@ -27,7 +27,7 @@
27
27
  transform-origin: 100% 0;
28
28
  visibility: hidden;
29
29
  will-change: scale;
30
- z-index: $menu-depth;
30
+ @include elevation(8);
31
31
  @include box-shadow(0 2px 5px 1px rgba(0, 0, 0, 0.26));
32
32
  @include rounded-corners;
33
33
  @include transition(all 0.10s ease);
@@ -92,6 +92,7 @@
92
92
  max-width: 300px;
93
93
  pointer-events: auto;
94
94
  position: relative;
95
+ @include elevation(6);
95
96
  @include flex-parent();
96
97
  @include transparency(1);
97
98
  }
@@ -99,7 +100,7 @@
99
100
  .search-header {
100
101
  background-color: rgba(0, 0, 0, 0.08);
101
102
  border: 1px solid transparent;
102
- height: $appbar-button-height;
103
+ height: $toolbar-button-height;
103
104
  @include rounded-corners(4px);
104
105
  }
105
106
 
@@ -114,11 +115,11 @@
114
115
 
115
116
  .search-results {
116
117
  border: 1px solid color("divider");
117
- border-top: none;
118
118
  border-bottom: none;
119
+ border-top: none;
119
120
  pointer-events: none;
120
121
  position: absolute;
121
- top: $appbar-height-device-medium - 8px;
122
+ top: $toolbar-height-device-medium - 4px;
122
123
  width: 100%;
123
124
  @include elevation(24);
124
125
  @include box-shadow(0 12px 15px 0 rgba(0,0,0,0.24));
@@ -133,6 +134,7 @@
133
134
 
134
135
  .search[data-state="active"] {
135
136
  max-width: 600px;
137
+ @include elevation(24);
136
138
  }
137
139
  }
138
140
 
@@ -140,7 +142,11 @@
140
142
  //----------------------------------------------------------------------
141
143
 
142
144
  @media (min-width: $device-large) {
143
- // .search {
144
- // max-width: 300px;
145
- // }
145
+ .search-header {
146
+ height: $toolbar-button-height;
147
+ }
148
+
149
+ .search-results {
150
+ top: $toolbar-height-device-large - 8px;
151
+ }
146
152
  }
@@ -20,7 +20,7 @@
20
20
  pointer-events: none;
21
21
  right: 0;
22
22
  will-change: transform;
23
- z-index: $dialog-depth + 1;
23
+ @include elevation(24);
24
24
  @include transform(translateY(200%));
25
25
  @include transition(transform 0.10s cubic-bezier(0, 0, 0.3, 1));
26
26
 
@@ -2,7 +2,7 @@
2
2
  //----------------------------------------------------------------------
3
3
 
4
4
  .page-loader-container {
5
- @include flex-center();
5
+ @include flex-parent();
6
6
  }
7
7
 
8
8
  // Variables
@@ -14,7 +14,7 @@ $spinner-height: 24px;
14
14
  //----------------------------------------------------------------------
15
15
 
16
16
  .spinner-container {
17
- @include flex-center();
17
+ @include flex-parent();
18
18
  }
19
19
 
20
20
  // Spinners - base
@@ -14,7 +14,7 @@
14
14
  display: inline-flex;
15
15
  flex: none;
16
16
  font-size: $font-size-small;
17
- font-weight: bold;
17
+ font-weight: 500;
18
18
  justify-content: center;
19
19
  height: 100%;
20
20
  letter-spacing: 0;
@@ -24,9 +24,9 @@
24
24
  padding: 0 12px;
25
25
  position: relative;
26
26
  text-align: center;
27
- text-transform: uppercase;
27
+ // text-transform: uppercase;
28
28
  vertical-align: middle;
29
- @include font-smoothing();
29
+ // @include font-smoothing();
30
30
  @include transition(color 0.30s ease, border-color 0.30s ease, background-color 0.30s ease);
31
31
 
32
32
  &:hover {
@@ -38,7 +38,6 @@
38
38
  @import "components/dividers";
39
39
  @import "components/boxes";
40
40
  @import "components/buttons";
41
- @import "components/cursors";
42
41
  @import "components/expansion_panels";
43
42
  @import "components/draggable";
44
43
  @import "components/subheaders";
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.86
4
+ version: 0.5.88
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-08-22 00:00:00.000000000 Z
11
+ date: 2017-09-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