stipe 0.0.6.3 → 0.0.6.4

Sign up to get free protection for your applications and to get access to all the features.
data/readme.md CHANGED
@@ -1,84 +1,91 @@
1
- #Stipe Compass Extension
2
- Stipe is the life blood of the Toadstool style guide framework. Consisting of a series of mixins, extends and defaults that give Toadstool that 'instant on' experience.
1
+ # Stipe Compass Extension
2
+ Stipe is the core of the Toadstool style guide framework, providing of mixins, placeholder classes, and sensible defaults that give Toadstool that 'instant on' experience.
3
3
 
4
4
  [Stipe](https://rubygems.org/gems/stipe)
5
5
 
6
- ##To install
6
+ ## To install
7
7
  `gem install stipe`
8
8
 
9
- ##To use
9
+ ## To use
10
10
  To use the Stipe gem, using Bundler `gem 'stipe'`
11
11
 
12
- Stipe is a Compass Extension, so Compass is a dependency. You will need to include `require 'stipe'` in your config.rb file.
12
+ Stipe is a Compass extension, so Compass is a dependency. You will need to include `require 'stipe'` in your config.rb file.
13
13
 
14
14
  # Stipe Changelog
15
15
 
16
- ###0.0.6.3
17
16
 
18
- * Fix `-moz-placeholder` psuedo-selector syntax. Apparently requires two colons.
17
+ ### 0.0.6.4
18
+ * Remove `max-width` from desktop @media query.
19
+ * Remove `:link` pseudo-selector from `a` default styling in typography.
20
+ * Typography clean up and bug fixes.
21
+ * (Slightly) better grid documentation.
22
+ * Clean up READMEs.
19
23
 
20
- ###0.0.6.2
24
+ ### 0.0.6.3
25
+ * Fix `-moz-placeholder` pseudo-selector syntax. Apparently requires two colons.
26
+
27
+ ### 0.0.6.2
21
28
  * Make `push`/`pull` grid mixins accept context arguments. Useful for nested, percentage-based grids.
22
29
 
23
- ###0.0.6.1
24
- * Tweak `the_grid` to work with 24 column default setting
30
+ ### 0.0.6.1
31
+ * Tweak `the_grid` to work with 24 column default setting.
25
32
 
26
- ###0.0.6.0
27
- * Updated `@clearfix` to remove redundant CSS output.
28
- * Added some additional @media query-scoped grid placeholders.
29
- * Updated gem homepage.
33
+ ### 0.0.6.0
34
+ * Update `@clearfix` to remove redundant CSS output.
35
+ * Add some additional @media query-scoped grid placeholders.
36
+ * Update gem homepage.
30
37
 
31
- ###0.0.5.9
32
- * Removed uneccessary instances of the box-sizing mixin, namely, in the push/pull mixins.
33
- * Added _legacy_extends.scss file to stipe/grid. This is an optional @import, not included in the Stipe manifest. It restores some legacy placeholders. Consider it deprecated.
38
+ ### 0.0.5.9
39
+ * Remove uneccessary instances of the box-sizing mixin, mainly in the push/pull mixins.
40
+ * Adde _legacy_extends.scss file to stipe/grid. This is an optional @import, not included in the Stipe manifest. It restores some legacy placeholders. Consider it deprecated.
34
41
 
35
- ###0.0.5.8
42
+ ### 0.0.5.8
36
43
  * Move grid extends to load last in style.scss manifest - when using the extended grid solution, this will move all your media queries to the end of the stylesheet.
37
- * Removed support for Font-Awesome and Zocial ico-fonts
38
- * Replaced with new and improved "build your own" ico-font solution
39
- * General bug fixes
44
+ * Remove support for Font-Awesome and Zocial ico-fonts.
45
+ * Replace with new and improved "build your own" ico-font solution.
46
+ * General bug fixes.
40
47
 
41
- ###0.0.5.7.9
42
- * BUG FIX - Addressed duplicate output for 12 col and 24 col nested placeholder selectors
48
+ ### 0.0.5.7.9
49
+ * BUG FIX - Addressed duplicate output for 12 col and 24 col nested placeholder selectors.
43
50
 
44
- ###0.0.5.7.8
45
- * ALERT!!!! Deprecated Stipe's gradient support. This code will be deleted in future releases. Please make sure to update all gradients to use Compass' `@include background-image` mixin
51
+ ### 0.0.5.7.8
52
+ * ALERT!!!! Stipe's gradient support is now deprecated. This code will be deleted in future releases. Please make sure to update all gradients to use Compass' `@include background-image` mixin.
46
53
  * Grids have been updated to support a larger array of placeholder classes for both 12 col and 24 col grid layouts.
47
- * New experimental support for placeholder selectors and nested grids
54
+ * New experimental support for placeholder selectors and nested grids.
48
55
 
49
- ###0.0.5.7.7
50
- * Update grid - move box-sizing from grid scope to global attribute
51
- * Deprecate Stipe's grid solution in favor of using Compass
56
+ ### 0.0.5.7.7
57
+ * Update grid - move box-sizing from grid scope to global attribute.
58
+ * Deprecate Stipe's grid solution in favor of using Compass.
52
59
 
53
- ###0.0.5.7.6
60
+ ### 0.0.5.7.6
54
61
  * Restore `-ms-linear-gradient(...)` in `linear_gradient_w3c()` mixin. Because Jed has no idea what he's doing.
55
62
 
56
- ###0.0.5.7.5
57
- * Replaced `-ms-linear-gradient(...)` with `linear-gradient(..)` in `linear_gradient_w3c()` mixin.
63
+ ### 0.0.5.7.5
64
+ * Replace `-ms-linear-gradient(...)` with `linear-gradient(..)` in `linear_gradient_w3c()` mixin.
58
65
 
59
- ###0.0.5.7.4
60
- * Updated `_forms.scss` to support legacy versions of extends
66
+ ### 0.0.5.7.4
67
+ * Update `_forms.scss` to support legacy versions of extends.
61
68
 
62
- ###0.0.5.7.3
63
- * Removed sass-globbing dependency in stipe itself
69
+ ### 0.0.5.7.3
70
+ * Remove sass-globbing dependency in Stipe itself.
64
71
 
65
- ###0.0.5.7.2
66
- * Commonly named color values (aquamarine, white, Crimson, etc) need to be put in `' '` when processed through Rails
72
+ ### 0.0.5.7.2
73
+ * Commonly named color values (`aquamarine`, `white`, `crimson`, etc) need to be put in `' '` when processed through Rails.
67
74
 
68
- ###0.0.5.7.1
75
+ ### 0.0.5.7.1
69
76
  * Added `!optional` flag to Toadstool generated extended placeholder selectors to address backwards compatibility.
70
- * If Sass still pukes on not finding the placeholders to extend, either the name was updated or simple add `!optional` to the end of the extend declaration.
71
- * For the most part this would be restricted to `_buttons.scss` and `_forms.scss`
72
-
73
- ###0.0.5.7
74
- * Over-hauled color palette CSS
75
- * Updated forms extends to include `stipe_` in the name to increase visibility of where code is coming from in Toadstool
76
- * Added UI for `contenteditable` new functionality
77
- * Old button lib is dead
78
- * All new buttons is alive
79
- * Updates to `/stipe/stylesheets/stipe/toadstool/ui_patterns/_color_grid.scss`
80
- * Added new `extend_color_loop` mixin
81
- * Dynamically looping through list of OOCSS names to create color block classes
82
- * New `extend_color_loop` mixin
83
- * Added to `/stipe/stylesheets/stipe/toadstool/ui_patterns/_color_grid.scss`
84
- * All extends generated in memory from lists of objects
77
+ * If Sass still pukes on not finding the placeholders to extend, either the name was updated or simply add `!optional` to the end of the extend declaration.
78
+ * For the most part this would be restricted to `_buttons.scss` and `_forms.scss`.
79
+
80
+ ### 0.0.5.7
81
+ * Over-haul color palette CSS.
82
+ * Update forms extends to include `stipe_` in the name to increase visibility of where code is coming from in Toadstool.
83
+ * Add UI for `contenteditable` new functionality.
84
+ * Old button lib is dead.
85
+ * All new buttons is alive.
86
+ * Updates to `/stipe/stylesheets/stipe/toadstool/ui_patterns/_color_grid.scss`.
87
+ * Add new `extend_color_loop` mixin.
88
+ * Dynamically looping through list of OOCSS names to create color block classes.
89
+ * New `extend_color_loop` mixins.
90
+ * Add to `/stipe/stylesheets/stipe/toadstool/ui_patterns/_color_grid.scss`.
91
+ * All extends generated in memory from lists of objects.
@@ -5,15 +5,15 @@
5
5
 
6
6
  $mobile: "screen and (max-width: 40em)" !default;
7
7
  $mobile_portrait: "screen and (max-width: 40em) and (orientation : portrait)" !default;
8
- $mobile_landscape: "screen and (max-width: 40em) and (orientation : landscape)" !default;
8
+ $mobile_landscape: "screen and (max-width: 40em) and (orientation : landscape)" !default;
9
9
 
10
10
  $tablet: "screen and (max-width: 64em)" !default;
11
11
  $tablet_portrait: "screen and (max-width: 64em) and (orientation: portrait)" !default;
12
12
  $tablet_landscape: "screen and (max-width: 64em) and (orientation: landscape)" !default;
13
13
 
14
- $desktop: "screen and (max-width: 120em) and (min-width: 50em)" !default;
14
+ $desktop: "screen and (min-width: 50em)" !default;
15
15
 
16
- $hidpi: "(-webkit-min-device-pixel-ratio: 1.3),
17
- (-o-min-device-pixel-ratio: 2.6/2),
18
- (min--moz-device-pixel-ratio: 1.3),
19
- (min-device-pixel-ratio: 1.3),(min-resolution: 1.3dppx)" !default;
16
+ $hidpi: "(-webkit-min-device-pixel-ratio: 1.3),
17
+ (-o-min-device-pixel-ratio: 2.6/2),
18
+ (min--moz-device-pixel-ratio: 1.3),
19
+ (min-device-pixel-ratio: 1.3),(min-resolution: 1.3dppx)" !default;
@@ -4,5 +4,5 @@ In your Toadstool style guide, `style.scss` calls in local `_config.scss`. Local
4
4
 
5
5
  `color/color_math` imports `stipe/color/default_color_pallet` to ensure that un-updated default values are carried forward.
6
6
 
7
- In your Toadstool style guide`toadstool.scss` imports `color/extends.scss` from the local style guide so that the extends have the correct color reference. But it is in `stipe/toadstool/ui_patterns/_color_grid.scss` where these extended values are given classes that only appear in the `toadstool.css`. This principle is needed so that the site's extends will create colors from the appropiate context and the presentational classes only live in the `toadstool.css` doc.
7
+ In your Toadstool style guide`toadstool.scss` imports `color/extends.scss` from the local style guide so that the extends have the correct color reference. But it is in `stipe/toadstool/ui_patterns/_color_grid.scss` where these extended values are given classes that only appear in the `toadstool.css`. This principle is needed so that the site's extends will create colors from the appropriate context and the presentational classes only live in the `toadstool.css` doc.
8
8
 
@@ -1,32 +1,34 @@
1
- #Grids
2
- Stipe's grid system is based on the original 960.gs solution. Whereas there are concepts like columns, gutters and nesting.
1
+ # Grids
2
+ Stipe provides 12, 16, and 24 column grids based on the original [960.gs](http://960.gs/) solution.
3
3
 
4
4
 
5
- ##Placeholder classes
6
- For the most part when framing a UI, simply extend already pre-defned placeholder classes like `@extend %grid_4of12`, for example. Stipe's placeholder classes come with support for tablet and mobile devices.
5
+ ## Placeholder classes
6
+ You can use the grid without placing presentational classes on your markup by applying Stipe's placeholder classes.
7
7
 
8
- For example, using the following Sass
8
+ This Sass:
9
9
 
10
10
  ```sass
11
- .grid-block {
12
- @extend %grid_4of12;
11
+ nav {
12
+ @extend %grid_12of12;
13
+
13
14
  @media #{$mobile} {
14
15
  @extend %grid_4of4;
15
16
  }
16
17
  }
17
18
 
18
- .left-nav {
19
+ .gallery img {
19
20
  @extend %grid_4of12;
21
+
20
22
  @media #{$mobile} {
21
23
  @extend %grid_4of4;
22
24
  }
23
25
  }
24
26
  ```
25
27
 
26
- You will get the following CSS
28
+ Yields this CSS:
27
29
 
28
30
  ```css
29
- .grid-block, .left-nav {
31
+ nav, .gallery img {
30
32
  float: left;
31
33
  margin-left: 1.04167%;
32
34
  margin-right: 1.04167%;
@@ -34,7 +36,7 @@ You will get the following CSS
34
36
  }
35
37
 
36
38
  @media screen and (max-width: 40em) {
37
- .grid-block, .left-nav {
39
+ nav, .gallery img {
38
40
  float: left;
39
41
  margin-left: 3.125%;
40
42
  margin-right: 3.125%;
@@ -43,12 +45,13 @@ You will get the following CSS
43
45
  }
44
46
  ```
45
47
 
46
- ##Building custom grid widths and nesting
47
- If you require more customization of a given grid, use Stipe's grid mixin `@include grid($col_count)`. Whereas you are replacing `$col_count` with the number of columns you need.
48
+ ## Building custom grid widths and nesting
49
+
50
+ If you require more customization for a given column, use Stipe's grid mixin: `@include grid($col_count)`, replacing `$col_count` with the number of columns you need.
48
51
 
49
- When nesting grids, since Stipe uses percentages, you need to make sure to reset your context.
52
+ When nesting grids, since Stipe defaults to percentages, you need to make sure to reset your context by passing in the `$grid_context` argument.
50
53
 
51
- ##Grid arguments
54
+ ## Grid arguments
52
55
  Additional arguments can be passed into the grid mixin to include `$grid_padding_l` `$grid_padding_r` `$grid_padding_tb` `$grid_border` `$border_place` `$grid_uom` `$col_gutter` `$grid_type` `$grid_align` `$grid_context`
53
56
 
54
57
  * `$grid_padding_l` => adds padding LEFT, takes integer value
@@ -60,5 +63,3 @@ Additional arguments can be passed into the grid mixin to include `$grid_padding
60
63
  * `$col_gutter` => takes integer to adjust col gutter
61
64
  * `$grid_align` => takes `center` as argument
62
65
  * `$grid_context` => Adjusts column widths based on nested grid context. Necessary when calculating with percentages
63
-
64
- Stipe uses the `box-size` CSS property, but this is not supported by IE7. By entereing values like `$grid_padding_l, $grid_padding_r, $grid_border`, Stipe will calculate a width that IE7 can use.
@@ -121,7 +121,6 @@ input, textarea, select, button {
121
121
 
122
122
  table {
123
123
  font-size: inherit;
124
- font: 100%;
125
124
  }
126
125
 
127
126
  sub, sup {
@@ -50,14 +50,10 @@ b {
50
50
  }
51
51
  }
52
52
 
53
-
54
- // :link Pseudo-class is totally not necessary as I can tell
55
- // code here to combat legacy code
56
53
  a {
57
- &:link {
58
- color: $href_color;
59
- text-decoration: none;
60
- }
54
+ color: $href_color;
55
+ text-decoration: none;
56
+
61
57
  &:hover, &:active {
62
58
  text-decoration: underline;
63
59
  }
@@ -35,6 +35,7 @@
35
35
  }
36
36
 
37
37
 
38
+
38
39
  %small {
39
40
  @include small;
40
41
  }
@@ -49,8 +50,6 @@
49
50
 
50
51
 
51
52
 
52
-
53
-
54
53
  //* Font family classes */
55
54
  %primary_font_family {
56
55
  font-family: $primary_font_family;
@@ -66,8 +65,6 @@
66
65
 
67
66
 
68
67
 
69
-
70
-
71
68
  //* Hide Text, Kellum Method */
72
69
  %hide_text {
73
70
  @include hide_text;
@@ -75,7 +72,6 @@
75
72
 
76
73
 
77
74
 
78
-
79
75
  //* Standard content block styling */
80
76
  %bulleted_list {
81
77
  @include bulleted_list;
@@ -11,7 +11,7 @@
11
11
  // Baseline height calculations
12
12
  // line-height: baseline($baseline_size);
13
13
  @function baseline($baseline_size) {
14
- @return ($line / $baseline_size) * ceil($baseline_size / $line) * 1em;
14
+ @return ($line / $baseline_size) * ceil($baseline_size / $line) * 1;
15
15
  }
16
16
 
17
17
  // Baseline margin calculations
@@ -22,12 +22,14 @@
22
22
  margin-bottom: baseline-margin($baseline_size);
23
23
  }
24
24
  @else if $margin == 0 {
25
- margin-bottom: 0;
25
+ // no op
26
+ }
27
+ @else {
28
+ margin-bottom: em($margin);
26
29
  }
27
30
  }
28
31
 
29
32
 
30
-
31
33
  //////// standard text mixins //////////
32
34
  // ------------------------------------------------
33
35
  @mixin small ($baseline_size: $small_point_size) {
@@ -43,8 +45,6 @@
43
45
  }
44
46
 
45
47
 
46
-
47
-
48
48
  ////////// Standard bulleted list //////////////
49
49
  // --------------------------------------------
50
50
  @mixin bulleted_list {
@@ -34,7 +34,7 @@ It is the `@extend` where all the magic happens. These extends are created like
34
34
 
35
35
  As a result we get the following CSS
36
36
 
37
- ```CSS
37
+ ```css
38
38
  h2, h1 { font-size: 3.83333em; line-height: 1.17391em; margin-bottom: 0.3913em; color: #333333; font-weight: normal; font-family: "Helvetica Neue", Arial, sans-serif; }
39
39
 
40
40
  h2 { font-size: 2.66667em; line-height: 1.125em; margin-bottom: 0.5625em; }
@@ -42,7 +42,7 @@ h2 { font-size: 2.66667em; line-height: 1.125em; margin-bottom: 0.5625em; }
42
42
 
43
43
  So lets say that in your design spec you will want to make a leading header in the view an `h1` but you want it to look like the `h2`? Well, through the magic of Sass, we can make this happen like so properly using the `@extend` function.
44
44
 
45
- ```SCSS
45
+ ```scss
46
46
  .name_space {
47
47
  h1 {
48
48
  @extend %headings_2;
@@ -52,17 +52,10 @@ So lets say that in your design spec you will want to make a leading header in t
52
52
 
53
53
  Which gives us the following CSS
54
54
 
55
- ```CSS
55
+ ```css
56
56
  h2, .name_space h1, h1 { font-size: 3.83333em; line-height: 1.17391em; margin-bottom: 0.3913em; color: #333333; font-weight: normal; font-family: "Helvetica Neue", Arial, sans-serif; }
57
57
 
58
58
  h2, .name_space h1 { font-size: 2.66667em; line-height: 1.125em; margin-bottom: 0.5625em; }
59
59
  ```
60
60
 
61
- So what we gain here is the ability to seperate the semantics of heading tags from the look of the headers. Using the `@extend` function and how Stipe's architecture, we are able to redefine our CSS as needed without unnecessary duplicating style rules.
62
-
63
-
64
-
65
-
66
-
67
-
68
-
61
+ So what we gain here is the ability to separate the semantics of heading tags from the look of the headers. Using the `@extend` function and how Stipe's architecture, we are able to redefine our CSS as needed without unnecessary duplicating style rules.
@@ -3,22 +3,22 @@
3
3
  Much of your Typography has already been addressed with Toadstool. Simply use [Toadstool's config file](http://goo.gl/PqQSK) to address your `$font_size, $heading_1 - 6, $small_point_size and $large_point_size`. As well designate your `$primary_font_family, $secondary_font_family and $heading_font_family` variables.
4
4
 
5
5
  ##Typography functions
6
- The functions indluded here are the part of Toadstool's design foundation. Functions for calculating `em` and `rem` values as well as calculating baseline heights for vertical rhythm.
6
+ The functions included here are the part of Toadstool's design foundation. Functions for calculating `em` and `rem` values as well as calculating baseline heights for vertical rhythm.
7
7
 
8
8
  ##Typography defaults
9
9
  How does this work? Stipe's typography library contains a `_default.scss` file that is carried into the Toadstool project via the [_typograhy.scss](http://goo.gl/1YrDS) file. This file contains the basic bootstrap stylings for `html`, `h1-h6`, `p`, `b`, and `a` tags. Toadstool's [_typography.scss](http://goo.gl/d9yvC) file will mirror the default settings from Stipe. Feel free to edit as necessary, but I have found these pre-defined styles to be pretty stable.
10
10
 
11
11
  ##Typography mixns
12
- Default mixins to define headings and body text that includes the `baseline` function for automates `line-height` maangement. There are mixins for small, medium and large font sizes. A standard mixin for bulleted lists and a robust `font-face` mixin for adding new web fonts to your site.
12
+ Default mixins to define headings and body text that includes the `baseline` function for automates `line-height` management. There are mixins for small, medium and large font sizes. A standard mixin for bulleted lists and a robust `font-face` mixin for adding new web fonts to your site.
13
13
 
14
14
  ##Typography extends
15
- Part of the Stipe API is the use of [extends](http://goo.gl/iJfy9) for general use typography. Making use of these silent selectors will halp to keep your UI consistent and your CSS nice and lean. These extends take advantage of the mixins already installed in Stipe. Uses included are headings 1-6, small, medium, and large font sizes, primary, secondary and heading font-families.
15
+ Part of the Stipe API is the use of [extends](http://goo.gl/iJfy9) for general use typography. Making use of these silent selectors will help to keep your UI consistent and your CSS nice and lean. These extends take advantage of the mixins already installed in Stipe. Uses included are headings 1-6, small, medium, and large font sizes, primary, secondary and heading font-families.
16
16
 
17
17
  ##The ems have it
18
18
  It should be noted that Toadstool DOES NOT USE PIXELS for any values. At any time you need use a width/height/size value, use Stipe's [em function](http://goo.gl/rK2Ae), for example: `font-size: em(12);` or `width: em(100);`. The value passed into the em function are roughly equal to a pixel size. This will help to address conversions from pixel specifications to the more flexible em value. [Why Ems?](http://css-tricks.com/why-ems/)
19
19
 
20
- Stipe's em function takes two arguments, `$target` and `$context`. By default `$context` is set to the `$font-size` you set in the your [config.scss](http://goo.gl/PqQSK) file. The function will take the value of the argument, devide it by the context and convert that to an em vlaue for the final output.
20
+ Stipe's `em` function takes two arguments, `$target` and `$context`. By default `$context` is set to the `$font-size` you set in the your [config.scss](http://goo.gl/PqQSK) file. The function will take the value of the argument, divide it by the context and convert that to an em vlaue for the final output.
21
21
 
22
- But why the second argument? The gotcha of ems is it's parental relationship. If at any time you redefined the parent font size, you need to redefine the context of this function. For example, if the partent was changed to `font-size: em(18);` and you wanted a header inside to be 24px, by resetting the context you will get the correct em value, like so: `font-size: em(24, 18);`.
22
+ But why the second argument? The gotcha of ems is it's parental relationship. If at any time you redefined the parent font size, you need to redefine the context of this function. For example, if the parent was changed to `font-size: em(18);` and you wanted a header inside to be 24px, by resetting the context you will get the correct em value, like so: `font-size: em(24, 18);`.
23
23
 
24
- Stipe also has a rem funciton that works the same way, example: `font-size: rem(24);` whereas this function takes the initial argument and devides by the font-size set in the `html` selector. Read more on rem from [snook.ca](http://goo.gl/85fhM), but use with caution, no support for IE8 and below.
24
+ Stipe also has a rem function that works the same way, example: `font-size: rem(24);` whereas this function takes the initial argument and divides by the font-size set in the `html` selector. Read more on rem from [snook.ca](http://goo.gl/85fhM), but use with caution, no support for IE8 and below.
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: stipe
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.6.3
4
+ version: 0.0.6.4
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2013-07-18 00:00:00.000000000 Z
13
+ date: 2013-11-20 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: compass