staple 0.1.3 → 0.1.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +3 -3
- data/lib/staple/install_generator.rb +1 -0
- data/source/stylesheets/staple/builders/build_typography.scss +35 -0
- data/source/stylesheets/staple/buttons.scss +2 -0
- data/source/stylesheets/staple/forms.scss +8 -44
- data/source/stylesheets/staple/init/overrides.scss +13 -13
- data/source/stylesheets/staple/typography.scss +39 -8
- data/source/stylesheets/staple/utilities.scss +0 -16
- data/staple.gemspec +1 -1
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c37d0764086efb578d6cc28f12f14746086b5934
|
4
|
+
data.tar.gz: d6d2e172de9105a12f05edf2da1c9c07af88dce1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8ce84e3377512e09f2b772b7ee1db20ce995b4528dda64875ee1653913bf9e6d1c54c1bc3eff0eeb17ec99381e17bed8358da7cbdd13287b0b0895516fdb8b6e
|
7
|
+
data.tar.gz: 8c1a7037ce59105e21c595c25c289efd18cfa50497d55b7a304a180113b39e499ff91a939d9483a5118afbeefa9b0b819b3e3bede74ac6cd865e03446159b848
|
data/README.md
CHANGED
@@ -4,9 +4,9 @@ High level UI framework. Built on top of foundation.
|
|
4
4
|
|
5
5
|
##TODO
|
6
6
|
|
7
|
-
*
|
8
|
-
*
|
9
|
-
*
|
7
|
+
* See buttons for config
|
8
|
+
* can pull in partials/components and new css, not included w/install
|
9
|
+
* can then customize those with variables. Ask if you want to import if not in project
|
10
10
|
|
11
11
|
##LOW PRIORITY
|
12
12
|
* declaring as dependency does not load it?
|
@@ -8,6 +8,7 @@ module Staple
|
|
8
8
|
generate "foundation:install", "--slim" #rails g foundation:install --slim
|
9
9
|
# trim fat
|
10
10
|
copy_file "source/stylesheets/foundation_and_overrides.scss", "app/assets/stylesheets/foundation_and_overrides.scss", :force => true
|
11
|
+
gsub_file "app/assets/javascripts/application.js", "$(function(){ $(document).foundation(); });", "var ready = function() {\n$(document).foundation();\n$(document).foundation('abide', {\ninit: false,\n});\n}\n\n$(ready);\n$(document).on('page:load', ready);"
|
11
12
|
end
|
12
13
|
|
13
14
|
def simple_form_install
|
@@ -0,0 +1,35 @@
|
|
1
|
+
@each $class in $typeface-classes {
|
2
|
+
$i: index($typeface-classes, $class);
|
3
|
+
$typeface: nth($typeface-define, $i);
|
4
|
+
|
5
|
+
.#{$class}{
|
6
|
+
font-family: $typeface;
|
7
|
+
}
|
8
|
+
}
|
9
|
+
|
10
|
+
@each $class in $weight-classes{
|
11
|
+
$i: index($weight-classes, $class);
|
12
|
+
$weight: nth($weight-define, $i);
|
13
|
+
|
14
|
+
.#{$class}{
|
15
|
+
font-weight: $weight;
|
16
|
+
}
|
17
|
+
}
|
18
|
+
|
19
|
+
@each $class in $transform-classes{
|
20
|
+
$i: index($transform-classes, $class);
|
21
|
+
$transform: nth($transform-define, $i);
|
22
|
+
|
23
|
+
.#{$class}{
|
24
|
+
text-transform: $transform;
|
25
|
+
}
|
26
|
+
}
|
27
|
+
|
28
|
+
@each $class in $spacing-classes{
|
29
|
+
$i: index($spacing-classes, $class);
|
30
|
+
$spacing: nth($spacing-define, $i);
|
31
|
+
|
32
|
+
.#{$class}{
|
33
|
+
letter-spacing: $spacing;
|
34
|
+
}
|
35
|
+
}
|
@@ -1,52 +1,16 @@
|
|
1
1
|
//STYLE OVERRIDES
|
2
|
-
//take away pointer on label
|
3
|
-
label{
|
4
|
-
cursor: default;
|
5
|
-
}
|
6
2
|
//take away asterix
|
7
3
|
div.required{
|
8
4
|
abbr{
|
9
5
|
display: none;
|
10
6
|
}
|
11
7
|
}
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
input[type="email"],
|
21
|
-
input[type="number"],
|
22
|
-
input[type="search"],
|
23
|
-
input[type="tel"],
|
24
|
-
input[type="time"],
|
25
|
-
input[type="url"],
|
26
|
-
input[type="color"],
|
27
|
-
textarea {
|
28
|
-
box-shadow: none;
|
29
|
-
transition: border-color 0.15s ease-in-out;
|
30
|
-
}
|
31
|
-
input[type="text"]:focus,
|
32
|
-
input[type="password"]:focus,
|
33
|
-
input[type="date"]:focus,
|
34
|
-
input[type="datetime"]:focus,
|
35
|
-
input[type="datetime-local"]:focus,
|
36
|
-
input[type="month"]:focus,
|
37
|
-
input[type="week"]:focus,
|
38
|
-
input[type="email"]:focus,
|
39
|
-
input[type="number"]:focus,
|
40
|
-
input[type="search"]:focus,
|
41
|
-
input[type="tel"]:focus,
|
42
|
-
input[type="time"]:focus,
|
43
|
-
input[type="url"]:focus,
|
44
|
-
input[type="color"]:focus,
|
45
|
-
textarea:focus {
|
46
|
-
box-shadow: none;
|
47
|
-
outline: none;
|
48
|
-
}
|
49
|
-
//NOT ITALICS
|
50
|
-
[data-abide] .error small.error{
|
51
|
-
font-style: normal;
|
8
|
+
|
9
|
+
div.error{
|
10
|
+
*{ //hack: could be troublesome
|
11
|
+
border-color: $alert-color;
|
12
|
+
}
|
13
|
+
*:focus{
|
14
|
+
border-color: $alert-color;
|
15
|
+
}
|
52
16
|
}
|
@@ -91,11 +91,11 @@ $font-weight-bold: bold !default;
|
|
91
91
|
|
92
92
|
|
93
93
|
// // We use these to control various global styles
|
94
|
-
$body-bg: $white;
|
95
|
-
$body-font-color: rgba($black, $transparent-strong);
|
96
|
-
$body-font-family: $font-family-sans-serif;
|
97
|
-
$body-font-weight: $font-weight-normal;
|
98
|
-
$body-font-style: normal;
|
94
|
+
// $body-bg: $white;
|
95
|
+
// $body-font-color: rgba($black, $transparent-strong);
|
96
|
+
// $body-font-family: $font-family-sans-serif;
|
97
|
+
// $body-font-weight: $font-weight-normal;
|
98
|
+
// $body-font-style: normal;
|
99
99
|
|
100
100
|
// // We use this to control font-smoothing
|
101
101
|
$font-smoothing: antialiased;
|
@@ -394,7 +394,7 @@ $button-font-tny: rem-calc($scale-factor*11);
|
|
394
394
|
$button-font-sml: rem-calc($scale-factor*13);
|
395
395
|
$button-font-med: rem-calc($scale-factor*15);
|
396
396
|
$button-font-lrg: rem-calc($scale-factor*21);
|
397
|
-
$button-font-weight:
|
397
|
+
$button-font-weight: 200;
|
398
398
|
$button-font-align: center;
|
399
399
|
|
400
400
|
// We use these to control various hover effects.
|
@@ -571,7 +571,7 @@ $button-group-border-width: 1px;
|
|
571
571
|
$form-spacing: rem-calc($scale-factor*16);
|
572
572
|
|
573
573
|
// We use these to style the labels in different ways
|
574
|
-
$form-label-pointer:
|
574
|
+
$form-label-pointer: default;
|
575
575
|
$form-label-font-size: rem-calc(14);
|
576
576
|
$form-label-font-weight: $font-weight-normal;
|
577
577
|
$form-label-line-height: 1.5;
|
@@ -582,15 +582,15 @@ $input-font-family: inherit;
|
|
582
582
|
$input-font-color: rgba(0,0,0,0.75);
|
583
583
|
$input-font-size: rem-calc(14);
|
584
584
|
$input-bg-color: $white;
|
585
|
-
$input-focus-bg-color:
|
585
|
+
$input-focus-bg-color: default;
|
586
586
|
$input-border-color: scale-color($white, $lightness: -20%);
|
587
|
-
$input-focus-border-color:
|
587
|
+
$input-focus-border-color: $primary-color;
|
588
588
|
$input-border-style: solid;
|
589
589
|
$input-border-width: 1px;
|
590
590
|
$input-border-radius: $global-radius;
|
591
591
|
$input-disabled-bg: rgba($black, $transparent-weak);
|
592
592
|
// $input-disabled-cursor: $cursor-default-value;
|
593
|
-
$input-box-shadow:
|
593
|
+
$input-box-shadow: none;
|
594
594
|
|
595
595
|
// We use these to style the fieldset border and spacing.
|
596
596
|
$fieldset-border-style: solid;
|
@@ -621,12 +621,12 @@ $input-error-message-padding: rem-calc(6 9 9);
|
|
621
621
|
$input-error-message-top: -1px;
|
622
622
|
$input-error-message-font-size: rem-calc(12);
|
623
623
|
$input-error-message-font-weight: $font-weight-normal;
|
624
|
-
$input-error-message-font-style:
|
625
|
-
$input-error-message-font-color: $white;
|
624
|
+
$input-error-message-font-style: normal;
|
625
|
+
$input-error-message-font-color: rgba($white, $transparent-strong);
|
626
626
|
$input-error-message-font-color-alt: rgba($black, $transparent-strong);
|
627
627
|
|
628
628
|
// We use this to style the glowing effect of inputs when focused
|
629
|
-
$input-include-glowing-effect:
|
629
|
+
$input-include-glowing-effect: false;
|
630
630
|
$glowing-effect-fade-time: 0.45s;
|
631
631
|
$glowing-effect-color: $input-focus-border-color;
|
632
632
|
|
@@ -1,13 +1,44 @@
|
|
1
|
-
//IMPORT FONTS HERE
|
2
|
-
|
3
|
-
|
1
|
+
//IMPORT FONTS HERE Typekit vs google fonts
|
2
|
+
// @import url(http://fonts.googleapis.com/css?family=Slabo+27px);
|
3
|
+
// @import url(http://fonts.googleapis.com/css?family=Chivo);
|
4
|
+
// @import url(http://fonts.googleapis.com/css?family=VT323);
|
4
5
|
|
5
|
-
//
|
6
|
-
$
|
7
|
-
$
|
8
|
-
$
|
6
|
+
//DEFAULTS
|
7
|
+
$typeface-primary: sans-serif;
|
8
|
+
$typeface-secondary: serif;
|
9
|
+
$typeface-tertiary: monospace;
|
10
|
+
$normal-font-weight: 400;
|
11
|
+
|
12
|
+
//NOT HOOKED UP YET:
|
13
|
+
$default-font-size: 16px;
|
14
|
+
$default-line-height: 150%;
|
15
|
+
$default-letter-spacing: 0.005rem;
|
9
16
|
|
17
|
+
//FOUNDATION STYLES: CAN BE OVERRIDDEN BUT NEEDED
|
18
|
+
$font-family-sans-serif: $typeface-primary;
|
19
|
+
$font-family-serif: $typeface-secondary;
|
20
|
+
$font-family-monospace: $typeface-tertiary;
|
21
|
+
$body-bg: $white;//can use any from colors
|
22
|
+
$body-font-color: rgba($black, $transparent-strong);
|
23
|
+
$body-font-family: $font-family-sans-serif;
|
24
|
+
$body-font-weight: $normal-font-weight;
|
10
25
|
|
11
26
|
//FONT CLASSES TO GENERATE
|
27
|
+
$typeface-classes: primary secondary tertiary;
|
28
|
+
$typeface-define: $typeface-primary $typeface-secondary $typeface-tertiary;
|
29
|
+
|
30
|
+
//WEIGHT CLASSES IN ADDITION TO DEFAULT
|
31
|
+
$weight-classes:light strong;
|
32
|
+
$weight-define: 200 700;
|
33
|
+
|
34
|
+
//TEXT Transform: Underline, uppercase, etc text-transform: uppercase, lowercase, capitalize;
|
35
|
+
$transform-classes: up down cap;//shorter names for simplicity when chaining
|
36
|
+
$transform-define: uppercase lowercase capitalize;
|
37
|
+
|
38
|
+
//Letter spacing varients
|
39
|
+
$spacing-classes: sleak wide;
|
40
|
+
$spacing-define: 0.2rem 1rem;
|
41
|
+
|
42
|
+
@import "builders/build_typography"
|
12
43
|
|
13
|
-
//
|
44
|
+
//TODO: COOL FONT SHADOW EFFECT ON http://fittextjs.com
|
@@ -11,22 +11,6 @@ $global-rounded: 1000px;
|
|
11
11
|
|
12
12
|
//ADDITIONAL UTILITIES
|
13
13
|
//need vertical alignment
|
14
|
-
//font weights
|
15
|
-
.fontweight-light{
|
16
|
-
font-weight: 200;
|
17
|
-
}
|
18
|
-
.fontweight-normal{
|
19
|
-
font-weight: 400;
|
20
|
-
}
|
21
|
-
.fontweight-medium{
|
22
|
-
font-weight: 500;
|
23
|
-
}
|
24
|
-
.fontweight-strong{
|
25
|
-
font-weight: 700;
|
26
|
-
}
|
27
|
-
.uppercase{
|
28
|
-
text-transform: uppercase;
|
29
|
-
}
|
30
14
|
// hack: needed for admin
|
31
15
|
.row.full-width {
|
32
16
|
width: 100%;
|
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.4"
|
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,14 +1,14 @@
|
|
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.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ryan Helsing
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-11-
|
11
|
+
date: 2014-11-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: foundation-rails
|
@@ -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_typography.scss
|
90
91
|
- source/stylesheets/staple/buttons.scss
|
91
92
|
- source/stylesheets/staple/colors.scss
|
92
93
|
- source/stylesheets/staple/forms.scss
|