stipe 0.0.3.6 → 0.0.3.7

Sign up to get free protection for your applications and to get access to all the features.
data/readme.md CHANGED
@@ -16,6 +16,9 @@ Stipe is a Compass Extension, so Compass is set as a depdency. You will need to
16
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
17
 
18
18
  # Stipe Changelog
19
+ ## 0.0.3.7
20
+ * Updates to Toadstool nav and grid display for legacy browsers
21
+ * Updates to flexbox to support legacy and new based on current support
19
22
 
20
23
  ## 0.0.3.5
21
24
  * Updated code blocks to be 100% of view versus two columns by default
@@ -26,8 +26,12 @@ $icon_font_bravo: #{'zocial'} !default;
26
26
  // Headings default arguments
27
27
  $heading_size: $heading_1 !default;
28
28
  $heading_font_family: $heading_font_family !default;
29
- $heading_color: $primary_header_color !default;
30
29
  $heading_font_weight: normal !default;
30
+ $heading_color: $primary_header_color !default;
31
+ // $heading_color == value used mixin
32
+ // $primary_header_color == set in Stip /stipe/color/_default_color_pallet.scss
33
+ // override using Toadstool _config.scss
34
+
31
35
 
32
36
  //// !do not edit! ////
33
37
  $em: $font_size; // $em ALWAYS == $font-size
@@ -5,10 +5,10 @@
5
5
 
6
6
  // grid ----------------------
7
7
  %grid_display {
8
- border: 1px solid $charlie_gray;
9
8
  margin-bottom: 1em;
10
9
  text-align: center;
11
10
  padding: em(10) 0;
11
+ @include box_shadow (inset $shadow_color, 0 0 em(20) em(10));
12
12
  }
13
13
 
