comixins 0.1.1 → 0.1.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (121) hide show
  1. checksums.yaml +4 -4
  2. data/.gitignore +8 -0
  3. data/.rubocop.yml +26 -0
  4. data/Gemfile +2 -0
  5. data/README.md +35 -0
  6. data/comixins.gemspec +20 -0
  7. data/lib/comixins/version.rb +1 -1
  8. data/vendor/assets/stylesheets/LICENSE.markdown +29 -0
  9. data/vendor/assets/stylesheets/LICENSE_backup.md +29 -0
  10. data/vendor/assets/stylesheets/_animate.scss +3 -0
  11. data/vendor/assets/stylesheets/_compass.scss +4 -0
  12. data/vendor/assets/stylesheets/_lemonade.scss +38 -0
  13. data/vendor/assets/stylesheets/animation/_animate.scss +31 -0
  14. data/vendor/assets/stylesheets/animation/_core.scss +127 -0
  15. data/vendor/assets/stylesheets/animation/_shared.scss +22 -0
  16. data/vendor/assets/stylesheets/animation/animate/_attention-seekers.scss +152 -0
  17. data/vendor/assets/stylesheets/animation/animate/_bouncing.scss +3 -0
  18. data/vendor/assets/stylesheets/animation/animate/_classes.scss +21 -0
  19. data/vendor/assets/stylesheets/animation/animate/_fading.scss +3 -0
  20. data/vendor/assets/stylesheets/animation/animate/_flippers.scss +87 -0
  21. data/vendor/assets/stylesheets/animation/animate/_lightspeed.scss +24 -0
  22. data/vendor/assets/stylesheets/animation/animate/_rotating.scss +3 -0
  23. data/vendor/assets/stylesheets/animation/animate/_specials.scss +42 -0
  24. data/vendor/assets/stylesheets/animation/animate/bouncing/_bouncing-entrances.scss +68 -0
  25. data/vendor/assets/stylesheets/animation/animate/bouncing/_bouncing-exits.scss +60 -0
  26. data/vendor/assets/stylesheets/animation/animate/fading/_fading-entrances.scss +86 -0
  27. data/vendor/assets/stylesheets/animation/animate/fading/_fading-exits.scss +86 -0
  28. data/vendor/assets/stylesheets/animation/animate/rotating/_rotating-entrances.scss +58 -0
  29. data/vendor/assets/stylesheets/animation/animate/rotating/_rotating-exits.scss +58 -0
  30. data/vendor/assets/stylesheets/comixins.scss +1 -0
  31. data/vendor/assets/stylesheets/compass/_css3.scss +22 -0
  32. data/vendor/assets/stylesheets/compass/_functions.scss +6 -0
  33. data/vendor/assets/stylesheets/compass/_layout.scss +3 -0
  34. data/vendor/assets/stylesheets/compass/_reset-legacy.scss +3 -0
  35. data/vendor/assets/stylesheets/compass/_reset.scss +3 -0
  36. data/vendor/assets/stylesheets/compass/_support.scss +40 -0
  37. data/vendor/assets/stylesheets/compass/_typography.scss +4 -0
  38. data/vendor/assets/stylesheets/compass/_utilities.scss +9 -0
  39. data/vendor/assets/stylesheets/compass/css3/_animation.scss +2 -0
  40. data/vendor/assets/stylesheets/compass/css3/_appearance.scss +16 -0
  41. data/vendor/assets/stylesheets/compass/css3/_background-clip.scss +43 -0
  42. data/vendor/assets/stylesheets/compass/css3/_background-origin.scss +42 -0
  43. data/vendor/assets/stylesheets/compass/css3/_background-size.scss +26 -0
  44. data/vendor/assets/stylesheets/compass/css3/_border-radius.scss +130 -0
  45. data/vendor/assets/stylesheets/compass/css3/_box-shadow.scss +76 -0
  46. data/vendor/assets/stylesheets/compass/css3/_box-sizing.scss +13 -0
  47. data/vendor/assets/stylesheets/compass/css3/_box.scss +111 -0
  48. data/vendor/assets/stylesheets/compass/css3/_columns.scss +148 -0
  49. data/vendor/assets/stylesheets/compass/css3/_filter.scss +23 -0
  50. data/vendor/assets/stylesheets/compass/css3/_flexbox.scss +86 -0
  51. data/vendor/assets/stylesheets/compass/css3/_font-face.scss +48 -0
  52. data/vendor/assets/stylesheets/compass/css3/_hyphenation.scss +77 -0
  53. data/vendor/assets/stylesheets/compass/css3/_images.scss +133 -0
  54. data/vendor/assets/stylesheets/compass/css3/_inline-block.scss +22 -0
  55. data/vendor/assets/stylesheets/compass/css3/_opacity.scss +19 -0
  56. data/vendor/assets/stylesheets/compass/css3/_pie.scss +73 -0
  57. data/vendor/assets/stylesheets/compass/css3/_regions.scss +22 -0
  58. data/vendor/assets/stylesheets/compass/css3/_shared.scss +38 -0
  59. data/vendor/assets/stylesheets/compass/css3/_text-shadow.scss +87 -0
  60. data/vendor/assets/stylesheets/compass/css3/_transform-legacy.scss +87 -0
  61. data/vendor/assets/stylesheets/compass/css3/_transform.scss +598 -0
  62. data/vendor/assets/stylesheets/compass/css3/_transition.scss +221 -0
  63. data/vendor/assets/stylesheets/compass/css3/_user-interface.scss +47 -0
  64. data/vendor/assets/stylesheets/compass/functions/_colors.scss +37 -0
  65. data/vendor/assets/stylesheets/compass/functions/_constants.scss +18 -0
  66. data/vendor/assets/stylesheets/compass/functions/_cross_browser_support.scss +72 -0
  67. data/vendor/assets/stylesheets/compass/functions/_display.scss +36 -0
  68. data/vendor/assets/stylesheets/compass/functions/_gradient_support.scss +15 -0
  69. data/vendor/assets/stylesheets/compass/functions/_lists.scss +90 -0
  70. data/vendor/assets/stylesheets/compass/layout/_grid-background.scss +178 -0
  71. data/vendor/assets/stylesheets/compass/layout/_sticky-footer.scss +23 -0
  72. data/vendor/assets/stylesheets/compass/layout/_stretching.scss +24 -0
  73. data/vendor/assets/stylesheets/compass/reset/_utilities-legacy.scss +135 -0
  74. data/vendor/assets/stylesheets/compass/reset/_utilities.scss +142 -0
  75. data/vendor/assets/stylesheets/compass/typography/_links.scss +3 -0
  76. data/vendor/assets/stylesheets/compass/typography/_lists.scss +4 -0
  77. data/vendor/assets/stylesheets/compass/typography/_text.scss +4 -0
  78. data/vendor/assets/stylesheets/compass/typography/_vertical_rhythm.scss +219 -0
  79. data/vendor/assets/stylesheets/compass/typography/links/_hover-link.scss +5 -0
  80. data/vendor/assets/stylesheets/compass/typography/links/_link-colors.scss +28 -0
  81. data/vendor/assets/stylesheets/compass/typography/links/_unstyled-link.scss +7 -0
  82. data/vendor/assets/stylesheets/compass/typography/lists/_bullets.scss +34 -0
  83. data/vendor/assets/stylesheets/compass/typography/lists/_horizontal-list.scss +61 -0
  84. data/vendor/assets/stylesheets/compass/typography/lists/_inline-block-list.scss +50 -0
  85. data/vendor/assets/stylesheets/compass/typography/lists/_inline-list.scss +44 -0
  86. data/vendor/assets/stylesheets/compass/typography/text/_ellipsis.scss +25 -0
  87. data/vendor/assets/stylesheets/compass/typography/text/_force-wrap.scss +12 -0
  88. data/vendor/assets/stylesheets/compass/typography/text/_nowrap.scss +2 -0
  89. data/vendor/assets/stylesheets/compass/typography/text/_replacement.scss +68 -0
  90. data/vendor/assets/stylesheets/compass/utilities/_color.scss +1 -0
  91. data/vendor/assets/stylesheets/compass/utilities/_general.scss +6 -0
  92. data/vendor/assets/stylesheets/compass/utilities/_links.scss +5 -0
  93. data/vendor/assets/stylesheets/compass/utilities/_lists.scss +6 -0
  94. data/vendor/assets/stylesheets/compass/utilities/_print.scss +17 -0
  95. data/vendor/assets/stylesheets/compass/utilities/_sprites.scss +2 -0
  96. data/vendor/assets/stylesheets/compass/utilities/_tables.scss +3 -0
  97. data/vendor/assets/stylesheets/compass/utilities/_text.scss +5 -0
  98. data/vendor/assets/stylesheets/compass/utilities/color/_contrast.scss +28 -0
  99. data/vendor/assets/stylesheets/compass/utilities/general/_clearfix.scss +44 -0
  100. data/vendor/assets/stylesheets/compass/utilities/general/_float.scss +30 -0
  101. data/vendor/assets/stylesheets/compass/utilities/general/_hacks.scss +46 -0
  102. data/vendor/assets/stylesheets/compass/utilities/general/_min.scss +16 -0
  103. data/vendor/assets/stylesheets/compass/utilities/general/_reset.scss +2 -0
  104. data/vendor/assets/stylesheets/compass/utilities/general/_tabs.scss +1 -0
  105. data/vendor/assets/stylesheets/compass/utilities/general/_tag-cloud.scss +18 -0
  106. data/vendor/assets/stylesheets/compass/utilities/links/_hover-link.scss +3 -0
  107. data/vendor/assets/stylesheets/compass/utilities/links/_link-colors.scss +3 -0
  108. data/vendor/assets/stylesheets/compass/utilities/links/_unstyled-link.scss +3 -0
  109. data/vendor/assets/stylesheets/compass/utilities/lists/_bullets.scss +3 -0
  110. data/vendor/assets/stylesheets/compass/utilities/lists/_horizontal-list.scss +3 -0
  111. data/vendor/assets/stylesheets/compass/utilities/lists/_inline-block-list.scss +3 -0
  112. data/vendor/assets/stylesheets/compass/utilities/lists/_inline-list.scss +3 -0
  113. data/vendor/assets/stylesheets/compass/utilities/sprites/_base.scss +66 -0
  114. data/vendor/assets/stylesheets/compass/utilities/sprites/_sprite-img.scss +79 -0
  115. data/vendor/assets/stylesheets/compass/utilities/tables/_alternating-rows-and-columns.scss +22 -0
  116. data/vendor/assets/stylesheets/compass/utilities/tables/_borders.scss +33 -0
  117. data/vendor/assets/stylesheets/compass/utilities/tables/_scaffolding.scss +9 -0
  118. data/vendor/assets/stylesheets/compass/utilities/text/_ellipsis.scss +3 -0
  119. data/vendor/assets/stylesheets/compass/utilities/text/_nowrap.scss +3 -0
  120. data/vendor/assets/stylesheets/compass/utilities/text/_replacement.scss +3 -0
  121. metadata +119 -1
