staple 0.1.5 → 0.1.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +18 -5
- data/source/stylesheets/staple/builders/build_sizes.scss +81 -0
- data/source/stylesheets/staple/init/overrides.scss +71 -71
- data/source/stylesheets/staple/sizes.scss +35 -7
- data/source/stylesheets/staple/typography.scss +0 -5
- data/staple.gemspec +1 -1
- metadata +2 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ca9ca4c1eae59fe781b47c16fe3f42e2cda2d0cb
|
4
|
+
data.tar.gz: 4242c1a3685a756a5b54ed5b0e514860f0608643
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1221b30e75dbd3872bedd6dd72e6feb6d4380a5af26c58e8c385bd213bc593195001a4d4d80bbf5f80d09214088f1ddbfbdc9dae2347edfac999bb5c35aedb1e
|
7
|
+
data.tar.gz: 0b5bf48ff7fee2f27352a59cdf9715cd77ec8c95cce7b41e718312f60a83540467b06ae8258d831bcc0e091c8a9aadc7d0b8373fab00df1876f6c36243affc44
|
data/README.md
CHANGED
@@ -2,19 +2,32 @@
|
|
2
2
|
|
3
3
|
High level UI framework. Built on top of foundation.
|
4
4
|
|
5
|
+
#STRATEGY
|
6
|
+
|
7
|
+
##Main
|
8
|
+
* Overrides
|
9
|
+
* Default Styles
|
10
|
+
* Additional Styles
|
11
|
+
* Generate
|
12
|
+
|
13
|
+
##Import
|
14
|
+
* Override defaults
|
15
|
+
* Add additional
|
16
|
+
* Styles
|
17
|
+
* Type of generators
|
18
|
+
* Components - inherit default styles
|
19
|
+
|
5
20
|
##TODO
|
6
21
|
|
7
|
-
*
|
8
|
-
*
|
22
|
+
* Incorporate sizes into eveything
|
23
|
+
* Better default fonts
|
9
24
|
|
10
|
-
* See buttons for config
|
11
|
-
* can pull in partials/components and new css, not included w/install
|
12
|
-
* can then customize those with variables. Ask if you want to import if not in project
|
13
25
|
|
14
26
|
##LOW PRIORITY
|
15
27
|
* declaring as dependency does not load it?
|
16
28
|
* integration with existing projects
|
17
29
|
* turbolinks messed with abide validation: https://github.com/zurb/foundation/issues/2902
|
30
|
+
* don't require other gems
|
18
31
|
|
19
32
|
##Install
|
20
33
|
|
@@ -0,0 +1,81 @@
|
|
1
|
+
@each $class in $padding-classes{
|
2
|
+
$i: index($padding-classes, $class);
|
3
|
+
$padding: nth($padding-define, $i);
|
4
|
+
.#{$class}{
|
5
|
+
padding: $padding;
|
6
|
+
}
|
7
|
+
}
|
8
|
+
|
9
|
+
@each $class in $margin-classes{
|
10
|
+
$i: index($margin-classes, $class);
|
11
|
+
$margin: nth($margin-define, $i);
|
12
|
+
.#{$class}{
|
13
|
+
margin: $margin;
|
14
|
+
}
|
15
|
+
}
|
16
|
+
|
17
|
+
//UNCOMMENT IF USING MARGIN ON SPECIFIC SIDES
|
18
|
+
// @each $class in $margin-top-classes{
|
19
|
+
// $i: index($margin-top-classes, $class);
|
20
|
+
// $margin-top: nth($margin-top-define, $i);
|
21
|
+
// .#{$class}{
|
22
|
+
// margin-top: $margin-top;
|
23
|
+
// }
|
24
|
+
// }
|
25
|
+
|
26
|
+
// @each $class in $margin-bottom-classes{
|
27
|
+
// $i: index($margin-bottom-classes, $class);
|
28
|
+
// $margin-bottom: nth($margin-bottom-define, $i);
|
29
|
+
// .#{$class}{
|
30
|
+
// margin-bottom: $margin-bottom;
|
31
|
+
// }
|
32
|
+
// }
|
33
|
+
|
34
|
+
// @each $class in $margin-left-classes{
|
35
|
+
// $i: index($margin-left-classes, $class);
|
36
|
+
// $margin-left: nth($margin-left-define, $i);
|
37
|
+
// .#{$class}{
|
38
|
+
// margin-left: $margin-left;
|
39
|
+
// }
|
40
|
+
// }
|
41
|
+
|
42
|
+
// @each $class in $margin-right-classes{
|
43
|
+
// $i: index($margin-right-classes, $class);
|
44
|
+
// $margin-right: nth($margin-right-define, $i);
|
45
|
+
// .#{$class}{
|
46
|
+
// margin-right: $margin-right;
|
47
|
+
// }
|
48
|
+
// }
|
49
|
+
|
50
|
+
//UNCOMMENT IF USING PADDING ON SPECIFIC SIDES
|
51
|
+
// @each $class in $padding-left-classes{
|
52
|
+
// $i: index($padding-left-classes, $class);
|
53
|
+
// $padding-left: nth($padding-left-define, $i);
|
54
|
+
// .#{$class}{
|
55
|
+
// padding-left: $padding-left;
|
56
|
+
// }
|
57
|
+
// }
|
58
|
+
|
59
|
+
// @each $class in $padding-right-classes{
|
60
|
+
// $i: index($padding-right-classes, $class);
|
61
|
+
// $padding-right: nth($padding-right-define, $i);
|
62
|
+
// .#{$class}{
|
63
|
+
// padding-right: $padding-right;
|
64
|
+
// }
|
65
|
+
// }
|
66
|
+
|
67
|
+
// @each $class in $padding-top-classes{
|
68
|
+
// $i: index($padding-top-classes, $class);
|
69
|
+
// $padding-top: nth($padding-top-define, $i);
|
70
|
+
// .#{$class}{
|
71
|
+
// padding-top: $padding-top;
|
72
|
+
// }
|
73
|
+
// }
|
74
|
+
|
75
|
+
// @each $class in $padding-bottom-classes{
|
76
|
+
// $i: index($padding-bottom-classes, $class);
|
77
|
+
// $padding-bottom: nth($padding-bottom-define, $i);
|
78
|
+
// .#{$class}{
|
79
|
+
// padding-bottom: $padding-bottom;
|
80
|
+
// }
|
81
|
+
// }
|
@@ -51,19 +51,19 @@
|
|
51
51
|
// - - - - - - - - - - - - - - - - - - - - - - - - -
|
52
52
|
|
53
53
|
// This is the default html and body font-size for the base rem value.
|
54
|
-
$rem-base:
|
54
|
+
// $rem-base: 16px;
|
55
55
|
|
56
56
|
|
57
|
-
// The default font-size is set to 100% of the browser style sheet (usually 16px)
|
58
|
-
// for compatibility with browser-based text zoom or user-set defaults.
|
57
|
+
// // The default font-size is set to 100% of the browser style sheet (usually 16px)
|
58
|
+
// // for compatibility with browser-based text zoom or user-set defaults.
|
59
59
|
|
60
|
-
// Since the typical default browser font-size is 16px, that makes the calculation for grid size.
|
61
|
-
// If you want your base font-size to be different and not have it affect the grid breakpoints,
|
62
|
-
// set $rem-base to rgba($black, $transparent-medium)-font-size and make sure rgba($black, $transparent-medium)-font-size is a px value.
|
63
|
-
$base-font-size:
|
60
|
+
// // Since the typical default browser font-size is 16px, that makes the calculation for grid size.
|
61
|
+
// // If you want your base font-size to be different and not have it affect the grid breakpoints,
|
62
|
+
// // set $rem-base to rgba($black, $transparent-medium)-font-size and make sure rgba($black, $transparent-medium)-font-size is a px value.
|
63
|
+
// $base-font-size: 100%;
|
64
64
|
|
65
|
-
// The rgba($black, $transparent-medium)-font-size is 100% while rgba($black, $transparent-medium)-line-height is 150%
|
66
|
-
$base-line-height:
|
65
|
+
// // The rgba($black, $transparent-medium)-font-size is 100% while rgba($black, $transparent-medium)-line-height is 150%
|
66
|
+
// $base-line-height: 150%;
|
67
67
|
|
68
68
|
// We use this to control whether or not CSS classes come through in the gem files.
|
69
69
|
// $include-html-classes: true;
|
@@ -106,7 +106,7 @@ $font-smoothing: antialiased;
|
|
106
106
|
// $global-rounded: 1000px;
|
107
107
|
|
108
108
|
// We use these to control inset shadow shiny edges and depressions.
|
109
|
-
$shiny-edge-size: 0
|
109
|
+
$shiny-edge-size: 0 $default-border-size 0;
|
110
110
|
$shiny-edge-color: rgba($white, .5);
|
111
111
|
$shiny-edge-active-color: rgba($black, .2);
|
112
112
|
|
@@ -161,18 +161,18 @@ $header-bottom-margin: .5rem;
|
|
161
161
|
$header-text-rendering: optimizeLegibility;
|
162
162
|
|
163
163
|
// We use these to control header font sizes
|
164
|
-
$h1-font-size: rem-calc(
|
165
|
-
$h2-font-size: rem-calc(
|
166
|
-
$h3-font-size: rem-calc(
|
167
|
-
$h4-font-size: rem-calc(
|
168
|
-
$h5-font-size: rem-calc(
|
169
|
-
$h6-font-size:
|
164
|
+
$h1-font-size: rem-calc(44);
|
165
|
+
$h2-font-size: rem-calc(37);
|
166
|
+
$h3-font-size: rem-calc(27);
|
167
|
+
$h4-font-size: rem-calc(23);
|
168
|
+
$h5-font-size: rem-calc(18);
|
169
|
+
$h6-font-size: 1rem;
|
170
170
|
|
171
171
|
// We use these to control header size reduction on small screens
|
172
|
-
$h1-font-reduction: rem-calc(
|
173
|
-
$h2-font-reduction: rem-calc(
|
174
|
-
$h3-font-reduction: rem-calc(
|
175
|
-
$h4-font-reduction: rem-calc(
|
172
|
+
$h1-font-reduction: rem-calc(10) !default;
|
173
|
+
$h2-font-reduction: rem-calc(10) !default;
|
174
|
+
$h3-font-reduction: rem-calc(5) !default;
|
175
|
+
$h4-font-reduction: rem-calc(5) !default;
|
176
176
|
$h5-font-reduction: 0 !default;
|
177
177
|
$h6-font-reduction: 0 !default;
|
178
178
|
|
@@ -203,7 +203,7 @@ $code-color: rgba($black, $transparent-strong);
|
|
203
203
|
$code-font-family: $font-family-monospace;
|
204
204
|
$code-font-weight: $font-weight-normal;
|
205
205
|
$code-background-color: scale-color($secondary-color, $lightness: 70%);
|
206
|
-
$code-border-size:
|
206
|
+
$code-border-size: $default-border-size;
|
207
207
|
$code-border-style: solid;
|
208
208
|
$code-border-color: scale-color($code-background-color, $lightness: -10%);
|
209
209
|
$code-padding: rem-calc(2) rem-calc(5) rem-calc(1);
|
@@ -215,7 +215,7 @@ $anchor-font-color: $primary-color;
|
|
215
215
|
$anchor-font-color-hover: scale-color($primary-color, $lightness: -14%);
|
216
216
|
|
217
217
|
// We use these to style the <hr> element
|
218
|
-
$hr-border-width:
|
218
|
+
$hr-border-width: $default-border-size;
|
219
219
|
$hr-border-style: solid;
|
220
220
|
$hr-border-color: rgba($black, $transparent-weak);
|
221
221
|
$hr-margin: rem-calc(20);
|
@@ -237,20 +237,20 @@ $definition-list-margin-bottom: rem-calc(12);
|
|
237
237
|
// We use these to style blockquotes
|
238
238
|
$blockquote-font-color: scale-color($header-font-color, $lightness: 35%);
|
239
239
|
$blockquote-padding: rem-calc(9 20 0 19);
|
240
|
-
$blockquote-border:
|
240
|
+
$blockquote-border: $default-border-size solid rgba($black, $transparent-weak);
|
241
241
|
$blockquote-cite-font-size: rem-calc(13);
|
242
242
|
$blockquote-cite-font-color: scale-color($header-font-color, $lightness: 23%);
|
243
243
|
$blockquote-cite-link-color: $blockquote-cite-font-color;
|
244
244
|
|
245
245
|
// Acronym styles
|
246
|
-
$acronym-underline:
|
246
|
+
$acronym-underline: $default-border-size dotted rgba($black, $transparent-weak);
|
247
247
|
|
248
248
|
// We use these to control padding and margin
|
249
249
|
$microformat-padding: rem-calc(10 12);
|
250
250
|
$microformat-margin: rem-calc(0 0 20 0);
|
251
251
|
|
252
252
|
// We use these to control the border styles
|
253
|
-
$microformat-border-width:
|
253
|
+
$microformat-border-width: $default-border-size;
|
254
254
|
$microformat-border-style: solid;
|
255
255
|
$microformat-border-color: rgba($black, $transparent-weak);
|
256
256
|
|
@@ -306,7 +306,7 @@ $microformat-abbr-font-decoration: none;
|
|
306
306
|
|
307
307
|
// We use these to control border styles.
|
308
308
|
// $alert-border-style: solid;
|
309
|
-
// $alert-border-width:
|
309
|
+
// $alert-border-width: $default-border-size;
|
310
310
|
// $alert-border-color: scale-color($primary-color, $lightness: $alert-function-factor);
|
311
311
|
// $alert-bottom-margin: rem-calc(20);
|
312
312
|
|
@@ -354,7 +354,7 @@ $microformat-abbr-font-decoration: none;
|
|
354
354
|
|
355
355
|
// We use these to control border styles.
|
356
356
|
// $crumb-function-factor: -10%;
|
357
|
-
// $crumb-border-size:
|
357
|
+
// $crumb-border-size: $default-border-size;
|
358
358
|
// $crumb-border-style: solid;
|
359
359
|
// $crumb-border-color: scale-color($crumb-bg, $lightness: $crumb-function-factor);
|
360
360
|
// $crumb-radius: $global-radius;
|
@@ -377,23 +377,23 @@ $microformat-abbr-font-decoration: none;
|
|
377
377
|
// $include-html-button-classes: $include-html-classes;
|
378
378
|
|
379
379
|
// We use these to build padding for buttons.
|
380
|
-
$button-tny: rem-calc(
|
381
|
-
$button-sml: rem-calc(
|
382
|
-
$button-med: rem-calc(
|
383
|
-
$button-lrg: rem-calc(
|
380
|
+
$button-tny: rem-calc(10);
|
381
|
+
$button-sml: rem-calc(14);
|
382
|
+
$button-med: rem-calc(16);
|
383
|
+
$button-lrg: rem-calc(18);
|
384
384
|
|
385
385
|
// We use this to control the display property.
|
386
386
|
$button-display: inline-block;
|
387
|
-
$button-margin-bottom: rem-calc(
|
387
|
+
$button-margin-bottom: rem-calc(20);
|
388
388
|
|
389
389
|
// We use these to control button text styles.
|
390
390
|
$button-font-family: $body-font-family;
|
391
391
|
$button-font-color: $white;
|
392
392
|
$button-font-color-alt: rgba($black, $transparent-strong);
|
393
|
-
$button-font-tny: rem-calc(
|
394
|
-
$button-font-sml: rem-calc(
|
395
|
-
$button-font-med: rem-calc(
|
396
|
-
$button-font-lrg: rem-calc(
|
393
|
+
$button-font-tny: rem-calc(11);
|
394
|
+
$button-font-sml: rem-calc(13);
|
395
|
+
$button-font-med: rem-calc(15);
|
396
|
+
$button-font-lrg: rem-calc(21);
|
397
397
|
$button-font-weight: 200;
|
398
398
|
$button-font-align: center;
|
399
399
|
|
@@ -428,7 +428,7 @@ $button-disabled-opacity: 0.7;
|
|
428
428
|
|
429
429
|
// Sets the margin for the right side by default, and the left margin if right-to-left direction is used
|
430
430
|
$button-bar-margin-opposite: rem-calc(10);
|
431
|
-
$button-group-border-width:
|
431
|
+
$button-group-border-width: $default-border-size;
|
432
432
|
|
433
433
|
// 07. Clearing
|
434
434
|
// - - - - - - - - - - - - - - - - - - - - - - - - -
|
@@ -458,7 +458,7 @@ $button-group-border-width: 1px;
|
|
458
458
|
// $clearing-active-img-height: 85%;
|
459
459
|
// $clearing-carousel-height: 120px;
|
460
460
|
// $clearing-carousel-thumb-width: 120px;
|
461
|
-
// $clearing-carousel-thumb-active-border:
|
461
|
+
// $clearing-carousel-thumb-active-border: $default-border-size solid rgb(255,255,255);
|
462
462
|
|
463
463
|
// 08. Dropdown
|
464
464
|
// - - - - - - - - - - - - - - - - - - - - - - - - -
|
@@ -487,7 +487,7 @@ $button-group-border-width: 1px;
|
|
487
487
|
|
488
488
|
// We use this to set the border styles for dropdowns.
|
489
489
|
// $f-dropdown-border-style: solid;
|
490
|
-
// $f-dropdown-border-width:
|
490
|
+
// $f-dropdown-border-width: $default-border-size;
|
491
491
|
// $f-dropdown-border-color: scale-color($white, $lightness: -20%);
|
492
492
|
|
493
493
|
// We use these to style the triangle pip.
|
@@ -568,7 +568,7 @@ $button-group-border-width: 1px;
|
|
568
568
|
// $include-html-form-classes: $include-html-classes;
|
569
569
|
|
570
570
|
// We use this to set the base for lots of form spacing and positioning styles
|
571
|
-
$form-spacing: rem-calc(
|
571
|
+
$form-spacing: rem-calc(16);
|
572
572
|
|
573
573
|
// We use these to style the labels in different ways
|
574
574
|
$form-label-pointer: default;
|
@@ -586,7 +586,7 @@ $input-focus-bg-color: default;
|
|
586
586
|
$input-border-color: scale-color($white, $lightness: -20%);
|
587
587
|
$input-focus-border-color: $primary-color;
|
588
588
|
$input-border-style: solid;
|
589
|
-
$input-border-width:
|
589
|
+
$input-border-width: $default-border-size;
|
590
590
|
$input-border-radius: $global-radius;
|
591
591
|
$input-disabled-bg: rgba($black, $transparent-weak);
|
592
592
|
// $input-disabled-cursor: $cursor-default-value;
|
@@ -594,7 +594,7 @@ $input-box-shadow: none;
|
|
594
594
|
|
595
595
|
// We use these to style the fieldset border and spacing.
|
596
596
|
$fieldset-border-style: solid;
|
597
|
-
$fieldset-border-width:
|
597
|
+
$fieldset-border-width: $default-border-size;
|
598
598
|
$fieldset-border-color: rgba($black, $transparent-weak);
|
599
599
|
$fieldset-padding: rem-calc(20);
|
600
600
|
$fieldset-margin: rem-calc(18 0);
|
@@ -607,7 +607,7 @@ $legend-padding: rem-calc(0 3);
|
|
607
607
|
// We use these to style the prefix and postfix input elements
|
608
608
|
$input-prefix-bg: scale-color($white, $lightness: -5%);
|
609
609
|
$input-prefix-border-color: scale-color($white, $lightness: -20%);
|
610
|
-
$input-prefix-border-size:
|
610
|
+
$input-prefix-border-size: $default-border-size;
|
611
611
|
$input-prefix-border-type: solid;
|
612
612
|
$input-prefix-overflow: hidden;
|
613
613
|
$input-prefix-font-color: rgba($black, $transparent-strong);
|
@@ -682,7 +682,7 @@ $inline-list-children-display: block;
|
|
682
682
|
// $joyride-tip-bg: rgba($black, $transparent-strong);
|
683
683
|
// $joyride-tip-default-width: 300px;
|
684
684
|
// $joyride-tip-padding: rem-calc(18 20 24);
|
685
|
-
// $joyride-tip-border: solid
|
685
|
+
// $joyride-tip-border: solid $default-border-size rgba($black, $transparent-strong);
|
686
686
|
// $joyride-tip-radius: 4px;
|
687
687
|
// $joyride-tip-position-offset: 22px;
|
688
688
|
|
@@ -725,7 +725,7 @@ $inline-list-children-display: block;
|
|
725
725
|
// We use these to control background and border styles.
|
726
726
|
// $keystroke-bg: scale-color($white, $lightness: $keystroke-function-factor);
|
727
727
|
// $keystroke-border-style: solid;
|
728
|
-
// $keystroke-border-width:
|
728
|
+
// $keystroke-border-width: $default-border-size;
|
729
729
|
// $keystroke-border-color: scale-color($keystroke-bg, $lightness: $keystroke-function-factor);
|
730
730
|
// $keystroke-radius: $global-radius;
|
731
731
|
|
@@ -766,8 +766,8 @@ $inline-list-children-display: block;
|
|
766
766
|
// $tabbar-middle-padding: 0 rem-calc(10);
|
767
767
|
|
768
768
|
// Off Canvas Divider Styles
|
769
|
-
// $tabbar-right-section-border: solid
|
770
|
-
// $tabbar-left-section-border: solid
|
769
|
+
// $tabbar-right-section-border: solid $default-border-size scale-color($tabbar-bg, $lightness: 13%);
|
770
|
+
// $tabbar-left-section-border: solid $default-border-size scale-color($tabbar-bg, $lightness: -50%);
|
771
771
|
|
772
772
|
// Off Canvas Tab Bar Headers
|
773
773
|
// $tabbar-header-color: $white;
|
@@ -787,17 +787,17 @@ $inline-list-children-display: block;
|
|
787
787
|
// $off-canvas-label-font-size: rem-calc(12);
|
788
788
|
// $off-canvas-label-font-weight: $font-weight-bold;
|
789
789
|
// $off-canvas-label-bg: rgba($black, $transparent-strong);
|
790
|
-
// $off-canvas-label-border-top:
|
790
|
+
// $off-canvas-label-border-top: $default-border-size solid scale-color(rgba($black, $transparent-strong), $lightness: 14%);
|
791
791
|
// $off-canvas-label-border-bottom: none;
|
792
792
|
// $off-canvas-label-margin:0;
|
793
793
|
// $off-canvas-link-padding: rem-calc(10, 15);
|
794
794
|
// $off-canvas-link-color: rgba($white, 0.7);
|
795
|
-
// $off-canvas-link-border-bottom:
|
795
|
+
// $off-canvas-link-border-bottom: $default-border-size solid scale-color($off-canvas-bg, $lightness: -25%);
|
796
796
|
// $off-canvas-back-bg: rgba($black, $transparent-strong);
|
797
797
|
// $off-canvas-back-border-top: $off-canvas-label-border-top;
|
798
798
|
// $off-canvas-back-border-bottom: $off-canvas-label-border-bottom;
|
799
799
|
// $off-canvas-back-hover-bg: scale-color($off-canvas-back-bg, $lightness: -30%);
|
800
|
-
// $off-canvas-back-hover-border-top:
|
800
|
+
// $off-canvas-back-hover-border-top: $default-border-size solid scale-color($off-canvas-label-bg, $lightness: 14%);
|
801
801
|
// $off-canvas-back-hover-border-bottom: none;
|
802
802
|
|
803
803
|
// Off Canvas Menu Icon Variables
|
@@ -812,7 +812,7 @@ $inline-list-children-display: block;
|
|
812
812
|
// $tabbar-hamburger-icon-width: rem-calc(16);
|
813
813
|
// $tabbar-hamburger-icon-left: false;
|
814
814
|
// $tabbar-hamburger-icon-top: false;
|
815
|
-
// $tabbar-hamburger-icon-thickness:
|
815
|
+
// $tabbar-hamburger-icon-thickness: $default-border-size;
|
816
816
|
// $tabbar-hamburger-icon-gap: 6px;
|
817
817
|
|
818
818
|
// Off Canvas Back-Link Overlay
|
@@ -909,15 +909,15 @@ $inline-list-children-display: block;
|
|
909
909
|
// We use these to control the background and border styles
|
910
910
|
$panel-bg: scale-color($white, $lightness: -5%);
|
911
911
|
$panel-border-style: solid;
|
912
|
-
$panel-border-size:
|
912
|
+
$panel-border-size: $default-border-size;
|
913
913
|
|
914
914
|
// We use this % to control how much we darken things on hover
|
915
915
|
$panel-function-factor: -11%;
|
916
916
|
$panel-border-color: scale-color($panel-bg, $lightness: $panel-function-factor);
|
917
917
|
|
918
918
|
// We use these to set default inner padding and bottom margin
|
919
|
-
$panel-margin-bottom: rem-calc(
|
920
|
-
$panel-padding: rem-calc(
|
919
|
+
$panel-margin-bottom: rem-calc(20);
|
920
|
+
$panel-padding: rem-calc(20);
|
921
921
|
|
922
922
|
// We use these to set default font colors
|
923
923
|
$panel-font-color: rgba($black, $transparent-strong);
|
@@ -932,7 +932,7 @@ $callout-panel-link-color: $primary-color;
|
|
932
932
|
// $include-html-pricing-classes: $include-html-classes;
|
933
933
|
|
934
934
|
// We use this to control the border color
|
935
|
-
// $price-table-border: solid
|
935
|
+
// $price-table-border: solid $default-border-size rgba($black, $transparent-weak);
|
936
936
|
|
937
937
|
// We use this to control the bottom margin of the pricing table
|
938
938
|
// $price-table-margin-bottom: rem-calc(20);
|
@@ -963,7 +963,7 @@ $callout-panel-link-color: $primary-color;
|
|
963
963
|
// $price-desc-font-size: rem-calc(12);
|
964
964
|
// $price-desc-weight: $font-weight-normal;
|
965
965
|
// $price-desc-line-height: 1.4;
|
966
|
-
// $price-desc-bottom-border: dotted
|
966
|
+
// $price-desc-bottom-border: dotted $default-border-size rgba($black, $transparent-weak);
|
967
967
|
|
968
968
|
// We use these to control the list item styles
|
969
969
|
// $price-item-color: rgba($black, $transparent-strong);
|
@@ -971,7 +971,7 @@ $callout-panel-link-color: $primary-color;
|
|
971
971
|
// $price-item-align: center;
|
972
972
|
// $price-item-font-size: rem-calc(14);
|
973
973
|
// $price-item-weight: $font-weight-normal;
|
974
|
-
// $price-item-bottom-border: dotted
|
974
|
+
// $price-item-bottom-border: dotted $default-border-size rgba($black, $transparent-weak);
|
975
975
|
|
976
976
|
// We use these to control the CTA area styles
|
977
977
|
// $price-cta-bg: $white;
|
@@ -989,7 +989,7 @@ $callout-panel-link-color: $primary-color;
|
|
989
989
|
|
990
990
|
// We use these to control the border styles
|
991
991
|
// $progress-bar-border-color: scale-color($white, $lightness: 20%);
|
992
|
-
// $progress-bar-border-size:
|
992
|
+
// $progress-bar-border-size: $default-border-size;
|
993
993
|
// $progress-bar-border-style: solid;
|
994
994
|
// $progress-bar-border-radius: $global-radius;
|
995
995
|
|
@@ -1012,7 +1012,7 @@ $callout-panel-link-color: $primary-color;
|
|
1012
1012
|
// $range-slider-bar-width: 100%;
|
1013
1013
|
// $range-slider-bar-height: rem-calc(16);
|
1014
1014
|
|
1015
|
-
// $range-slider-bar-border-width:
|
1015
|
+
// $range-slider-bar-border-width: $default-border-size;
|
1016
1016
|
// $range-slider-bar-border-style: solid;
|
1017
1017
|
// $range-slider-bar-border-color: rgba($black, $transparent-weak);
|
1018
1018
|
// $range-slider-radius: $global-radius;
|
@@ -1028,7 +1028,7 @@ $callout-panel-link-color: $primary-color;
|
|
1028
1028
|
// $range-slider-handle-height: rem-calc(22);
|
1029
1029
|
// $range-slider-handle-position-top: rem-calc(-5);
|
1030
1030
|
// $range-slider-handle-bg-color: $primary-color;
|
1031
|
-
// $range-slider-handle-border-width:
|
1031
|
+
// $range-slider-handle-border-width: $default-border-size;
|
1032
1032
|
// $range-slider-handle-border-style: solid;
|
1033
1033
|
// $range-slider-handle-border-color: none;
|
1034
1034
|
// $range-slider-handle-radius: $global-radius;
|
@@ -1066,7 +1066,7 @@ $callout-panel-link-color: $primary-color;
|
|
1066
1066
|
|
1067
1067
|
// We use these to control the modal border
|
1068
1068
|
// $reveal-border-style: solid;
|
1069
|
-
// $reveal-border-width:
|
1069
|
+
// $reveal-border-width: $default-border-size;
|
1070
1070
|
// $reveal-border-color: rgba($black, $transparent-medium);
|
1071
1071
|
|
1072
1072
|
// $reveal-modal-class: "reveal-modal";
|
@@ -1105,7 +1105,7 @@ $side-nav-heading-font-weight: bold;
|
|
1105
1105
|
$side-nav-heading-text-transform: uppercase;
|
1106
1106
|
|
1107
1107
|
// We use these to control border styles
|
1108
|
-
$side-nav-divider-size:
|
1108
|
+
$side-nav-divider-size: $default-border-size;
|
1109
1109
|
$side-nav-divider-style: solid;
|
1110
1110
|
$side-nav-divider-color: scale-color($white, $lightness: 10%);
|
1111
1111
|
|
@@ -1186,7 +1186,7 @@ $sub-nav-item-divider-margin: rem-calc(12);
|
|
1186
1186
|
// Controlling border styles and background colors for the switch container
|
1187
1187
|
$switch-border-color: scale-color($white, $lightness: -20%);
|
1188
1188
|
$switch-border-style: solid;
|
1189
|
-
$switch-border-width:
|
1189
|
+
$switch-border-width: $default-border-size;
|
1190
1190
|
$switch-bg: $white;
|
1191
1191
|
|
1192
1192
|
// We use these to control the switch heights for our default classes
|
@@ -1207,7 +1207,7 @@ $switch-label-side-padding: 6px;
|
|
1207
1207
|
$switch-paddle-bg: $white;
|
1208
1208
|
$switch-paddle-fade-to-color: scale-color($switch-paddle-bg, $lightness: -10%);
|
1209
1209
|
$switch-paddle-border-color: scale-color($switch-paddle-bg, $lightness: -35%);
|
1210
|
-
$switch-paddle-border-width:
|
1210
|
+
$switch-paddle-border-width: $default-border-size;
|
1211
1211
|
$switch-paddle-border-style: solid;
|
1212
1212
|
$switch-paddle-transition-speed: .1s;
|
1213
1213
|
$switch-paddle-transition-ease: ease-out;
|
@@ -1215,7 +1215,7 @@ $switch-positive-color: scale-color($success-color, $lightness: 94%);
|
|
1215
1215
|
$switch-negative-color: rgba($black, $transparent-weak);
|
1216
1216
|
|
1217
1217
|
// Outline Style for tabbing through switches
|
1218
|
-
$switch-label-outline:
|
1218
|
+
$switch-label-outline: $default-border-size dotted rgba($black, $transparent-medium);
|
1219
1219
|
|
1220
1220
|
// 30. Tables
|
1221
1221
|
// - - - - - - - - - - - - - - - - - - - - - - - - -
|
@@ -1277,8 +1277,8 @@ $table-margin-bottom: rem-calc(20);
|
|
1277
1277
|
// $thumb-border-style: solid;
|
1278
1278
|
// $thumb-border-width: 4px;
|
1279
1279
|
// $thumb-border-color: $white;
|
1280
|
-
// $thumb-box-shadow: 0 0 0
|
1281
|
-
// $thumb-box-shadow-hover: 0 0 6px
|
1280
|
+
// $thumb-box-shadow: 0 0 0 $default-border-size rgba($black,.2);
|
1281
|
+
// $thumb-box-shadow-hover: 0 0 6px $default-border-size rgba($primary-color,0.5);
|
1282
1282
|
|
1283
1283
|
// Radius and transition speed for thumbs
|
1284
1284
|
// $thumb-radius: $global-radius;
|
@@ -1289,10 +1289,10 @@ $table-margin-bottom: rem-calc(20);
|
|
1289
1289
|
|
1290
1290
|
// $include-html-tooltip-classes: $include-html-classes;
|
1291
1291
|
|
1292
|
-
// $has-tip-border-bottom: dotted
|
1292
|
+
// $has-tip-border-bottom: dotted $default-border-size rgba($black, $transparent-weak);
|
1293
1293
|
// $has-tip-font-weight: $font-weight-bold;
|
1294
1294
|
// $has-tip-font-color: rgba($black, $transparent-strong);
|
1295
|
-
// $has-tip-border-bottom-hover: dotted
|
1295
|
+
// $has-tip-border-bottom-hover: dotted $default-border-size scale-color($primary-color, $lightness: -55%);
|
1296
1296
|
// $has-tip-font-color-hover: $primary-color;
|
1297
1297
|
// $has-tip-cursor-type: help;
|
1298
1298
|
|
@@ -1381,8 +1381,8 @@ $topbar-breakpoint: #{lower-bound($medium-range)}; // Change to 9999px for alway
|
|
1381
1381
|
// $topbar-media-query: $medium-up;
|
1382
1382
|
|
1383
1383
|
// Divider Styles
|
1384
|
-
$topbar-divider-border-bottom: solid
|
1385
|
-
$topbar-divider-border-top: solid
|
1384
|
+
$topbar-divider-border-bottom: solid $default-border-size scale-color($topbar-bg-color, $lightness: 13%);
|
1385
|
+
$topbar-divider-border-top: solid $default-border-size scale-color($topbar-bg-color, $lightness: -50%);
|
1386
1386
|
|
1387
1387
|
// Sticky Class
|
1388
1388
|
$topbar-sticky-class: ".sticky";
|
@@ -1,13 +1,41 @@
|
|
1
|
-
//
|
2
|
-
$
|
3
|
-
$
|
4
|
-
$
|
5
|
-
$border-size: 1px;//check if already exists
|
1
|
+
//APPLY TO EVERYTHING BE DEFAULT:
|
2
|
+
$rem-base: 16px;
|
3
|
+
$base-font-size: 100%;
|
4
|
+
$base-line-height: 150%;
|
6
5
|
|
7
|
-
|
8
|
-
//SPECIFY STYLES TO GENERATE THAT CAN BE APPLIED AND SET AS DEFAULTS
|
6
|
+
$default-border-size: 1px;
|
9
7
|
|
10
8
|
|
9
|
+
//SPECIFY ADDITIONAL CLASSES TO GENERATE
|
10
|
+
$padding-classes: pad1 pad2;
|
11
|
+
$padding-define: 1rem 2rem;
|
12
|
+
|
13
|
+
$margin-classes: margin1 margin2;
|
14
|
+
$margin-define: 1rem 2rem;
|
15
|
+
|
16
|
+
//UNCOMMENT FOR SPECIFIC SIDE CLASSES (MUST ALSO UNCOMMENT IN BUILD SIZES FILE)
|
17
|
+
// $margin-left-classes:;
|
18
|
+
// $margin-left-define: ;
|
19
|
+
// $margin-right-classes:;
|
20
|
+
// $margin-right-define: ;
|
21
|
+
// $margin-top-classes:;
|
22
|
+
// $margin-top-define: ;
|
23
|
+
// $margin-bottom-classes:;
|
24
|
+
// $margin-bottom-define: ;
|
25
|
+
|
26
|
+
// $padding-bottom-classes;
|
27
|
+
// $padding-bottom-define: ;
|
28
|
+
// $padding-left-classes: ;
|
29
|
+
// $padding-left-define: ;
|
30
|
+
// $padding-right-classes;
|
31
|
+
// $padding-right-define: ;
|
32
|
+
// $padding-top-classes;
|
33
|
+
// $padding-top-define: ;
|
34
|
+
|
35
|
+
|
36
|
+
//GENERATE
|
37
|
+
@import 'builders/build_sizes';
|
38
|
+
|
11
39
|
//FOUNDATION STYLES: CAN BE OVERRIDDEN BUT NEEDED
|
12
40
|
//GRID
|
13
41
|
$row-width: rem-calc(1000);
|
@@ -9,11 +9,6 @@ $typeface-secondary: serif;
|
|
9
9
|
$typeface-tertiary: monospace;
|
10
10
|
$normal-font-weight: 400;
|
11
11
|
|
12
|
-
//NOT HOOKED UP YET:
|
13
|
-
$default-font-size: 16px;
|
14
|
-
$default-line-height: 150%;
|
15
|
-
$default-letter-spacing: 0.005rem;
|
16
|
-
|
17
12
|
//FOUNDATION STYLES: CAN BE OVERRIDDEN BUT NEEDED
|
18
13
|
$font-family-sans-serif: $typeface-primary;
|
19
14
|
$font-family-serif: $typeface-secondary;
|
data/staple.gemspec
CHANGED
@@ -4,7 +4,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
|
4
4
|
|
5
5
|
Gem::Specification.new do |spec|
|
6
6
|
spec.name = "staple"
|
7
|
-
spec.version = "0.1.
|
7
|
+
spec.version = "0.1.6"
|
8
8
|
spec.summary = "A high level ui generator. WIP."
|
9
9
|
spec.description = "Coming Soon. Built on top of foundation."
|
10
10
|
spec.authors = ["Ryan Helsing"]
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: staple
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ryan Helsing
|
@@ -87,6 +87,7 @@ files:
|
|
87
87
|
- source/stylesheets/foundation_and_overrides.scss
|
88
88
|
- source/stylesheets/staple/builders/build_buttons.scss
|
89
89
|
- source/stylesheets/staple/builders/build_colors.scss
|
90
|
+
- source/stylesheets/staple/builders/build_sizes.scss
|
90
91
|
- source/stylesheets/staple/builders/build_typography.scss
|
91
92
|
- source/stylesheets/staple/buttons.scss
|
92
93
|
- source/stylesheets/staple/colors.scss
|