fuji 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- data/Gemfile.lock +2 -2
- data/README.md +7 -5
- data/lib/fuji.rb +1 -1
- data/lib/fuji/version.rb +1 -1
- metadata +4 -4
data/Gemfile.lock
CHANGED
data/README.md
CHANGED
@@ -3,7 +3,7 @@ Fuji
|
|
3
3
|
|
4
4
|
Fuji is a ruby gem for rendering and styling Heroku's global header and nav.
|
5
5
|
|
6
|
-
|
6
|
+
Its only dependencies are Sass and Compass, so you can use it with Rails or Sinatra.
|
7
7
|
|
8
8
|
Usage
|
9
9
|
-----
|
@@ -34,20 +34,22 @@ The render method accepts the following options:
|
|
34
34
|
}
|
35
35
|
```
|
36
36
|
|
37
|
-
Here's how it
|
37
|
+
Here's how it's done in addons:
|
38
38
|
|
39
39
|
```haml
|
40
40
|
= Fuji::Header.render(user: current_user, logo_subtext: "addons", login_path: login_path, logout_path: logout_path)
|
41
41
|
```
|
42
42
|
|
43
|
-
Style it up by importing the fuji partial into your
|
43
|
+
Style it up by importing the fuji partial into your sass/scss stylesheet:
|
44
44
|
|
45
45
|
```sass
|
46
|
-
// Override defaults if you wish:
|
46
|
+
// Override the defaults if you wish:
|
47
47
|
$fuji-foreground-color: #FFF
|
48
48
|
$fuji-text-color: rgba(#FFF, 1)
|
49
|
-
$fuji-highlight-color: #
|
49
|
+
$fuji-highlight-color: #aed582
|
50
50
|
$fuji-max-width: 960px
|
51
|
+
$fuji-logo-text-color: rgba($fuji-highlight_color, 0.4)
|
52
|
+
$fuji-logo-subtext-color: rgba($fuji-highlight_color, 0.7)
|
51
53
|
|
52
54
|
@import "fuji"
|
53
55
|
```
|
data/lib/fuji.rb
CHANGED
@@ -30,7 +30,7 @@ module Fuji
|
|
30
30
|
def self.render(options={})
|
31
31
|
|
32
32
|
# Options
|
33
|
-
options[:gravatar_fallback_url] ||= "
|
33
|
+
options[:gravatar_fallback_url] ||= "https://s3.amazonaws.com/assets.heroku.com/addons.heroku.com/gravatar_default.png"
|
34
34
|
options[:logo_text] ||= "heroku"
|
35
35
|
options[:logo_subtext] ||= nil
|
36
36
|
options[:logo_url] ||= "https://www.heroku.com"
|
data/lib/fuji/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fuji
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.3
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2013-01-24 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rspec
|
@@ -110,7 +110,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
110
110
|
version: '0'
|
111
111
|
segments:
|
112
112
|
- 0
|
113
|
-
hash:
|
113
|
+
hash: -3723527647504247304
|
114
114
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
115
115
|
none: false
|
116
116
|
requirements:
|
@@ -119,7 +119,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
119
119
|
version: '0'
|
120
120
|
segments:
|
121
121
|
- 0
|
122
|
-
hash:
|
122
|
+
hash: -3723527647504247304
|
123
123
|
requirements: []
|
124
124
|
rubyforge_project:
|
125
125
|
rubygems_version: 1.8.24
|