stitch 0.1.3.1 → 0.1.3.2
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/stitch/version.rb +1 -1
- data/stylesheets/stitch/_patterns.scss +2 -1
- data/stylesheets/stitch/_reset.scss +4 -0
- data/stylesheets/stitch/patterns/_animation.scss +2 -1
- data/stylesheets/stitch/patterns/_layout.scss +1 -0
- data/stylesheets/stitch/patterns/_legacy.scss +2 -1
- data/stylesheets/stitch/patterns/_responsive.scss +1 -0
- data/stylesheets/stitch/patterns/_text.scss +2 -1
- data/stylesheets/stitch/patterns/animation/_keyframes.scss +5 -0
- data/stylesheets/stitch/patterns/images/_image-replace.scss +1 -1
- data/stylesheets/stitch/patterns/layout/_float-children.scss +10 -6
- data/stylesheets/stitch/patterns/layout/_move.scss +19 -0
- data/stylesheets/stitch/patterns/legacy/_hacks.scss +7 -0
- data/stylesheets/stitch/patterns/responsive/_media.scss +53 -0
- data/stylesheets/stitch/patterns/text/_selection.scss +8 -0
- metadata +10 -4
data/lib/stitch/version.rb
CHANGED
@@ -0,0 +1 @@
|
|
1
|
+
@import 'responsive/media';
|
@@ -1,11 +1,15 @@
|
|
1
|
-
@mixin float-children($children:false,$direction:left) {
|
1
|
+
@mixin float-children($children:false,$direction:left,$width:false) {
|
2
2
|
@include clear-floats;
|
3
3
|
|
4
4
|
@if $children == false {
|
5
|
-
|
6
|
-
|
5
|
+
$children: '*';
|
6
|
+
}
|
7
7
|
|
8
|
-
|
9
|
-
|
10
|
-
|
8
|
+
& > #{$children} {
|
9
|
+
float:$direction;
|
10
|
+
|
11
|
+
@if $width != false {
|
12
|
+
width: $width;
|
13
|
+
}
|
14
|
+
}
|
11
15
|
}
|
@@ -0,0 +1,19 @@
|
|
1
|
+
@mixin move-up($x) {
|
2
|
+
position:relative;
|
3
|
+
top:-$x;
|
4
|
+
}
|
5
|
+
|
6
|
+
@mixin move-down($x) {
|
7
|
+
position:relative;
|
8
|
+
top:$x;
|
9
|
+
}
|
10
|
+
|
11
|
+
@mixin move-left($x) {
|
12
|
+
position:relative;
|
13
|
+
left:-$x;
|
14
|
+
}
|
15
|
+
|
16
|
+
@mixin move-right($x) {
|
17
|
+
position:relative;
|
18
|
+
left:$x;
|
19
|
+
}
|
@@ -0,0 +1,53 @@
|
|
1
|
+
@mixin mobile {
|
2
|
+
@media only screen and (min-width : 320px) and (max-width : 480px) {
|
3
|
+
@content;
|
4
|
+
}
|
5
|
+
}
|
6
|
+
|
7
|
+
@mixin mobile-portrait {
|
8
|
+
@media only screen and (max-width : 320px) {
|
9
|
+
@content;
|
10
|
+
}
|
11
|
+
}
|
12
|
+
|
13
|
+
@mixin mobile-landscape {
|
14
|
+
@media only screen and (min-width : 321px) {
|
15
|
+
@content;
|
16
|
+
}
|
17
|
+
}
|
18
|
+
|
19
|
+
@mixin tablet {
|
20
|
+
@media only screen and (min-width : 768px) and (max-width : 1024px) {
|
21
|
+
@content;
|
22
|
+
}
|
23
|
+
}
|
24
|
+
|
25
|
+
@mixin tablet-portrait {
|
26
|
+
@media only screen and (min-width : 768px) and (max-width : 1024px) and (orientation : portrait) {
|
27
|
+
@content;
|
28
|
+
}
|
29
|
+
}
|
30
|
+
|
31
|
+
@mixin tablet-landscape {
|
32
|
+
@media only screen and (min-width : 768px) and (max-width : 1024px) and (orientation : landscape) {
|
33
|
+
@content;
|
34
|
+
}
|
35
|
+
}
|
36
|
+
|
37
|
+
@mixin desktop {
|
38
|
+
@media only screen and (min-width : 1224px) {
|
39
|
+
@content;
|
40
|
+
}
|
41
|
+
}
|
42
|
+
|
43
|
+
@mixin wide-screen {
|
44
|
+
@media only screen and (min-width : 1824px) {
|
45
|
+
@content;
|
46
|
+
}
|
47
|
+
}
|
48
|
+
|
49
|
+
@mixin retina {
|
50
|
+
@media only screen and (-webkit-min-device-pixel-ratio : 1.5), only screen and (min-device-pixel-ratio : 1.5) {
|
51
|
+
@content;
|
52
|
+
}
|
53
|
+
}
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: stitch
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 79
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 1
|
9
9
|
- 3
|
10
|
-
-
|
11
|
-
version: 0.1.3.
|
10
|
+
- 2
|
11
|
+
version: 0.1.3.2
|
12
12
|
platform: ruby
|
13
13
|
authors:
|
14
14
|
- Anthony Short
|
@@ -16,7 +16,7 @@ autorequire:
|
|
16
16
|
bindir: bin
|
17
17
|
cert_chain: []
|
18
18
|
|
19
|
-
date: 2011-09-
|
19
|
+
date: 2011-09-27 00:00:00 +10:00
|
20
20
|
default_executable:
|
21
21
|
dependencies:
|
22
22
|
- !ruby/object:Gem::Dependency
|
@@ -64,9 +64,11 @@ files:
|
|
64
64
|
- stylesheets/stitch/patterns/_legacy.scss
|
65
65
|
- stylesheets/stitch/patterns/_mobile.scss
|
66
66
|
- stylesheets/stitch/patterns/_print.scss
|
67
|
+
- stylesheets/stitch/patterns/_responsive.scss
|
67
68
|
- stylesheets/stitch/patterns/_text.scss
|
68
69
|
- stylesheets/stitch/patterns/accessibility/_hide-content.scss
|
69
70
|
- stylesheets/stitch/patterns/animation/_hardware-acceleration.scss
|
71
|
+
- stylesheets/stitch/patterns/animation/_keyframes.scss
|
70
72
|
- stylesheets/stitch/patterns/animation/_timing-functions.scss
|
71
73
|
- stylesheets/stitch/patterns/forms/_search-fields.scss
|
72
74
|
- stylesheets/stitch/patterns/images/_image-rendering.scss
|
@@ -78,19 +80,23 @@ files:
|
|
78
80
|
- stylesheets/stitch/patterns/layout/_float-children.scss
|
79
81
|
- stylesheets/stitch/patterns/layout/_force-scrollbars.scss
|
80
82
|
- stylesheets/stitch/patterns/layout/_media.scss
|
83
|
+
- stylesheets/stitch/patterns/layout/_move.scss
|
81
84
|
- stylesheets/stitch/patterns/layout/_pseudo-elements.scss
|
82
85
|
- stylesheets/stitch/patterns/layout/_relative.scss
|
83
86
|
- stylesheets/stitch/patterns/layout/_simple-gradient.scss
|
87
|
+
- stylesheets/stitch/patterns/legacy/_hacks.scss
|
84
88
|
- stylesheets/stitch/patterns/legacy/_has-layout.scss
|
85
89
|
- stylesheets/stitch/patterns/legacy/_inline-block.scss
|
86
90
|
- stylesheets/stitch/patterns/mobile/_fixed-text.scss
|
87
91
|
- stylesheets/stitch/patterns/print/_append-content.scss
|
88
92
|
- stylesheets/stitch/patterns/print/_text.scss
|
93
|
+
- stylesheets/stitch/patterns/responsive/_media.scss
|
89
94
|
- stylesheets/stitch/patterns/text/.sass-cache/920421d458a84b7a73054dd233bdbe8adead02f9/_rem.scssc
|
90
95
|
- stylesheets/stitch/patterns/text/_font-stacks.scss
|
91
96
|
- stylesheets/stitch/patterns/text/_hyphens.scss
|
92
97
|
- stylesheets/stitch/patterns/text/_justify.scss
|
93
98
|
- stylesheets/stitch/patterns/text/_rem.scss
|
99
|
+
- stylesheets/stitch/patterns/text/_selection.scss
|
94
100
|
- stylesheets/stitch/patterns/text/_text-rendering.scss
|
95
101
|
has_rdoc: true
|
96
102
|
homepage: https://github.com/anthonyshort/stitch-css
|