stipe 0.0.4.8 → 0.0.4.9

Sign up to get free protection for your applications and to get access to all the features.
data/readme.md CHANGED
@@ -11,10 +11,6 @@ To use the Stipe gem, using Bundler `gem 'stipe'`
11
11
 
12
12
  Stipe is a Compass Extension, so Compass is set as a depdency. You will need to include `require 'stipe'` in your config.rb file.
13
13
 
14
- ##Sass / Compass
15
- **(BLEEDING EDGE ALERT)** Toadstool is using ``3.2.0.alpha.*``
16
- For [reasons explained](/Anotheruiguy/toadstool/blob/master/doc-src/exploited-bug.md) please continue using the alpha gem and upgrading to Sass 3.2 will break Toadstool and Stipe.
17
-
18
14
  # Stipe Changelog
19
15
  ## 0.0.4.8
20
16
  * Updated typography extends to better minimize headings styles
@@ -29,42 +25,4 @@ For [reasons explained](/Anotheruiguy/toadstool/blob/master/doc-src/exploited-bu
29
25
  * Addressed bug with vendor prefix variables
30
26
 
31
27
  ## 0.0.4.0
32
- * Deprecated legacy `@mixin placeholder` Will be deleted from future releases of the library
33
-
34
- ## 0.0.3.9
35
- * Addressed no-boxsizing calculation in grid to account for a border on a single side
36
- * Added support for a grid debug view
37
-
38
- ## 0.0.3.8
39
- * Addressed bugs with new Flexbox spec ... yeah, I did it wrong ;(
40
-
41
- ## 0.0.3.7
42
- * Updates to Toadstool nav and grid display for legacy browsers
43
- * Updates to flexbox to support legacy and new based on current support
44
-
45
- ## 0.0.3.5
46
- * Updated code blocks to be 100% of view versus two columns by default
47
-
48
- ## 0.0.3.4
49
- * Updated default text to have text-adjust set to none.
50
-
51
- ## 0.0.3.3
52
- * Updates to grid soluiton for legacy browser support
53
-
54
- ## 0.0.3.2
55
- * Updates to how default color extends are created in `toadstool.css`
56
- ** Created new `readme.md` in Stipe's color directory
57
- * Modifications to css for Toadstool's style guide look and feel. Addressed bugs with styles stomping on generic tags in prototype views
58
-
59
- ## 0.0.2.8/0.0.2.9
60
- * Updated Toadstool Sass to use better named spaced class for main content block.
61
- ** Changed .main_content to .toadstool_main_contnet
62
-
63
- ## 0.0.2.7
64
- * Sass and UI work related to default form views
65
-
66
- ## 0.0.2.6
67
- * Created color views in Toadstool
68
- * Created remaining semantic color variables silent classes
69
- * Updated Toadstool `_design / _ui_manifest.scss`
70
-
28
+ * Deprecated legacy `@mixin placeholder` Will be deleted from future releases of the library
@@ -3,6 +3,6 @@
3
3
  // Preferred uses include @extend %class; or repurpose the mixin within the class.
4
4
  //
5
5
 
6
- @import "color/default_color_pallet";
6
+ @import "color/default_color_palette";
7
7
  //@import "color/extends";
8
8
 
@@ -3,7 +3,7 @@
3
3
  // -----------------------------------------------------------------
4
4
 
5
5
 
6
- @import "../color/default_color_pallet";
6
+ @import "../color/default_color_palette";
7
7
 
8
8
 
9
9
  // *-------------------------------------------------------------------------------
@@ -60,7 +60,7 @@ $heading_font_family: #{'Lato', sans-serif} !default;
60
60
  // -----------------------------------------------------------------------------
61
61
  // This is a bootstrap template for creating an array of colors
62
62
  // If this is not for you, feel free to comment out
63
- @import "stipe/color/default_color_pallet";
63
+ @import "stipe/color/default_color_palette";
64
64
 
65
65
  // Don't like Stipe's color pallet, no worries. Uncomment these lines and go for it!
66
66
  // @import "color/color_math";
@@ -47,6 +47,18 @@ html {
47
47
  }
48
48
  }
49
49
 
50
+ // This is used to keep heading examples from poorly wrapping in mobile
51
+ .element_example {
52
+ @media #{$mobile} {
53
+ h1, h2, h3, h4, h5, h6 {
54
+ width: auto;
55
+ white-space: nowrap;
56
+ overflow: hidden;
57
+ text-overflow: ellipsis;
58
+ }
59
+ }
60
+ }
61
+
50
62
 
51
63
 
