compass-pattern-primer 0.3.beta → 0.4.beta

Sign up to get free protection for your applications and to get access to all the features.
Files changed (77) hide show
  1. checksums.yaml +5 -5
  2. data/CHANGELOG.md +2 -1
  3. data/README.md +121 -80
  4. data/lib/compass-pattern-primer.rb +2 -2
  5. data/stylesheets/compass-pattern-primer.scss +1 -7
  6. data/stylesheets/compass-pattern-primer/_partials.scss +1 -3
  7. data/stylesheets/compass-pattern-primer/partials/_extendables.scss +1 -188
  8. data/stylesheets/compass-pattern-primer/partials/_mixins.scss +0 -1
  9. data/templates/adactio/manifest.rb +29 -4
  10. data/templates/project/manifest.rb +65 -51
  11. data/templates/shared/patterns/01_a_header.html +1 -0
  12. data/templates/shared/patterns/02_a_header.html +1 -0
  13. data/templates/shared/patterns/03_a_header.html +1 -0
  14. data/templates/shared/patterns/04_a_header.html +1 -0
  15. data/templates/shared/sass/_config-adactio.scss +65 -0
  16. data/templates/shared/sass/{partials/variables/theme/_overrides.scss → _config.scss} +9 -4
  17. data/{stylesheets/compass-pattern-primer/base → templates/shared/sass/base/buttons}/_buttons.scss +11 -1
  18. data/templates/shared/sass/base/buttons/_buttons_extendables.scss +75 -0
  19. data/{stylesheets/compass-pattern-primer/partials/variables/base/_buttons.scss → templates/shared/sass/base/buttons/_buttons_variables.scss} +4 -0
  20. data/{stylesheets/compass-pattern-primer/base → templates/shared/sass/base/forms}/_forms.scss +7 -0
  21. data/templates/shared/sass/base/forms/_forms_extendables.scss +16 -0
  22. data/{stylesheets/compass-pattern-primer/partials/variables/base/_forms.scss → templates/shared/sass/base/forms/_forms_variables.scss} +4 -0
  23. data/{stylesheets/compass-pattern-primer/base → templates/shared/sass/base/links}/_links.scss +6 -0
  24. data/{stylesheets/compass-pattern-primer/partials/variables/base/_links.scss → templates/shared/sass/base/links/_links_variables.scss} +4 -0
  25. data/{stylesheets/compass-pattern-primer/base → templates/shared/sass/base/page}/_page.scss +6 -0
  26. data/{stylesheets/compass-pattern-primer/partials/variables/base/_page.scss → templates/shared/sass/base/page/_page_variables.scss} +4 -0
  27. data/{stylesheets/compass-pattern-primer/base → templates/shared/sass/base/search}/_search.scss +6 -0
  28. data/{stylesheets/compass-pattern-primer/partials/variables/base/_search.scss → templates/shared/sass/base/search/_search_variables.scss} +4 -0
  29. data/{stylesheets/compass-pattern-primer/base → templates/shared/sass/base/typography}/_typography.scss +6 -0
  30. data/{stylesheets/compass-pattern-primer/partials/variables/base/_typography.scss → templates/shared/sass/base/typography/_typography_variables.scss} +4 -0
  31. data/templates/shared/sass/global-adactio.scss +40 -17
  32. data/templates/shared/sass/global.scss +16 -26
  33. data/templates/shared/sass/layout/{_page.scss → page/_page.scss} +0 -0
  34. data/templates/shared/sass/modules/controls/_controls.scss +10 -0
  35. data/templates/shared/sass/modules/controls/_controls_extendables.scss +26 -0
  36. data/{stylesheets/compass-pattern-primer/partials/variables/modules/_control.scss → templates/shared/sass/modules/controls/_controls_variables.scss} +4 -0
  37. data/templates/shared/sass/modules/feedback/_feedback.scss +16 -0
  38. data/templates/shared/sass/modules/feedback/_feedback_extendables.scss +35 -0
  39. data/{stylesheets/compass-pattern-primer/partials/variables/modules/_feedback.scss → templates/shared/sass/modules/feedback/_feedback_variables.scss} +4 -0
  40. data/templates/shared/sass/modules/options/_options.scss +10 -0
  41. data/templates/shared/sass/modules/options/_options_extendables.scss +22 -0
  42. data/{stylesheets/compass-pattern-primer/partials/variables/modules/_options.scss → templates/shared/sass/modules/options/_options_variables.scss} +4 -0
  43. data/templates/shared/sass/modules/pagination/_pagination.scss +10 -0
  44. data/templates/shared/sass/modules/pagination/_pagination_extendables.scss +35 -0
  45. data/{stylesheets/compass-pattern-primer/partials/variables/modules/_pagination.scss → templates/shared/sass/modules/pagination/_pagination_variables.scss} +4 -0
  46. data/templates/shared/sass/partials/_colors.scss +20 -20
  47. data/templates/shared/sass/pattern-primer-static.scss +18 -0
  48. data/templates/shared/sass/pattern-primer.scss +1 -0
  49. data/templates/shared/sass/state/{_header.scss → header/_header.scss} +0 -0
  50. data/templates/shared/sass/theme/{_page.scss → page/_page.scss} +0 -0
  51. data/templates/static/manifest.rb +32 -23
  52. metadata +38 -47
  53. data/stylesheets/compass-pattern-primer/_base.scss +0 -12
  54. data/stylesheets/compass-pattern-primer/_modules.scss +0 -10
  55. data/stylesheets/compass-pattern-primer/modules/_control.scss +0 -3
  56. data/stylesheets/compass-pattern-primer/modules/_feedback.scss +0 -9
  57. data/stylesheets/compass-pattern-primer/modules/_options.scss +0 -3
  58. data/stylesheets/compass-pattern-primer/modules/_pagination.scss +0 -3
  59. data/stylesheets/compass-pattern-primer/partials/_colors.scss +0 -27
  60. data/stylesheets/compass-pattern-primer/partials/_variables.scss +0 -14
  61. data/stylesheets/compass-pattern-primer/partials/variables/base/_colors.scss +0 -1
  62. data/templates/shared/sass/base/_page.scss +0 -10
  63. data/templates/shared/sass/modules/_footer.scss +0 -7
  64. data/templates/shared/sass/modules/_header.scss +0 -7
  65. data/templates/shared/sass/partials/_variables-adactio.scss +0 -3
  66. data/templates/shared/sass/partials/_variables.scss +0 -17
  67. data/templates/shared/sass/partials/variables/base/_page.scss +0 -3
  68. data/templates/shared/sass/partials/variables/layout/_breakpoints.scss +0 -3
  69. data/templates/shared/sass/partials/variables/layout/_page.scss +0 -3
  70. data/templates/shared/sass/partials/variables/modules/_footer.scss +0 -3
  71. data/templates/shared/sass/partials/variables/modules/_header.scss +0 -3
  72. data/templates/shared/sass/partials/variables/state/_footer.scss +0 -3
  73. data/templates/shared/sass/partials/variables/state/_header.scss +0 -3
  74. data/templates/shared/sass/partials/variables/state/_page.scss +0 -3
  75. data/templates/shared/sass/partials/variables/theme/_page.scss +0 -3
  76. data/templates/shared/sass/state/_footer.scss +0 -3
  77. data/templates/shared/sass/state/_page.scss +0 -3
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- data.tar.gz: 0de95f5460a05c3272087101d4dc87e492bab9bc
4
- metadata.gz: 55f32509a2e6dabdd8488909fad6f5c272a4e0af
5
2
  SHA512:
