staple 0.1.0 → 0.1.1
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 +11 -5
- data/lib/staple/import_generator.rb +43 -43
- data/lib/staple/install_generator.rb +1 -8
- data/lib/staple/list_generator.rb +9 -9
- data/source/stylesheets/foundation_and_overrides.scss +5 -2
- data/source/stylesheets/{after.scss → staple/after.scss} +4 -3
- data/source/stylesheets/staple/before.scss +7 -0
- data/source/stylesheets/staple/build_buttons.scss +32 -0
- data/source/stylesheets/staple/build_colors.scss +45 -0
- data/source/stylesheets/staple/buttons.scss +60 -0
- data/source/stylesheets/staple/color.scss +33 -0
- data/source/stylesheets/staple/color_functions.scss +63 -0
- data/source/stylesheets/staple/overrides.scss +1397 -0
- data/source/stylesheets/staple/size.scss +21 -0
- data/source/stylesheets/staple/typography.scss +13 -0
- data/source/stylesheets/staple/utilities.scss +42 -0
- data/staple.gemspec +1 -1
- metadata +14 -10
- data/source/stylesheets/before.scss +0 -9
- data/source/stylesheets/buttons.scss +0 -0
- data/source/stylesheets/color.scss +0 -0
- data/source/stylesheets/sizing.scss +0 -0
- data/source/stylesheets/typography.scss +0 -0
- data/source/stylesheets/utilities.scss +0 -0
- /data/source/stylesheets/{forms.scss → staple/forms.scss} +0 -0
@@ -0,0 +1,21 @@
|
|
1
|
+
//SCALE
|
2
|
+
$scale-factor: 1;//Will adjust just about everything?
|
3
|
+
$default-padding: 1.5rem;
|
4
|
+
$default-margin: 1.5rem;
|
5
|
+
$border-size: 1px;//check if already exists
|
6
|
+
|
7
|
+
//SAME AS BUTTONS FOR PADDING AND MARGINS
|
8
|
+
//SPECIFY STYLES TO GENERATE THAT CAN BE APPLIED AND SET AS DEFAULTS
|
9
|
+
|
10
|
+
|
11
|
+
//FOUNDATION STYLES: CAN BE OVERRIDDEN BUT NEEDED
|
12
|
+
//GRID
|
13
|
+
$row-width: rem-calc(1000);
|
14
|
+
$total-columns: 12;
|
15
|
+
$column-gutter: rem-calc(3);
|
16
|
+
//MEDDIA QUERIES
|
17
|
+
$small-range: (0em, 40em);
|
18
|
+
$medium-range: (40.063em, 64em);
|
19
|
+
$large-range: (64.063em, 90em);
|
20
|
+
$xlarge-range: (90.063em, 120em);
|
21
|
+
$xxlarge-range: (120.063em, 99999999em);
|
@@ -0,0 +1,13 @@
|
|
1
|
+
//IMPORT FONTS HERE
|
2
|
+
$type-face-primary:"Helvetica Neue", Helvetica, Roboto, Arial, sans-serif;
|
3
|
+
$type-face-secondary:Georgia, Cambria, "Times New Roman", Times, serif;
|
4
|
+
|
5
|
+
//FOUNDATION STYLES: CAN BE OVERRIDDEN BUT NEEDED
|
6
|
+
$font-family-sans-serif: $type-face-primary;
|
7
|
+
$font-family-serif: $type-face-secondary;
|
8
|
+
$font-family-monospace: Consolas, "Liberation Mono", Courier, monospace;
|
9
|
+
|
10
|
+
|
11
|
+
//FONT CLASSES TO GENERATE
|
12
|
+
|
13
|
+
//SET FONT
|
@@ -0,0 +1,42 @@
|
|
1
|
+
//SAME AS BUTTONS FOR SHADOWS BORDERS ROUNDING
|
2
|
+
//SPECIFY STYLES TO GENERATE THAT CAN BE APPLIED AND SET AS DEFAULTS
|
3
|
+
|
4
|
+
//FOUNDATION STYLES: CAN BE OVERRIDDEN BUT NEEDED
|
5
|
+
$global-radius: 5px;
|
6
|
+
$global-rounded: 1000px;
|
7
|
+
|
8
|
+
//FONT WEIGHT CLASSES TO GENERATE - UTILITIES?
|
9
|
+
|
10
|
+
//LETTER SPACING CLASSES TO GENERATE - UTILITIES?
|
11
|
+
|
12
|
+
//ADDITIONAL UTILITIES
|
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
|
+
// hack: needed for admin
|
31
|
+
.row.full-width {
|
32
|
+
width: 100%;
|
33
|
+
max-width: 100%;
|
34
|
+
}
|
35
|
+
.no-margin{
|
36
|
+
margin: 0px;
|
37
|
+
}
|
38
|
+
|
39
|
+
//* modifiers:padding, border, space between buttons
|
40
|
+
//* gradient
|
41
|
+
//* blur
|
42
|
+
//* middle
|
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.1"
|
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.1
|
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-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: foundation-rails
|
@@ -84,15 +84,19 @@ files:
|
|
84
84
|
- lib/staple/install_generator.rb
|
85
85
|
- lib/staple/list_generator.rb
|
86
86
|
- source/simple_form/_form.html.slim
|
87
|
-
- source/stylesheets/after.scss
|
88
|
-
- source/stylesheets/before.scss
|
89
|
-
- source/stylesheets/buttons.scss
|
90
|
-
- source/stylesheets/color.scss
|
91
|
-
- source/stylesheets/forms.scss
|
92
87
|
- source/stylesheets/foundation_and_overrides.scss
|
93
|
-
- source/stylesheets/
|
94
|
-
- source/stylesheets/
|
95
|
-
- source/stylesheets/
|
88
|
+
- source/stylesheets/staple/after.scss
|
89
|
+
- source/stylesheets/staple/before.scss
|
90
|
+
- source/stylesheets/staple/build_buttons.scss
|
91
|
+
- source/stylesheets/staple/build_colors.scss
|
92
|
+
- source/stylesheets/staple/buttons.scss
|
93
|
+
- source/stylesheets/staple/color.scss
|
94
|
+
- source/stylesheets/staple/color_functions.scss
|
95
|
+
- source/stylesheets/staple/forms.scss
|
96
|
+
- source/stylesheets/staple/overrides.scss
|
97
|
+
- source/stylesheets/staple/size.scss
|
98
|
+
- source/stylesheets/staple/typography.scss
|
99
|
+
- source/stylesheets/staple/utilities.scss
|
96
100
|
- staple.gemspec
|
97
101
|
homepage: https://github.com/rhelsing/staple
|
98
102
|
licenses:
|
@@ -1,9 +0,0 @@
|
|
1
|
-
//before.scss
|
2
|
-
//must be loaded before loading foundation because variables will affect foundation
|
3
|
-
@import "foundation/functions";
|
4
|
-
$include-html-classes: true;
|
5
|
-
$include-html-global-classes: $include-html-classes;
|
6
|
-
@import 'color';
|
7
|
-
@import 'typography';
|
8
|
-
@import 'sizing';
|
9
|
-
//additional based on variables
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|