scss-boilerplate-rails 0.1.2 → 0.1.3

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/.gitmodules ADDED
@@ -0,0 +1,3 @@
1
+ [submodule "lib/generators/scss_boilerplate/install/templates"]
2
+ path = lib/generators/scss_boilerplate/install/templates
3
+ url = git@github.com:blakehilscher/scss-boilerplate.git
data/README.md CHANGED
@@ -9,16 +9,15 @@ Installation
9
9
 
10
10
  ##### 1. In your Gemfile
11
11
 
12
- ```ruby
13
- group :assets do
14
- gem 'sass-rails'
15
- gem 'coffee-rails'
16
- gem 'uglifier'
17
- gem 'compass-rails'
18
- gem 'compass-h5bp'
19
- gem 'scss-boilerplate-rails'
20
- end
21
- ```
12
+ group :assets do
13
+ gem 'sass-rails'
14
+ gem 'coffee-rails'
15
+ gem 'uglifier'
16
+ gem 'compass-rails'
17
+ gem 'compass-h5bp'
18
+ gem 'scss-boilerplate-rails'
19
+ end
20
+
22
21
 
23
22
  ##### 2. Install your bundle
24
23
 
@@ -80,4 +79,4 @@ $ rails generate scss_boilerplate:namespace posts
80
79
  create app/assets/stylesheets/posts/variables.css.scss
81
80
  append app/assets/stylesheets/application.css.scss
82
81
 
83
-
82
+
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = 'scss-boilerplate-rails'
3
- s.version = '0.1.2'
3
+ s.version = '0.1.3'
4
4
  s.date = '2012-04-02'
5
5
  s.summary = "Rails support for scss-boilerplate."
6
6
  s.description = "Generate scss partials with a namespace."
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: scss-boilerplate-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -13,7 +13,7 @@ date: 2012-04-02 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: compass-rails
16
- requirement: &2160336360 !ruby/object:Gem::Requirement
16
+ requirement: &2164530820 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ! '>='
@@ -21,10 +21,10 @@ dependencies:
21
21
  version: '0'
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *2160336360
24
+ version_requirements: *2164530820
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: compass-h5bp
27
- requirement: &2160335420 !ruby/object:Gem::Requirement
27
+ requirement: &2164529920 !ruby/object:Gem::Requirement
28
28
  none: false
29
29
  requirements:
30
30
  - - ! '>='
@@ -32,7 +32,7 @@ dependencies:
32
32
  version: '0'
33
33
  type: :runtime
34
34
  prerelease: false
35
- version_requirements: *2160335420
35
+ version_requirements: *2164529920
36
36
  description: Generate scss partials with a namespace.
37
37
  email: blake@hilscher.ca
38
38
  executables: []
@@ -40,25 +40,12 @@ extensions: []
40
40
  extra_rdoc_files: []
41
41
  files:
42
42
  - .gitignore
43
+ - .gitmodules
43
44
  - .rvmrc
44
45
  - Gemfile
45
46
  - README.md
46
47
  - lib/generators/scss_boilerplate/install/USAGE
47
48
  - lib/generators/scss_boilerplate/install/install_generator.rb
48
- - lib/generators/scss_boilerplate/install/templates/application.css.scss
49
- - lib/generators/scss_boilerplate/install/templates/application/chromeframe.css.scss
50
- - lib/generators/scss_boilerplate/install/templates/application/collections.css.scss
51
- - lib/generators/scss_boilerplate/install/templates/application/common.css.scss
52
- - lib/generators/scss_boilerplate/install/templates/application/document.css.scss
53
- - lib/generators/scss_boilerplate/install/templates/application/footers.css.scss
54
- - lib/generators/scss_boilerplate/install/templates/application/forms.css.scss
55
- - lib/generators/scss_boilerplate/install/templates/application/headers.css.scss
56
- - lib/generators/scss_boilerplate/install/templates/application/helpers.css.scss
57
- - lib/generators/scss_boilerplate/install/templates/application/image_replaces.css.scss
58
- - lib/generators/scss_boilerplate/install/templates/application/media_queries.css.scss
59
- - lib/generators/scss_boilerplate/install/templates/application/typography.css.scss
60
- - lib/generators/scss_boilerplate/install/templates/application/variables.css.scss
61
- - lib/generators/scss_boilerplate/install/templates/config/compass.rb
62
49
  - lib/generators/scss_boilerplate/namespace/USAGE
63
50
  - lib/generators/scss_boilerplate/namespace/namespace_generator.rb
64
51
  - lib/generators/scss_boilerplate/namespace/templates/namespace.css.scss