6
- data.tar.gz: b6135ec2a68efa323bd60400564a54f6bc53c1b615fc8df1ffcb0c46709943e8689d0bd81b33b6cbc030b92b4461870fcc4aa69e40f9d6264c6c540dfad130d1
7
- metadata.gz: b475432c33e9432bba9ce485dbe763ff572d5366d706a433b869c4c5f9ce51f6474222f3bed5bab98d21669d0ca6622c91e24a1615b460e2099fa34e16946f7f
3
+ metadata.gz: 61319d807f6764e5db0ddd72b8df8bcadafc710db87764be33f5d065aa13a9ecc4bb0a4cb5c4a3c341fff65605c17b3d2855804323da452364df8c5272455af6
4
+ data.tar.gz: 3b5ed5ac6dad4033532079cffb8acca9a1fbf74fdd585e6ce93c28406c6eafbb9401c0a9e88f8d26f1b9bb32d6542578ee785ea6d78b75c430a3d55f9cb97070
5
+ SHA1:
6
+ metadata.gz: 113d74613feb16929a542ec171ec2cfe79f88c56
7
+ data.tar.gz: 211c1e20640cc9476fdafb249bad63f2c9a99d79
data/CHANGELOG.md CHANGED
@@ -8,4 +8,5 @@
8
8
  * **0.2.6** Forgot to update Changelog
9
9
  * **0.2.7** Added `$forms-input-width` variable
10
10
  * **0.2.8** Added `%formstyle` extendable to fix extendable cascade issues
11
- * **0.3.beta** Remodeling reset and template files (pre-release for SassConf)
11
+ * **0.3.beta** Remodeling reset and template files (pre-release for SassConf)
12
+ * **0.4.beta** Moved base and modules from stylesheet folder to template files
data/README.md CHANGED
@@ -1,19 +1,21 @@
1
1
  # Compass Pattern Primer
