jetpack-rails 0.8.1 → 0.8.2

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: 48f89f796064f221bca72e7469891c7bab19d5c2
4
- data.tar.gz: 41ee889821635528de114dcaa34854819ab4f264
3
+ metadata.gz: 589aa304c1ae63249d996f191e3ead4421d69a8a
4
+ data.tar.gz: bdb5639ea9f794cb7d5c78ffbe9e8883c730f31c
5
5
  SHA512:
6
- metadata.gz: bc16f8e69b2d00c5cbc58ab892214881617850b2fdce69eedeed728014601c4ac7a30588fe232877d278bc814bdf01307de09558191613f7dcf30e33e3c6812e
7
- data.tar.gz: 480906d5ad9e7db8b8fa47ae3cb612349476c6df6182b0e111573aab185e8cabfd970dfbed1a1647a2a0f1d42784e118273c843aef22583cc423cf73d8746f74
6
+ metadata.gz: d6eed699bba43e67ead7660c92aa7e59923ed7142b7c12c4f5c9a0742545c9525007736c09d0d6613213ecfa4c5304079fd0cfcc8dd5087916dfb0b229ca10ee
7
+ data.tar.gz: 80d30180f5adf5f6f1db2d601ef51c1da84980de6f0c281ae92a0c84f5ce9174eb76d79449d41423cb87ad338fb0bd1465f99dc7a1683a655f9a30007be05732
data/.DS_Store CHANGED
Binary file
data/CHANGELOG CHANGED
@@ -1,7 +1,6 @@
1
1
  TODO: V0.9
2
2
  > Clear out any remaining ideas from Wunderlist
3
3
  > Redo Tabs, Pills, Navigation
4
- > Redo Tables
5
4
  > Review the JS
6
5
 
7
6
  TODO: V1.0
@@ -10,6 +9,16 @@ TODO: V1.0
10
9
 
11
10
 
12
11
  Changelog:
12
+ 0.8.2:
13
+ - Changed class "alert_message" to "alert-message" in flash message helper.
14
+ Trying to me more consistent in using hypenation in HTML/CSS, since that's
15
+ generally more standard than snake case.
16
+ - Add horizontal form alignment helpers in forms library
17
+ - Change form label so it doesn't have to be .control-label if it is first-child
18
+ - Fix gray line above div.submit in form-horizontal-responsive
19
+ - Change form style naming pattern to match table naming pattern
20
+
21
+
13
22
  0.8.1:
14
23
  - Completely revised the tables library to be based on stack of mixins
15
24
  - Changed default $light2 to a ligher color.
@@ -26,7 +26,7 @@ module Jetpack
26
26
  str = ""
27
27
  flash.each do |type, msg|
28
28
  type == :alert ? persist = true : persist = false
29
- str += content_tag :div, msg, :class => ['alert_message', type], :data => { :persist => persist }
29
+ str += content_tag :div, msg, :class => ['alert-message', type], :data => { :persist => persist }
30
30
  end
31
31
  str.html_safe
32
32
  end
@@ -37,4 +37,4 @@ module Jetpack
37
37
  content_for(:title) { mode.to_s + page_title + " | " }
38
38
  end
39
39
  end
40
- end
40
+ end
@@ -1,3 +1,3 @@
1
1
  module Jetpack
2
- VERSION = "0.8.1"
2
+ VERSION = "0.8.2"
3
3
  end
@@ -52,8 +52,8 @@
52
52
  // FORM COMPONENTS
53
53
 
54
54
  // Form Element Appearance
