dlegr250_material_design 0.1.5 → 0.1.6

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: e4c40b7102306aac6ebbfd27486425bd902860f4
4
- data.tar.gz: 411f68dd96b89beadc6dc50c11d195b82fc12cf7
3
+ metadata.gz: 330b1bdaecf4bcea2531298cecb384c18932718a
4
+ data.tar.gz: bd7251cb778b1fd0ea2795b6f15fc4fb508e80d4
5
5
  SHA512:
6
- metadata.gz: 595bd524d5aef8497a49fada2ef51ce7afec3d87134d69ac268dc6ee51bf298683958016a4f48ad276917e21a603a5e371a599a33b3dcef31714281282ca7502
7
- data.tar.gz: 72e15047c7982081348ac3aadd74e3ba356364bcd48d803cc1f3b1b2f30dd731dc01b331ceec6cebef136e679e3d57671b06c733131a7cf70ff82adc1e6fe7f5
6
+ metadata.gz: e62e5af459bbe733225ae8b9015f7cf0caf92c6cc04f80d694c43bab596aa4dde40221d798463272968dd8127514c56a0cebfa00a0622b1322fc2d1c8d5de1ff
7
+ data.tar.gz: 8f60be127897633cdfc90b2233cbe975d061f27d7bfbf747774bbc79f738518c0b441a05afb33e1590615be9513e078d43a6fddf47385e979ccac09e27dc5ea5
@@ -1,3 +1,3 @@
1
1
  module Dlegr250MaterialDesign
2
- VERSION = "0.1.5"
2
+ VERSION = "0.1.6"
3
3
  end
@@ -39,7 +39,7 @@ class App.MD.Layout
39
39
  if @$main.length > 0
40
40
  if @$leftSidebar.length > 0
41
41
  @$main.hammer({}).bind("swiperight", =>
42
- if $(window).width() <= @$largeWidth
42
+ if $(window).width() < @$largeWidth
43
43
  @.showLeftSidebar()
44
44
  )
45
45
 
@@ -49,7 +49,7 @@ class App.MD.Layout
49
49
 
50
50
  if @$rightSidebar.length > 0
51
51
  @$main.hammer({}).bind("swipeleft", =>
52
- if $(window).width() <= @$largeWidth
52
+ if $(window).width() < @$largeWidth
53
53
  @.showRightSidebar()
54
54
  )
55
55
 
@@ -79,19 +79,7 @@
79
79
 
80
80
  // TODO need classes for this???
81
81
 
82
- // Helper text is subtle text to give extra minor details
83
- //----------------------------------------------------------------------
84
-
85
- .hint {
86
- color: color("hint");
87
- }
88
-
89
- .helper-text {
90
- color: color("helper");
91
- font-size: $font-size-small;
92
- }
93
-
94
- // Highlight
82
+ // Highlight (yellowish background)
95
83
  //----------------------------------------------------------------------
96
84
 
97
85
  .highlight {
@@ -135,7 +135,6 @@ $colors: (
135
135
  "blue-grey" : #607d8b,
136
136
  "icon" : #737373,
137
137
  "helper" : rgba(0, 0, 0, 0.54),
138
- "hint" : rgba(0, 0, 0, 0.54),
139
138
  "text" : rgb(51, 51, 51),
140
139
  "divider" : rgba(0, 0, 0, 0.12),
141
140
  "hover" : #eceff1,
@@ -162,7 +161,7 @@ $hover-color: color("hover") !default;
162
161
 
163
162
  // Appbar only
164
163
  $appbar-text-color: color("white") !default;
165
- $appbar-button-color: color("hint") !default;
164
+ $appbar-button-color: color("helper") !default;
166
165
 
167
166
  // Merge defaults back into globals to use in colored components.
168
167
  // Having this here allows access to the color helpers already created
@@ -29,7 +29,7 @@
29
29
  }
30
30
 
31
31
  .blank-slate {
32
- color: color("hint");
32
+ color: color("helper");
33
33
  margin: auto;
34
34
  text-align: center;
35
35
  }
@@ -204,7 +204,7 @@ $buttons: "button, .button, input[type='submit'], input[type='reset'], input[typ
204
204
 
205
205
  @include box-shadow(0 3px 7px 0 rgba(0, 0, 0, 0.4));
206
206
  @include rounded-corners(250px);
207
- @include text-shadow(0 -1px 0 color("hint"));
207
+ @include text-shadow(0 -1px 0 color("helper"));
208
208
 
209
209
  &:hover,
210
210
  &.hover {
@@ -62,7 +62,7 @@
62
62
  }
63
63
 
64
64
  .card-subtitle {
65
- color: color("hint");
65
+ color: color("helper");
66
66
  padding-top: $spacing-small;
67
67
  }
68
68
  }