@@ -0,0 +1,58 @@
1
+ // ---------------------------------------------------------------------------
2
+ @include keyframes(rotateIn) {
3
+ 0% {
4
+ @include transform-origin(center center);
5
+ @include rotate(-200deg);
6
+ opacity: 0; }
7
+ 100% {
8
+ @include transform-origin(center center);
9
+ @include rotate(0);
10
+ opacity: 1; } }
11
+
12
+
13
+ // ---------------------------------------------------------------------------
14
+ @include keyframes(rotateInDownLeft) {
15
+ 0% {
16
+ @include transform-origin(left bottom);
17
+ @include rotate(-90deg);
18
+ opacity: 0; }
19
+ 100% {
20
+ @include transform-origin(left bottom);
21
+ @include rotate(0);
22
+ opacity: 1; } }
23
+
24
+
25
+ // ---------------------------------------------------------------------------
26
+ @include keyframes(rotateInUpLeft) {
27
+ 0% {
28
+ @include transform-origin(left bottom);
29
+ @include rotate(90deg);
30
+ opacity: 0; }
31
+ 100% {
32
+ @include transform-origin(left bottom);
33
+ @include rotate(0);
34
+ opacity: 1; } }
35
+
36
+
37
+ // ---------------------------------------------------------------------------
38
+ @include keyframes(rotateInUpRight) {
39
+ 0% {
40
+ @include transform-origin(right bottom);
41
+ @include rotate(-90deg);
42
+ opacity: 0; }
43
+ 100% {
44
+ @include transform-origin(right bottom);
45
+ @include rotate(0);
46
+ opacity: 1; } }
47
+
48
+
49
+ // ---------------------------------------------------------------------------
50
+ @include keyframes(rotateInDownRight) {
51
+ 0% {
52
+ @include transform-origin(right bottom);
53
+ @include rotate(90deg);
54
+ opacity: 0; }
55
+ 100% {
56
+ @include transform-origin(right bottom);
57
+ @include rotate(0);
58
+ opacity: 1; } }
@@ -0,0 +1,58 @@
1
+ // ---------------------------------------------------------------------------
2
+ @include keyframes(rotateOut) {
3
+ 0% {
4
+ @include transform-origin(center center);
5
+ @include rotate(0);
6
+ opacity: 1; }
7
+ 100% {
8
+ @include transform-origin(center center);
9
+ @include rotate(200deg);
10
+ opacity: 0; } }
11
+
12
+
13
+ // ---------------------------------------------------------------------------
14
+ @include keyframes(rotateOutDownLeft) {
15
+ 0% {
16
+ @include transform-origin(left bottom);
17
+ @include rotate(0);
18
+ opacity: 1; }
19
+ 100% {
20
+ @include transform-origin(left bottom);
21
+ @include rotate(90deg);
22
+ opacity: 0; } }
23
+
24
+
25
+ // ---------------------------------------------------------------------------
26
+ @include keyframes(rotateOutUpLeft) {
27
+ 0% {
28
+ @include transform-origin(left bottom);
29
+ @include rotate(0);
30
+ opacity: 1; }
31
+ 100% {
32
+ @include transform-origin(left bottom);
33
+ @include rotate(-90deg);
34
+ opacity: 0; } }
35
+
36
+
37
+ // ---------------------------------------------------------------------------
38
+ @include keyframes(rotateOutDownRight) {
39
+ 0% {
40
+ @include transform-origin(right bottom);
41
+ @include rotate(0);
42
+ opacity: 1; }
43
+ 100% {
44
+ @include transform-origin(right bottom);
45
+ @include rotate(-90deg);
46
+ opacity: 0; } }
47
+
48
+
49
+ // ---------------------------------------------------------------------------
50
+ @include keyframes(rotateOutUpRight) {
51
+ 0% {
52
+ @include transform-origin(right bottom);
53
+ @include rotate(0);
54
+ opacity: 1; }
55
+ 100% {
56
+ @include transform-origin(right bottom);
57
+ @include rotate(90deg);
58
+ opacity: 0; } }
@@ -0,0 +1 @@
1
+ @import 'compass';
@@ -0,0 +1,22 @@
1
+ @import "css3/border-radius";
2
+ @import "css3/inline-block";
3
+ @import "css3/opacity";
4
+ @import "css3/box-shadow";
5
+ @import "css3/text-shadow";
6
+ @import "css3/columns";
7
+ @import "css3/box-sizing";
8
+ @import "css3/box";
9
+ @import "css3/images";
10
+ @import "css3/background-clip";
11
+ @import "css3/background-origin";
12
+ @import "css3/background-size";
13
+ @import "css3/font-face";
14
+ @import "css3/transform";
15
+ @import "css3/transition";
16
+ @import "css3/appearance";
17
+ @import "css3/regions";
18
+ @import "css3/hyphenation";
19
+ @import "css3/filter";
20
+ @import "css3/pie";
21
+ @import "css3/user-interface";
22
+ @import "css3/flexbox";
@@ -0,0 +1,6 @@
1
+ @import "functions/lists";
2
+ @import "functions/cross_browser_support";
3
+ @import "functions/gradient_support";
4
+ @import "functions/constants";
5
+ @import "functions/display";
6
+ @import "functions/colors";
@@ -0,0 +1,3 @@
1
+ @import "layout/grid-background";
2
+ @import "layout/sticky-footer";
3
+ @import "layout/stretching";
@@ -0,0 +1,3 @@
1
+ @import "reset/utilities-legacy";
2
+
3
+ @include global-reset;
@@ -0,0 +1,3 @@
1
+ @import "reset/utilities";
2
+
3
+ @include global-reset;
@@ -0,0 +1,40 @@
1
+ // Usually compass hacks apply to both ie6 & 7 -- set this to false to disable support for both.
2
+ $legacy-support-for-ie: true !default;
3
+
4
+ // Setting this to false will result in smaller output, but no support for ie6 hacks
5
+ $legacy-support-for-ie6: $legacy-support-for-ie !default;
6
+
7
+ // Setting this to false will result in smaller output, but no support for ie7 hacks
8
+ $legacy-support-for-ie7: $legacy-support-for-ie !default;
9
+
10
+ // Setting this to false will result in smaller output, but no support for legacy ie8 hacks
11
+ $legacy-support-for-ie8: $legacy-support-for-ie !default;
12
+
13
+ // @private
14
+ // The user can simply set $legacy-support-for-ie and 6, 7, and 8 will be set accordingly,
15
+ // But in case the user set each of those explicitly, we need to sync the value of
16
+ // this combined variable.
17
+ $legacy-support-for-ie: $legacy-support-for-ie6 or $legacy-support-for-ie7 or $legacy-support-for-ie8;
18
+
19
+ // Whether to output legacy support for mozilla.
20
+ // Usually this means hacks to support Firefox 3.6 or earlier.
21
+ $legacy-support-for-mozilla: true;
22
+
23
+ // Support for mozilla in experimental css3 properties (-moz).
24
+ $experimental-support-for-mozilla : true !default;
25
+ // Support for webkit in experimental css3 properties (-webkit).
26
+ $experimental-support-for-webkit : true !default;
27
+ // Support for webkit's original (non-standard) gradient syntax.
28
+ $support-for-original-webkit-gradients : true !default;
29
+ // Support for opera in experimental css3 properties (-o).
30
+ $experimental-support-for-opera : true !default;
31
+ // Support for microsoft in experimental css3 properties (-ms).
32
+ $experimental-support-for-microsoft : true !default;
33
+ // Support for khtml in experimental css3 properties (-khtml).
34
+ $experimental-support-for-khtml : false !default;
35
+ // Support for svg in experimental css3 properties.
36
+ // Setting this to true might add significant size to your
37
+ // generated stylesheets.
38
+ $experimental-support-for-svg : false !default;
39
+ // Support for CSS PIE in experimental css3 properties (-pie).
40
+ $experimental-support-for-pie : false !default;
@@ -0,0 +1,4 @@
1
+ @import "typography/links";
2
+ @import "typography/lists";
3
+ @import "typography/text";
4
+ @import "typography/vertical_rhythm";
@@ -0,0 +1,9 @@
1
+ @import "utilities/color";
2
+ @import "utilities/general";
3
+ @import "utilities/sprites";
4
+ @import "utilities/tables";
5
+
6
+ // deprecated
7
+ @import "typography/links";
8
+ @import "typography/lists";
9
+ @import "typography/text";
@@ -0,0 +1,2 @@
1
+ // Core imported by default. You can also import 'animate' for predefined animations.
2
+ @import "animation/core";
@@ -0,0 +1,16 @@
1
+ @import "shared";
2
+
3
+ // Change the appearance for Mozilla, Webkit and possibly the future.
4
+ // The appearance property is currently not present in any newer CSS specification.
5
+ //
6
+ // There is no official list of accepted values, but you might check these source:
7
+ // Mozilla : https://developer.mozilla.org/en/CSS/-moz-appearance
8
+ // Webkit : http://code.google.com/p/webkit-mirror/source/browse/Source/WebCore/css/CSSValueKeywords.in?spec=svnf1aea559dcd025a8946aa7da6e4e8306f5c1b604&r=63c7d1af44430b314233fea342c3ddb2a052e365
9
+ // (search for 'appearance' within the page)
10
+
11
+ @mixin appearance($ap) {
12
+ $ap: unquote($ap);
13
+ @include experimental(appearance, $ap,
14
+ -moz, -webkit, not(-o), not(-ms), not(-khtml), official
15
+ );
16
+ }
@@ -0,0 +1,43 @@
1
+ @import "shared";
2
+
3
+ // The default value is `padding-box` -- the box model used by modern browsers.
4
+ //
5
+ // If you wish to do so, you can override the default constant with `border-box`
6
+ //
7
+ // To override to the default border-box model, use this code:
8
+ // $default-background-clip: border-box
9
+
10
+ $default-background-clip: padding-box !default;
11
+
12
+ // Clip the background (image and color) at the edge of the padding or border.
13
+ //
14
+ // Legal Values:
15
+ //
16
+ // * padding-box
17
+ // * border-box
18
+ // * text
19
+
20
+ @mixin background-clip($clip: $default-background-clip) {
21
+ // webkit and mozilla use the deprecated short [border | padding]
22
+ $clip: unquote($clip);
23
+ $deprecated: $clip;
24
+ @if $clip == padding-box { $deprecated: padding; }
25
+ @if $clip == border-box { $deprecated: border; }
26
+ // Support for webkit and mozilla's use of the deprecated short form
27
+ @include experimental(background-clip, $deprecated,
28
+ -moz,
29
+ -webkit,
30
+ not(-o),
31
+ not(-ms),
32
+ not(-khtml),
33
+ not official
34
+ );
35
+ @include experimental(background-clip, $clip,
36
+ not(-moz),
37
+ not(-webkit),
38
+ not(-o),
39
+ not(-ms),
40
+ -khtml,
41
+ official
42
+ );
43
+ }
@@ -0,0 +1,42 @@
1
+ // Override `$default-background-origin` to change the default.
2
+
3
+ @import "shared";
4
+
5
+ $default-background-origin: content-box !default;
6
+
7
+ // Position the background off the edge of the padding, border or content
8
+ //
9
+ // * Possible values:
10
+ // * `padding-box`
11
+ // * `border-box`
12
+ // * `content-box`
13
+ // * browser defaults to `padding-box`
14
+ // * mixin defaults to `content-box`
15
+
16
+
17
+ @mixin background-origin($origin: $default-background-origin) {
18
+ $origin: unquote($origin);
19
+ // webkit and mozilla use the deprecated short [border | padding | content]
20
+ $deprecated: $origin;
21
+ @if $origin == padding-box { $deprecated: padding; }
22
+ @if $origin == border-box { $deprecated: border; }
23
+ @if $origin == content-box { $deprecated: content; }
24
+
25
+ // Support for webkit and mozilla's use of the deprecated short form
26
+ @include experimental(background-origin, $deprecated,
27
+ -moz,
28
+ -webkit,
29
+ not(-o),
30
+ not(-ms),
31
+ not(-khtml),
32
+ not official
33
+ );
34
+ @include experimental(background-origin, $origin,
35
+ not(-moz),
36
+ not(-webkit),
37
+ -o,
38
+ -ms,
39
+ -khtml,
40
+ official
41
+ );
42
+ }
@@ -0,0 +1,26 @@
1
+ @import "shared";
2
+
3
+ // override to change the default
4
+ $default-background-size: 100% auto !default;
5
+
6
+ // Set the size of background images using px, width and height, or percentages.
7
+ // Currently supported in: Opera, Gecko, Webkit.
8
+ //
9
+ // * percentages are relative to the background-origin (default = padding-box)
10
+ // * mixin defaults to: `$default-background-size`
11
+ @mixin background-size(
12
+ $size-1: $default-background-size,
13
+ $size-2: false,
14
+ $size-3: false,
15
+ $size-4: false,
16
+ $size-5: false,
17
+ $size-6: false,
18
+ $size-7: false,
19
+ $size-8: false,
20
+ $size-9: false,
21
+ $size-10: false
22
+ ) {
23
+ $size-1: if(type-of($size-1) == string, unquote($size-1), $size-1);
24
+ $sizes: compact($size-1, $size-2, $size-3, $size-4, $size-5, $size-6, $size-7, $size-8, $size-9, $size-10);
25
+ @include experimental(background-size, $sizes, -moz, -webkit, -o, not(-ms), not(-khtml));
26
+ }
@@ -0,0 +1,130 @@
1
+ @import "shared";
2
+
3
+ $default-border-radius: 5px !default;
4
+
5
+ // Round all corners by a specific amount, defaults to value of `$default-border-radius`.
6
+ //
7
+ // When two values are passed, the first is the horizontal radius
8
+ // and the second is the vertical radius.
9
+ //
10
+ // Note: webkit does not support shorthand syntax for several corners at once.
11
+ // So in the case where you pass several values only the first will be passed to webkit.
12
+ //
13
+ // Examples:
14
+ //
15
+ // .simple { @include border-radius(4px, 4px); }
16
+ // .compound { @include border-radius(2px 5px, 3px 6px); }
17
+ // .crazy { @include border-radius(1px 3px 5px 7px, 2px 4px 6px 8px)}
18
+ //
19
+ // Which generates:
20
+ //
21
+ // .simple {
22
+ // -webkit-border-radius: 4px 4px;
23
+ // -moz-border-radius: 4px / 4px;
24
+ // -khtml-border-radius: 4px / 4px;
25
+ // border-radius: 4px / 4px; }
26
+ //
27
+ // .compound {
28
+ // -webkit-border-radius: 2px 3px;
29
+ // -moz-border-radius: 2px 5px / 3px 6px;
30
+ // -khtml-border-radius: 2px 5px / 3px 6px;
31
+ // border-radius: 2px 5px / 3px 6px; }
32
+ //
33
+ // .crazy {
34
+ // -webkit-border-radius: 1px 2px;
35
+ // -moz-border-radius: 1px 3px 5px 7px / 2px 4px 6px 8px;
36
+ // -khtml-border-radius: 1px 3px 5px 7px / 2px 4px 6px 8px;
37
+ // border-radius: 1px 3px 5px 7px / 2px 4px 6px 8px; }
38
+
39
+ @mixin border-radius($radius: $default-border-radius, $vertical-radius: false) {
40
+
41
+ @if $vertical-radius {
42
+ // Webkit doesn't understand the official shorthand syntax for specifying
43
+ // a vertical radius unless so in case there's several we only take the first.
44
+ @include experimental(border-radius, first-value-of($radius) first-value-of($vertical-radius),
45
+ not(-moz),
46
+ -webkit,
47
+ not(-o),
48
+ not(-ms),
49
+ not(-khtml),
50
+ not(official)
51
+ );
52
+ @include experimental("border-radius", $radius unquote("/") $vertical-radius,
53
+ -moz,
54
+ not(-webkit),
55
+ not(-o),
56
+ not(-ms),
57
+ -khtml,
58
+ official
59
+ );
60
+ }
61
+ @else {
62
+ @include experimental(border-radius, $radius);
63
+ }
64
+ }
65
+
66
+ // Round radius at position by amount.
67
+ //
68
+ // * legal values for `$vert`: `top`, `bottom`
69
+ // * legal values for `$horz`: `left`, `right`
70
+
71
+ @mixin border-corner-radius($vert, $horz, $radius: $default-border-radius) {
72
+ // Support for mozilla's syntax for specifying a corner
73
+ @include experimental("border-radius-#{$vert}#{$horz}", $radius,
74
+ -moz,
75
+ not(-webkit),
76
+ not(-o),
77
+ not(-ms),
78
+ not(-khtml),
79
+ not(official)
80
+ );
81
+ @include experimental("border-#{$vert}-#{$horz}-radius", $radius,
82
+ not(-moz),
83
+ -webkit,
84
+ not(-o),
85
+ not(-ms),
86
+ -khtml,
87
+ official
88
+ );
89
+
90
+ }
91
+
92
+ // Round top-left corner only
93
+
94
+ @mixin border-top-left-radius($radius: $default-border-radius) {
95
+ @include border-corner-radius(top, left, $radius); }
96
+
97
+ // Round top-right corner only
98
+
99
+ @mixin border-top-right-radius($radius: $default-border-radius) {
100
+ @include border-corner-radius(top, right, $radius); }
101
+
102
+ // Round bottom-left corner only
103
+
104
+ @mixin border-bottom-left-radius($radius: $default-border-radius) {
105
+ @include border-corner-radius(bottom, left, $radius); }
106
+
107
+ // Round bottom-right corner only
108
+
109
+ @mixin border-bottom-right-radius($radius: $default-border-radius) {
110
+ @include border-corner-radius(bottom, right, $radius); }
111
+
112
+ // Round both top corners by amount
113
+ @mixin border-top-radius($radius: $default-border-radius) {
114
+ @include border-top-left-radius($radius);
115
+ @include border-top-right-radius($radius); }
116
+
117
+ // Round both right corners by amount
118
+ @mixin border-right-radius($radius: $default-border-radius) {
119
+ @include border-top-right-radius($radius);
120
+ @include border-bottom-right-radius($radius); }
121
+
122
+ // Round both bottom corners by amount
123
+ @mixin border-bottom-radius($radius: $default-border-radius) {
124
+ @include border-bottom-left-radius($radius);
125
+ @include border-bottom-right-radius($radius); }
126
+
127
+ // Round both left corners by amount
128
+ @mixin border-left-radius($radius: $default-border-radius) {
129
+ @include border-top-left-radius($radius);
130
+ @include border-bottom-left-radius($radius); }