55
- @mixin input-style-basic { @include border-radius(4px); border: 1px solid $light2; box-shadow: inset 0px 1px 2px rgba(0,0,0,0.1); color: $dark1; }
56
- @mixin form-style-basic {
55
+ @mixin form-input-style-simple { @include border-radius(4px); border: 1px solid $light2; box-shadow: inset 0px 1px 2px rgba(0,0,0,0.1); color: $dark1; }
56
+ @mixin form-style-simple {
57
57
  margin-bottom: $baseline; @include clearfix;
58
58
  span.hint { color: $light2; }
59
59
  span.error { color: $error2; }
@@ -68,9 +68,9 @@
68
68
  }
69
69
 
70
70
  // Input Groups (div.input)
71
- @mixin input-group-base {
71
+ @mixin input-group-style-base {
72
72
  @include clearfix; width: 100%; padding: $baseline/2 0;
73
- label.control-label { display: block; font-weight: 700; }
73
+ & > label:first-child, label.control-label { display: block; font-weight: 700; }
74
74
  label.boolean { width: auto; font-weight: normal;
75
75
  input { margin-right: 8px; }
76
76
  }
@@ -79,43 +79,54 @@
79
79
  }
80
80
  }
81
81
 
82
- @mixin input-group-horizontal {
83
- @include input-group-base;
82
+ @mixin input-group-style-horizontal {
83
+ @include input-group-style-base;
84
84
 
85
85
  @include basic-inputs { float: left; width: 78%; }
86
- label.control-label { width: 18%; float: left; margin-right: 2%; text-align: right; }
86
+ & > label:first-child, label.control-label { width: 18%; float: left; margin-right: 2%; text-align: right; }
87
87
  label.boolean { float: left; width: auto; margin-left: 20%; }
88
88
  span.hint, span.error { float: left; margin-left: 20%; }
89
89
  }
90
90
 
91
- @mixin input-group-vertical {
92
- @include input-group-base;
91
+ @mixin input-group-style-vertical {
92
+ @include input-group-style-base;
93
93
  @include basic-inputs { width: 100%; }
94
94
  }
95
95
 
96
96
  // WHOLE FORMS
97
- @mixin form-horizontal {
98
- @include form-style-basic;
99
- @include text-inputs { @include input-style-basic; }
100
- div.input { @include input-group-horizontal; }
97
+ @mixin form-style-horizontal {
98
+ @include form-style-simple;
99
+ @include text-inputs { @include form-input-style-simple; }
100
+ div.input { @include input-group-style-horizontal; }
101
101
  div.submit {
102
102
  margin-top: $baseline/2; padding-top: $baseline/2; border-top: 1px solid $light1;
103
- float: left; margin-left: 20%; width: 80%;
103
+ float: left; margin-left: 20%; width: 78%;
104
104
  }
105
105
  }
106
106
 
107
- @mixin form-vertical {
108
- @include form-style-basic;
109
- @include text-inputs { @include input-style-basic; }
110
- div.input { @include input-group-vertical; }
107
+ @mixin form-style-vertical {
108
+ @include form-style-simple;
109
+ @include text-inputs { @include form-input-style-simple; }
110
+ div.input { @include input-group-style-vertical; }
111
111
  div.submit {
112
112
  margin-top: $baseline/2; padding-top: $baseline/2; border-top: 1px solid $light1;
113
113
  width: 100%;
114
114
  }
115
115
  }
116
116
 
117
- @mixin form-horizontal-responsive {
118
- @include respond-to(desktop) { @include form-horizontal; }
119
- @include respond-to(tablet) { @include form-horizontal; }
120
- @include respond-to(mobile) { @include form-vertical; }
117
+ @mixin form-style-horizontal-responsive {
118
+ @include respond-to(desktop) { @include form-style-horizontal; }
119
+ @include respond-to(tablet) { @include form-style-horizontal; }
120
+ @include respond-to(mobile) { @include form-style-vertical; }
121
+ }
122
+
123
+ // FORM ALIGNMENT HELPERS
124
+ // TODO: send to jetpack
125
+ @mixin horizontal-form-indent {
126
+ margin-left: 20%;
127
+ }
128
+
129
+ @mixin horizontal-form-indent-responsive {
130
+ margin-left: 20%;
131
+ @include respond-to(mobile) { margin-left: 0; }
121
132
  }
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jetpack-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.1
4
+ version: 0.8.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andrew Burleson
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-08-02 00:00:00.000000000 Z
11
+ date: 2013-08-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: sass-rails