toolkit 1.1.1 → 1.2.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/stylesheets/_toolkit-no-css.scss +11 -1
- data/stylesheets/_toolkit.scss +11 -1
- data/stylesheets/toolkit/_clearfix.scss +35 -65
- data/stylesheets/toolkit/_element-query.scss +17 -0
- data/stylesheets/toolkit/_viewport.scss +29 -0
- metadata +6 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
SHA1:
|
3
|
-
data.tar.gz: e7e3312901fff1472044866b5ef5191d153f6d1a
|
4
|
-
metadata.gz: a5512e3204088cc254a8f3c80273598cf5783e85
|
5
2
|
SHA512:
|
6
|
-
data.tar.gz:
|
7
|
-
metadata.gz:
|
3
|
+
data.tar.gz: 11f80b4c6dfd2cbe7b03b34b3f4b5a2b102765b17e9002dc3d4633b8a91e411acc9fbaa1394632c3142c3c78c5200c424312a28d6cca0163d21ee11f9ce878e7
|
4
|
+
metadata.gz: c000087f542900e55fae23857ef982e61949aabeb6837431867b007d9fc1146915926e3616d000828df994d2d437533a506ec628ed3d40be3a7538a2ac6c4b10
|
5
|
+
SHA1:
|
6
|
+
data.tar.gz: 7f6528d4b5fc8f97f2dfae80114eb757d030daf3
|
7
|
+
metadata.gz: 958309647231aec256be27c897bbb66283823e9a
|
@@ -51,4 +51,14 @@
|
|
51
51
|
//////////////////////////////
|
52
52
|
// Import Fonts
|
53
53
|
//////////////////////////////
|
54
|
-
@import "toolkit/fonts";
|
54
|
+
@import "toolkit/fonts";
|
55
|
+
|
56
|
+
//////////////////////////////
|
57
|
+
// Viewport
|
58
|
+
//////////////////////////////
|
59
|
+
@import "toolkit/viewport";
|
60
|
+
|
61
|
+
//////////////////////////////
|
62
|
+
// Element Query
|
63
|
+
//////////////////////////////
|
64
|
+
@import "toolkit/element-query";
|
data/stylesheets/_toolkit.scss
CHANGED
@@ -56,4 +56,14 @@
|
|
56
56
|
//////////////////////////////
|
57
57
|
// Import Fonts
|
58
58
|
//////////////////////////////
|
59
|
-
@import "toolkit/fonts";
|
59
|
+
@import "toolkit/fonts";
|
60
|
+
|
61
|
+
//////////////////////////////
|
62
|
+
// Viewport
|
63
|
+
//////////////////////////////
|
64
|
+
@import "toolkit/viewport";
|
65
|
+
|
66
|
+
//////////////////////////////
|
67
|
+
// Element Query
|
68
|
+
//////////////////////////////
|
69
|
+
@import "toolkit/element-query";
|
@@ -1,65 +1,3 @@
|
|
1
|
-
//////////////////////////////
|
2
|
-
// Legacy Clearfix
|
3
|
-
//
|
4
|
-
// For when you need full Legacy support, including old IE and old Firefox
|
5
|
-
//
|
6
|
-
// From http://www.css-101.org/articles/clearfix/latest-new-clearfix-so-far.php
|
7
|
-
//////////////////////////////
|
8
|
-
%clearfix-legacy {
|
9
|
-
/* for IE 6/7 */
|
10
|
-
*zoom: expression(this.runtimeStyle.zoom="1", this.appendChild(document.createElement("br")).style.cssText="clear:both;font:0/0 serif");
|
11
|
-
/* non-JS fallback */
|
12
|
-
*zoom: 1;
|
13
|
-
|
14
|
-
&:before,
|
15
|
-
&:after {
|
16
|
-
content: ".";
|
17
|
-
display: block;
|
18
|
-
height: 0;
|
19
|
-
overflow: hidden;
|
20
|
-
}
|
21
|
-
|
22
|
-
&:after {
|
23
|
-
clear: both;
|
24
|
-
}
|
25
|
-
}
|
26
|
-
|
27
|
-
//////////////////////////////
|
28
|
-
// Micro Clearfix
|
29
|
-
//
|
30
|
-
// For when you need old IE support, but not concerned with old Firefox
|
31
|
-
// From http://nicolasgallagher.com/better-float-containment-in-ie/
|
32
|
-
//////////////////////////////
|
33
|
-
%clearfix-micro {
|
34
|
-
/* for IE 6/7 */
|
35
|
-
*zoom: expression(this.runtimeStyle.zoom="1", this.appendChild(document.createElement("br")).style.cssText="clear:both;font:0/0 serif");
|
36
|
-
/* non-JS fallback */
|
37
|
-
*zoom: 1;
|
38
|
-
|
39
|
-
&:before,
|
40
|
-
&:after {
|
41
|
-
content: "";
|
42
|
-
display: table;
|
43
|
-
}
|
44
|
-
|
45
|
-
&:after {
|
46
|
-
clear: both;
|
47
|
-
}
|
48
|
-
}
|
49
|
-
|
50
|
-
//////////////////////////////
|
51
|
-
// Modern Clearfix
|
52
|
-
//
|
53
|
-
// Clearfix for modern browsers, especiall when using border-box
|
54
|
-
//
|
55
|
-
// From http://www.css-101.org/articles/clearfix/latest-new-clearfix-so-far.php
|
56
|
-
//////////////////////////////
|
57
|
-
%clearfix:after {
|
58
|
-
content: "";
|
59
|
-
display: table;
|
60
|
-
clear: both;
|
61
|
-
}
|
62
|
-
|
63
1
|
//////////////////////////////
|
64
2
|
// Massive Clearfix Mixin
|
65
3
|
//
|
@@ -69,8 +7,8 @@
|
|
69
7
|
$clearfix-extend: false !default;
|
70
8
|
$legacy-support-for-mozilla: true !default;
|
71
9
|
|
72
|
-
@mixin clearfix($extend: $clearfix-extend) {
|
73
|
-
@if $legacy-support-for-ie6 and $legacy-support-for-ie7 and not $legacy-support-for-mozilla {
|
10
|
+
@mixin clearfix($extend: $clearfix-extend, $direct: 'modern') {
|
11
|
+
@if ($legacy-support-for-ie6 and $legacy-support-for-ie7 and not $legacy-support-for-mozilla) or ($direct == 'micro') {
|
74
12
|
@if $extend {
|
75
13
|
@extend %clearfix-micro;
|
76
14
|
}
|
@@ -91,7 +29,7 @@ $legacy-support-for-mozilla: true !default;
|
|
91
29
|
}
|
92
30
|
}
|
93
31
|
}
|
94
|
-
@else if $legacy-support-for-ie6 and $legacy-support-for-ie7 and $legacy-support-for-mozilla {
|
32
|
+
@else if ($legacy-support-for-ie6 and $legacy-support-for-ie7 and $legacy-support-for-mozilla) or ($direct == 'legacy') {
|
95
33
|
@if $extend {
|
96
34
|
@extend %clearfix-legacy;
|
97
35
|
}
|
@@ -126,4 +64,36 @@ $legacy-support-for-mozilla: true !default;
|
|
126
64
|
}
|
127
65
|
}
|
128
66
|
}
|
67
|
+
}
|
68
|
+
|
69
|
+
//////////////////////////////
|
70
|
+
// Legacy Clearfix
|
71
|
+
//
|
72
|
+
// For when you need full Legacy support, including old IE and old Firefox
|
73
|
+
//
|
74
|
+
// From http://www.css-101.org/articles/clearfix/latest-new-clearfix-so-far.php
|
75
|
+
//////////////////////////////
|
76
|
+
%clearfix-legacy {
|
77
|
+
@include clearfix(false, 'legacy');
|
78
|
+
}
|
79
|
+
|
80
|
+
//////////////////////////////
|
81
|
+
// Micro Clearfix
|
82
|
+
//
|
83
|
+
// For when you need old IE support, but not concerned with old Firefox
|
84
|
+
// From http://nicolasgallagher.com/better-float-containment-in-ie/
|
85
|
+
//////////////////////////////
|
86
|
+
%clearfix-micro {
|
87
|
+
@include clearfix(false, 'micro');
|
88
|
+
}
|
89
|
+
|
90
|
+
//////////////////////////////
|
91
|
+
// Modern Clearfix
|
92
|
+
//
|
93
|
+
// Clearfix for modern browsers, especiall when using border-box
|
94
|
+
//
|
95
|
+
// From http://www.css-101.org/articles/clearfix/latest-new-clearfix-so-far.php
|
96
|
+
//////////////////////////////
|
97
|
+
%clearfix:after {
|
98
|
+
@include clearfix(false, 'modern');
|
129
99
|
}
|
@@ -0,0 +1,17 @@
|
|
1
|
+
//////////////////////////////
|
2
|
+
// Element Query
|
3
|
+
//
|
4
|
+
// Mixin as described by Filament Group
|
5
|
+
// http://filamentgroup.com/lab/element_query_workarounds/
|
6
|
+
//////////////////////////////
|
7
|
+
@import "breakpoint";
|
8
|
+
|
9
|
+
@mixin element-query($sizes...) {
|
10
|
+
@each $size in $sizes {
|
11
|
+
@include breakpoint(nth($size, 2)) {
|
12
|
+
#{nth($size, 1)} & {
|
13
|
+
@content;
|
14
|
+
}
|
15
|
+
}
|
16
|
+
}
|
17
|
+
}
|
@@ -0,0 +1,29 @@
|
|
1
|
+
//////////////////////////////
|
2
|
+
// CSS level 4 Viewport
|
3
|
+
// http://dev.w3.org/csswg/css-device-adapt/#the-atviewport-rule
|
4
|
+
//////////////////////////////
|
5
|
+
$experimental-suport-for-webkit: true !default;
|
6
|
+
$experimental-support-for-mozilla: true !default;
|
7
|
+
$experimental-support-for-microsoft: true !default;
|
8
|
+
|
9
|
+
@mixin viewport {
|
10
|
+
@if $experimental-suport-for-webkit {
|
11
|
+
@-webkit-viewport {
|
12
|
+
@content;
|
13
|
+
}
|
14
|
+
}
|
15
|
+
@if $experimental-support-for-mozilla {
|
16
|
+
@-moz-viewport {
|
17
|
+
@content;
|
18
|
+
}
|
19
|
+
}
|
20
|
+
@if $experimental-support-for-microsoft {
|
21
|
+
@-ms-viewport {
|
22
|
+
@content;
|
23
|
+
}
|
24
|
+
}
|
25
|
+
@viewport {
|
26
|
+
@content;
|
27
|
+
}
|
28
|
+
}
|
29
|
+
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: toolkit
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.2.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Sam Richard
|
@@ -84,6 +84,7 @@ files:
|
|
84
84
|
- stylesheets/toolkit/_clearfix.scss
|
85
85
|
- stylesheets/toolkit/_colors.scss
|
86
86
|
- stylesheets/toolkit/_colours.scss
|
87
|
+
- stylesheets/toolkit/_element-query.scss
|
87
88
|
- stylesheets/toolkit/_equal-height-columns.scss
|
88
89
|
- stylesheets/toolkit/_fluid-media.scss
|
89
90
|
- stylesheets/toolkit/_fonts.scss
|
@@ -92,6 +93,7 @@ files:
|
|
92
93
|
- stylesheets/toolkit/_selectors.scss
|
93
94
|
- stylesheets/toolkit/_triangle.scss
|
94
95
|
- stylesheets/toolkit/_vertical-center.scss
|
96
|
+
- stylesheets/toolkit/_viewport.scss
|
95
97
|
- templates/box-sizing/behaviors/box-sizing/boxsizing.htc
|
96
98
|
- templates/box-sizing/behaviors/box-sizing/boxsizing.php
|
97
99
|
- templates/box-sizing/manifest.rb
|
@@ -115,8 +117,9 @@ files:
|
|
115
117
|
- templates/shared/style.scss
|
116
118
|
- LICENSE.txt
|
117
119
|
homepage: https://github.com/Snugug/toolkit
|
118
|
-
licenses:
|
119
|
-
|
120
|
+
licenses:
|
121
|
+
- MIT
|
122
|
+
- GPL
|
120
123
|
metadata: {}
|
121
124
|
|
122
125
|
post_install_message:
|