toolkit 0.1.13 → 0.1.14
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.
- data/LICENSE.txt +21 -0
- data/stylesheets/_toolkit.scss +2 -2
- data/stylesheets/toolkit/_border-box.scss +2 -1
- data/stylesheets/toolkit/_fluid-media.scss +20 -3
- data/stylesheets/toolkit/_pe.scss +18 -9
- data/stylesheets/toolkit/{_vertical-align.scss → _vertical-center.scss} +5 -1
- data/templates/project/_base.scss +0 -2
- data/templates/project/manifest.rb +18 -20
- data/templates/susy/_base.scss +28 -0
- data/templates/susy/manifest.rb +71 -0
- data/templates/{respond-to → susy-respond-to}/_base.scss +0 -0
- data/templates/{respond-to → susy-respond-to}/manifest.rb +0 -0
- metadata +8 -5
data/LICENSE.txt
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
Hammer.js License:
|
2
|
+
|
3
|
+
Copyright (C) 2011 by Jorik Tangelder (Eight Media)
|
4
|
+
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
7
|
+
in the Software without restriction, including without limitation the rights
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
10
|
+
furnished to do so, subject to the following conditions:
|
11
|
+
|
12
|
+
The above copyright notice and this permission notice shall be included in
|
13
|
+
all copies or substantial portions of the Software.
|
14
|
+
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
21
|
+
THE SOFTWARE.
|
data/stylesheets/_toolkit.scss
CHANGED
@@ -1,7 +1,8 @@
|
|
1
1
|
////////////////////////
|
2
2
|
// Cheat at CSS
|
3
3
|
//
|
4
|
-
// Applies a natural box layout
|
4
|
+
// Applies a natural box layout model to all elements.
|
5
5
|
// From http://paulirish.com/2012/box-sizing-border-box-ftw/
|
6
6
|
////////////////////////
|
7
|
+
@import "compass/css3/box-sizing";
|
7
8
|
* { @include box-sizing('border-box'); }
|
@@ -11,13 +11,30 @@ img {
|
|
11
11
|
//
|
12
12
|
// From the outrageously awesome Scott Kellum
|
13
13
|
////////////////////////
|
14
|
-
@mixin scale-elements($ratio: 16/9, $width: 100%, $elements: '*') {
|
15
|
-
@extend
|
14
|
+
@mixin scale-elements($ratio: 16/9, $width: 100%, $elements: '*', $no-extend: false) {
|
15
|
+
@if $no-extend {
|
16
|
+
position: relative;
|
17
|
+
height: 0;
|
18
|
+
}
|
19
|
+
@else {
|
20
|
+
@extend %scaling-elements-parent;
|
21
|
+
}
|
16
22
|
padding-top: (1 / $ratio) * $width;
|
17
23
|
width: $width;
|
18
24
|
@each $element in $elements {
|
19
25
|
> #{$element} {
|
20
|
-
@extend
|
26
|
+
@if $no-extend {
|
27
|
+
display: block;
|
28
|
+
position: absolute;
|
29
|
+
width: 100%;
|
30
|
+
height: 100%;
|
31
|
+
top: 0;
|
32
|
+
margin: 0;
|
33
|
+
padding: 0;
|
34
|
+
}
|
35
|
+
@else {
|
36
|
+
@extend %scaling-elements-child;
|
37
|
+
}
|
21
38
|
}
|
22
39
|
}
|
23
40
|
}
|
@@ -14,10 +14,17 @@
|
|
14
14
|
//
|
15
15
|
// - $feature: Modernizr feature (base CSS class name)
|
16
16
|
////////////////////////
|
17
|
-
@mixin degrade-from($feature) {
|
18
|
-
|
19
|
-
|
20
|
-
|
17
|
+
@mixin degrade-from($feature, $no-js: true) {
|
18
|
+
@if $feature == 'js' or not $no-js {
|
19
|
+
.no-#{$feature} & {
|
20
|
+
@content;
|
21
|
+
}
|
22
|
+
}
|
23
|
+
@else {
|
24
|
+
.no-#{$feature} &,
|
25
|
+
.no-js & {
|
26
|
+
@content;
|
27
|
+
}
|
21
28
|
}
|
22
29
|
}
|
23
30
|
|
@@ -30,13 +37,14 @@
|
|
30
37
|
// - $with-dimensions: Switches between including dimensions (height/width for all and background-size for SVG) or not. Defaults to true.
|
31
38
|
// - $inline: Whether or not the containing selector is an inline element. Defaults to false.
|
32
39
|
////////////////////////
|
33
|
-
@mixin replace-text-pe($
|
40
|
+
@mixin replace-text-pe($img-path, $sprite, $inline-svg: true, $with-dimensions: true, $inline-element: false) {
|
34
41
|
// Map Out the Sprite
|
35
|
-
|
42
|
+
$png-path: $img-path + '/*.png';
|
36
43
|
$sprite-map: sprite-map($png-path);
|
37
44
|
|
38
45
|
// Build SVG file name
|
39
|
-
$svg-file: str-replace('*.png', '#{$sprite}.svg', $png-path);
|
46
|
+
// $svg-file: str-replace('*.png', '#{$sprite}.svg', $png-path);
|
47
|
+
$svg-file: $img-path + '/#{$sprite}.svg';
|
40
48
|
|
41
49
|
// Default Sprite File
|
42
50
|
$sprite-file: '' !default;
|
@@ -51,7 +59,7 @@
|
|
51
59
|
}
|
52
60
|
|
53
61
|
// Hide text. Use squish-text() if the element is inline
|
54
|
-
@if $inline {
|
62
|
+
@if $inline-element {
|
55
63
|
@extend %replace-text-pe-squish;
|
56
64
|
}
|
57
65
|
@else {
|
@@ -91,7 +99,8 @@
|
|
91
99
|
//
|
92
100
|
// - $png-path: The path to the pngs for the image sprite, including the *.png (just like normal image sprites)
|
93
101
|
//////////////////////////////
|
94
|
-
@mixin sprite-map-generator($
|
102
|
+
@mixin sprite-map-generator($img-path) {
|
103
|
+
$png-path: $img-path + '/*.png';
|
95
104
|
$png-path: sprite-map($png-path);
|
96
105
|
%#{sprite-map-name($png-path)}-image-map {
|
97
106
|
background: {
|
@@ -5,7 +5,7 @@ $legacy-support-for-ie: true !default;
|
|
5
5
|
//
|
6
6
|
// Adapted from http://css-tricks.com/vertically-center-multi-lined-text/
|
7
7
|
//////////////////////////////
|
8
|
-
@mixin vertical-
|
8
|
+
@mixin vertical-center {
|
9
9
|
display: table-cell;
|
10
10
|
vertical-align: middle;
|
11
11
|
|
@@ -16,4 +16,8 @@ $legacy-support-for-ie: true !default;
|
|
16
16
|
style.clear = "none", 0
|
17
17
|
);
|
18
18
|
}
|
19
|
+
}
|
20
|
+
|
21
|
+
%vertical-center {
|
22
|
+
@include vertical-center;
|
19
23
|
}
|
@@ -1,26 +1,26 @@
|
|
1
1
|
description "Responsive Web Design Kickstart"
|
2
2
|
|
3
3
|
# Stylesheets
|
4
|
-
file '../shared/style.scss', :like => :stylesheet, :media => 'screen, projection', :to => 'style.scss'
|
4
|
+
# file '../shared/style.scss', :like => :stylesheet, :media => 'screen, projection', :to => 'style.scss'
|
5
5
|
|
6
6
|
file '_base.scss', :like => :stylesheet, :to => 'partials/global/_base.scss'
|
7
|
-
file '../shared/_variables.scss', :like => :stylesheet, :to => 'partials/global/_variables.scss'
|
8
|
-
file '../shared/_functions.scss', :like => :stylesheet, :to => 'partials/global/_functions.scss'
|
9
|
-
file '../shared/_mixins.scss', :like => :stylesheet, :to => 'partials/global/_mixins.scss'
|
10
|
-
file '../shared/_extendables.scss', :like => :stylesheet, :to => 'partials/global/_extendables.scss'
|
11
|
-
|
12
|
-
file '../shared/_style-guide.scss', :like => :stylesheet, :to => 'partials/styleguide/_style-guide.scss'
|
13
|
-
|
14
|
-
file '../shared/_layout.scss', :like => :stylesheet, :to => 'partials/layout/_layout.scss'
|
15
|
-
file '../shared/_ie-layout.scss', :like => :stylesheet, :to => 'partials/layout/_ie-layout.scss'
|
16
|
-
file '../shared/_print-layout.scss', :like => :stylesheet, :to => 'partials/layout/_print-layout.scss'
|
17
|
-
|
18
|
-
file '../shared/_design.scss', :like => :stylesheet, :to => 'partials/design/_design.scss'
|
19
|
-
file '../shared/_ie-design.scss', :like => :stylesheet, :to => 'partials/design/_ie-design.scss'
|
20
|
-
file '../shared/_print-design.scss', :like => :stylesheet, :to => 'partials/design/_print-design.scss'
|
21
|
-
|
22
|
-
file '../shared/print.scss', :like => :stylesheet, :media => 'print', :to => 'print.scss'
|
23
|
-
file '../shared/ie.scss', :like => :stylesheet, :media => 'screen, projection', :condition => "lt IE 8", :to => 'ie.scss'
|
7
|
+
# file '../shared/_variables.scss', :like => :stylesheet, :to => 'partials/global/_variables.scss'
|
8
|
+
# file '../shared/_functions.scss', :like => :stylesheet, :to => 'partials/global/_functions.scss'
|
9
|
+
# file '../shared/_mixins.scss', :like => :stylesheet, :to => 'partials/global/_mixins.scss'
|
10
|
+
# file '../shared/_extendables.scss', :like => :stylesheet, :to => 'partials/global/_extendables.scss'
|
11
|
+
#
|
12
|
+
# file '../shared/_style-guide.scss', :like => :stylesheet, :to => 'partials/styleguide/_style-guide.scss'
|
13
|
+
#
|
14
|
+
# file '../shared/_layout.scss', :like => :stylesheet, :to => 'partials/layout/_layout.scss'
|
15
|
+
# file '../shared/_ie-layout.scss', :like => :stylesheet, :to => 'partials/layout/_ie-layout.scss'
|
16
|
+
# file '../shared/_print-layout.scss', :like => :stylesheet, :to => 'partials/layout/_print-layout.scss'
|
17
|
+
#
|
18
|
+
# file '../shared/_design.scss', :like => :stylesheet, :to => 'partials/design/_design.scss'
|
19
|
+
# file '../shared/_ie-design.scss', :like => :stylesheet, :to => 'partials/design/_ie-design.scss'
|
20
|
+
# file '../shared/_print-design.scss', :like => :stylesheet, :to => 'partials/design/_print-design.scss'
|
21
|
+
#
|
22
|
+
# file '../shared/print.scss', :like => :stylesheet, :media => 'print', :to => 'print.scss'
|
23
|
+
# file '../shared/ie.scss', :like => :stylesheet, :media => 'screen, projection', :condition => "lt IE 8", :to => 'ie.scss'
|
24
24
|
|
25
25
|
# JavaScript
|
26
26
|
file '../shared/hammer.js', :like => :javascript, :to => 'hammer.js'
|
@@ -42,9 +42,7 @@ welcome_message %Q{
|
|
42
42
|
|
43
43
|
The following is included in this build:
|
44
44
|
Compass Extensions:
|
45
|
-
* Susy
|
46
45
|
* Toolkit
|
47
|
-
* Breakpoint
|
48
46
|
|
49
47
|
JavaScript:
|
50
48
|
* Modernizr Custom Build with all Standard features of 2.3.5 except html5shiv w/printshiv or Media Queries. Build your own from http://modernizr.com/download/ when you are ready for production
|
@@ -0,0 +1,28 @@
|
|
1
|
+
////////////////////////
|
2
|
+
// Base Partials
|
3
|
+
//
|
4
|
+
// These files will be shared across all three of your output
|
5
|
+
// CSS files. Generally included here are only Compass Extension
|
6
|
+
// imports and imports for variables, functions, mixins, and extendables.
|
7
|
+
////////////////////////
|
8
|
+
|
9
|
+
////////////////////////
|
10
|
+
// Compass Imports
|
11
|
+
//
|
12
|
+
// Toolkit include @import 'compass' so you don't need to.
|
13
|
+
////////////////////////
|
14
|
+
|
15
|
+
////////////////////////
|
16
|
+
// Compass Extensions
|
17
|
+
////////////////////////
|
18
|
+
@import 'toolkit';
|
19
|
+
@import 'susy';
|
20
|
+
@import 'breakpoint';
|
21
|
+
|
22
|
+
////////////////////////
|
23
|
+
// Private Imports
|
24
|
+
////////////////////////
|
25
|
+
@import 'variables';
|
26
|
+
@import 'functions';
|
27
|
+
@import 'mixins';
|
28
|
+
@import 'extendables';
|
@@ -0,0 +1,71 @@
|
|
1
|
+
description "Responsive Web Design Kickstart"
|
2
|
+
|
3
|
+
# Stylesheets
|
4
|
+
file '../shared/style.scss', :like => :stylesheet, :media => 'screen, projection', :to => 'style.scss'
|
5
|
+
|
6
|
+
file '_base.scss', :like => :stylesheet, :to => 'partials/global/_base.scss'
|
7
|
+
file '../shared/_variables.scss', :like => :stylesheet, :to => 'partials/global/_variables.scss'
|
8
|
+
file '../shared/_functions.scss', :like => :stylesheet, :to => 'partials/global/_functions.scss'
|
9
|
+
file '../shared/_mixins.scss', :like => :stylesheet, :to => 'partials/global/_mixins.scss'
|
10
|
+
file '../shared/_extendables.scss', :like => :stylesheet, :to => 'partials/global/_extendables.scss'
|
11
|
+
|
12
|
+
file '../shared/_style-guide.scss', :like => :stylesheet, :to => 'partials/styleguide/_style-guide.scss'
|
13
|
+
|
14
|
+
file '../shared/_layout.scss', :like => :stylesheet, :to => 'partials/layout/_layout.scss'
|
15
|
+
file '../shared/_ie-layout.scss', :like => :stylesheet, :to => 'partials/layout/_ie-layout.scss'
|
16
|
+
file '../shared/_print-layout.scss', :like => :stylesheet, :to => 'partials/layout/_print-layout.scss'
|
17
|
+
|
18
|
+
file '../shared/_design.scss', :like => :stylesheet, :to => 'partials/design/_design.scss'
|
19
|
+
file '../shared/_ie-design.scss', :like => :stylesheet, :to => 'partials/design/_ie-design.scss'
|
20
|
+
file '../shared/_print-design.scss', :like => :stylesheet, :to => 'partials/design/_print-design.scss'
|
21
|
+
|
22
|
+
file '../shared/print.scss', :like => :stylesheet, :media => 'print', :to => 'print.scss'
|
23
|
+
file '../shared/ie.scss', :like => :stylesheet, :media => 'screen, projection', :condition => "lt IE 8", :to => 'ie.scss'
|
24
|
+
|
25
|
+
# JavaScript
|
26
|
+
file '../shared/hammer.js', :like => :javascript, :to => 'hammer.js'
|
27
|
+
file '../shared/loader.js', :like => :javascript, :to => 'loader.js'
|
28
|
+
file '../shared/modernizr-2.5.3.js', :like => :javascript, :to => 'modernizr-2.5.3.js'
|
29
|
+
|
30
|
+
help %Q{
|
31
|
+
Please contact Sam Richard or Mason Wendell with questions:
|
32
|
+
|
33
|
+
sam@snug.ug
|
34
|
+
mason@zivtech.com
|
35
|
+
}
|
36
|
+
|
37
|
+
welcome_message %Q{
|
38
|
+
|
39
|
+
Responsive Web Design Kickstart
|
40
|
+
|
41
|
+
Welcome to the Responsive Web Design Kickstart gem! Provided are the basic tools needed to kickstart a custom Responsive Web Design solution tailor made to your needs! Remember, tools and best practices are always changing, so keep up to date!
|
42
|
+
|
43
|
+
The following is included in this build:
|
44
|
+
Compass Extensions:
|
45
|
+
* Susy
|
46
|
+
* Toolkit
|
47
|
+
* Breakpoint
|
48
|
+
|
49
|
+
JavaScript:
|
50
|
+
* Modernizr Custom Build with all Standard features of 2.3.5 except html5shiv w/printshiv or Media Queries. Build your own from http://modernizr.com/download/ when you are ready for production
|
51
|
+
* Loader.js custom JavaScript file for holding conditional asset loading scripts thanks to Modernizr's yepnope (http://yepnopejs.com/). Comes with yepnope code for loading in Hammer.js, just make sure the path is correct from root.. Ready for production, but remember to minify and gzip!
|
52
|
+
* Hammer.js (http://eightmedia.github.com/hammer.js/) for awesome touch events. Ready for production, but remember to minify and gzip!
|
53
|
+
|
54
|
+
Include the following in your <head> tag:
|
55
|
+
|
56
|
+
<meta content='width=device-width, initial-scale=1.0' name='viewport' />
|
57
|
+
<meta content='IE=edge,chrome=1' http-equiv='X-UA-Compatible' />
|
58
|
+
<!--[if lt IE 9 ]> <script src="//ajax.googleapis.com/ajax/libs/chrome-frame/1.0.2/CFInstall.min.js"></script><script>window.attachEvent("onload",function(){CFInstall.check({mode:"overlay"})})</script> <![endif]-->
|
59
|
+
<!-- CSS -->
|
60
|
+
<link href='path/to/css/style.css?v=1' rel='stylesheet' />
|
61
|
+
<!-- All JavaScript at the bottom, except for Modernizr and Respond/Selectivizr for IE 8 and Below. -->
|
62
|
+
<script src='path/to/js/modernizr-2.5.3.js'></script>
|
63
|
+
|
64
|
+
Include the following, and all other JavaScript, including any JavaScript frameworks you may be using like jQuery, right before your closing </body> tag:
|
65
|
+
|
66
|
+
<!-- Javascript at the bottom for fast page loading -->
|
67
|
+
<script src='path/to/js/loader.js'></script>
|
68
|
+
|
69
|
+
|
70
|
+
}
|
71
|
+
|
File without changes
|
File without changes
|
metadata
CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
|
|
5
5
|
segments:
|
6
6
|
- 0
|
7
7
|
- 1
|
8
|
-
-
|
9
|
-
version: 0.1.
|
8
|
+
- 14
|
9
|
+
version: 0.1.14
|
10
10
|
platform: ruby
|
11
11
|
authors:
|
12
12
|
- Sam Richard
|
@@ -90,11 +90,9 @@ files:
|
|
90
90
|
- stylesheets/toolkit/_clearfix.scss
|
91
91
|
- stylesheets/toolkit/_fluid-media.scss
|
92
92
|
- stylesheets/toolkit/_pe.scss
|
93
|
-
- stylesheets/toolkit/_vertical-
|
93
|
+
- stylesheets/toolkit/_vertical-center.scss
|
94
94
|
- templates/project/_base.scss
|
95
95
|
- templates/project/manifest.rb
|
96
|
-
- templates/respond-to/_base.scss
|
97
|
-
- templates/respond-to/manifest.rb
|
98
96
|
- templates/shared/_design.scss
|
99
97
|
- templates/shared/_extendables.scss
|
100
98
|
- templates/shared/_functions.scss
|
@@ -116,6 +114,11 @@ files:
|
|
116
114
|
- templates/singularity/manifest.rb
|
117
115
|
- templates/singularity-respond-to/_base.scss
|
118
116
|
- templates/singularity-respond-to/manifest.rb
|
117
|
+
- templates/susy/_base.scss
|
118
|
+
- templates/susy/manifest.rb
|
119
|
+
- templates/susy-respond-to/_base.scss
|
120
|
+
- templates/susy-respond-to/manifest.rb
|
121
|
+
- LICENSE.txt
|
119
122
|
has_rdoc: true
|
120
123
|
homepage: https://github.com/Snugug/toolkit
|
121
124
|
licenses: []
|