jetpack-rails 0.5.1 → 0.6.0

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.
data/CHANGELOG CHANGED
@@ -1,6 +1,14 @@
1
1
  Changelog:
2
+ 0.6.0:
3
+ - Tweaked default button style to vertical-align: baseline, and adjusted
4
+ the style of the inline_submit mixin so now submit buttons mixed inline will line up next to regular buttons correctly.
5
+ - Removed form_button mixin as it no longer served a purpose (see above).
6
+ - Adjusted typography to allow setting "base font" application-wide
7
+ - Added title helper method.
8
+
2
9
  0.5.1:
3
10
  - Updated gemspec and gitignore.
11
+
4
12
  0.5.0:
5
13
  - Added Flash Message helper to standardize display of flash messages.
6
14
  - Changed flash message default styles to fit new flash message handler.
data/README.md CHANGED
@@ -69,6 +69,7 @@ Second (recommended), if you want to define your own settings, paste the followi
69
69
  $serif: "Georgia", "Times", "Times New Roman", serif;
70
70
  $mono: "Monaco", "Andale Mono", "Courier New", monospace;
71
71
 
72
+ $base_font: $sans;
72
73
  $base_size: 13px;
73
74
  $base_weight: 400;
74
75
  $baseline: 18px;
@@ -2,10 +2,12 @@ require 'jetpack/version'
2
2
 
3
3
  module Jetpack
4
4
  module Helper
5
+ # Creates a view name for CSS namespacing.
5
6
  def view_name
6
7
  [controller.controller_name,controller.action_name,params[:id]].compact.join(' ')
7
8
  end
8
9
 
10
+ # Outputs a standard flash message.
9
11
  def flash_messages
10
12
  str = ""
11
13
  flash.each do |type, msg|
@@ -14,6 +16,11 @@ module Jetpack
14
16
  end
15
17
  str.html_safe
16
18
  end
17
- end
18
19
 
20
+ # Creates a smart title helper, appending [DEV] when you're in dev mode.
21
+ def title(page_title)
22
+ mode = "[DEV] " unless ::Rails.env.production?
23
+ content_for(:title) { mode.to_s + page_title + " | " }
24
+ end
25
+ end
19
26
  end
@@ -1,3 +1,3 @@
1
1
  module Jetpack
2
- VERSION = "0.5.1"
2
+ VERSION = "0.6.0"
3
3
  end