@@ -1,17 +1,13 @@
1
- // Error messages - base
2
- //----------------------------------------------------------------------
3
-
4
- .error-messages {
5
- color: color("red");
6
- display: inline-block;
7
- font-size: $font-size-small;
8
- font-weight: normal;
9
- line-height: 1.4;
10
- overflow: hidden;
11
- padding-top: $spacing-xsmall;
12
- position: relative;
13
- vertical-align: middle;
14
- }
1
+ //======================================================================
2
+ // Helper or error msgs related to an input element.
3
+ // EXAMPLE:
4
+ // <div class="field">
5
+ // <label for="attribute" class="top">Text</label>
6
+ // <input type="text" name="attribute" id="attribute" class="full-width" />
7
+ // <span class="helper-text helper-text-bottom">Helper text</span>
8
+ // <span class="helper-text helper-text-bottom error-messages">Red error msgs...</span>
9
+ // </div>
10
+ //======================================================================
15
11
 
16
12
  // Wrapper for inputs with errors
17
13
  //----------------------------------------------------------------------
@@ -25,3 +21,25 @@
25
21
  border-color: color("red");
26
22
  }
27
23
  }
24
+
25
+ // Helper text - base
26
+ //----------------------------------------------------------------------
27
+
28
+ .helper-text {
29
+ color: color("helper");
30
+ font-size: $font-size-small;
31
+ font-weight: normal;
32
+
33
+ &.helper-text-bottom {
34
+ display: inline-block;
35
+ line-height: 1.4;
36
+ overflow: hidden;
37
+ padding-top: $spacing-xsmall;
38
+ position: relative;
39
+ vertical-align: middle;
40
+ }
41
+
42
+ &.error-messages {
43
+ color: color("red") !important;
44
+ }
45
+ }
@@ -1,4 +1,11 @@
1
- // Fields header
1
+ //======================================================================
2
+ // Fields act as wrappers for input elements and labels and provide space
3
+ // between inputs. Act as container for label placement (left/top).
4
+ //======================================================================
5
+
6
+ // Fields header - base
7
+ // Large text used to separate logical sections in a form, similar to a
8
+ // fieldset but did not want to use that element.
2
9
  //----------------------------------------------------------------------
3
10
 
4
11
  .fields-header {
@@ -180,11 +180,11 @@ ol {
180
180
  }
181
181
 
182
182
  .list-item-primary-subtext {
183
- color: color("hint");
183
+ color: color("helper");
184
184
  padding-top: $spacing-xsmall;
185
185
 
186
186
  a {
187
- color: color("hint");
187
+ color: color("helper");
188
188
  }
189
189
  }
190
190
 
@@ -125,7 +125,7 @@
125
125
  //----------------------------------------------------------------------
126
126
 
127
127
  .menu-item-icon {
128
- color: color("hint");
128
+ color: color("helper");
129
129
  font-size: $font-size-icon;
130
130
  padding: 0;
131
131
  padding-left: $spacing-normal;
@@ -145,7 +145,7 @@
145
145
  //----------------------------------------------------------------------
146
146
 
147
147
  .menu-item-secondary {
148
- color: color("hint");
148
+ color: color("helper");
149
149
  padding-right: $spacing-normal;
150
150
  text-align: right;
151
151
 
@@ -13,7 +13,7 @@
13
13
 
14
14
  .tab {
15
15
  border-bottom: 2px solid transparent;
16
- color: color("hint");
16
+ color: color("helper");
17
17
  cursor: pointer;
18
18
  display: table-cell;
19
19
  font-size: $font-size-normal;
@@ -29,7 +29,7 @@
29
29
  @include transition(all 0.30s ease);
30
30
 
31
31
  .icon {
32
- color: color("hint");
32
+ color: color("helper");
33
33
  font-size: $font-size-icon;
34
34
  }
35
35
 
@@ -37,7 +37,7 @@
37
37
  @import "components/forms/selects";
38
38
  @import "components/forms/toggles";
39
39
  @import "components/forms/radios";
40
- @import "components/forms/error_messages";
40
+ @import "components/forms/helper_texts";
41
41
  @import "components/cards";
42
42
  @import "components/dialogs";
43
43
  @import "components/overlay";
@@ -27,7 +27,7 @@
27
27
 
28
28
  .sidebar-header {
29
29
  border-bottom: 1px solid color("divider");
30
- color: color("hint");
30
+ color: color("helper");
31
31
  font-size: $font-size-large;
32
32
  height: $appbar-height;
33
33
  line-height: $appbar-height;
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.1.5
4
+ version: 0.1.6
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-02-16 00:00:00.000000000 Z
11
+ date: 2016-02-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -106,6 +106,7 @@ files:
106
106
  - vendor/assets/stylesheets/components/dividers.scss
107
107
  - vendor/assets/stylesheets/components/forms/error_messages.scss
108
108
  - vendor/assets/stylesheets/components/forms/fields.scss
109
+ - vendor/assets/stylesheets/components/forms/helper_texts.scss
109
110
  - vendor/assets/stylesheets/components/forms/labels.scss
110
111
  - vendor/assets/stylesheets/components/forms/radios.scss
111
112
  - vendor/assets/stylesheets/components/forms/selects.scss