@@ -1,25 +0,0 @@
1
- /* Variables */
2
- @import "application/variables";
3
-
4
- /* CSS3 Compass Helpers */
5
- @import "compass/css3";
6
-
7
- /* Reset & Helpers */
8
- @import "h5bp";
9
- @include h5bp-normalize;
10
- @include h5bp-helpers;
11
- @include h5bp-media;
12
-
13
- /* Application */
14
- @import "application/helpers";
15
- @import "application/chromeframe";
16
- @import "application/typography";
17
- @import "application/image_replaces";
18
- @import "application/collections";
19
- @import "application/document";
20
- @import "application/headers";
21
- @import "application/footers";
22
- @import "application/common";
23
- @import "application/forms";
24
- @import "application/media_queries";
25
-
@@ -1,14 +0,0 @@
1
- // This file was generated by html5-rails
2
- // https://github.com/sporkd/html5-rails
3
- // Upgrade with: $ rails generate html5:install
4
-
5
- //-----------------------------------------
6
- // Chrome Frame prompt
7
- //-----------------------------------------
8
-
9
- .chromeframe {
10
- margin: 0.2em 0;
11
- background: #ccc;
12
- color: black;
13
- padding: 0.2em 0;
14
- }
@@ -1,40 +0,0 @@
1
- /* Visual Elements */
2
- img{
3
- vertical-align:top;
4
- }
5
- .thumbnail{
6
- overflow:hidden;
7
- display:inline-block;
8
- background-color:white;
9
- border:1px solid #dddddd;
10
- padding:1px;
11
- }
12
- .notice-message{
13
- @include border-radius(10px);
14
- background-color: #f2f2f2;
15
- border: 1px solid #ccc;
16
- color: #333;
17
-
18
- font-weight: bold;
19
- margin-bottom: 10px;
20
- margin-top: 10px;
21
- padding: 10px;
22
- }
23
- .alert-message{
24
- @extend .notice-message;
25
- background-color: #FFA5A5;
26
- border-color:#993333;
27
- color: #993333;
28
- }
29
- .warning-message{
30
- @extend .notice-message;
31
- background-color: #FAFAD2;
32
- border-color:#BC8E19;
33
- color: #BC8E19;
34
- }
35
- .success-message{
36
- @extend .notice-message;
37
- background-color:#BDEDB6;
38
- border-color:#264421;
39
- color: #264421;
40
- }
@@ -1,25 +0,0 @@
1
- html{
2
-
3
- }
4
- body{
5
-
6
- }
7
- #container{
8
- width:100%;
9
- max-width:$width-container;
10
- margin:20px auto;
11
- background:#fff;
12
- @include border-radius(10px);
13
- @include box-shadow(#ccc, 1px);
14
- }
15
- #main{
16
- overflow:auto;
17
- }
18
- section.main{
19
- .inner-section-main{
20
- padding:20px;
21
- }
22
- }
23
- aside.main{
24
- float:left;
25
- }
@@ -1,140 +0,0 @@
1
- .rockhil-form{
2
- .field{
3
- overflow:auto;
4
- border-bottom:1px solid #ddd;
5
- padding-bottom:10px;
6
-
7
- .field-describe{
8
- width:30%;
9
- float:left;
10
- }
11
- .field-request{
12
- float:left;
13
- width:70%;
14
- }
15
- &:last-child{
16
- border-bottom:0;
17
- padding-bottom:0;
18
- }
19
- }
20
-
21
- .field-request{
22
- overflow:hidden;
23
- }
24
- /* Form Element Description */
25
- .field-describe{
26
- padding-top:10px;
27
- padding-bottom:10px;
28
- overflow:hidden;
29
- .field-describe-detail{
30
- background:#f2f2f2;
31
- padding:4px;
32
- margin-right:10px;
33
- margin-top:4px;
34
- line-height:15px;
35
- font-weight:normal;
36
- }
37
- span.field-describe-detail{
38
- margin-left:6px;
39
- }
40
- .field_with_errors{
41
- display:inline;
42
- background:#FFA5A5;
43
- }
44
- }
45
-
46
- .field-checkbox{
47
- .field-describe{
48
- padding-top:0px;
49
- padding-bottom:0px;
50
- width:92%;
51
- }
52
- .field-request{
53
- vertical-align:middle;
54
- width:8%;
55
- text-align:center;
56
- }
57
- }
58
- .field-text{
59
- input{
60
- padding:10px;
61
- border:1px solid #ddd;
62
- background-color:#f4f4f4;
63
- width:60%;
64
- }
65
- }
66
- .field-file{
67
-
68
- }
69
- .field-textarea{
70
- textarea{
71
- width:90%;
72
- height:140px;
73
- padding:10px;
74
- border:1px solid #ddd;
75
- background-color:#f4f4f4;
76
- }
77
- }
78
- .field-select{
79
-
80
- }
81
- /* Contains Form Submits and Buttons */
82
- .field-actions,
83
- &.field-actions{
84
- input,a{
85
- padding: 10px;
86
- background-color: $link-color;
87
- color: #ffffff;
88
- font-weight: bold;
89
- border:none;
90
- @include border-radius(10px);
91
- &:hover{
92
- cursor:pointer;
93
- }
94
- }
95
- a{
96
- display:inline-block;
97
- padding:10px;
98
- text-decoration:none;
99
- }
100
- }
101
- /* Labels generated by jQuery validation error */
102
- label.error{
103
- clear:both;
104
- display:block;
105
- display:inline-block;
106
- background-color: #F4B5B6;
107
- font-size: 11px;
108
- padding: 10px;
109
- margin: 10px;
110
- border: 1px solid #A81015;
111
- @include border-radius(10px);
112
- }
113
- /* Contains validation errors */
114
- .field-errors{
115
- background-color: #FFA5A5;
116
- border: 2px solid #A40000;
117
- padding: 10px;
118
- @include border-radius(10px);
119
- ul{
120
- li{
121
- list-style-type:disc;
122
- margin-left: 20px;
123
- }
124
- }
125
- }
126
- /* Contains a series of field-fields */
127
- .field-group{
128
- border:1px solid #dddddd;
129
- border-left:10px solid #dddddd;
130
- margin-left:10px;
131
- padding: 10px;
132
- }
133
- .field-header{
134
- .field-describe{
135
- @extend h3;
136
- width:100%;
137
- float:none;
138
- }
139
- }
140
- }
@@ -1,11 +0,0 @@
1
- header.website{
2
- width:$width-container;
3
- .inner-header-website{
4
- padding:10px;
5
- }
6
- nav.website{
7
- ul{
8
- @include list-float();
9
- }
10
- }
11
- }
@@ -1,173 +0,0 @@
1
- /**************************************************************
2
-
3
- @include list-reset(margin, orientation)
4
- -
5
- Reset a list and force the list items to float left.
6
-
7
- **************************************************************/
8
-
9
- @mixin list-reset()
10
- {
11
- list-style:none;
12
- vertical-align:top;
13
- margin:0;
14
- padding:0;
15
- overflow:auto;
16
- li{
17
- padding:0;
18
- margin:0;
19
- }
20
- }
21
-
22
- /**************************************************************
23
-
24
- @include list-float(margin, orientation)
25
- -
26
- Reset a list and force the list items to float left.
27
-
28
- **************************************************************/
29
-
30
- @mixin list-float()
31
- {
32
- @include list-reset();
33
- li{
34
- float:left;
35
- }
36
- }
37
-
38
-
39
- /**************************************************************
40
-
41
- @include image-replace(image-name, file-extension);
42
- -
43
- Replace the element with this image
44
-
45
- **************************************************************/
46
- @mixin image-replace($name, $ext: png)
47
- {
48
- @include sized-background-image($name, $ext);
49
- display:block;
50
- text-indent:-9999px;
51
- text-align:left;
52
- border:0;
53
- }
54
-
55
- /**************************************************************
56
-
57
- @include image-replace-auto(image, hover-image, ext)
58
- -
59
- Replace the element with this image.
60
- Automatically generate a css class based on the image name.
61
-
62
- **************************************************************/
63
- @mixin image-replace-auto($name, $ext: png)
64
- {
65
- .#{$name},
66
- .#{$name}.active:hover {
67
- @include image-replace($name, $ext);
68
- }
69
- input.#{$name} {
70
- cursor:pointer;
71
- }
72
- }
73
-
74
- /**************************************************************
75
-
76
- @include image-bullet(image-name, image-position, file-extension);
77
- -
78
- Position an image the left or right of an element.
79
-
80
- **************************************************************/
81
- @mixin image-bullet($name, $align:left, $ext: png)
82
- {
83
- $filename: '#{$name}.#{$ext}';
84
-
85
- display:block;
86
- border:0;
87
- background:image-url($filename) no-repeat scroll $align center transparent;
88
- @include min-height(image-height( $filename ) - image-height( $filename ) / 4 );
89
- padding-top:image-height( $filename ) / 4;
90
- padding-#{$align}:image-width( $filename ) + 5px;
91
-
92
- @if $align == right{
93
- float:right;
94
- }
95
- }
96
-
97
- /**************************************************************
98
-
99
- @include image-bullet-auto(image-name, image-position, file-extension);
100
- -
101
- Position an image the left or right of an element.
102
- Automatically generate a css class based on the image name.
103
-
104
- **************************************************************/
105
- @mixin image-bullet-auto($name, $align:left, $ext: png)
106
- {
107
- .#{$name} {
108
- @include image-bullet($name, $align, $ext);
109
- }
110
- }
111
-
112
- /**************************************************************
113
-
114
- @include sized-background-image(image-name, file-extension);
115
- -
116
- Set the backgroud image and determine the width & height.
117
-
118
- **************************************************************/
119
- @mixin sized-background-image($name, $ext: png)
120
- {
121
- $filename: '#{$name}.#{$ext}';
122
- background:image-url($filename) top left no-repeat transparent;
123
- width:image-width($filename);
124
- height:image-height($filename);
125
- }
126
-
127
-
128
-
129
- /**************************************************************
130
-
131
- @include sprite-replace(image-name, number-of-sprites, file-extension);
132
- -
133
- Replace the element with this sprite sheet image
134
-
135
- **************************************************************/
136
- @mixin sprite-replace($name, $count: 2, $ext: png)
137
- {
138
- $filename: '#{$name}.#{$ext}';
139
- $height: image-height($filename) / $count;
140
- width:image-width($filename) !important;
141
- height:$height !important;
142
- display:block;
143
- text-indent:-9999px;
144
- overflow:hidden;
145
- text-align:left;
146
- border:0;
147
- background:image-url($filename) no-repeat scroll top left transparent;
148
- padding:0px !important;
149
- margin:0px;
150
- &:hover,
151
- &.active,
152
- &.second-state{
153
- background-position:0 ($height * -1);
154
- }
155
- @if $count >= 3{
156
- &.third-state{
157
- background-position:0 ($height * 2 * -1);
158
- }
159
- }
160
- @if $count >= 4{
161
- &.fourth-state{
162
- background-position:0 ($height * 3 * -1);
163
- }
164
- }
165
- }
166
-
167
- @mixin sprite-replace-auto($name, $count: 2, $ext: png, $path: '')
168
- {
169
- $filename: '#{$path}/#{$name}';
170
- .#{$name}{
171
- @include sprite-replace($filename, $count, $ext);
172
- }
173
- }
@@ -1,3 +0,0 @@
1
- @media only screen and (min-width: 35em) {
2
- // Style adjustments for viewports that meet the condition
3
- }
@@ -1,43 +0,0 @@
1
- /* Text */
2
- h1{
3
- font-size:30px;
4
- line-height:30px;
5
- }
6
- h2{
7
- font-size:24px;
8
- line-height:24px;
9
- }
10
- h3{
11
- font-size:18px;
12
- line-height:18px;
13
- }
14
- h4{
15
- font-size:16px;
16
- line-height:16px;
17
- }
18
- h5{
19
- font-size:14px;
20
- line-height:14px;
21
- }
22
- body{
23
- font-family:$font-family;
24
- color:$font-color;
25
- font-size:$font-size;
26
- line-height:$font-size + 6px;
27
- }
28
- strong{
29
- font-weight:bold;
30
- }
31
- small{
32
- font-size:11px;
33
- font-weight:bold;
34
- }
35
- a,
36
- a:active,
37
- a:visited{
38
- color:$link-color;
39
- text-decoration:none;
40
- &:hover{
41
- text-decoration:underline;
42
- }
43
- }
@@ -1,22 +0,0 @@
1
- // This file was generated by html5-rails
2
- // https://github.com/sporkd/html5-rails
3
- // Upgrade with: $ rails generate html5:install
4
- //
5
- // These global SCSS(SASS) variables will be
6
- // available to all your stylesheets.
7
-
8
- //----------------------------------------------
9
- // Html5 Boilerplate overrides
10
- //----------------------------------------------
11
- $line-height: 1.4; // 1.4 for true normalization
12
- $font-color: #222;
13
- $font-family: sans-serif;
14
- $font-size: 13px;
15
- $link-color: #00e;
16
- $link-hover-color: #06e;
17
- $link-visited-color: #551a8b;
18
- $selected-font-color: #fff;
19
- $selected-background-color: #0d2177;
20
- $invalid-background-color: #f0dddd;
21
-
22
- $width-container:960px;
@@ -1,18 +0,0 @@
1
- # This configuration file works with both the Compass command line tool and within Rails.
2
- require 'compass/h5bp'
3
-
4
- # Require any additional compass plugins here.
5
-
6
- project_type = :rails
7
-
8
- # Set this to the root of your project when deployed:
9
- http_path = "/"
10
-
11
- # You can select your preferred output style here (can be overridden via the command line):
12
- output_style = :compact# or :compressed
13
-
14
- # To enable relative paths to assets via compass helper functions. Uncomment:
15
- relative_assets = true
16
-
17
- # To disable debugging comments that display the original location of your selectors. Uncomment:
18
- line_comments = false