toolkit 0.2.1.2 → 0.2.1.3

Sign up to get free protection for your applications and to get access to all the features.
@@ -31,4 +31,9 @@
31
31
  //////////////////////////////
32
32
  // Import Color Helpers
33
33
  //////////////////////////////
34
- @import 'toolkit/colours';
34
+ @import 'toolkit/colours';
35
+
36
+ //////////////////////////////
37
+ // Import Selector Awesomeness
38
+ //////////////////////////////
39
+ @import "toolkit/selectors";
@@ -0,0 +1,92 @@
1
+ //////////////////////////////
2
+ // Attribute Selector
3
+ //////////////////////////////
4
+
5
+ @mixin style-attribute($attribute, $selector, $value, $sibling: '') {
6
+ $select: false;
7
+
8
+ @if $selector == 'equals' {
9
+ $select: '=';
10
+ }
11
+ @else if $selector == 'contains' {
12
+ $select: '*=';
13
+ }
14
+ @else if $selector == 'begins with' {
15
+ $select: '^=';
16
+ }
17
+ @else if $selector == 'ends with' {
18
+ $select: '$=';
19
+ }
20
+ @else if $selector == 'within spaced list' {
21
+ $select: '~=';
22
+ }
23
+ @else if $selector == 'within dashed list' {
24
+ $select: '|=';
25
+ }
26
+
27
+ @if $select {
28
+ #{$sibling}[#{$attribute}#{$select}"#{$value}"] {
29
+ @content;
30
+ }
31
+ }
32
+ @else {
33
+ @warn '"#{$selector}" is not a valid use of CSS Attribute Selectors';
34
+ }
35
+ }
36
+
37
+ @mixin style-external-links($base-url: false, $scheme: 'all') {
38
+ @if $base-url {
39
+ @if $scheme == 'plain' {
40
+ a[href^="http://#{$base-url}"],
41
+ a[href^="http://www.#{$base-url}"] {
42
+ @content;
43
+ }
44
+ }
45
+ @else if $scheme == 'secure' {
46
+ a[href^="https://#{$base-url}"],
47
+ a[href^="https://www.#{$base-url}"] {
48
+ @content;
49
+ }
50
+ }
51
+ @else if $scheme == 'all' {
52
+ a[href^="http://#{$base-url}"],
53
+ a[href^="http://www.#{$base-url}"],
54
+ a[href^="https://#{$base-url}"],
55
+ a[href^="https://www.#{$base-url}"] {
56
+ @content;
57
+ }
58
+ }
59
+ }
60
+ @else {
61
+ @if $scheme == 'all' {
62
+ a[href^="http://"],
63
+ a[href^="https://"] {
64
+ @content;
65
+ }
66
+ }
67
+ @else if $scheme == 'plain' {
68
+ a[href^="http://"] {
69
+ @content;
70
+ }
71
+ }
72
+ @else if $scheme == 'secure' {
73
+ a[href^="https://"] {
74
+ @content;
75
+ }
76
+ }
77
+ }
78
+ }
79
+
80
+ $legacy-support-for-ie: true !default;
81
+
82
+ @mixin style-internal-links {
83
+ @if $legacy-support-for-ie {
84
+ a {
85
+ @content;
86
+ }
87
+ }
88
+ a:not([href^='http://']),
89
+ a:not([href^='https://']) {
90
+ @content;
91
+ }
92
+ }
metadata CHANGED
@@ -6,8 +6,8 @@ version: !ruby/object:Gem::Version
6
6
  - 0
7
7
  - 2
8
8
  - 1
9
- - 2
10
- version: 0.2.1.2
9
+ - 3
10
+ version: 0.2.1.3
11
11
  platform: ruby
12
12
  authors:
13
13
  - Sam Richard
@@ -16,7 +16,7 @@ autorequire:
16
16
  bindir: bin
17
17
  cert_chain: []
18
18
 
19
- date: 2011-11-14 00:00:00 -05:00
19
+ date: 2011-11-29 00:00:00 -05:00
20
20
  default_executable:
21
21
  dependencies:
22
22
  - !ruby/object:Gem::Dependency
@@ -28,10 +28,9 @@ dependencies:
28
28
  - !ruby/object:Gem::Version
29
29
  segments:
30
30
  - 0
31
- - 13
32
- - alpha
33
- - 0
34
- version: 0.13.alpha.0
31
+ - 12
32
+ - 2
33
+ version: 0.12.2
35
34
  type: :runtime
36
35
  version_requirements: *id001
37
36
  - !ruby/object:Gem::Dependency
@@ -93,6 +92,7 @@ files:
93
92
  - stylesheets/toolkit/_colours.scss
94
93
  - stylesheets/toolkit/_fluid-media.scss
95
94
  - stylesheets/toolkit/_pe.scss
95
+ - stylesheets/toolkit/_selectors.scss
96
96
  - stylesheets/toolkit/_vertical-center.scss
97
97
  - templates/project/_base.scss
98
98
  - templates/project/manifest.rb