dlegr250_material_design 0.1.0 → 0.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 6af852b75686863498ffbb7ffc138156cd05d67a
4
- data.tar.gz: 790aeb973b5c6677ebf80347000c379a47e01895
3
+ metadata.gz: 8c0db7366b0cf2fc0cc909d903dc15123bb15774
4
+ data.tar.gz: 298166383c3d9d0b95e1944aabef9285d3c6183f
5
5
  SHA512:
6
- metadata.gz: 04cac0c39ab283e9d16f5d45641eb33d2129b0ab8aa86621afca28133d3d9ab7e25c52112817d996d2020115b2a0e4dc12c36097fa6bcbe476a25d141aec89bb
7
- data.tar.gz: 44a68e755a9449c2a405cd22d0857eac6aa4be2de0992962decb008cc3ddff36a54131f84210bc7f3ea070147c0e6791904ff943a66b726eaa44a74f8b82b0c7
6
+ metadata.gz: f3550e9f165090658ebc06995f3becfb8bbe325153d0ad8169e044f83115b26a1a00640e70d0f79c40e9f9989de3a5764b30e4d8577d45963c1b8cb2d229ccd4
7
+ data.tar.gz: 0b238a68b64be39890cbe35ce8b07d67f344c281b4366ccc618b6fbd35d18a5277fbcb0cfc9e4375d844798c70f69f57395d57ec90f15ce38698750f6a9a037d
data/README.md CHANGED
@@ -46,12 +46,30 @@ Using the `.scss` extension lets you control the order in which files are loaded
46
46
 
47
47
  If you aren't using `.scss` extensions on all your stylesheets, you're doing it wrong ;)p
48
48
 
49
+ ## Application Default Variables
50
+
51
+ The gem uses `SASS` variables to set standard defaults for your application. This allows you to change major colors by simply changing a single variable.
52
+
53
+ In your `application.scss` file, *before* you import the library, set your variables. This mechanism relies upon [SASS default variables](http://sass-lang.com/documentation/file.SASS_REFERENCE.html#variable_defaults_) that fall back to standard defaults if you do not specify them.
54
+
55
+ ```css
56
+ $body-background-color: #eee;
57
+ $primary-color: blue;
58
+ $secondary-color: red;
59
+ $hover-color: grey;
60
+ $appbar-text-color: #fff;
61
+ $appbar-button-color: darkblue;
62
+
63
+ @import "dlegr250_material_design";
64
+ ```
65
+
66
+ This changes the defaults for major layout elements or colored components by changing the `color("primary")` SASS map value.
67
+
68
+ Note that you can always override an element's color or background color using the `color-{COLOR}` or `background-color-{COLOR}` CSS classes that override whatever other defaults the element has.
69
+
49
70
  ## Todo
50
71
 
51
72
  * Finalize components that will be implemented
52
- * Cleanup all stylesheets and remove unused styles
53
- * Cleanup all JS/Coffee and use a global `App` object instead of `window`
54
- * Implement simple way to config application-specific default values for styles
55
73
  * Test in major browser versions and mobile devices
56
74
  * Update JS/CoffeeScript to use ES6 when that becomes mainstream, and IF the Rails Core is going to adopt ES6 as a standard; this gem is more about building Rails applications than using a specific JavaScript implementation
57
75
 
@@ -10,7 +10,7 @@ Gem::Specification.new do |spec|
10
10
  spec.email = ["dan.legrand@gmail.com"]
11
11
 
12
12
  spec.summary = %q{Customized implementation of Google Material Design User Interface.}
13
- spec.description = %q{Implement Google Material Design spec with modern browsers in mind.}
13
+ spec.description = %q{WARNING: ALPHA CODE, NOT PRODUCTION READY. Implement Google Material Design spec with modern browsers in mind.}
14
14
  spec.homepage = "http://www.github.com/dlegr250/dlegr250_material_design"
15
15
 
16
16
  # Prevent pushing this gem to RubyGems.org by setting 'allowed_push_host', or
@@ -1,3 +1,3 @@
1
1
  module Dlegr250MaterialDesign
2
- VERSION = "0.1.0"
2
+ VERSION = "0.1.1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dlegr250_material_design
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Daniel LeGrand
@@ -52,7 +52,8 @@ dependencies:
52
52
  - - ">="
53
53
  - !ruby/object:Gem::Version
54
54
  version: '0'
55
- description: Implement Google Material Design spec with modern browsers in mind.
55
+ description: 'WARNING: ALPHA CODE, NOT PRODUCTION READY. Implement Google Material
56
+ Design spec with modern browsers in mind.'
56
57
  email:
57
58
  - dan.legrand@gmail.com
58
59
  executables: []