2
- ### Create Style Guides in HTML and CSS with Sass & Compass
3
2
  _This is the development repo for the compass extension and rubygem: [Compass Pattern Primer](https://rubygems.org/gems/compass-pattern-primer)._
4
3
 
5
- Compass Pattern Primer is a system to quickly generate style guides for your web site or web app. It is based on [Pattern Primer](https://github.com/adactio/Pattern-Primer) by Adactio/Jeremy Keith. It's a collection of starter UI patterns that can be styled for any website. The pattern primer uses a PHP document to pull in patterns (HTML snippets) that can be styled.
4
+ ## Create Style Guides in HTML and CSS with Sass & Compass
6
5
 
7
- I originally faithfully ported [Pattern Primer](https://github.com/alienresident/Pattern-Primer) and Jeremy Keith's styles to Sass. Using Sass allows the styles to be quickly changing by overriding a few variables.
6
+ __Compass Pattern Primer__ is a system to quickly generate style guides for your web site or web app. It's a collection of starter UI patterns that can be styled for any website. The pattern primer uses a PHP document to pull in _patterns_ (HTML snippets) that can then be styled. It is based on [Pattern Primer](https://github.com/adactio/Pattern-Primer) by Adactio/Jeremy Keith.
8
7
 
9
- For my own development work I needed to move beyond Jeremy's work. I reworked the Pattern Primer to use Jonathan Snook's [SMACSS](http://smacss.com/) \(Scalable and Modular Architecture for CSS\) as an organizing principle. I separated the partials into base and modules. The styling from the original Pattern Primer is the default style. The intended way to override the original Adactio styling is to change the variables in `partials/variables/theme/_overrides` following the SMACSS paradigm. I have also changed the default [reset](#reset) from Eric Meyer's to Formalize and Normalize.
8
+ #### Background
9
+ I originally faithfully ported [Pattern Primer](https://github.com/alienresident/Pattern-Primer) and Jeremy Keith's styles to Sass. Sass allows the styles to be quickly changed by overriding a few variables.
10
+
11
+ For my own development work I needed to move beyond Jeremy's work. I created a Compass Gem so I could create a base scaffolding for each new project. I reworked the Pattern Primer to use Jonathan Snook's [SMACSS](http://smacss.com/) \(Scalable and Modular Architecture for CSS\) as an organizing principle. I separated the styled elements into base and modules. The initial default style is the styling from the original Pattern Primer. The intended way to override the original Adactio styling is to change the variables in `_config` file. I have also changed the default [reset](#reset) from Eric Meyer's to Formalize and Normalize.
10
12
 
11
13
  *This is a work in progress and any feedback is very welcome.*
12
14
 
13
15
  ## Installation
14
16
  Compass Pattern Primer is a compass extension bundled as a Ruby gem.
15
17
 
16
- ```bash
18
+ ```bash
17
19
  gem install compass-pattern-primer
18
20
  ```
19
21
  #### Dependencies
@@ -22,40 +24,45 @@ You'll need to install [Sass](http://sass-lang.com/), [Compass](http://compass-s
22
24
  Depending on what [scaffolding](#create-a-new-compass-project-using-compass-pattern-primer-scaffolding) or [reset](#reset) library you use. You may need to install [compass normalize](https://github.com/ksmandersen/compass-normalize) and/or [compass formalize](https://github.com/pengwynn/compass_formalize) or the [meyer reset](https://github.com/adamstac/meyer-reset).
23
25
 
24
26
  ## How to Use it
25
- There are a number of ways you can get started with Compass Pattern Primer
26
-
27
- ### Create a new Compass project requiring Compass Pattern Primer
28
-
29
- ```bash
30
- compass create <MyProject> -r compass-pattern-primer
31
- ```
32
- This creates a new Compass project using the compass standard scaffolding and adds `require 'compass-pattern-primer'` to the `config.rb`.
27
+ There are a number of ways you can get started with Compass Pattern Primer. There are three ways (scaffolding options) your project can be set up.
33
28
 
34
- ### Create a new Compass project using Compass Pattern Primer scaffolding
29
+ ### Create a New Compass project
30
+
31
+ Use one of Compass Pattern Primer scaffolding options:
35
32
 
36
- ##### SMACSS
33
+ ##### SMACSS (PHP)
37
34
 
38
35
  ```bash
39
36
  compass create <MyProject> -r compass-pattern-primer -u compass-pattern-primer
40
37
  ```
41
- This creates a SMACSS style scaffolding for your project. It includes an `index.php` and a patterns folder (HTML snippets). Within the patterns folder there are the default Adactio patterns as well as some additional patterns. All the partials are imported into `global.scss` which will be your main css file. It also creates a `pattern-primer.scss` which imports `global.scss` and adds a color guide for your `index.php`. The color guide adds a lot of CSS that has no business being in the production site but's very useful for the style guide.
38
+ This creates a SMACSS style scaffolding for your project. It includes an `index.php` and a patterns folder (HTML snippets). Within the patterns folder there are the default Adactio patterns as well as some additional patterns. All the `base` and `modules` files are imported into `global.scss` which will be the main CSS file. It also creates a `pattern-primer.scss` which imports `global.scss` and adds a color guide viewable in your `index.php`. The color guide adds a lot of CSS that has no business being in the production site but's very useful for the style guide.
42
39
 
43
- ##### Adactio's Pattern Primer
40
+ ##### SMACSS with a Static HTML File
44
41
 
45
42
  ```bash
46
- compass create <MyProject> -r compass-pattern-primer -u compass-pattern-primer/adactio
43
+ compass create <MyProject> -r compass-pattern-primer -u compass-pattern-primer/static
47
44
  ```
45
+ This creates a SMACSS style scaffolding for your project. Instead of the `index.php` it includes `pattern-primer.html` a static html page where you can preview the style guide. You edit the html to add your own patterns. All the `base` and `modules` files are imported into `global.scss` which will be the main CSS file. It also creates a `pattern-primer.scss` which imports `global.scss` and adds a color guide viewable in your `index.php`. The color guide adds a lot of CSS that has no business being in the production site but is useful for the style guide.
46
+
47
+ ##### Adactio's Pattern Primer (PHP)
48
+
49
+ ```bash
50
+ compass create <MyProject> -r compass-pattern-primer -u compass-pattern-primer/adactio
51
+ ```
48
52
  This adds an `index.php` and a patterns folder (HTML snippets) with only Adactio's original patterns and CSS that's (fairly) faithful to his CSS.
49
53
 
50
- ##### Static HTML File
54
+ ### You can also:
51
55
 
56
+ #### Create a New Compass Project Requiring Compass Pattern Primer
57
+
52
58
  ```bash
53
- compass create <MyProject> -r compass-pattern-primer -u compass-pattern-primer/static
54
- ```
55
- This creates a SMACSS style scaffolding for your project. Instead of the `index.php` it includes `pattern-primer.html` a static html page where you can preview the style guide. You edit the html to add your own patterns.
59
+ compass create <MyProject> -r compass-pattern-primer
60
+ ```
61
+ This creates a new Compass project using the compass standard scaffolding and adds `require 'compass-pattern-primer'` to the `config.rb`. However you won't get the base styles or pattern primer viewing page added to your project. This approach is __NOT__ recommended unless you know what your doing.
56
62
 
57
- #### Add Compass Pattern Primer to an existing project by adding the following to config.rb
63
+ #### Add Compass Pattern Primer to an Existing Project
58
64
 
65
+ Adding the following to `config.rb`
59
66
  ```ruby
60
67
  require 'compass-pattern-primer'
61
68
  ```
@@ -64,20 +71,17 @@ Then import the Compass Pattern Primer partial by adding at the top of your work
64
71
  ```scss
65
72
  @import "compass-pattern-primer";
66
73
  ```
67
- **Note:** *You'll need to restart* `compass watch` *if it's running*
74
+ However you won't get the base styles or pattern primer viewing page added to your project. This approach is __NOT__ recommended unless you know what your doing.
75
+ **Note:** *You'll need to restart* `compass watch` *if it's running*
68
76
 
69
77
  ## Features in Compass Pattern Primer
70
78
 
71
- Compass Pattern Primer comes with a reset, base styles, and modules \(controls, feedback, options, pagination\). You can either bring everything into your project by adding `@import "compass-pattern-primer";` to the top of your file. You can also add the individual pieces by adding some (or all) of the following:
79
+ Compass Pattern Primer comes with a reset, base styles, and modules \(controls, feedback, options, pagination\). By using one of the scaffolding options listed above the base styles and modules will be added to your project.
72
80
 
73
- ```scss
74
- @import "compass-pattern-primer/reset";
75
- @import "compass-pattern-primer/base";
76
- @import "compass-pattern-primer/modules";
77
- ```
81
+ You can bring in the reset files, the mixins, functions and extendables into your project by adding `@import "compass-pattern-primer";` to the top of your file. You can also add the individual pieces by adding some (or all) of the following:
78
82
 
79
83
  ### Reset
80
- The Compass Pattern Primer Reset incorporates Normalize and Formalize libraries (using their compass gems) by default.
84
+ The Compass Pattern Primer Reset incorporates Normalize and Formalize libraries (using their compass gems) by default. If you just want to use one of these libraries.
81
85
 
82
86
  __change__
83
87
 
@@ -115,55 +119,87 @@ $legacy-support-for-ie7: false;
115
119
 
116
120
  *In the Compass Pattern Primer SMACSS scaffolding you can change what browsers you support in `partials/browsers`.
117
121
 
118
- If you don't want to use any resets simply don't import it. You can import just the base and modules.
119
-
120
- ```scss
121
- @import "compass-pattern-primer/base";
122
- @import "compass-pattern-primer/modules";
123
- ```
122
+ If you don't want to use any resets simply don't import it.
124
123
 
125
124
  ### Base
126
- The Compass Pattern Primer Base contains partials for your base styles.
127
- You can add them all:
125
+ When you use one of the 3 scaffolding options Compass Pattern Primer Base Style will be added to your project. Folders containing the base styles will be added to your sass folder.
128
126
 
129
- ```scss
130
- @import "compass-pattern-primer/base";
131
- ```
132
- Or selectively, here's the full list you can select which parts:
127
+ __SMACSS Scaffold__
128
+ The styles will be in your `sass/base` folder
129
+ ```
130
+ sass/
131
+ base/
132
+ buttons/
133
+ forms/
134
+ links/
135
+ page/
136
+ search/
137
+ typography/
138
+ ```
133
139
 
134
- ```scss
135
- @import "compass-pattern-primer/base/_page";
136
- @import "compass-pattern-primer/base/_typography";
137
- @import "compass-pattern-primer/base/_links";
138
- @import "compass-pattern-primer/base/_forms";
139
- @import "compass-pattern-primer/base/_search";
140
- @import "compass-pattern-primer/base/_buttons";
140
+
141
+ __Adactio Scaffold__
142
+ The styles will be in your `sass` folder
143
+
144
+ ```bash
145
+ sass/
146
+ buttons/
147
+ forms/
148
+ links/
149
+ page/
150
+ search/
151
+ typography/
141
152
  ```
142
153
 
143
154
  ### Modules
144
- Similarly the modules allow can be imported whole or selectively.
155
+ Similarly the modules are in different folders depending on your scaffolding setup.
145
156
 
146
- ```scss
147
- @import "compass-pattern-primer/modules";
157
+ __SMACSS Scaffold__
158
+ The styles will be in your `sass/base` folder
159
+ ```
160
+ sass/
161
+ base/
162
+ buttons/
163
+ forms/
164
+ links/
165
+ page/
166
+ search/
167
+ typography/
168
+ ```
169
+
170
+ __Adactio Scaffold__
171
+ The styles will be in your `sass` folder
172
+
173
+ ```bash
174
+ sass/
175
+ buttons/
176
+ forms/
177
+ links/
178
+ page/
179
+ search/
180
+ typography/
181
+ ```
182
+ Each base and module folder will have a `_basename.scss` and a `_basename_variables.scss` file. It may also have a `_basename_mixins.scss` and a `_basename_extendables.scss`
183
+
184
+ Here's an example from the buttons folder
185
+ ```bash
186
+ _buttons.scss
187
+ _buttons_extendables.scss
188
+ _buttons_variables.scss
148
189
  ```
149
- Or
150
190
 
151
- ```scss
152
- @import "compass-pattern-primer/modules/_control";
153
- @import "compass-pattern-primer/modules/_feedback";
154
- @import "compass-pattern-primer/modules/_options";
155
- @import "compass-pattern-primer/modules/_pagination";
156
- ```
157
- Styles for the modules can be changed using **overrides** and extended to other elements using **extendables**.
191
+ `_basename.scss` contains CSS that will be outputted. It also imports `_basename_variables.scss`. It will also import `_basename_extendables.scss` or `_basename_mixins.scss` if they exist
192
+ `_basename_variables.scss` contain all the default variables needed.
193
+ `_basename_extendables.scss` contains silent extendables styles that are only used in the context.
158
194
 
159
195
  ### Changing the default styles
160
- The Compass Pattern Primer is designed to allow nearly everything about the CSS to be overridden. The Sass contains variables that can be changed easily overridden.
196
+ The Compass Pattern Primer is designed to allow nearly everything about the CSS to be overridden. Each base and module folder contains a sass file (`_basename_variables.scss`) with default variables that can be changed easily overridden.
161
197
 
162
- #### Overrides
163
- In the SMACSS style scaffolding you can override any of the variables in `partials/variables/theme/_overrides`. It contains some example variables that are commented out.
198
+ #### Overriding Values using the `_config` file
199
+ In the SMACSS style scaffolding you can override any of the base or module variables in `_config.scss`. It contains some example variables that are commented out.
164
200
 
165
201
  #### Extendables
166
- Styles for the buttons, controls, options, and pagination are silent extendables. The extendables are in `partials/extendables`. This allows you to easily add a the button styles to another element.
202
+ Styles for the buttons, controls, options, and pagination contain silent extendables files . For example the extendables for buttons are in `buttons/buttons_extendables.scss`. This allows you to easily add a the button styles to another element.
167
203
 
168
204
  In this example I am extending an `input` with the `id="reset"` to `%button-active` style.
169
205
 
@@ -180,8 +216,8 @@ Color Schemer is feature rich and allows you to generate color schemes using col
180
216
  The colors also take advantage of `tint-stack` and `shade-stack` to generate 6 (by default but can be extended) tints (mixed with white) or shades (mixed with black) of your colors. Documentation for these functions can be found in [Toolkit](https://github.com/Team-Sass/toolkit).
181
217
 
182
218
  ```scss
183
- $primary-color: #57068c;
184
- $black-value: #333;
219
+ $primary-color: #693 !default;
220
+ $black-value: #333 !default;
185
221
  ```
186
222
 
187
223
  ```scss
@@ -199,27 +235,32 @@ $link-color: nth($primary, 1);
199
235
  $link-visited-link-color: nth($primary, 2);
200
236
  ```
201
237
 
202
- ## Features to be added
203
- #### ~~More scaffolding options.~~ DONE
204
- ~~At the moment there's only one option to use my SMACSS scaffolding and a static html preview page. This works for some use cases but doesn't allow you to easily add patterns.~~
238
+ ## Features that have been added
205
239
 
206
- ~~I intend to allow a scaffolding option that includes the original patterns and `index.php` file from Jeremy Keith's [Pattern Primer](https://github.com/adactio/Pattern-Primer) repo.~~
240
+ #### ~~Move styles from compass gem to scaffold~~ DONE (v. 0.4beta)
241
+ It made sense to move the base and module styles from the compass gem to the scaffolding. This added the styles to the project were they can be easily viewed and modified. Restructuring the SMACSS folders so that files pertaining to those styles were grouped together.
207
242
 
208
- ~~Another option could be to create a very basic scaffolding that doesn't use the SMACSS approach. So that you can use you own.~~
243
+ Each base and module folder will have a `_basename.scss` and a `_basename_variables.scss` file. It may also have a `_basename_mixins.scss` and a `_basename_extendables.scss`
244
+
245
+ #### ~~More scaffolding options.~~ DONE (v. 0.3beta)
246
+ There was only one option to use my SMACSS scaffolding and a static HTML preview page. This worked for some use cases but didn't allow you to easily add patterns.
209
247
 
210
248
  There are now 3 [install options](#create-a-new-compass-project-using-compass-pattern-primer-scaffolding) for Compass Pattern Primer.
211
249
 
212
250
 
213
- #### ~~Use existing Compass Reset gems~~ DONE
214
- ~~I realized after the fact that all my reset's existed as compass gems. Doesn't seem like a good idea to duplicate code.
215
- - [Meyer Reset](https://github.com/adamstac/meyer-reset)
216
- - [Compass Normalize](https://github.com/ksmandersen/compass-normalize)
217
- - [Compass Formalize](https://github.com/pengwynn/compass_formalize)~~
218
- I had to make some changes to [Compass Formalize](https://github.com/pengwynn/compass_formalize) to add `$legacy-support-for-ie6` and `$legacy-support-for-ie7` and they were accepted and pushed on in v. 0.0.5. I am now a committer on that project!
251
+ #### ~~Use existing Compass Reset gems~~ DONE (v. 0.3beta)
252
+ I realized after the fact that all my reset's existed as compass gems. Doesn't seem like a good idea to duplicate code.
219
253
 
254
+ These were added as dependencies:
255
+ * [Meyer Reset](https://github.com/adamstac/meyer-reset)
256
+ * [Compass Normalize](https://github.com/ksmandersen/compass-normalize)
257
+ * [Compass Formalize](https://github.com/pengwynn/compass_formalize)
220
258
 
221
- #### ~~Simplify the `bounding-box` mixin~~ DONE
222
- ~~At the moment `bounding-box` mixin handles `margin`, `padding`, and `border` styles. I am going to change this to just `margin` and `padding` and create a new mixing to handle `border` and expanded it to support `outline` as the have similar CSS output.~~
259
+ I had to make some changes to [Compass Formalize](https://github.com/pengwynn/compass_formalize) to add `$legacy-support-for-ie6` and `$legacy-support-for-ie7` and they were accepted and pushed on in v. 0.0.5. I am now a committer on that project!
260
+
261
+ #### ~~Simplify the `bounding-box` mixin~~ DONE (v 0.2.2)
262
+ In v. 0.1-0.2.1 the `bounding-box` mixin handles `margin`, `padding`, and `border` styles. I changed this to just `margin` and `padding` and create a new mixin to handle `border` and expanded it to support `outline` as the have similar CSS output
263
+
223
264
  Refactored `bounding-box` mixin (v0.2.2). It's now 2 mixins: `border-outline` and `margin-padding`. They handle borders and outlines, and margins and paddings. With the refactoring I was able to remove all `$*-border-pos` variables. The position of borders is handled through `$*-border-width` which takes up to 4 arguments in the following clockwise order TRBL \(Top Right Bottom Left \). Similarly `$*-border-style` and `$*-border-color` can take up to 4 arguments. Outline ignores all but the 1st argument and can take an offset argument. There's an error check mixin `border-outline-check` that displays warnings if you add too many arguments of try to offset the border.
224
265
 
225
266
 
@@ -18,8 +18,8 @@ Compass::Frameworks.register('compass-pattern-primer', :path => extension_path)
18
18
  # a prerelease version
19
19
  # Date is in the form of YYYY-MM-DD
20
20
  module Compass_Pattern_Primer
21
- VERSION = "0.3.beta"
22
- DATE = "2013-10-13"
21
+ VERSION = "0.4.beta"
22
+ DATE = "2013-10-21"
23
23
  end
24
24
 
25
25
  # This is where any custom SassScript should be placed. The functions will be
@@ -2,10 +2,4 @@
2
2
 
3
3
  @import "compass-pattern-primer/partials/_mixins";
4
4
  @import "compass-pattern-primer/partials/_functions";
5
- @import "compass-pattern-primer/partials/variables/_variables";
6
- @import "compass-pattern-primer/partials/_extendables";
7
- @import "compass-pattern-primer/partials/_colors";
8
-
9
- @import "compass-pattern-primer/base";
10
- @import "compass-pattern-primer/modules";
11
-
5
+ @import "compass-pattern-primer/partials/_extendables";
@@ -1,5 +1,3 @@
1
1
  @import "compass-pattern-primer/partials/_mixins";
2
2
  @import "compass-pattern-primer/partials/_functions";
3
- @import "compass-pattern-primer/partials/_variables";
4
- @import "compass-pattern-primer/partials/_extendables";
5
- @import "compass-pattern-primer/partials/_colors";
3
+ @import "compass-pattern-primer/partials/_extendables";
@@ -1,3 +1,4 @@
1
+ // reworking of compass @incliude force-wrap
1
2
  %force-wrap {
2
3
  //@include force-wrap; // this is the output
3
4
  white-space: pre;
@@ -9,191 +10,3 @@
9
10
  white-space: -hp-pre-wrap;
10
11
  word-wrap: break-word;
11
12
  }
12
- %formstyle {
13
- background-color: $forms-background-color;
14
- width: $forms-input-width;
15
- font-family: inherit;
16
- font-size: inherit;
17
- @include margin-padding(padding, $forms-padding);
18
- @include border-outline(border, $forms-border-width, $forms-border-style, $forms-border-color);
19
- @include border-radius($forms-border-radius);
20
- &:focus {
21
- border-color: $forms-focus-border-color;
22
- }
23
- }
24
- %btn-all {
25
- width: auto;
26
- text-align: center;
27
- font-family: $button-font-family;
28
- font-size: inherit;
29
- font-weight: normal;
30
- font-style: normal;
31
- @include border-outline(border, $button-border-width, $button-border-style, $button-border-color);
32
- cursor: pointer;
33
- @include margin-padding(padding, $button-padding);
34
- line-height: 1;
35
- @include border-radius($button-border-radius);
36
- }
37
-
38
- %button {
39
- @extend %btn-all;
40
- @include simple-background-gradient($button-color, $button-gradient-pos, $button-gradient-stop-1, $button-gradient-stop-2);
41
- @include text-shadow($button-text-shadow);
42
- &:hover,
43
- &:focus {
44
- @include text-shadow($button-hover-text-shadow);
45
- @include simple-background-gradient($button-hover-color, $button-hover-gradient-pos, $button-hover-gradient-stop-1, $button-hover-gradient-stop-2);
46
- }
47
- &:active {
48
- @include text-shadow($button-active-text-shadow);
49
- @include simple-background-gradient($button-active-color, $button-active-gradient-pos, $button-active-gradient-stop-1, $button-active-gradient-stop-2);
50
- }
51
- }
52
-
53
- %button-active {
54
- @extend %btn-all;
55
- @include text-shadow($button-action-text-shadow);
56
- @include simple-background-gradient($button-action-color, $button-action-gradient-pos, $button-action-gradient-stop-1, $button-action-gradient-stop-2);
57
- &:hover,
58
- &:focus {
59
- @include text-shadow($button-action-hover-text-shadow);
60
- @include simple-background-gradient($button-action-hover-color, $button-action-hover-gradient-pos, $button-action-hover-gradient-stop-1, $button-action-hover-gradient-stop-2);
61
- }
62
- &:active {
63
- @include text-shadow($button-action-active-text-shadow);
64
- @include simple-background-gradient($button-action-active-color, $button-action-active-gradient-pos, $button-action-active-gradient-stop-1, $button-action-active-gradient-stop-2);
65
- }
66
- }
67
-
68
- %button-cancel {
69
- @extend %btn-all;
70
- @include text-shadow($button-cancel-text-shadow);
71
- @include simple-background-gradient($button-cancel-color, $button-cancel-gradient-pos, $button-cancel-gradient-stop-1, $button-cancel-gradient-stop-2);
72
- &:hover,
73
- &:focus {
74
- @include text-shadow($button-cancel-hover-text-shadow);
75
- @include simple-background-gradient($button-cancel-hover-color, $button-cancel-hover-gradient-pos, $button-cancel-hover-gradient-stop-1, $button-cancel-hover-gradient-stop-2);
76
- }
77
- &:active {
78
- @include text-shadow($button-cancel-active-text-shadow);
79
- @include simple-background-gradient($button-cancel-active-color, $button-cancel-active-gradient-pos, $button-cancel-active-gradient-stop-1, $button-cancel-active-gradient-stop-2);
80
- }
81
- }
82
-
83
- %button-disabled {
84
- @extend %btn-all;
85
- @include text-shadow($button-disabled-text-shadow);
86
- opacity: $button-disabled-opacity;
87
- @include simple-background-gradient($button-disabled-color, $button-disabled-gradient-pos, $button-disabled-gradient-stop-1, $button-disabled-gradient-stop-2);
88
- &:hover,
89
- &:focus,
90
- &:active {
91
- @extend %button-disabled;
92
- }
93
- }
94
-
95
- %controls {
96
- font-family: $controls-font-family;
97
- display: inline-block;
98
- font-size: $controls-font-size;
99
- @include margin-padding(padding, $controls-padding);
100
- line-height: 1;
101
- @include border-outline(border, $controls-border-width, $controls-border-style, $controls-border-color);
102
- @include border-radius($controls-border-radius);
103
- background-clip: padding-box;
104
- &:link,
105
- &:visited {
106
- @include simple-background-gradient($controls-visited-color, $controls-visited-gradient-pos, $controls-visited-gradient-stop-1, $controls-visited-gradient-stop-2);
107
- }
108
- &:hover,
109
- &:focus {
110
- outline: none;
111
- @include simple-background-gradient($controls-hover-color, $controls-hover-gradient-pos, $controls-hover-gradient-stop-1, $controls-hover-gradient-stop-2);
112
- }
113
- &:active {
114
- @include simple-background-gradient($controls-active-color, $controls-active-gradient-pos, $controls-active-gradient-stop-1, $controls-active-gradient-stop-2);
115
- }
116
- }
117
-
118
- %feedback {
119
- @include margin-padding(padding, $feedback-padding);
120
- @include margin-padding(margin, $feedback-margin);
121
- color: $feedback-color;
122
- background-color: $feedback-background;
123
- @include border-outline(border, $feedback-border-width, $feedback-border-style, $feedback-border-color);
124
- @include border-radius($feedback-border-radius);
125
- background-clip: padding-box;
126
- a {
127
- color: $feedback-color;
128
- @include bold-italic-uppercase-variant($feedback-a-font-bold, $feedback-a-font-italic, $feedback-a-font-uppercase, $feedback-a-font-variant);
129
- }
130
- }
131
-
132
- %error {
133
- background-color: $feedback-error-background;
134
- color: $feedback-error-color;
135
- border-color: $feedback-error-border-color;
136
- a {
137
- color: $feedback-error-color;
138
- }
139
- }
140
-
141
- %warning {
142
- background-color: $feedback-warning-background;
143
- color: $feedback-warning-color;
144
- border-color: $feedback-warning-border-color;
145
- a {
146
- color: $feedback-warning-color;
147
- }
148
- }
149
-
150
- %options {
151
- list-style: $options-list-style;
152
- @include border-outline(border, $options-border-width, $options-border-style, $options-border-color);
153
- li {
154
- text-indent: $options-li-text-indent;
155
- font-family: $options-li-font-family;
156
- text-transform: $options-li-text-transform;
157
- letter-spacing: $options-li-letter-spacing;
158
- font-weight: $options-li-font-weight;
159
- @include margin-padding(margin, $options-li-margin);
160
- @include margin-padding(padding, $options-li-padding);
161
- @include border-outline(border, $options-li-border-width, $options-li-border-style, $options-li-border-color);
162
- }
163
- a {
164
- display: block;
165
- @include border-outline(border, $options-a-border-width, $options-a-border-style, $options-a-border-color);
166
- }
167
- }
168
-
169
- %pagination {
170
- font-family: $pagination-font-family;
171
- li {
172
- display: $pagination-li-display;
173
- @include margin-padding(margin, $pagination-li-margin, $pagination-li-margin-pos);
174
- text-indent: $pagination-text-indent;
175
- }
176
- a {
177
- display: $pagination-a-display;
178
- @include margin-padding(padding, $pagination-a-padding);
179
- line-height: $pagination-a-line-height;
180
- @include margin-padding(margin, $pagination-a-margin);
181
- @include border-outline(border, $pagination-a-border-width, $pagination-a-border-style, $pagination-a-border-color);
182
- @include border-radius($pagination-a-border-radius);
183
- background-clip: padding-box;
184
- &:link,
185
- &:visited {
186
- color: $pagination-link-color;
187
- background-color: $pagination-link-background-color;
188
- }
189
- &[href]:hover,
190
- &[href]:focus {
191
- color: $pagination-link-hover-color;
192
- background-color: $pagination-link-hover-background-color;
193
- }
194
- &:active {
195
- color: $pagination-link-active-color;
196
- background-color: $pagination-link-active-background-color;
197
- }
198
- }
199
- }