52
64
  h3 {
@@ -0,0 +1,68 @@
1
+ #Headings
2
+
3
+ Stipe's and Toadstool's approach to headings is more of a semantic use versus a presentational presetting of markup tags.
4
+
5
+ Typically most will default style the `h1 - h6` tags and then this will be the referential design statement for the application. But there will be cases for SEO and other related semantic reasons that you will not want a `h1` to look like the 'h1'.
6
+
7
+ ##So, how do we do this?
8
+ In Stipe's [default typography](http://goo.gl/V81v3) settings, you will see that there are default styles set for `h1 - h6` tags. This is to set the base and simplify standard UI development.
9
+
10
+ ```scss
11
+ h1 {
12
+ //font-size: 2em; // user agent default
13
+ @extend %headings_1;
14
+ }
15
+
16
+ h2 {
17
+ //font-size: 1.5em; // user agent default
18
+ @extend %headings_2;
19
+ }
20
+ ```
21
+
22
+ It is the `@extend` where all the magic happens. These extends are created like so from the [typography mixins](http://goo.gl/xdnQm)
23
+
24
+ ```scss
25
+ %headings_1 {
26
+ @include heading();
27
+ }
28
+
29
+ %headings_2 {
30
+ @extend %headings_1;
31
+ @include text($heading_2);
32
+ }
33
+ ```
34
+
35
+ As a result we get the following CSS
36
+
37
+ ```CSS
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
+
40
+ h2 { font-size: 2.66667em; line-height: 1.125em; margin-bottom: 0.5625em; }
41
+ ```
42
+
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
+
45
+ ```SCSS
46
+ .name_space {
47
+ h1 {
48
+ @extend %headings_2;
49
+ }
50
+ }
51
+ ```
52
+
53
+ Which gives us the following CSS
54
+
55
+ ```CSS
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
+
58
+ h2, .name_space h1 { font-size: 2.66667em; line-height: 1.125em; margin-bottom: 0.5625em; }
59
+ ```
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
+
@@ -0,0 +1,24 @@
1
+ #General typography
2
+
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
+
5
+ ##Typography functions
6
+ The functions indludes 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
+
8
+ ##Typography defaults
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
+
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.
13
+
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.
16
+
17
+ ##The ems have it
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
+
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.
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);`.
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.
@@ -0,0 +1,17 @@
1
+ #Stipe's predefined web fonts
2
+
3
+ Stipe comes pre-installed with icon font libraries `zocial` and `font-awesome`.
4
+
5
+ To activate these libraries in your Toadstool project, simple review the instructions in the [_web_fonts.scss](http://goo.gl/TCycJ) file.
6
+
7
+ Use of a icon font is pretty straight forward. Simply extend the silent placeholder like so ...
8
+
9
+ ```scss
10
+ .bookmark {
11
+ @extend %icon-bookmark;
12
+ }
13
+ ```
14
+
15
+ Stipe's pre-set values will set the appropriate font family and the character needed.
16
+
17
+ Make sure that the font fmailies are loaded in your public folder like the example in [Toadstool](http://goo.gl/ZmAuO).
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.4.8
4
+ version: 0.0.4.9
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -61,9 +61,12 @@ files:
61
61
  - stylesheets/stipe/typography/web_fonts/_zocial.scss
62
62
  - stylesheets/stipe/typography/web_fonts/_zocial_characters.scss
63
63
  - stylesheets/stipe/typography/web_fonts/_font_awesome.scss
64
+ - stylesheets/stipe/typography/web_fonts/readme.md
64
65
  - stylesheets/stipe/typography/_mixins.scss
65
66
  - stylesheets/stipe/typography/_default.scss
67
+ - stylesheets/stipe/typography/headings.md
66
68
  - stylesheets/stipe/typography/_functions.scss
69
+ - stylesheets/stipe/typography/readme.md
67
70
  - stylesheets/stipe/typography/_extends.scss
68
71
  - stylesheets/stipe/_buttons.scss
69
72
  - stylesheets/stipe/resets/_eric_meyer.scss
@@ -101,7 +104,7 @@ files:
101
104
  - stylesheets/stipe/_gradients.scss
102
105
  - stylesheets/stipe/_forms.scss
103
106
  - stylesheets/stipe/color/_grayscale_math.scss
104
- - stylesheets/stipe/color/_default_color_pallet.scss
107
+ - stylesheets/stipe/color/_default_color_palette.scss
105
108
  - stylesheets/stipe/color/_color_math.scss
106
109
  - stylesheets/stipe/color/_extends_deprecated.scss
107
110
  - stylesheets/stipe/color/readme.md