14
14
  %grid_1 {
@@ -6,15 +6,15 @@
6
6
  // All values are entered as integers and conversion math is done in the mixin.
7
7
  // Do not enter combination values such as '36em'
8
8
 
9
- @mixin grid($col_count, $grid_child, $grid_padding_l, $grid_padding_r, $grid_padding_tb, $grid_border, $grid_uom, $col_gutter, $grid_type, $grid_align, $grid_context) {
9
+ @mixin grid($col_count, $grid_child, $grid_padding_l, $grid_padding_r, $grid_padding_tb, $grid_border, $grid_uom, $col_gutter, $grid_type, $grid_align, $grid_context, $border_color) {
10
10
 
11
11
  @if $grid_type == 12 {
12
12
  $col_width: 80 - $col_gutter;
13
- @include the_grid($col_count, $col_width, $grid_uom, $grid_padding_l, $grid_padding_r, $grid_padding_tb, $grid_border, $grid_child, $col_gutter, $grid_align, $grid_context);
13
+ @include the_grid($col_count, $col_width, $grid_uom, $grid_padding_l, $grid_padding_r, $grid_padding_tb, $grid_border, $grid_child, $col_gutter, $grid_align, $grid_context, $border_color);
14
14
  }
15
15
  @else if $grid_type == 16 {
16
16
  $col_width: 60 - $col_gutter;
17
- @include the_grid($col_count, $col_width, $grid_uom, $grid_padding_l, $grid_padding_r, $grid_padding_tb, $grid_border, $grid_child, $col_gutter, $grid_align, $grid_context);
17
+ @include the_grid($col_count, $col_width, $grid_uom, $grid_padding_l, $grid_padding_r, $grid_padding_tb, $grid_border, $grid_child, $col_gutter, $grid_align, $grid_context, $border_color);
18
18
  }
19
19
  }
20
20
 
@@ -1,16 +1,21 @@
1
1
  // 'the_grid' determines width by taking column count, calculates gutter count
2
2
  // default setting for grid is ``em`` this is specified in ``_config.scss``
3
3
 
4
- @mixin the_grid($col_count, $col_width, $grid_uom, $grid_padding_l, $grid_padding_r, $grid_padding_tb, $grid_border, $grid_child, $col_gutter, $grid_align, $grid_context) {
4
+ @mixin the_grid($col_count, $col_width, $grid_uom, $grid_padding_l, $grid_padding_r, $grid_padding_tb, $grid_border, $grid_child, $col_gutter, $grid_align, $grid_context, $border_color) {
5
5
 
6
- $col_gutter_width: ($col_count - 1) * $col_gutter + ($col_count * $col_width); //determines full col width with gutters
6
+ //determines full col width with gutters
7
+ $col_gutter_width: ($col_count - 1) * $col_gutter + ($col_count * $col_width);
7
8
 
8
- $grid_context_width: $grid_context * 80; // determines width of contextual grid block for calculating percentages
9
+ // determines width of contextual grid block for calculating percentages
10
+ $grid_context_width: $grid_context * 80;
9
11
 
10
12
  $grid_padding_lr: $grid_padding_l + $grid_padding_r;
11
13
 
12
14
  @include grid_placement($grid_align, $grid_uom, $grid_child, $grid_context_width, $margin: $col_gutter / 2);
13
15
 
16
+ // fallback for unsupported browsers
17
+ $grid_width_fallback: $col_gutter_width - (($grid_padding_l + $grid_padding_r) + ($grid_border * 2));
18
+
14
19
  @if $grid_uom == em {
15
20
  @if $grid_border > 0 {
16
21
  border: #{$grid_border}px $standard_border_style $border_color;
@@ -32,9 +37,6 @@
32
37
  width: $grid_width;
33
38
 
34
39
 
35
- // fallback for unsupported browsers
36
- $grid_width_fallback: $col_gutter_width - (($grid_padding_lr * 2) + ($grid_border * 2));
37
-
38
40
  @if $grid_width_fallback < $col_gutter_width {
39
41
  .no-boxsizing & {
40
42
  width: #{$grid_width_fallback}px;
@@ -63,9 +65,6 @@
63
65
  }
64
66
  width: $grid_width;
65
67
 
66
- // fallback for unsupported browsers
67
- $grid_width_fallback: $col_gutter_width - (($grid_padding_lr * 2) + ($grid_border * 2));
68
-
69
68
  @if $grid_width_fallback < $col_gutter_width {
70
69
  .no-boxsizing & {
71
70
  width: $grid_width_fallback / $grid_context_width * 100%;
@@ -88,9 +87,6 @@
88
87
  }
89
88
  width: $grid_width;
90
89
 
91
- // fallback for unsupported browsers
92
- $grid_width_fallback: $col_gutter_width - (($grid_padding_lr * 2) + ($grid_border * 2));
93
-
94
90
  @if $grid_width_fallback < $col_gutter_width {
95
91
  .no-boxsizing & {
96
92
  width: $grid_width_fallback / $grid_context_width * 100%;
@@ -9,11 +9,11 @@
9
9
  // required default value to for vendor prefix support
10
10
  // -----------------------------------------------------
11
11
  $prefix_defaults: -moz- -webkit- -o- -ms- '' !default;
12
- $webkit_support: -webkit- '' !default;
12
+ $webkit_support: -webkit- !default;
13
13
  $moz_support: -moz- !default;
14
14
  $ms_support: -ms- !default;
15
- $moz_webkit_support: -moz- -webkit- '' !default;
16
- $moz_ms_support: -moz- -ms- '' !default;
15
+ $moz_webkit_support: -moz- -webkit- !default;
16
+ $moz_ms_support: -moz- -ms- !default;
17
17
  $webkit_ms_support: -webkit- -ms- !default;
18
18
 
19
19
 
@@ -21,67 +21,79 @@ $webkit_ms_support: -webkit- -ms- !default;
21
21
 
22
22
  /////// shadow arguments /////////
23
23
  // -------------------------------
24
- $shadow: #{$h-shadow / $em}em #{$v-shadow / $em}em #{$blur / $em}em;
25
- $inset_shadow: #{$ih-shadow / $em}em #{$iv-shadow / $em}em #{$iblur / $em}em;
24
+ // Config values for all default shadows
25
+ // -----------------------------------------------------------------------------
26
+ $h-shadow: 0 !default; // horizontal shadow settings
27
+ $v-shadow: 2 !default; // vertical shaddow settings
28
+ $blur: 3 !default; // blur settings
29
+
30
+ $inset_color: $shadow_color !default; // for use with ``dual_box_shadow`` mixin
31
+ $ih-shadow: 0 !default; // inset horizontal shadow settings
32
+ $iv-shadow: 2 !default; // inset vertical shaddow settings
33
+ $is-shadow: 2 !default; // inset spread shaddow settings
34
+ $iblur: 3 !default; // inset blur settings
35
+
36
+
37
+ $shadow: em($h-shadow) em($v-shadow) em($blur);
38
+ $inset_shadow: em($ih-shadow) em($iv-shadow) em($iblur) em($is-shadow);
26
39
 
27
40
  @mixin box_shadow ($shadow_color, $shadow, $prefixes: $prefix_defaults) {
28
- @each $prefix in $prefixes {
29
- #{$prefix}box-shadow: $shadow_color $shadow;
30
- }
41
+ @each $prefix in $prefixes {
42
+ #{$prefix}box-shadow: $shadow_color $shadow;
43
+ }
31
44
  }
32
45
 
33
46
  @mixin dual_box_shadow ($shadow_color, $shadow, $inset_color, $inset_shadow, $prefixes: $prefix_defaults) {
34
- @each $prefix in $prefixes {
35
- #{$prefix}box-shadow: $shadow_color $shadow, inset $inset_color $inset_shadow;
36
- }
47
+ @each $prefix in $prefixes {
48
+ #{$prefix}box-shadow: $shadow_color $shadow, inset $inset_color $inset_shadow;
49
+ }
37
50
  }
38
51
 
39
52
  @mixin text_shadow ($shadow_color, $shadow, $prefixes: $prefix_defaults) {
40
- @each $prefix in $prefixes {
41
- #{$prefix}text-shadow: $shadow_color $shadow;
42
- }
53
+ @each $prefix in $prefixes {
54
+ #{$prefix}text-shadow: $shadow_color $shadow;
55
+ }
43
56
  }
44
57
  /////// shadow arguments /////////
45
58
 
46
59
 
47
60
 
48
- /////// border-radius arguments /////////
61
+ /////// border-radius arguments /////////
49
62
  // --------------------------------------
50
63
  @mixin border_radius ($border_radius, $prefixes: $webkit_support) {
51
- @each $prefix in $prefixes {
52
- #{$prefix}border-radius: $border_radius;
53
- }
64
+ @each $prefix in $prefixes {
65
+ #{$prefix}border-radius: $border_radius;
66
+ }
54
67
  }
55
- /////// border-radius arguments /////////
68
+ /////// border-radius arguments /////////
56
69
 
57
70
 
58
71
 
59
- /////// box-sizing arguments /////////
72
+ /////// box-sizing arguments /////////
60
73
  // --------------------------------------
61
- @mixin box_sizing ($box_sizing: border-box, $prefixes: $moz_webkit_support) {
62
- @each $prefix in $prefixes {
63
- #{$prefix}box-sizing: $box_sizing;
64
- }
74
+ @mixin box_sizing ($box_sizing: border-box, $prefixes: $prefix_defaults) {
75
+ @each $prefix in $prefixes {
76
+ #{$prefix}box-sizing: $box_sizing;
77
+ }
65
78
  }
66
- /////// box-sizing arguments /////////
79
+ /////// box-sizing arguments /////////
67
80
 
68
81
 
69
82
 
70
- /////// input_placeholder arguments /////////
83
+ /////// input_placeholder arguments /////////
71
84
  // --------------------------------------
72
- @mixin input_placeholder ($placeholder_color, $placeholder_prefix: $moz_support, $input-placeholder_prefix: $webkit_ms_support) {
73
- @each $prefix in $input-placeholder_prefix {
74
- &::#{$prefix}input-placeholder {
75
- color: $placeholder_color;
76
- }
77
- }
78
- @each $prefix in $placeholder_prefix {
79
- &:#{$prefix}placeholder {
80
- color: $placeholder_color;
81
- }
82
- }
85
+ @mixin input_placeholder ($placeholder_color: $placeholder_color) {
86
+ &::-webkit-input-placeholder {
87
+ color: $placeholder_color;
88
+ }
89
+ &:-moz-placeholder {
90
+ color: $placeholder_color;
91
+ }
92
+ &:-ms-input-placeholder {
93
+ color: $placeholder_color;
94
+ }
83
95
  }
84
- /////// input_placeholder arguments /////////
96
+ /////// input_placeholder arguments /////////
85
97
 
86
98
 
87
99
 
@@ -93,69 +105,108 @@ $inset_shadow: #{$ih-shadow / $em}em #{$iv-shadow / $em}em #{$iblur / $em}em;
93
105
  // This tool also requires that a gradient object be created as variables.
94
106
  // Known restrictions ... images must be .png, position of background is currently hard-coded
95
107
  @mixin icon_gradient_background($icon_image, $fallback_color, $w3c_color_spec, $safari_color_spec, $ie_start, $ie_stop) {
96
- // w3c //:
97
- @include linear_gradient_bkgimage ('#{$imgDir}#{$icon_image}.png',5% 50%, $fallback_color, $w3c_color_spec);
98
- // legacy safari //
99
- @include linear_gradient_bkgimage_legacy_safari ('#{$imgDir}#{$icon_image}.png', 5% 50%, $safari_color_spec);
100
- // IE suck
101
- @include linear_gradient_legacy_ie ($ie_start, $ie_stop);
108
+ // w3c //:
109
+ @include linear_gradient_bkgimage ('#{$imgDir}#{$icon_image}.png',5% 50%, $fallback_color, $w3c_color_spec);
110
+ // legacy safari //
111
+ @include linear_gradient_bkgimage_legacy_safari ('#{$imgDir}#{$icon_image}.png', 5% 50%, $safari_color_spec);
112
+ // IE suck
113
+ @include linear_gradient_legacy_ie ($ie_start, $ie_stop);
102
114
  }
103
115
 
104
116
  // Example using this mixin
105
117
  // .your_new_class {
106
- // @include icon_gradient_background(
107
- // $icon_image: play_icon,
108
- // $fallback_color: $echo_color_bravo,
109
- // $w3c_color_spec: $alpha_color_gradient_var_w3c,
110
- // $safari_color_spec: $alpha_color_gradient_var_legacy_safari,
111
- // $ie_start: $echo_color_delta,
112
- // $ie_stop: $echo_color_delta);
113
- // }
118
+ // @include icon_gradient_background(
119
+ // $icon_image: play_icon,
120
+ // $fallback_color: $echo_color_bravo,
121
+ // $w3c_color_spec: $alpha_color_gradient_var_w3c,
122
+ // $safari_color_spec: $alpha_color_gradient_var_legacy_safari,
123
+ // $ie_start: $echo_color_delta,
124
+ // $ie_stop: $echo_color_delta);
125
+ // }
114
126
  // }
115
127
 
116
128
 
117
129
 
118
- /////// column count arguments /////////
130
+ /////// column count arguments /////////
119
131
  // --------------------------------------
120
132
  @mixin column_count($col_count, $col_gap, $prefixes: $prefix_defaults) {
121
- @each $prefix in $prefixes {
122
- #{$prefix}column-count: $col_count;
123
- #{$prefix}column-gap: $col_gap;
124
- }
133
+ @each $prefix in $prefixes {
134
+ #{$prefix}column-count: $col_count;
135
+ #{$prefix}column-gap: $col_gap;
136
+ }
125
137
  }
126
- /////// column count arguments /////////
138
+ /////// column count arguments /////////
127
139
 
128
140
 
129
141
 
130
- ///////// flexbox arguments /////////
142
+ ///////// flexbox arguments /////////
131
143
  // -----------------------------------
132
- @mixin flexbox ($width, $height, $orient: horizontal, $pack: center, $align: center, $prefixes: $prefix_defaults) {
133
- @each $prefix in $prefixes {
134
- display: #{$prefix}box;
135
- #{$prefix}box-orient: $orient;
136
- #{$prefix}box-pack: $pack;
137
- #{$prefix}box-align: $align;
138
- }
139
- height: $height;
140
- width: $width;
144
+ @mixin flexbox (
145
+ $width,
146
+ $height,
147
+ $orient: horizontal,
148
+ $direction: row,
149
+ $pack: center,
150
+ $align: center,
151
+ $wrap: none,
152
+ $prefixes: $prefix_defaults,
153
+ $legacyPrefixes: $moz_webkit_support) {
154
+ @each $prefix in $legacyPrefixes {
155
+ .flexboxlegacy & {
156
+ display: #{$prefix}box;
157
+ #{$prefix}box-orient: $orient;
158
+ #{$prefix}box-pack: $pack;
159
+ #{$prefix}box-align: $align;
160
+ }
161
+ }
162
+ // As of 15.0.1 Mozilla does not support the new Flexbox spec
163
+ @each $prefix in $webkit_ms_support {
164
+ .flexbox & {
165
+ display: -ms-flexbox;
166
+ display: -webkit-flex;
167
+ #{$prefix}flex-direction: $direction;
168
+ #{$prefix}flex-align: $align;
169
+ #{$prefix}flex-pack: $pack;
170
+ #{$prefix}flex-wrap: $wrap;
171
+ }
172
+ }
173
+ .no-flexbox & {
174
+ width: 100%;
175
+ float: left;
176
+ }
177
+ height: $height;
178
+ width: $width;
141
179
  }
142
180
 
143
-
144
- @mixin flex ($value, $prefixes: $prefix_defaults) {
145
- @each $prefix in $prefixes {
146
- #{$prefix}box-flex: $value;
147
- }
181
+
182
+ @mixin flex (
183
+ $value,
184
+ $prefixes: $prefix_defaults,
185
+ $legacyPrefixes: $moz_webkit_support) {
186
+ @each $prefix in $legacyPrefixes {
187
+ .flexboxlegacy & {
188
+ #{$prefix}box-flex: $value;
189
+ }
190
+ }
191
+ @each $prefix in $prefixes {
192
+ .flexbox & {
193
+ #{$prefix}flex: $value;
194
+ }
195
+ }
196
+ .no-flexbox & {
197
+ float: left;
198
+ }
148
199
  }
149
- ///////// flexbox arguments /////////
200
+ ///////// flexbox arguments /////////
150
201
 
151
202
 
152
203
 
153
204
  /////// transition arguments //////////
154
205
  // http://www.w3schools.com/css3/css3_pr_transition.asp
155
206
  @mixin transition ($property, $duration, $timing_function, $delay, $prefixes: $prefix_defaults) {
156
- @each $prefix in $prefixes {
157
- #{$prefix}transition: $property $duration $timing_function $delay;
158
- }
207
+ @each $prefix in $prefixes {
208
+ #{$prefix}transition: $property $duration $timing_function $delay;
209
+ }
159
210
  }
160
211
  /////// transition arguments //////////
161
212
 
@@ -164,9 +215,9 @@ $inset_shadow: #{$ih-shadow / $em}em #{$iv-shadow / $em}em #{$iblur / $em}em;
164
215
  /////// transform arguments //////////
165
216
  // http://www.w3schools.com/css3/css3_pr_transform.asp
166
217
  @mixin transform ($function, $prefixes: $prefix_defaults) {
167
- @each $prefix in $prefixes {
168
- #{$prefix}transform: $function;
169
- }
218
+ @each $prefix in $prefixes {
219
+ #{$prefix}transform: $function;
220
+ }
170
221
  }
171
222
  /////// transform arguments //////////
172
223
 
@@ -174,19 +225,19 @@ $inset_shadow: #{$ih-shadow / $em}em #{$iv-shadow / $em}em #{$iblur / $em}em;
174
225
 
175
226
  ////////// style placeholder text //////////
176
227
  @mixin placeholder_styles ($color) {
177
- color: $color;
228
+ color: $color;
178
229
  }
179
230
 
180
231
  @mixin placeholder ($color) {
181
- &::-webkit-input-placeholder {
182
- @include placeholder_styles ($color);
183
- }
184
- &:-moz-placeholder {
185
- @include placeholder_styles ($color);
186
- }
187
- &:-ms-input-placeholder {
188
- @include placeholder_styles ($color);
189
- }
232
+ &::-webkit-input-placeholder {
233
+ @include placeholder_styles ($color);
234
+ }
235
+ &:-moz-placeholder {
236
+ @include placeholder_styles ($color);
237
+ }
238
+ &:-ms-input-placeholder {
239
+ @include placeholder_styles ($color);
240
+ }
190
241
  }
191
242
  ////////// style placeholder text //////////
192
243
 
@@ -196,10 +247,10 @@ $inset_shadow: #{$ih-shadow / $em}em #{$iv-shadow / $em}em #{$iblur / $em}em;
196
247
  // Kellum Method
197
248
  // http://www.zeldman.com/2012/03/01/replacing-the-9999px-hack-new-image-replacement/
198
249
  @mixin hide_text {
199
- text-indent: 100%;
200
- white-space: nowrap;
201
- overflow: hidden;
202
- display: none;
250
+ text-indent: 100%;
251
+ white-space: nowrap;
252
+ overflow: hidden;
253
+ display: none;
203
254
  }
204
255
  ////////////// hide text ////////////
205
256
 
@@ -207,20 +258,20 @@ $inset_shadow: #{$ih-shadow / $em}em #{$iv-shadow / $em}em #{$iblur / $em}em;
207
258
 
208
259
  /////// clearfix //////////
209
260
  @mixin clearfix () {
210
- zoom: 1;
211
- &:before {
212
- content: "\0020";
213
- display: block;
214
- height: 0;
215
- overflow: hidden;
216
- }
217
- &:after {
218
- content: "\0020";
219
- display: block;
220
- height: 0;
221
- overflow: hidden;
222
- clear: both;
223
- }
261
+ zoom: 1;
262
+ &:before {
263
+ content: "\0020";
264
+ display: block;
265
+ height: 0;
266
+ overflow: hidden;
267
+ }
268
+ &:after {
269
+ content: "\0020";
270
+ display: block;
271
+ height: 0;
272
+ overflow: hidden;
273
+ clear: both;
274
+ }
224
275
  }
225
276
  /////// clearfix //////////
226
277
 
@@ -228,13 +279,13 @@ $inset_shadow: #{$ih-shadow / $em}em #{$iv-shadow / $em}em #{$iblur / $em}em;
228
279
 
229
280
  ///////// inset border /////////
230
281
  @mixin inset_border () {
231
- @include box_shadow(inset 0 0 1px, $alpha_gray);
282
+ @include box_shadow(inset 0 0 1px, $alpha_gray);
232
283
  }
233
284
  ///////// inset border /////////
234
285
 
235
286
 
236
287
 
237
- /////// center text trick /////////
288
+ /////// center text trick /////////
238
289
  // ---------------------------------
239
290
  // By setting the height of the block element and the line-height to the same value
240
291
  // this will typically center the text in the block.
@@ -242,18 +293,18 @@ $inset_shadow: #{$ih-shadow / $em}em #{$iv-shadow / $em}em #{$iblur / $em}em;
242
293
  //
243
294
  //
244
295
  @mixin center_text ($block_height, $line_height: $block_height) {
245
- height: $block_height;
246
- line-height: $line-height;
296
+ height: $block_height;
297
+ line-height: $line-height;
247
298
  }
248
- /////// center text trick /////////
299
+ /////// center text trick /////////
249
300
 
250
301
 
251
302
 
252
303
  // a standardized border radius
253
304
  // ----------------------------
254
305
  @mixin standard_rounded_border ($standard_round_corner, $standard_border_style, $standard_corner_width, $standard_border_color) {
255
- @include border_radius(#{$standard_round_corner / $em}rem);
256
- border: $standard_corner_width $standard_border_style $standard_border_color;
306
+ @include border_radius(#{$standard_round_corner / $em}rem);
307
+ border: $standard_corner_width $standard_border_style $standard_border_color;
257
308
  }
258
309
 
259
310
 
@@ -280,8 +331,8 @@ $inset_shadow: #{$ih-shadow / $em}em #{$iv-shadow / $em}em #{$iblur / $em}em;
280
331
  // The only value to be adjusted is the margin-bottom spacing. This is an argument addressed
281
332
  // in the ``_config.scss`` file
282
333
  @mixin standard_block_spacing ($default_block_spacing) {
283
- @include clearfix;
284
- margin-bottom: #{$default_block_spacing / $em}em;
334
+ @include clearfix;
335
+ margin-bottom: #{$default_block_spacing / $em}em;
285
336
  }
286
337
 
287
338
 
@@ -289,9 +340,9 @@ $inset_shadow: #{$ih-shadow / $em}em #{$iv-shadow / $em}em #{$iblur / $em}em;
289
340
  // This mixin allows for quick application of a UI to the <hr> tag
290
341
  // All values are set in the ``_config.scss`` file
291
342
  @mixin standard_hr ($standard_border_style, $standard_hr_width, $standard_hr_spacing, $standard_hr_color){
292
- border-bottom: $standard_hr_width $standard_border_style $standard_hr_color;
293
- padding-bottom: #{$standard_hr_spacing / $em}rem;
294
- margin-bottom: #{$standard_hr_spacing / $em}rem;
343
+ border-bottom: $standard_hr_width $standard_border_style $standard_hr_color;
344
+ padding-bottom: #{$standard_hr_spacing / $em}rem;
345
+ margin-bottom: #{$standard_hr_spacing / $em}rem;
295
346
  }
296
347
 
297
348
 
@@ -299,17 +350,17 @@ $inset_shadow: #{$ih-shadow / $em}em #{$iv-shadow / $em}em #{$iblur / $em}em;
299
350
  // This series of mixins sets default values for consistant use of text and box shadows
300
351
  // throughout your site. Values are set in the ``_config.scss`` file
301
352
  @mixin primary_text_shadow ($h-shadow, $v-shadow, $blur ) {
302
- @include text_shadow ($shadow_color, #{$h-shadow / $em}em #{$v-shadow / $em}em #{$blur / $em}em);
353
+ @include text_shadow ($shadow_color, #{$h-shadow / $em}em #{$v-shadow / $em}em #{$blur / $em}em);
303
354
  }
304
355
 
305
356
  @mixin disabled_text_shadow ($h-shadow, $v-shadow, $blur ) {
306
- @include text_shadow (fade-out($shadow_color, 0.5), #{$h-shadow / $em}em #{$v-shadow / $em}em #{$blur / $em}em);
357
+ @include text_shadow (fade-out($shadow_color, 0.5), #{$h-shadow / $em}em #{$v-shadow / $em}em #{$blur / $em}em);
307
358
  }
308
359
 
309
360
  @mixin primary_box_shadow ($h-shadow, $v-shadow, $blur ) {
310
- @include box_shadow ($shadow_color, #{$h-shadow / $em}em #{$v-shadow / $em}em #{$blur / $em}em);
361
+ @include box_shadow ($shadow_color, #{$h-shadow / $em}em #{$v-shadow / $em}em #{$blur / $em}em);
311
362
  }
312
363
 
313
364
  @mixin disabled_box_shadow ($h-shadow, $v-shadow, $blur ) {
314
- @include box_shadow (fade-out($shadow_color, 0.4), #{$h-shadow / $em}em #{$v-shadow / $em}em #{$blur / $em}em);
365
+ @include box_shadow (fade-out($shadow_color, 0.4), #{$h-shadow / $em}em #{$v-shadow / $em}em #{$blur / $em}em);
315
366
  }
@@ -195,6 +195,7 @@ $blur: 3 !default; // blur settin
195
195
  $inset_color: $shadow_color !default; // for use with ``dual_box_shadow`` mixin
196
196
  $ih-shadow: 0 !default; // inset horizontal shadow settings
197
197
  $iv-shadow: 2 !default; // inset vertical shaddow settings
198
+ $is-shadow: 2 !default; // inset spread shaddow settings
198
199
  $iblur: 3 !default; // inset blur settings
199
200
 
200
201
 
@@ -1,46 +1,49 @@
1
1
  .toadstool_nav {
2
- ol {
3
- @include flexbox(100%, auto);
4
- background: $bravo_gray;
5
- font-weight: bold;
6
- @media #{$mobile} {
7
- @include flexbox(100%, auto, $orient: vertical);
8
- @include linear_gradient_w3c ($bravo_gray, #{$bravo_gray 30%,$delta_gray 100%});
9
- }
10
- }
11
- li {
12
- @include flex(1);
13
- text-align: center;
14
- line-height: 3em;
15
- background: $white;
16
- color: $alpha_gray;
17
- border-radius: em(5) em(5) 0 0;
18
- @media #{$mobile} {
19
- width: 100%;
20
- border-radius: 0;
21
- font-size: 1.2em;
22
- background: transparent;
23
- color: $echo_gray;
24
- border-top: 1px solid $echo_gray;
25
- }
26
- }
27
- a {
28
- color: $white;
29
- @include linear_gradient_w3c ($bravo_gray, #{$bravo_gray 50%,$delta_gray 100%});
30
- @media #{$mobile} {
31
- background: transparent;
32
- }
33
- display: block;
34
- &:hover {
35
- text-decoration: none;
36
- background: $white;
37
- color: $alpha_gray;
38
- border-radius: em(5) em(5) 0 0;
39
- @media #{$mobile} {
40
- border-radius: 0;
41
- background: transparent;
42
- color: $echo_gray;
43
- }
44
- }
45
- }
2
+ ol {
3
+ @include flexbox(100%, auto);
4
+ background: $bravo_gray;
5
+ font-weight: bold;
6
+ @media #{$mobile} {
7
+ @include flexbox(100%, auto, $orient: vertical);
8
+ @include linear_gradient_w3c ($bravo_gray, #{$bravo_gray 30%,$delta_gray 100%});
9
+ }
10
+ }
11
+ li {
12
+ @include flex(1);
13
+ text-align: center;
14
+ line-height: 3em;
15
+ background: $white;
16
+ color: $alpha_gray;
17
+ border-radius: em(5) em(5) 0 0;
18
+ @media #{$mobile} {
19
+ width: 100%;
20
+ border-radius: 0;
21
+ font-size: 1.2em;
22
+ background: transparent;
23
+ color: $echo_gray;
24
+ border-top: 1px solid $echo_gray;
25
+ }
26
+ }
27
+ a {
28
+ color: $white;
29
+ @include linear_gradient_w3c ($bravo_gray, #{$bravo_gray 50%,$delta_gray 100%});
30
+ .no-flexbox & {
31
+ padding: 0 em(10);
32
+ }
33
+ @media #{$mobile} {
34
+ background: transparent;
35
+ }
36
+ display: block;
37
+ &:hover {
38
+ text-decoration: none;
39
+ background: $white;
40
+ color: $alpha_gray;
41
+ border-radius: em(5) em(5) 0 0;
42
+ @media #{$mobile} {
43
+ border-radius: 0;
44
+ background: transparent;
45
+ color: $echo_gray;
46
+ }
47
+ }
48
+ }
46
49
  }
@@ -1,69 +1,67 @@
1
- //* typography defauts */
2
-
3
1
  html {
4
- font: em($font_size, 16) $primary_font_family;
5
- line-height: baseline($font_size);
6
- color: $primary_text;
7
- @media #{$mobile} {
8
- -webkit-text-size-adjust: none; /* Prevent font scaling in landscape */
9
- }
2
+ font: em($font_size, 16) $primary_font_family;
3
+ line-height: baseline($font_size);
4
+ color: $primary_text;
5
+ @media #{$mobile} {
6
+ -webkit-text-size-adjust: none; /* Prevent font scaling in landscape */
7
+ }
10
8
  }
11
9
 
12
10
  h1 {
13
- //font-size: 2em; // user agent default
14
- @extend %headings_1;
11
+ //font-size: 2em; // user agent default
12
+ @extend %headings_1;
15
13
  }
16
14
 
17
15
  h2 {
18
- //font-size: 1.5em; // user agent default
19
- @extend %headings_2;
16
+ //font-size: 1.5em; // user agent default
17
+ @extend %headings_2;
20
18
  }
21
19
 
22
20
  h3 {
23
- //font-size: 1.17em; // user agent default
24
- @extend %headings_3;
21
+ //font-size: 1.17em; // user agent default
22
+ @extend %headings_3;
25
23
  }
26
24
 
27
25
  h4 {
28
- //font-size: 1em; // user agent default
29
- @extend %headings_4;
26
+ //font-size: 1em; // user agent default
27
+ @extend %headings_4;
30
28
  }
31
29
 
32
30
  h5 {
33
- //font-size: 0.83em; // user agent default
34
- @extend %headings_5;
31
+ //font-size: 0.83em; // user agent default
32
+ @extend %headings_5;
35
33
  }
36
34
 
37
35
  h6 {
38
- //font-size: 0.75em; // user agent default
39
- @extend %headings_6;
36
+ //font-size: 0.75em; // user agent default
37
+ @extend %headings_6;
40
38
  }
41
39
 
42
40
  // Standard body text support
43
41
  // --------------------------------
44
42
  p {
45
- margin-bottom: baseline-margin($font_size);
46
- text-indent: 0;
43
+ margin-bottom: baseline-margin($font_size);
44
+ text-indent: 0;
47
45
  }
48
46
 
49
47
  b {
50
- &:after {
51
- content: " ";
52
- }
48
+ &:after {
49
+ content: " ";
50
+ }
53
51
  }
54
52
 
55
53
 
56
54
  // :link Pseudo-class is totally not necessary as I can tell
57
55
  // code here to combat legacy code
58
56
  a {
59
- &:link {
60
- color: $href_color;
61
- text-decoration: none;
62
- }
63
- &:hover, &:active {
64
- text-decoration: underline;
65
- }
66
- &:visited {
67
- color: $href_color;
68
- }
57
+ &:link {
58
+ color: $href_color;
59
+ text-decoration: none;
60
+ }
61
+ &:hover, &:active {
62
+ text-decoration: underline;
63
+ }
64
+ &:visited {
65
+ color: $href_color;
66
+ }
69
67
  }
@@ -6,40 +6,40 @@
6
6
 
7
7
  //* Text classes */
8
8
  %headings_1 {
9
- @include heading();
9
+ @include heading();
10
10
  }
11
11
 
12
12
  %headings_2 {
13
- @include heading($heading_2);
13
+ @include heading($heading_2);
14
14
  }
15
15
 
16
16
  %headings_3 {
17
- @include heading($heading_3);
17
+ @include heading($heading_3);
18
18
  }
19
19
 
20
20
  %headings_4 {
21
- @include heading($heading_4);
21
+ @include heading($heading_4);
22
22
  }
23
23
 
24
24
  %headings_5 {
25
- @include heading($heading_5);
25
+ @include heading($heading_5);
26
26
  }
27
27
 
28
28
  %headings_6 {
29
- @include heading($heading_6);
29
+ @include heading($heading_6);
30
30
  }
31
31
 
32
32
 
33
33
  %small {
34
- @include small;
34
+ @include small;
35
35
  }
36
36
 
37
37
  %medium {
38
- @include medium;
38
+ @include medium;
39
39
  }
40
40
 
41
41
  %large {
42
- @include large;
42
+ @include large;
43
43
  }
44
44
 
45
45
 
@@ -48,15 +48,15 @@
48
48
 
49
49
  //* Font family classes */
50
50
  %primary_font_family {
51
- font-family: $primary_font_family;
51
+ font-family: $primary_font_family;
52
52
  }
53
53
 
54
54
  %secondary_font_family {
55
- font-family: $secondary_font_family;
55
+ font-family: $secondary_font_family;
56
56
  }
57
57
 
58
58
  %heading_font_family {
59
- font-family: $heading_font_family;
59
+ font-family: $heading_font_family;
60
60
  }
61
61
 
62
62
 
@@ -65,7 +65,7 @@
65
65
 
66
66
  //* Hide Text, Kellum Method */
67
67
  %hide_text {
68
- @include hide_text;
68
+ @include hide_text;
69
69
  }
70
70
 
71
71
 
@@ -73,13 +73,13 @@
73
73
 
74
74
  //* Standard content block styling */
75
75
  %bulleted_list {
76
- @include bulleted_list;
76
+ @include bulleted_list;
77
77
  }
78
78
 
79
79
  %content_block {
80
- @extend %standard_block_spacing;
81
- float: left;
82
- @extend %bulleted_list;
80
+ @extend %standard_block_spacing;
81
+ float: left;
82
+ @extend %bulleted_list;
83
83
  }
84
84
 
85
85
 
@@ -1,37 +1,29 @@
1
- // Toadstool core v0.0.0.1
2
- // This document is not to be edited as it will be versioned
3
- // -----------------------------------------------------------------
4
-
5
-
6
- // All google font includes are placed in the RESET.SCSS file
7
- // -----------------------------------------------------------
8
- //@import "../config_files/text";
9
-
10
1
 
11
2
  //////// heading text mixin //////////
12
3
  // ------------------------------------------------
4
+ // default values are being set in /stipe/stylesheets/stipe/_typography.scss
13
5
  @mixin heading ($heading_size, $heading_font_family, $heading_color, $heading_font_weight) {
14
- font-size: em($heading_size);
15
- line-height: baseline($heading_size);
16
- margin-bottom: baseline-margin($heading_size);
17
- color: $heading_color;
18
- font-weight: $heading_font_weight;
19
- font-family: $heading_font_family;
6
+ font-size: em($heading_size);
7
+ line-height: baseline($heading_size);
8
+ margin-bottom: baseline-margin($heading_size);
9
+ color: $heading_color;
10
+ font-weight: $heading_font_weight;
11
+ font-family: $heading_font_family;
20
12
  }
21
13
 
22
14
 
23
15
  /////// text arguments w/baseline rythem //////////
24
16
  // -----------------------------------------------------
25
17
  @mixin text ($baseline_size, $margin: auto) {
26
- font-size: em($baseline_size);
27
- line-height: baseline($baseline_size);
28
-
29
- @if $margin == auto {
30
- margin-bottom: baseline-margin($baseline_size);
31
- }
32
- @else if $margin == 0 {
33
- margin-bottom: 0;
34
- }
18
+ font-size: em($baseline_size);
19
+ line-height: baseline($baseline_size);
20
+
21
+ @if $margin == auto {
22
+ margin-bottom: baseline-margin($baseline_size);
23
+ }
24
+ @else if $margin == 0 {
25
+ margin-bottom: 0;
26
+ }
35
27
  }
36
28
 
37
29
 
@@ -39,15 +31,15 @@
39
31
  //////// standard text mixins //////////
40
32
  // ------------------------------------------------
41
33
  @mixin small ($baseline_size: $small_point_size) {
42
- @include text($baseline_size);
34
+ @include text($baseline_size);
43
35
  }
44
36
 
45
37
  @mixin medium ($baseline_size: $font_size) {
46
- @include text($baseline_size);
38
+ @include text($baseline_size);
47
39
  }
48
40
 
49
41
  @mixin large ($baseline_size: $large_point_size) {
50
- @include text($baseline_size);
42
+ @include text($baseline_size);
51
43
  }
52
44
 
53
45
 
@@ -56,20 +48,20 @@
56
48
  ////////// Standard bulleted list //////////////
57
49
  // --------------------------------------------
58
50
  @mixin bulleted_list {
59
- ul {
60
- list-style: disc;
61
- margin: 0 0 1.5em em(20);
62
- &:last-child {
63
- margin-bottom: 0;
64
- }
65
- }
66
- li {
67
- float: none;
68
- margin-bottom: 1em;
69
- &:last-child {
70
- margin-bottom: 0;
71
- }
72
- }
51
+ ul {
52
+ list-style: disc;
53
+ margin: 0 0 1.5em em(20);
54
+ &:last-child {
55
+ margin-bottom: 0;
56
+ }
57
+ }
58
+ li {
59
+ float: none;
60
+ margin-bottom: 1em;
61
+ &:last-child {
62
+ margin-bottom: 0;
63
+ }
64
+ }
73
65
  }
74
66
 
75
67
 
@@ -82,11 +74,11 @@ $webfont_style: normal !default;
82
74
 
83
75
 
84
76
  @mixin font-face($font_family: $webfont_font_family, $font-file: $webfont-file, $font_weight: $webfont_weight, $font_style: $webfont_style ) {
85
- font-family: '#{$font_family}';
86
- font-style: $font_style;
87
- font-weight: $font_weight;
88
- src: url('#{$webfont_directory}#{$font-file}.eot');
89
- src: url('#{$webfont_directory}#{$font-file}.eot?#iefix') format('embedded-opentype'),
77
+ font-family: '#{$font_family}';
78
+ font-style: $font_style;
79
+ font-weight: $font_weight;
80
+ src: url('#{$webfont_directory}#{$font-file}.eot');
81
+ src: url('#{$webfont_directory}#{$font-file}.eot?#iefix') format('embedded-opentype'),
90
82
  url('#{$webfont_directory}#{$font-file}.woff') format('woff'),
91
83
  url('#{$webfont_directory}#{$font-file}.ttf') format('truetype'),
92
84
  url('#{$webfont_directory}#{$font-file}.svg#ZocialRegular') format('svg');
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.3.6
4
+ version: 0.0.3.7
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: