compass-core-sass37 1.1.0

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.
Files changed (147) hide show
  1. checksums.yaml +7 -0
  2. data/LICENSE.txt +22 -0
  3. data/VERSION +1 -0
  4. data/data/caniuse.json +1 -0
  5. data/data/caniuse_extras/css-placeholder.json +171 -0
  6. data/lib/compass/browser_support.rb +64 -0
  7. data/lib/compass/configuration/adapters.rb +109 -0
  8. data/lib/compass/configuration/data.rb +199 -0
  9. data/lib/compass/configuration/defaults.rb +207 -0
  10. data/lib/compass/configuration/inheritance.rb +307 -0
  11. data/lib/compass/configuration/paths.rb +19 -0
  12. data/lib/compass/configuration/watch.rb +38 -0
  13. data/lib/compass/configuration.rb +175 -0
  14. data/lib/compass/core/caniuse.rb +314 -0
  15. data/lib/compass/core/generated_version.rb +6 -0
  16. data/lib/compass/core/sass_extensions/functions/colors.rb +67 -0
  17. data/lib/compass/core/sass_extensions/functions/configuration.rb +173 -0
  18. data/lib/compass/core/sass_extensions/functions/constants.rb +56 -0
  19. data/lib/compass/core/sass_extensions/functions/cross_browser_support.rb +270 -0
  20. data/lib/compass/core/sass_extensions/functions/display.rb +32 -0
  21. data/lib/compass/core/sass_extensions/functions/enumerate.rb +7 -0
  22. data/lib/compass/core/sass_extensions/functions/env.rb +72 -0
  23. data/lib/compass/core/sass_extensions/functions/files.rb +33 -0
  24. data/lib/compass/core/sass_extensions/functions/font_files.rb +65 -0
  25. data/lib/compass/core/sass_extensions/functions/gradient_support.rb +859 -0
  26. data/lib/compass/core/sass_extensions/functions/image_size.rb +117 -0
  27. data/lib/compass/core/sass_extensions/functions/inline_image.rb +63 -0
  28. data/lib/compass/core/sass_extensions/functions/lists.rb +102 -0
  29. data/lib/compass/core/sass_extensions/functions/math.rb +105 -0
  30. data/lib/compass/core/sass_extensions/functions/selectors.rb +79 -0
  31. data/lib/compass/core/sass_extensions/functions/urls.rb +315 -0
  32. data/lib/compass/core/sass_extensions/functions.rb +41 -0
  33. data/lib/compass/core/sass_extensions/monkey_patches/browser_support.rb +119 -0
  34. data/lib/compass/core/sass_extensions/monkey_patches/traversal.rb +23 -0
  35. data/lib/compass/core/sass_extensions/monkey_patches.rb +3 -0
  36. data/lib/compass/core/sass_extensions.rb +10 -0
  37. data/lib/compass/core/version.rb +13 -0
  38. data/lib/compass/core.rb +78 -0
  39. data/lib/compass/error.rb +5 -0
  40. data/lib/compass/frameworks.rb +181 -0
  41. data/lib/compass/util.rb +19 -0
  42. data/lib/compass-core.rb +1 -0
  43. data/stylesheets/_compass.scss +3 -0
  44. data/stylesheets/_lemonade.scss +38 -0
  45. data/stylesheets/compass/_configuration.scss +54 -0
  46. data/stylesheets/compass/_css3.scss +21 -0
  47. data/stylesheets/compass/_layout.scss +3 -0
  48. data/stylesheets/compass/_reset-legacy.scss +3 -0
  49. data/stylesheets/compass/_reset.scss +3 -0
  50. data/stylesheets/compass/_support.scss +447 -0
  51. data/stylesheets/compass/_typography.scss +4 -0
  52. data/stylesheets/compass/_utilities.scss +9 -0
  53. data/stylesheets/compass/css3/_animation.scss +122 -0
  54. data/stylesheets/compass/css3/_appearance.scss +17 -0
  55. data/stylesheets/compass/css3/_background-clip.scss +35 -0
  56. data/stylesheets/compass/css3/_background-origin.scss +37 -0
  57. data/stylesheets/compass/css3/_background-size.scss +19 -0
  58. data/stylesheets/compass/css3/_border-radius.scss +107 -0
  59. data/stylesheets/compass/css3/_box-shadow.scss +88 -0
  60. data/stylesheets/compass/css3/_box-sizing.scss +21 -0
  61. data/stylesheets/compass/css3/_box.scss +85 -0
  62. data/stylesheets/compass/css3/_columns.scss +212 -0
  63. data/stylesheets/compass/css3/_deprecated-support.scss +272 -0
  64. data/stylesheets/compass/css3/_filter.scss +50 -0
  65. data/stylesheets/compass/css3/_flexbox.scss +156 -0
  66. data/stylesheets/compass/css3/_font-face.scss +48 -0
  67. data/stylesheets/compass/css3/_hyphenation.scss +71 -0
  68. data/stylesheets/compass/css3/_images.scss +152 -0
  69. data/stylesheets/compass/css3/_inline-block.scss +31 -0
  70. data/stylesheets/compass/css3/_opacity.scss +27 -0
  71. data/stylesheets/compass/css3/_pie.scss +1 -0
  72. data/stylesheets/compass/css3/_regions.scss +27 -0
  73. data/stylesheets/compass/css3/_selection.scss +59 -0
  74. data/stylesheets/compass/css3/_shared.scss +5 -0
  75. data/stylesheets/compass/css3/_text-shadow.scss +82 -0
  76. data/stylesheets/compass/css3/_transform.scss +590 -0
  77. data/stylesheets/compass/css3/_transition.scss +190 -0
  78. data/stylesheets/compass/css3/_user-interface.scss +71 -0
  79. data/stylesheets/compass/layout/_grid-background.scss +178 -0
  80. data/stylesheets/compass/layout/_sticky-footer.scss +23 -0
  81. data/stylesheets/compass/layout/_stretching.scss +24 -0
  82. data/stylesheets/compass/reset/_utilities-legacy.scss +135 -0
  83. data/stylesheets/compass/reset/_utilities.scss +142 -0
  84. data/stylesheets/compass/typography/_links.scss +3 -0
  85. data/stylesheets/compass/typography/_lists.scss +4 -0
  86. data/stylesheets/compass/typography/_text.scss +4 -0
  87. data/stylesheets/compass/typography/_units.scss +183 -0
  88. data/stylesheets/compass/typography/_vertical_rhythm.scss +300 -0
  89. data/stylesheets/compass/typography/links/_hover-link.scss +5 -0
  90. data/stylesheets/compass/typography/links/_link-colors.scss +28 -0
  91. data/stylesheets/compass/typography/links/_unstyled-link.scss +7 -0
  92. data/stylesheets/compass/typography/lists/_bullets.scss +34 -0
  93. data/stylesheets/compass/typography/lists/_horizontal-list.scss +63 -0
  94. data/stylesheets/compass/typography/lists/_inline-block-list.scss +50 -0
  95. data/stylesheets/compass/typography/lists/_inline-list.scss +47 -0
  96. data/stylesheets/compass/typography/text/_ellipsis.scss +25 -0
  97. data/stylesheets/compass/typography/text/_force-wrap.scss +12 -0
  98. data/stylesheets/compass/typography/text/_nowrap.scss +2 -0
  99. data/stylesheets/compass/typography/text/_replacement.scss +74 -0
  100. data/stylesheets/compass/utilities/_color.scss +1 -0
  101. data/stylesheets/compass/utilities/_general.scss +6 -0
  102. data/stylesheets/compass/utilities/_links.scss +5 -0
  103. data/stylesheets/compass/utilities/_lists.scss +6 -0
  104. data/stylesheets/compass/utilities/_print.scss +17 -0
  105. data/stylesheets/compass/utilities/_sass.scss +2 -0
  106. data/stylesheets/compass/utilities/_sprites.scss +2 -0
  107. data/stylesheets/compass/utilities/_tables.scss +3 -0
  108. data/stylesheets/compass/utilities/_text.scss +5 -0
  109. data/stylesheets/compass/utilities/color/_brightness.scss +20 -0
  110. data/stylesheets/compass/utilities/color/_contrast.scss +52 -0
  111. data/stylesheets/compass/utilities/general/_clearfix.scss +44 -0
  112. data/stylesheets/compass/utilities/general/_float.scss +38 -0
  113. data/stylesheets/compass/utilities/general/_hacks.scss +65 -0
  114. data/stylesheets/compass/utilities/general/_min.scss +16 -0
  115. data/stylesheets/compass/utilities/general/_reset.scss +2 -0
  116. data/stylesheets/compass/utilities/general/_tabs.scss +1 -0
  117. data/stylesheets/compass/utilities/general/_tag-cloud.scss +18 -0
  118. data/stylesheets/compass/utilities/links/_hover-link.scss +3 -0
  119. data/stylesheets/compass/utilities/links/_link-colors.scss +3 -0
  120. data/stylesheets/compass/utilities/links/_unstyled-link.scss +3 -0
  121. data/stylesheets/compass/utilities/lists/_bullets.scss +3 -0
  122. data/stylesheets/compass/utilities/lists/_horizontal-list.scss +3 -0
  123. data/stylesheets/compass/utilities/lists/_inline-block-list.scss +3 -0
  124. data/stylesheets/compass/utilities/lists/_inline-list.scss +3 -0
  125. data/stylesheets/compass/utilities/sass/_lists.scss +16 -0
  126. data/stylesheets/compass/utilities/sass/_maps.scss +19 -0
  127. data/stylesheets/compass/utilities/sprites/_base.scss +92 -0
  128. data/stylesheets/compass/utilities/sprites/_sprite-img.scss +81 -0
  129. data/stylesheets/compass/utilities/tables/_alternating-rows-and-columns.scss +22 -0
  130. data/stylesheets/compass/utilities/tables/_borders.scss +38 -0
  131. data/stylesheets/compass/utilities/tables/_scaffolding.scss +9 -0
  132. data/stylesheets/compass/utilities/text/_ellipsis.scss +3 -0
  133. data/stylesheets/compass/utilities/text/_nowrap.scss +3 -0
  134. data/stylesheets/compass/utilities/text/_replacement.scss +3 -0
  135. data/templates/ellipsis/ellipsis.sass +9 -0
  136. data/templates/ellipsis/manifest.rb +27 -0
  137. data/templates/ellipsis/xml/ellipsis.xml +14 -0
  138. data/templates/extension/manifest.rb +26 -0
  139. data/templates/extension/stylesheets/main.sass +1 -0
  140. data/templates/extension/templates/project/manifest.rb +2 -0
  141. data/templates/extension/templates/project/screen.sass +2 -0
  142. data/templates/project/USAGE.markdown +32 -0
  143. data/templates/project/ie.sass +6 -0
  144. data/templates/project/manifest.rb +4 -0
  145. data/templates/project/print.sass +6 -0
  146. data/templates/project/screen.sass +7 -0
  147. metadata +257 -0
@@ -0,0 +1,34 @@
1
+ // Turn off the bullet for an element of a list
2
+ @mixin no-bullet {
3
+ list-style-image : none;
4
+ list-style-type : none;
5
+ margin-left : 0;
6
+ }
7
+
8
+ // turns off the bullets for an entire list
9
+ @mixin no-bullets {
10
+ list-style: none;
11
+ li { @include no-bullet; }
12
+ }
13
+
14
+ // Make a list(ul/ol) have an image bullet.
15
+ //
16
+ // The mixin should be used like this for an icon that is 5x7:
17
+ //
18
+ // ul.pretty
19
+ // +pretty-bullets("my-icon.png", 5px, 7px)
20
+ //
21
+ // Additionally, if the image dimensions are not provided,
22
+ // The image dimensions will be extracted from the image itself.
23
+ //
24
+ // ul.pretty
25
+ // +pretty-bullets("my-icon.png")
26
+ //
27
+ @mixin pretty-bullets($bullet-icon, $width: image-width($bullet-icon), $height: image-height($bullet-icon), $line-height: 18px, $padding: 14px) {
28
+ margin-left: 0;
29
+ li {
30
+ padding-left: $padding;
31
+ background: image-url($bullet-icon) no-repeat ($padding - $width) / 2 ($line-height - $height) / 2;
32
+ list-style-type: none;
33
+ }
34
+ }
@@ -0,0 +1,63 @@
1
+ // Horizontal list layout module.
2
+ //
3
+ // Easy mode using simple descendant li selectors:
4
+ //
5
+ // ul.nav
6
+ // +horizontal-list
7
+ //
8
+ // Advanced mode:
9
+ // If you need to target the list items using a different selector then use
10
+ // +horizontal-list-container on your ul/ol and +horizontal-list-item on your li.
11
+ // This may help when working on layouts involving nested lists. For example:
12
+ //
13
+ // ul.nav
14
+ // +horizontal-list-container
15
+ // > li
16
+ // +horizontal-list-item
17
+
18
+ @import "bullets";
19
+ @import "compass/utilities/general/clearfix";
20
+ @import "compass/utilities/general/reset";
21
+ @import "compass/utilities/general/float";
22
+ @import "compass/support";
23
+
24
+ // Can be mixed into any selector that target a ul or ol that is meant
25
+ // to have a horizontal layout. Used to implement +horizontal-list.
26
+ @mixin horizontal-list-container {
27
+ @include reset-box-model;
28
+ @include clearfix; }
29
+
30
+ // Can be mixed into any li selector that is meant to participate in a horizontal layout.
31
+ // Used to implement +horizontal-list.
32
+ //
33
+ // :last-child is not fully supported
34
+ // see http://www.quirksmode.org/css/contents.html#t29 for the support matrix
35
+ //
36
+ // IE8 ignores rules that are included on the same line as :last-child
37
+ // see http://www.richardscarrott.co.uk/posts/view/ie8-last-child-bug for details
38
+ //
39
+ // Setting `$padding` to `false` disables the padding between list elements
40
+ @mixin horizontal-list-item($padding: 4px, $direction: left) {
41
+ @include no-bullet;
42
+ white-space: nowrap;
43
+ @include float($direction);
44
+ @if $padding {
45
+ padding: {
46
+ left: $padding;
47
+ right: $padding;
48
+ }
49
+ &:first-child #{if(support-legacy-browser("ie", "6", $threshold: $css-sel2-support-threshold), ', &.first', '')} { padding-#{$direction}: 0; }
50
+ &:last-child { padding-#{opposite-position($direction)}: 0; }
51
+ @if support-legacy-browser("ie", "7", $threshold: $css-sel2-support-threshold) {
52
+ &.last { padding-#{opposite-position($direction)}: 0; } }
53
+ }
54
+ }
55
+
56
+ // A list(ol,ul) that is layed out such that the elements are floated left and won't wrap.
57
+ // This is not an inline list.
58
+ //
59
+ // Setting `$padding` to `false` disables the padding between list elements
60
+ @mixin horizontal-list($padding: 4px, $direction: left) {
61
+ @include horizontal-list-container;
62
+ li {
63
+ @include horizontal-list-item($padding, $direction); } }
@@ -0,0 +1,50 @@
1
+ // Inline-Block list layout module.
2
+ //
3
+ // Easy mode using simple descendant li selectors:
4
+ //
5
+ // ul.nav {
6
+ // @import inline-block-list;
7
+ // }
8
+ //
9
+ // Advanced mode:
10
+ // If you need to target the list items using a different selector then use
11
+ // `@include inline-block-list-container` on your ul/ol and
12
+ // `@include inline-block-list-item` on your li. This may help when working
13
+ // on layouts involving nested lists. For example:
14
+ //
15
+ // ul.nav {
16
+ // @include inline-block-list-container;
17
+ // > li {
18
+ // @include inline-block-list-item;
19
+ // }
20
+ // }
21
+
22
+ @import "bullets";
23
+ @import "horizontal-list";
24
+ @import "compass/utilities/general/float";
25
+ @import "compass/css3/inline-block";
26
+
27
+ // Can be mixed into any selector that target a ul or ol that is meant
28
+ // to have an inline-block layout. Used to implement `inline-block-list`.
29
+ @mixin inline-block-list-container {
30
+ @include horizontal-list-container; }
31
+
32
+ // Can be mixed into any li selector that is meant to participate in a horizontal layout.
33
+ // Used to implement `inline-block-list`.
34
+ @mixin inline-block-list-item($padding: false) {
35
+ @include no-bullet;
36
+ @include inline-block;
37
+ white-space: nowrap;
38
+ @if $padding {
39
+ padding: {
40
+ left: $padding;
41
+ right: $padding;
42
+ };
43
+ }
44
+ }
45
+
46
+ // A list(ol,ul) that is layed out such that the elements are inline-block and won't wrap.
47
+ @mixin inline-block-list($padding: false) {
48
+ @include inline-block-list-container;
49
+ li {
50
+ @include inline-block-list-item($padding); } }
@@ -0,0 +1,47 @@
1
+ @import "compass/support";
2
+
3
+ // makes a list inline.
4
+ @mixin inline-list {
5
+ list-style-type: none;
6
+ &, & li {
7
+ margin: 0;
8
+ padding: 0;
9
+ display: inline;
10
+ }
11
+ }
12
+
13
+ // makes an inline list delimited with the passed string.
14
+ // Defaults to making a comma-separated list.
15
+ //
16
+ // Please make note of the browser support issues before using this mixin:
17
+ //
18
+ // use of `content` and `:after` is not fully supported in all browsers.
19
+ // See quirksmode for the [support matrix](http://www.quirksmode.org/css/contents.html#t15)
20
+ //
21
+ // `:last-child` is not fully supported.
22
+ // see quirksmode for the [support matrix](http://www.quirksmode.org/css/contents.html#t29).
23
+ //
24
+ // IE8 ignores rules that are included on the same line as :last-child
25
+ // see http://www.richardscarrott.co.uk/posts/view/ie8-last-child-bug for details
26
+
27
+ @mixin delimited-list($separator: ", ") {
28
+ @include inline-list;
29
+ li {
30
+ &:after { content: $separator; }
31
+ &:last-child {
32
+ &:after { content: ""; }
33
+ }
34
+ @if support-legacy-browser("ie", "7", $threshold: $css-sel2-support-threshold) {
35
+ &.last {
36
+ &:after { content: ""; }
37
+ }
38
+ }
39
+ }
40
+ }
41
+
42
+ // See [delimited-list](#mixin-delimited-list)
43
+ // @deprecated
44
+ @mixin comma-delimited-list {
45
+ @warn "comma-delimited-list is deprecated. Please use delimited-list instead.";
46
+ @include delimited-list;
47
+ }
@@ -0,0 +1,25 @@
1
+ @import "compass/css3/deprecated-support";
2
+
3
+ // To get full firefox support, you must install the ellipsis pattern:
4
+ //
5
+ // compass install compass/ellipsis
6
+ $use-mozilla-ellipsis-binding: false !default;
7
+
8
+ // This technique, by [Justin Maxwell](http://code404.com/), was originally
9
+ // published [here](http://mattsnider.com/css/css-string-truncation-with-ellipsis/).
10
+ // Firefox implementation by [Rikkert Koppes](http://www.rikkertkoppes.com/thoughts/2008/6/).
11
+ @mixin ellipsis($no-wrap: true) {
12
+ @if $no-wrap { white-space: nowrap; }
13
+ overflow: hidden;
14
+ @include experimental(text-overflow, ellipsis,
15
+ not -moz,
16
+ not -webkit,
17
+ -o,
18
+ -ms,
19
+ not -khtml,
20
+ official
21
+ );
22
+ @if $legacy-support-for-mozilla and $use-mozilla-ellipsis-binding {
23
+ -moz-binding: stylesheet-url(unquote("xml/ellipsis.xml#ellipsis"));
24
+ }
25
+ }
@@ -0,0 +1,12 @@
1
+ // Prevent long urls and text from breaking layouts
2
+ // [originally from perishablepress.com](http://perishablepress.com/press/2010/06/01/wrapping-content/)
3
+ @mixin force-wrap {
4
+ white-space: pre; // CSS 2.0
5
+ white-space: pre-wrap; // CSS 2.1
6
+ white-space: pre-line; // CSS 3.0
7
+ white-space: -pre-wrap; // Opera 4-6
8
+ white-space: -o-pre-wrap; // Opera 7
9
+ white-space: -moz-pre-wrap; // Mozilla
10
+ white-space: -hp-pre-wrap; // HP Printers
11
+ word-wrap: break-word; // IE 5+
12
+ }
@@ -0,0 +1,2 @@
1
+ // When remembering whether or not there's a hyphen in white-space is too hard
2
+ @mixin nowrap { white-space: nowrap; }
@@ -0,0 +1,74 @@
1
+ @import "compass/support";
2
+
3
+ // Indicates the direction you prefer to move your text
4
+ // when hiding it.
5
+ //
6
+ // `left` is more robust, especially in older browsers.
7
+ // `right` seems have better runtime performance.
8
+ $hide-text-direction: left !default;
9
+
10
+ // Hides html text and replaces it with an image.
11
+ // If you use this on an inline element, you will need to change the display to block or inline-block.
12
+ // Also, if the size of the image differs significantly from the font size, you'll need to set the width and/or height.
13
+ //
14
+ // Parameters:
15
+ //
16
+ // * `img` -- the relative path from the project image directory to the image, or a url literal.
17
+ // * `x` -- the x position of the background image.
18
+ // * `y` -- the y position of the background image.
19
+ @mixin replace-text($img, $x: 50%, $y: 50%) {
20
+ @include hide-text;
21
+ background: {
22
+ @if is-url($img) {
23
+ image: $img;
24
+ } @else {
25
+ image: image-url($img);
26
+ }
27
+ repeat: no-repeat;
28
+ position: $x $y;
29
+ };
30
+ }
31
+
32
+ // Like the `replace-text` mixin, but also sets the width
33
+ // and height of the element according the dimensions of the image.
34
+ //
35
+ // If you set `$inline` to true, then an inline image (data uri) will be used.
36
+ @mixin replace-text-with-dimensions($img, $x: 50%, $y: 50%, $inline: false) {
37
+ @include replace-text(if($inline, inline-image($img), $img), $x, $y);
38
+ width: image-width($img);
39
+ height: image-height($img);
40
+ }
41
+
42
+ // Hides text in an element so you can see the background.
43
+ //
44
+ // The direction indicates how the text should be moved out of view.
45
+ //
46
+ // See `$hide-text-direction` for more information and to set this globally
47
+ // for your application.
48
+ @mixin hide-text($direction: $hide-text-direction) {
49
+ @if $direction == left {
50
+ $approximate-em-value: 12px / 1em;
51
+ $wider-than-any-screen: -9999em;
52
+ text-indent: $wider-than-any-screen * $approximate-em-value;
53
+ overflow: hidden;
54
+ text-align: left;
55
+ } @else {
56
+ // slightly wider than the box prevents issues with inline-block elements
57
+ text-indent: 110%;
58
+ white-space: nowrap;
59
+ overflow: hidden;
60
+ }
61
+ @include for-legacy-browsers((ie: "7"), $critical-usage-threshold) {
62
+ //Text transform capitalize fixes text-replacement issue when used in a <button> element on ie7
63
+ text-transform:capitalize;
64
+ }
65
+ }
66
+
67
+ // Hides text in an element by squishing the text into oblivion.
68
+ // Use this if you need to hide text contained in an inline element
69
+ // but still have it read by a screen reader.
70
+ @mixin squish-text {
71
+ font: 0/0 serif;
72
+ text-shadow: none;
73
+ color: transparent;
74
+ }
@@ -0,0 +1 @@
1
+ @import "color/contrast";
@@ -0,0 +1,6 @@
1
+ @import "general/reset";
2
+ @import "general/clearfix";
3
+ @import "general/float";
4
+ @import "general/tag-cloud";
5
+ @import "general/hacks";
6
+ @import "general/min";
@@ -0,0 +1,5 @@
1
+ @warn "This import is deprecated. Use 'compass/typography/links' instead.";
2
+
3
+ @import "../typography/links/hover-link";
4
+ @import "../typography/links/link-colors";
5
+ @import "../typography/links/unstyled-link";
@@ -0,0 +1,6 @@
1
+ @warn "This import is deprecated. Use 'compass/typography/lists' instead.";
2
+
3
+ @import "../typography/lists/horizontal-list";
4
+ @import "../typography/lists/inline-list";
5
+ @import "../typography/lists/inline-block-list";
6
+ @import "../typography/lists/bullets";
@@ -0,0 +1,17 @@
1
+ // Classes that are useful for controlling what gets printed.
2
+ // You must mix `+print-utilities` into your print stylesheet
3
+ // and `+print-utilities(screen)` into your screen stylesheet.
4
+ // Note: these aren't semantic.
5
+ @mixin print-utilities($media: print) {
6
+ @if $media == print {
7
+ .noprint, .no-print { display: none; }
8
+ #{elements-of-type(block)} {
9
+ &.print-only { display: block; }
10
+ }
11
+ #{elements-of-type(inline)} {
12
+ &.print-only { display: inline; }
13
+ }
14
+ } @else {
15
+ .print-only { display: none; }
16
+ }
17
+ }
@@ -0,0 +1,2 @@
1
+ @import "sass/lists";
2
+ @import "sass/maps";
@@ -0,0 +1,2 @@
1
+ @import "sprites/base";
2
+ @import "sprites/sprite-img";
@@ -0,0 +1,3 @@
1
+ @import "tables/alternating-rows-and-columns";
2
+ @import "tables/borders";
3
+ @import "tables/scaffolding";
@@ -0,0 +1,5 @@
1
+ @warn "This import is deprecated. Use 'compass/typography/text' instead.";
2
+
3
+ @import "../typography/text/ellipsis";
4
+ @import "../typography/text/nowrap";
5
+ @import "../typography/text/replacement";
@@ -0,0 +1,20 @@
1
+ // Computes the "brightness" of a color
2
+ //
3
+ // Brightness is similiar to lightness in HSL but more closely approximates
4
+ // how humans perceive the intensity of the different RGB components of
5
+ // a color. Brightness is sometimes called luminance.
6
+ //
7
+ // Returns a number between 0% and 100%, where 100% is fully bright
8
+ // (white) and 0% is fully dark (black) for color values.
9
+ //
10
+ // For numbers and percentages it returns the same value to be used
11
+ // in `@include filter(brightness(1.1))`.
12
+ @function brightness($color) {
13
+ @if type-of($color) == color {
14
+ @return ((red($color) * .299) + (green($color) * .587) + (blue($color) * .114)) / 255 * 100%;
15
+ }
16
+ @else {
17
+ @return unquote("brightness(#{$color})");
18
+ }
19
+ }
20
+
@@ -0,0 +1,52 @@
1
+ @import "compass/utilities/color/brightness";
2
+
3
+ $contrasted-dark-default: #000 !default;
4
+ $contrasted-light-default: #fff !default;
5
+
6
+ // Returns either the `$light` or `$dark` color
7
+ // by deciding which contrasts more with `$color`.
8
+ //
9
+ // E.g. This can be used to select the more readable foreground color
10
+ // for a given background color.
11
+ //
12
+ // `$dark` defaults to black and `$light` defaults to white.
13
+ //
14
+ // When `$color` is `null`, this function returns `null`.
15
+ @function contrast-color(
16
+ $color,
17
+ $dark: $contrasted-dark-default,
18
+ $light: $contrasted-light-default,
19
+ $threshold: null
20
+ ) {
21
+ @if $threshold {
22
+ // Deprecated in Compass 0.13
23
+ @warn "The $threshold argment to contrast-color is no longer needed and will be removed in the next release."
24
+ }
25
+ @if $color == null {
26
+ @return null;
27
+ }
28
+ @else {
29
+ $color-brightness: brightness($color);
30
+ $dark-text-brightness: brightness($dark);
31
+ $light-text-brightness: brightness($light);
32
+
33
+ @return if(abs($color-brightness - $light-text-brightness) > abs($color-brightness - $dark-text-brightness), $light, $dark);
34
+ }
35
+ }
36
+
37
+ // Sets the specified background color and calculates a dark or light
38
+ // contrasted text color. The arguments are passed through to the
39
+ // [contrast-color function](#function-contrast-color).
40
+ @mixin contrasted(
41
+ $background-color,
42
+ $dark: $contrasted-dark-default,
43
+ $light: $contrasted-light-default,
44
+ $threshold: null
45
+ ) {
46
+ @if $threshold {
47
+ // Deprecated in Compass 0.13
48
+ @warn "The $threshold argment to contrasted is no longer needed and will be removed in the next release."
49
+ }
50
+ background-color: $background-color;
51
+ color: contrast-color($background-color, $dark, $light);
52
+ }
@@ -0,0 +1,44 @@
1
+ // @doc off
2
+ // Extends the bottom of the element to enclose any floats it contains.
3
+ // @doc on
4
+
5
+ @import "hacks";
6
+
7
+ // This basic method is preferred for the usual case, when positioned
8
+ // content will not show outside the bounds of the container.
9
+ //
10
+ // Recommendations include using this in conjunction with a width.
11
+ // Credit: [quirksmode.org](http://www.quirksmode.org/blog/archives/2005/03/clearing_floats.html)
12
+ @mixin clearfix {
13
+ overflow: hidden;
14
+ @include has-layout;
15
+ }
16
+
17
+ // This older method from Position Is Everything called
18
+ // [Easy Clearing](http://www.positioniseverything.net/easyclearing.html)
19
+ // has the advantage of allowing positioned elements to hang
20
+ // outside the bounds of the container at the expense of more tricky CSS.
21
+ @mixin legacy-pie-clearfix {
22
+ &:after {
23
+ content : "\0020";
24
+ display : block;
25
+ height : 0;
26
+ clear : both;
27
+ overflow : hidden;
28
+ visibility : hidden;
29
+ }
30
+ @include has-layout;
31
+ }
32
+
33
+ // This is an updated version of the PIE clearfix method that reduces the amount of CSS output.
34
+ // If you need to support Firefox before 3.5 you need to use `legacy-pie-clearfix` instead.
35
+ //
36
+ // Adapted from: [A new micro clearfix hack](http://nicolasgallagher.com/micro-clearfix-hack/)
37
+ @mixin pie-clearfix {
38
+ &:after {
39
+ content: "";
40
+ display: table;
41
+ clear: both;
42
+ }
43
+ @include has-layout;
44
+ }
@@ -0,0 +1,38 @@
1
+ @import "compass/support";
2
+
3
+ // The legacy support threshold for float.
4
+ // Defaults to the $critical-usage-threshold.
5
+ $legacy-float-support-threshold: $critical-usage-threshold !default;
6
+
7
+ // Implementation of float:left with fix for the
8
+ // [double-margin bug in IE5/6](http://www.positioniseverything.net/explorer/doubled-margin.html)
9
+ @mixin float-left {
10
+ @include float(left); }
11
+
12
+ // Implementation of float:right with fix for the
13
+ // [double-margin bug in IE5/6](http://www.positioniseverything.net/explorer/doubled-margin.html)
14
+ @mixin float-right {
15
+ @include float(right); }
16
+
17
+ // Direction independent float mixin that fixes the
18
+ // [double-margin bug in IE5/6](http://www.positioniseverything.net/explorer/doubled-margin.html)
19
+ @mixin float($side: left) {
20
+ float: unquote($side);
21
+ @if support-legacy-browser("ie", "6", $threshold: $legacy-float-support-threshold) {
22
+ display: inline; } }
23
+
24
+ // Resets floated elements back to their default of `float: none` and defaults
25
+ // to `display: block` unless you pass `inline` as an argument
26
+ //
27
+ // Usage Example:
28
+ //
29
+ // body.homepage
30
+ // #footer li
31
+ // +float-left
32
+ // body.signup
33
+ // #footer li
34
+ // +reset-float
35
+ @mixin reset-float($display: block) {
36
+ float: none;
37
+ @if support-legacy-browser("ie", "6", $threshold: $legacy-float-support-threshold) {
38
+ display: $display; } }
@@ -0,0 +1,65 @@
1
+ @import "compass/support";
2
+
3
+ // The legacy support threshold for has-layout.
4
+ // Defaults to the $critical-usage-threshold.
5
+ $has-layout-support-threshold: $critical-usage-threshold !default;
6
+
7
+ // The `zoom` approach generates less CSS but does not validate.
8
+ // Set this to `block` to use the display-property to hack the
9
+ // element to gain layout.
10
+ $default-has-layout-approach: zoom !default;
11
+
12
+ // This mixin causes an element matching the selector
13
+ // to gain the "hasLayout" property in internet explorer.
14
+ // More information on [hasLayout](http://reference.sitepoint.com/css/haslayout).
15
+ @mixin has-layout($approach: $default-has-layout-approach) {
16
+ @if support-legacy-browser("ie", "7", $threshold: $has-layout-support-threshold) {
17
+ @if $approach == zoom {
18
+ @include has-layout-zoom;
19
+ } @else if $approach == block {
20
+ @include has-layout-block;
21
+ } @else {
22
+ @warn "Unknown has-layout approach: #{$approach}";
23
+ @include has-layout-zoom;
24
+ }
25
+ }
26
+ }
27
+
28
+ @mixin has-layout-zoom {
29
+ @if support-legacy-browser("ie", "7", $threshold: $has-layout-support-threshold) {
30
+ *zoom: 1;
31
+ }
32
+ }
33
+
34
+ @mixin has-layout-block {
35
+ @if support-legacy-browser("ie", "7", $threshold: $has-layout-support-threshold) {
36
+ // This makes ie6 get layout
37
+ display: inline-block;
38
+ // and this puts it back to block
39
+ & { display: block; }
40
+ }
41
+ }
42
+
43
+
44
+ // The legacy support threshold for IE6 attribute hack.
45
+ // Defaults to the $critical-usage-threshold.
46
+ $ie6-attribute-hack-support-threshold: $critical-usage-threshold !default;
47
+
48
+ // A hack to supply IE6 (and below) with a different property value.
49
+ // [Read more](http://www.cssportal.com/css-hacks/#in_css-important).
50
+ @mixin bang-hack($property, $value, $ie6-value) {
51
+ @if support-legacy-browser("ie", "6", $threshold: $ie6-attribute-hack-support-threshold) {
52
+ @warn "it's recommended to use the underscore-hack() mixin instead of bang-hack()";
53
+ #{$property}: #{$value} !important;
54
+ #{$property}: #{$ie6-value};
55
+ }
56
+ }
57
+
58
+ // A hack to supply IE6 (and below) with a different property value.
59
+ // [Read more](http://www.paulirish.com/2009/browser-specific-css-hacks/)
60
+ @mixin underscore-hack($property, $value, $ie6-value) {
61
+ @if support-legacy-browser("ie", "6", $threshold: $ie6-attribute-hack-support-threshold) {
62
+ #{$property}: #{$value};
63
+ _#{$property}: #{$ie6-value};
64
+ }
65
+ }
@@ -0,0 +1,16 @@
1
+ @import "hacks";
2
+
3
+ //**
4
+ // Cross browser min-height mixin.
5
+ @mixin min-height($value) {
6
+ @include hacked-minimum(height, $value); }
7
+
8
+ //**
9
+ // Cross browser min-width mixin.
10
+ @mixin min-width($value) {
11
+ @include hacked-minimum(width, $value); }
12
+
13
+ // @private This mixin is not meant to be used directly.
14
+ @mixin hacked-minimum($property, $value) {
15
+ min-#{$property}: $value;
16
+ @include underscore-hack($property, auto, $value); }
@@ -0,0 +1,2 @@
1
+ // This module has moved.
2
+ @import "compass/reset/utilities";
@@ -0,0 +1,18 @@
1
+ // Emits styles for a tag cloud
2
+ @mixin tag-cloud($base-size: 1em) {
3
+ font-size: $base-size;
4
+ line-height: 1.2 * $base-size;
5
+ .xxs, .xs, .s, .l, .xl, .xxl {
6
+ line-height: 1.2 * $base-size; }
7
+ .xxs {
8
+ font-size: $base-size / 2; }
9
+ .xs {
10
+ font-size: 2 * $base-size / 3; }
11
+ .s {
12
+ font-size: 3 * $base-size / 4; }
13
+ .l {
14
+ font-size: 4 * $base-size / 3; }
15
+ .xl {
16
+ font-size: 3 * $base-size / 2; }
17
+ .xxl {
18
+ font-size: 2 * $base-size; } }
@@ -0,0 +1,3 @@
1
+ @warn "This import is deprecated. Use 'compass/typography/links/hover-link' instead.";
2
+
3
+ @import "../../typography/links/hover-link";
@@ -0,0 +1,3 @@
1
+ @warn "This import is deprecated. Use 'compass/typography/links/link-colors' instead.";
2
+
3
+ @import "../../typography/links/link-colors";
@@ -0,0 +1,3 @@
1
+ @warn "This import is deprecated. Use 'compass/typography/links/unstyled-link' instead.";
2
+
3
+ @import "../../typography/links/unstyled-link";