@@ -14,6 +14,7 @@ span.label {
14
14
  // BUTTONS
15
15
  a.button, span.button {
16
16
  display: inline-block;
17
+ vertical-align: baseline;
17
18
  cursor: pointer;
18
19
  @include box-shadow( 0px 1px 1px rgba(0,0,0,0.15) );
19
20
  @include border-radius(4px);
@@ -21,7 +22,7 @@ a.button, span.button {
21
22
  font: bold 12px/1.3 $sans;
22
23
  text-decoration: none;
23
24
  color: $dark2;
24
- padding: 3px 10px 2px;
25
+ padding: 3px 10px;
25
26
  width: auto;
26
27
  &:active, &.active { @include buttonize( $light1, $white ); @include box-shadow( none ); }
27
28
  &.disabled { @include buttonize( $light1, $light1); color: $light2; @include box-shadow( none ); }
@@ -31,8 +32,7 @@ a.button, span.button {
31
32
  &.small { padding: 0px 6px; font-size: 11px; line-height: 1.4; }
32
33
  }
33
34
 
34
- @mixin form_button { display: inline-block; vertical-align: text-bottom; } // For anchor or span buttons placed next to form buttons or submits.
35
- @mixin inline_submit { display: inline-block; vertical-align: top; } // For submit buttons placed inline beside a one-input form.
35
+ @mixin inline_submit { display: inline-block; vertical-align: baseline; } // For submit buttons placed inline beside a one-input form.
36
36
 
37
37
  div.alert_message {
38
38
  @include border-radius(4px); color: $white; padding: 7px 12px; margin-bottom: $baseline; @include box-shadow;
@@ -13,7 +13,7 @@
13
13
  box-shadow: $shadow;
14
14
  }
15
15
 
16
- @mixin font( $size: $base_size, $stack: $sans, $weight: $base_weight, $line_height: $baseline ) {
16
+ @mixin font( $size: $base_size, $stack: $base_font, $weight: $base_weight, $line_height: $baseline ) {
17
17
  font-size: $size;
18
18
  font-family: $stack;
19
19
  font-weight: $weight;
@@ -28,6 +28,7 @@ $sans: "Helvetica Neue", "Helvetica", "Arial", sans-serif;
28
28
  $serif: "Georgia", "Times", "Times New Roman", serif;
29
29
  $mono: "Monaco", "Andale Mono", "Courier New", monospace;
30
30
 
31
+ $base_font: $sans;
31
32
  $base_size: 13px;
32
33
  $base_weight: 400;
33
34
  $baseline: 18px;
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jetpack-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.1
4
+ version: 0.6.0
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: 2012-09-23 00:00:00.000000000 Z
12
+ date: 2012-10-15 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: sass-rails
@@ -37,65 +37,31 @@ executables: []
37
37
  extensions: []
38
38
  extra_rdoc_files: []
39
39
  files:
40
- - !binary |-
41
- LkRTX1N0b3Jl
42
- - !binary |-
43
- LmdpdGlnbm9yZQ==
44
- - !binary |-
45
- Q0hBTkdFTE9H
46
- - !binary |-
47
- TElDRU5TRQ==
48
- - !binary |-
49
- UkVBRE1FLm1k
50
- - !binary |-
51
- amV0cGFjay1yYWlscy5nZW1zcGVj
52
- - !binary |-
53
- bGliL2pldHBhY2stcmFpbHMucmI=
54
- - !binary |-
55
- bGliL2pldHBhY2svaGVscGVyLnJi
56
- - !binary |-
57
- bGliL2pldHBhY2svcmFpbHRpZS5yYg==
58
- - !binary |-
59
- bGliL2pldHBhY2svdmVyc2lvbi5yYg==
60
- - !binary |-
61
- dmVuZG9yL2Fzc2V0cy9qYXZhc2NyaXB0cy9qZXRwYWNrLmpz
62
- - !binary |-
63
- dmVuZG9yL2Fzc2V0cy9qYXZhc2NyaXB0cy9qZXRwYWNrL2FsZXJ0cy5qcw==
64
- - !binary |-
65
- dmVuZG9yL2Fzc2V0cy9qYXZhc2NyaXB0cy9qZXRwYWNrL21vZGFsLmpz
66
- - !binary |-
67
- dmVuZG9yL2Fzc2V0cy9qYXZhc2NyaXB0cy9qZXRwYWNrL3RhYnMuanM=
68
- - !binary |-
69
- dmVuZG9yL2Fzc2V0cy9qYXZhc2NyaXB0cy9qZXRwYWNrL3RpcHN5Lmpz
70
- - !binary |-
71
- dmVuZG9yL2Fzc2V0cy9zdHlsZXNoZWV0cy9qZXRwYWNrLmNzcy5zY3Nz
72
- - !binary |-
73
- dmVuZG9yL2Fzc2V0cy9zdHlsZXNoZWV0cy9qZXRwYWNrL2Zvcm1zLmNzcy5z
74
- Y3Nz
75
- - !binary |-
76
- dmVuZG9yL2Fzc2V0cy9zdHlsZXNoZWV0cy9qZXRwYWNrL2ZyYWN0aW9uYWxp
77
- emUuY3NzLnNjc3M=
78
- - !binary |-
79
- dmVuZG9yL2Fzc2V0cy9zdHlsZXNoZWV0cy9qZXRwYWNrL2ludGVyZmFjZS5j
80
- c3Muc2Nzcw==
81
- - !binary |-
82
- dmVuZG9yL2Fzc2V0cy9zdHlsZXNoZWV0cy9qZXRwYWNrL21peGlucy5jc3Mu
83
- c2Nzcw==
84
- - !binary |-
85
- dmVuZG9yL2Fzc2V0cy9zdHlsZXNoZWV0cy9qZXRwYWNrL25hdmlnYXRpb24u
86
- Y3NzLnNjc3M=
87
- - !binary |-
88
- dmVuZG9yL2Fzc2V0cy9zdHlsZXNoZWV0cy9qZXRwYWNrL3ByZXNldHMuY3Nz
89
- LnNjc3M=
90
- - !binary |-
91
- dmVuZG9yL2Fzc2V0cy9zdHlsZXNoZWV0cy9qZXRwYWNrL3Jlc2V0aXplLmNz
92
- cy5zY3Nz
93
- - !binary |-
94
- dmVuZG9yL2Fzc2V0cy9zdHlsZXNoZWV0cy9qZXRwYWNrL3RhYmxlcy5jc3Mu
95
- c2Nzcw==
96
- - !binary |-
97
- dmVuZG9yL2Fzc2V0cy9zdHlsZXNoZWV0cy9qZXRwYWNrL3R5cG9ncmFwaHku
98
- Y3NzLnNjc3M=
40
+ - .DS_Store
41
+ - .gitignore
42
+ - CHANGELOG
43
+ - LICENSE
44
+ - README.md
45
+ - jetpack-rails.gemspec
46
+ - lib/jetpack-rails.rb
47
+ - lib/jetpack/helper.rb
48
+ - lib/jetpack/railtie.rb
49
+ - lib/jetpack/version.rb
50
+ - vendor/assets/javascripts/jetpack.js
51
+ - vendor/assets/javascripts/jetpack/alerts.js
52
+ - vendor/assets/javascripts/jetpack/modal.js
53
+ - vendor/assets/javascripts/jetpack/tabs.js
54
+ - vendor/assets/javascripts/jetpack/tipsy.js
55
+ - vendor/assets/stylesheets/jetpack.css.scss
56
+ - vendor/assets/stylesheets/jetpack/forms.css.scss
57
+ - vendor/assets/stylesheets/jetpack/fractionalize.css.scss
58
+ - vendor/assets/stylesheets/jetpack/interface.css.scss
59
+ - vendor/assets/stylesheets/jetpack/mixins.css.scss
60
+ - vendor/assets/stylesheets/jetpack/navigation.css.scss
61
+ - vendor/assets/stylesheets/jetpack/presets.css.scss
62
+ - vendor/assets/stylesheets/jetpack/resetize.css.scss
63
+ - vendor/assets/stylesheets/jetpack/tables.css.scss
64
+ - vendor/assets/stylesheets/jetpack/typography.css.scss
99
65
  homepage: http://github.com/burlesona/jetpack-rails
100
66
  licenses: []
101
67
  post_install_message: