concen 0.2.4 → 0.2.5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (150) hide show
  1. data/Gemfile +0 -3
  2. data/Gemfile.lock +0 -9
  3. data/LICENSE +1 -1
  4. data/README.md +23 -1
  5. data/app/assets/stylesheets/concen/application.css.sass +14 -16
  6. data/app/assets/stylesheets/concen/compass/_css3.scss +17 -0
  7. data/app/assets/stylesheets/concen/compass/_layout.scss +3 -0
  8. data/app/assets/stylesheets/concen/compass/_reset-legacy.scss +3 -0
  9. data/app/assets/stylesheets/concen/compass/_reset.scss +3 -0
  10. data/app/assets/stylesheets/concen/compass/_support.scss +36 -0
  11. data/app/assets/stylesheets/concen/compass/_typography.scss +4 -0
  12. data/app/assets/stylesheets/concen/compass/_utilities.scss +9 -0
  13. data/app/assets/stylesheets/concen/compass/css3/_appearance.scss +13 -0
  14. data/app/assets/stylesheets/concen/compass/css3/_background-clip.scss +43 -0
  15. data/app/assets/stylesheets/concen/compass/css3/_background-origin.scss +42 -0
  16. data/app/assets/stylesheets/concen/compass/css3/_background-size.scss +26 -0
  17. data/app/assets/stylesheets/concen/compass/css3/_border-radius.scss +135 -0
  18. data/app/assets/stylesheets/concen/compass/css3/_box-shadow.scss +93 -0
  19. data/app/assets/stylesheets/concen/compass/css3/_box-sizing.scss +13 -0
  20. data/app/assets/stylesheets/concen/compass/css3/_box.scss +111 -0
  21. data/app/assets/stylesheets/concen/compass/css3/_columns.scss +60 -0
  22. data/app/assets/stylesheets/concen/compass/css3/_font-face.scss +63 -0
  23. data/app/assets/stylesheets/concen/compass/css3/_gradient.scss +99 -0
  24. data/app/assets/stylesheets/concen/compass/css3/_images.scss +132 -0
  25. data/app/assets/stylesheets/concen/compass/css3/_inline-block.scss +16 -0
  26. data/app/assets/stylesheets/concen/compass/css3/_opacity.scss +19 -0
  27. data/app/assets/stylesheets/concen/compass/css3/_pie.scss +73 -0
  28. data/app/assets/stylesheets/concen/compass/css3/_shared.scss +38 -0
  29. data/app/assets/stylesheets/concen/compass/css3/_text-shadow.scss +62 -0
  30. data/app/assets/stylesheets/concen/compass/css3/_transform-legacy.scss +87 -0
  31. data/app/assets/stylesheets/concen/compass/css3/_transform.scss +598 -0
  32. data/app/assets/stylesheets/concen/compass/css3/_transition.scss +119 -0
  33. data/app/assets/stylesheets/concen/compass/layout/_grid-background.scss +178 -0
  34. data/app/assets/stylesheets/concen/compass/layout/_sticky-footer.scss +23 -0
  35. data/app/assets/stylesheets/concen/compass/layout/_stretching.scss +24 -0
  36. data/app/assets/stylesheets/concen/compass/reset/_utilities-legacy.scss +135 -0
  37. data/app/assets/stylesheets/concen/compass/reset/_utilities.scss +140 -0
  38. data/app/assets/stylesheets/concen/compass/typography/_links.scss +3 -0
  39. data/app/assets/stylesheets/concen/compass/typography/_lists.scss +4 -0
  40. data/app/assets/stylesheets/concen/compass/typography/_text.scss +4 -0
  41. data/app/assets/stylesheets/concen/compass/typography/_vertical_rhythm.scss +193 -0
  42. data/app/assets/stylesheets/concen/compass/typography/links/_hover-link.scss +5 -0
  43. data/app/assets/stylesheets/concen/compass/typography/links/_link-colors.scss +28 -0
  44. data/app/assets/stylesheets/concen/compass/typography/links/_unstyled-link.scss +7 -0
  45. data/app/assets/stylesheets/concen/compass/typography/lists/_bullets.scss +34 -0
  46. data/app/assets/stylesheets/concen/compass/typography/lists/_horizontal-list.scss +61 -0
  47. data/app/assets/stylesheets/concen/compass/typography/lists/_inline-block-list.scss +47 -0
  48. data/app/assets/stylesheets/concen/compass/typography/lists/_inline-list.scss +44 -0
  49. data/app/assets/stylesheets/concen/compass/typography/text/_ellipsis.scss +25 -0
  50. data/app/assets/stylesheets/concen/compass/typography/text/_force-wrap.scss +12 -0
  51. data/app/assets/stylesheets/concen/compass/typography/text/_nowrap.scss +2 -0
  52. data/app/assets/stylesheets/concen/compass/typography/text/_replacement.scss +34 -0
  53. data/app/assets/stylesheets/concen/compass/utilities/_color.scss +1 -0
  54. data/app/assets/stylesheets/concen/compass/utilities/_general.scss +6 -0
  55. data/app/assets/stylesheets/concen/compass/utilities/_links.scss +5 -0
  56. data/app/assets/stylesheets/concen/compass/utilities/_lists.scss +6 -0
  57. data/app/assets/stylesheets/concen/compass/utilities/_print.scss +17 -0
  58. data/app/assets/stylesheets/concen/compass/utilities/_sprites.scss +1 -0
  59. data/app/assets/stylesheets/concen/compass/utilities/_tables.scss +3 -0
  60. data/app/assets/stylesheets/concen/compass/utilities/_text.scss +5 -0
  61. data/app/assets/stylesheets/concen/compass/utilities/color/_contrast.scss +28 -0
  62. data/app/assets/stylesheets/concen/compass/utilities/general/_clearfix.scss +44 -0
  63. data/app/assets/stylesheets/concen/compass/utilities/general/_float.scss +30 -0
  64. data/app/assets/stylesheets/concen/compass/utilities/general/_hacks.scss +46 -0
  65. data/app/assets/stylesheets/concen/compass/utilities/general/_min.scss +16 -0
  66. data/app/assets/stylesheets/concen/compass/utilities/general/_reset.scss +2 -0
  67. data/app/assets/stylesheets/concen/compass/utilities/general/_tabs.scss +1 -0
  68. data/app/assets/stylesheets/concen/compass/utilities/general/_tag-cloud.scss +18 -0
  69. data/app/assets/stylesheets/concen/compass/utilities/links/_hover-link.scss +3 -0
  70. data/app/assets/stylesheets/concen/compass/utilities/links/_link-colors.scss +3 -0
  71. data/app/assets/stylesheets/concen/compass/utilities/links/_unstyled-link.scss +3 -0
  72. data/app/assets/stylesheets/concen/compass/utilities/lists/_bullets.scss +3 -0
  73. data/app/assets/stylesheets/concen/compass/utilities/lists/_horizontal-list.scss +3 -0
  74. data/app/assets/stylesheets/concen/compass/utilities/lists/_inline-block-list.scss +3 -0
  75. data/app/assets/stylesheets/concen/compass/utilities/lists/_inline-list.scss +3 -0
  76. data/app/assets/stylesheets/concen/compass/utilities/sprites/_base.scss +66 -0
  77. data/app/assets/stylesheets/concen/compass/utilities/sprites/_sprite-img.scss +56 -0
  78. data/app/assets/stylesheets/concen/compass/utilities/tables/_alternating-rows-and-columns.scss +20 -0
  79. data/app/assets/stylesheets/concen/compass/utilities/tables/_borders.scss +33 -0
  80. data/app/assets/stylesheets/concen/compass/utilities/tables/_scaffolding.scss +9 -0
  81. data/app/assets/stylesheets/concen/compass/utilities/text/_ellipsis.scss +3 -0
  82. data/app/assets/stylesheets/concen/compass/utilities/text/_nowrap.scss +3 -0
  83. data/app/assets/stylesheets/concen/compass/utilities/text/_replacement.scss +3 -0
  84. data/app/assets/stylesheets/concen/partials/_base.sass +4 -4
  85. data/app/assets/stylesheets/concen/partials/_variables.sass +5 -5
  86. data/app/helpers/concen/application_helper.rb +0 -6
  87. data/app/models/concen/page.rb +12 -3
  88. data/app/views/concen/grid_files/_form.html.erb +23 -0
  89. data/app/views/concen/grid_files/edit.html.erb +10 -0
  90. data/app/views/concen/pages/_file_list.erb +11 -0
  91. data/app/views/concen/pages/_files.erb +32 -0
  92. data/app/views/concen/pages/_form.html.erb +26 -0
  93. data/app/views/concen/pages/_nested_list.html.erb +22 -0
  94. data/app/views/concen/pages/edit.html.erb +19 -0
  95. data/app/views/concen/pages/index.html.erb +12 -0
  96. data/app/views/concen/pages/new.html.erb +10 -0
  97. data/app/views/concen/performances/_runtimes.html.erb +8 -0
  98. data/app/views/concen/performances/show.html.erb +40 -0
  99. data/app/views/concen/sessions/new.html.erb +17 -0
  100. data/app/views/concen/statuses/_server.html.erb +34 -0
  101. data/app/views/concen/statuses/show.html.erb +27 -0
  102. data/app/views/concen/traffics/_pages.html.erb +8 -0
  103. data/app/views/concen/traffics/_referrals.html.erb +12 -0
  104. data/app/views/concen/traffics/show.html.erb +40 -0
  105. data/app/views/concen/users/_form.html.erb +42 -0
  106. data/app/views/concen/users/{_password_reset.html.haml → _password_reset.html.erb} +0 -0
  107. data/app/views/concen/users/_settings.html.erb +23 -0
  108. data/app/views/concen/users/edit.html.erb +12 -0
  109. data/app/views/concen/users/index.html.erb +40 -0
  110. data/app/views/concen/users/new.html.erb +6 -0
  111. data/app/views/concen/users/new_invite.html.erb +24 -0
  112. data/app/views/concen/users/new_reset_password.html.erb +24 -0
  113. data/app/views/layouts/concen/{_additional_header_links.haml → _additional_header_links.html.erb} +0 -0
  114. data/app/views/layouts/concen/_header.html.erb +24 -0
  115. data/app/views/layouts/concen/{maintenance.html.haml → _iphone.html.erb} +0 -0
  116. data/app/views/layouts/concen/application.html.erb +42 -0
  117. data/app/views/layouts/concen/maintenance.html.erb +0 -0
  118. data/concen.gemspec +0 -2
  119. data/lib/concen/engine.rb +0 -1
  120. data/lib/concen/version.rb +1 -1
  121. data/test/support/raw_text/smartypants.html +1 -1
  122. data/test/support/raw_text/smartypants.txt +1 -1
  123. metadata +130 -74
  124. data/app/views/concen/grid_files/_form.html.haml +0 -15
  125. data/app/views/concen/grid_files/edit.html.haml +0 -7
  126. data/app/views/concen/pages/_file_list.haml +0 -7
  127. data/app/views/concen/pages/_files.haml +0 -24
  128. data/app/views/concen/pages/_form.html.haml +0 -17
  129. data/app/views/concen/pages/_nested_list.html.haml +0 -15
  130. data/app/views/concen/pages/edit.html.haml +0 -13
  131. data/app/views/concen/pages/index.html.haml +0 -12
  132. data/app/views/concen/pages/new.html.haml +0 -7
  133. data/app/views/concen/performances/_runtimes.html.haml +0 -5
  134. data/app/views/concen/performances/show.html.haml +0 -27
  135. data/app/views/concen/sessions/new.html.haml +0 -12
  136. data/app/views/concen/statuses/_server.html.haml +0 -19
  137. data/app/views/concen/statuses/show.html.haml +0 -18
  138. data/app/views/concen/traffics/_pages.html.haml +0 -5
  139. data/app/views/concen/traffics/_referrals.html.haml +0 -9
  140. data/app/views/concen/traffics/show.html.haml +0 -27
  141. data/app/views/concen/users/_form.html.haml +0 -29
  142. data/app/views/concen/users/_settings.html.haml +0 -15
  143. data/app/views/concen/users/edit.html.haml +0 -9
  144. data/app/views/concen/users/index.html.haml +0 -32
  145. data/app/views/concen/users/new.html.haml +0 -4
  146. data/app/views/concen/users/new_invite.html.haml +0 -15
  147. data/app/views/concen/users/new_reset_password.html.haml +0 -15
  148. data/app/views/layouts/concen/_header.html.haml +0 -18
  149. data/app/views/layouts/concen/_iphone.html.haml +0 -6
  150. data/app/views/layouts/concen/application.html.haml +0 -33
@@ -0,0 +1,93 @@
1
+ // @doc off
2
+ // These defaults make the arguments optional for this mixin
3
+ // If you like, set different defaults before importing.
4
+ // @doc on
5
+
6
+ @import "shared";
7
+
8
+
9
+ // The default color for box shadows
10
+ $default-box-shadow-color: #333333 !default;
11
+
12
+ // The default horizontal offset. Positive is to the right.
13
+ $default-box-shadow-h-offset: 0px !default;
14
+
15
+ // The default vertical offset. Positive is down.
16
+ $default-box-shadow-v-offset: 0px !default;
17
+
18
+ // The default blur length.
19
+ $default-box-shadow-blur: 5px !default;
20
+
21
+ // The default spread length.
22
+ $default-box-shadow-spread : false !default;
23
+
24
+ // The default shadow inset: inset or false (for standard shadow).
25
+ $default-box-shadow-inset : false !default;
26
+
27
+ // Provides cross-browser for Webkit, Gecko, and CSS3 box shadows when one or more box
28
+ // shadows are needed.
29
+ // Each shadow argument should adhere to the standard css3 syntax for the
30
+ // box-shadow property.
31
+ @mixin box-shadow(
32
+ $shadow-1 : default,
33
+ $shadow-2 : false,
34
+ $shadow-3 : false,
35
+ $shadow-4 : false,
36
+ $shadow-5 : false,
37
+ $shadow-6 : false,
38
+ $shadow-7 : false,
39
+ $shadow-8 : false,
40
+ $shadow-9 : false,
41
+ $shadow-10: false
42
+ ) {
43
+ // This has to be on a single line due to a bug in the scss parser: https://github.com/nex3/sass/issues/issue/26
44
+ $legacy: (type-of($shadow-1) == color and type-of(if($shadow-2, $shadow-2, 0)) == number and type-of(if($shadow-3, $shadow-3, 0)) == number and type-of(if($shadow-4, $shadow-4, 0)) == number and type-of(if($shadow-5, $shadow-5, 0)) == number and ($shadow-6 == inset or type-of($shadow-6) == bool) and ($shadow-2 or $shadow-3 or $shadow-4 or $shadow-5 or $shadow-6));
45
+ @if $legacy {
46
+ @warn "Passing separate arguments for a single shadow to box-shadow is deprecated. " +
47
+ "Pass the values as a single space-separated list, or use the single-box-shadow mixin. " +
48
+ "See http://beta.compass-style.org/help/tutorials/upgrading/antares/ for more info.";
49
+ @include single-box-shadow(
50
+ if($shadow-1, $shadow-1, $default-box-shadow-color),
51
+ if($shadow-2, $shadow-2, $default-box-shadow-h-offset),
52
+ if($shadow-3, $shadow-3, $default-box-shadow-v-offset),
53
+ if($shadow-4, $shadow-4, $default-box-shadow-blur),
54
+ if($shadow-5, $shadow-5, $default-box-shadow-spread),
55
+ if($shadow-6, $shadow-6, $default-box-shadow-inset)
56
+ );
57
+ }
58
+ @else {
59
+ @if $shadow-1 == default {
60
+ $shadow-1 : -compass-space-list(compact(if($default-box-shadow-inset, inset, false), $default-box-shadow-h-offset, $default-box-shadow-v-offset, $default-box-shadow-blur, $default-box-shadow-spread, $default-box-shadow-color));
61
+ }
62
+ $shadow : compact($shadow-1, $shadow-2, $shadow-3, $shadow-4, $shadow-5, $shadow-6, $shadow-7, $shadow-8, $shadow-9, $shadow-10);
63
+ @include experimental(box-shadow, $shadow,
64
+ -moz, -webkit, -o, not -ms, not -khtml, official
65
+ );
66
+ }
67
+ }
68
+
69
+ // Provides a single cross-browser CSS box shadow for Webkit, Gecko, and CSS3.
70
+ // Includes default arguments for color, horizontal offset, vertical offset, blur length, spread length, and inset.
71
+ @mixin single-box-shadow(
72
+ $color : $default-box-shadow-color,
73
+ $hoff : $default-box-shadow-h-offset,
74
+ $voff : $default-box-shadow-v-offset,
75
+ $blur : $default-box-shadow-blur,
76
+ $spread : $default-box-shadow-spread,
77
+ $inset : $default-box-shadow-inset
78
+ ) {
79
+ @if not ($inset == true or $inset == false or $inset == inset) {
80
+ @warn "$inset expected to be true or the inset keyword. Got #{$inset} instead. Using: inset";
81
+ }
82
+
83
+ @if $color == none {
84
+ @include box-shadow(none);
85
+ } @else {
86
+ $full : $hoff $voff;
87
+ @if $blur { $full: $full $blur; }
88
+ @if $spread { $full: $full $spread; }
89
+ @if $color { $full: $full $color; }
90
+ @if $inset { $full: inset $full; }
91
+ @include box-shadow($full);
92
+ }
93
+ }
@@ -0,0 +1,13 @@
1
+ @import "shared";
2
+
3
+ // Change the box model for Mozilla, Webkit, IE8 and the future
4
+ //
5
+ // @param $bs
6
+ // [ content-box | border-box ]
7
+
8
+ @mixin box-sizing($bs) {
9
+ $bs: unquote($bs);
10
+ @include experimental(box-sizing, $bs,
11
+ -moz, -webkit, not -o, -ms, not -khtml, official
12
+ );
13
+ }
@@ -0,0 +1,111 @@
1
+ @import "shared";
2
+
3
+ // display:box; must be used for any of the other flexbox mixins to work properly
4
+ @mixin display-box {
5
+ @include experimental-value(display, box,
6
+ -moz, -webkit, not -o, -ms, not -khtml, official
7
+ );
8
+ }
9
+
10
+ // Default box orientation, assuming that the user wants something less block-like
11
+ $default-box-orient: horizontal !default;
12
+
13
+ // Box orientation [ horizontal | vertical | inline-axis | block-axis | inherit ]
14
+ @mixin box-orient(
15
+ $orientation: $default-box-orient
16
+ ) {
17
+ $orientation : unquote($orientation);
18
+ @include experimental(box-orient, $orientation,
19
+ -moz, -webkit, not -o, -ms, not -khtml, official
20
+ );
21
+ }
22
+
23
+ // Default box-align
24
+ $default-box-align: stretch !default;
25
+
26
+ // Box align [ start | end | center | baseline | stretch ]
27
+ @mixin box-align(
28
+ $alignment: $default-box-align
29
+ ) {
30
+ $alignment : unquote($alignment);
31
+ @include experimental(box-align, $alignment,
32
+ -moz, -webkit, not -o, -ms, not -khtml, official
33
+ );
34
+ }
35
+
36
+ // Default box flex
37
+ $default-box-flex: 0 !default;
38
+
39
+ // mixin which takes an int argument for box flex. Apply this to the children inside the box.
40
+ //
41
+ // For example: "div.display-box > div.child-box" would get the box flex mixin.
42
+ @mixin box-flex(
43
+ $flex: $default-box-flex
44
+ ) {
45
+ @include experimental(box-flex, $flex,
46
+ -moz, -webkit, not -o, -ms, not -khtml, official
47
+ );
48
+ }
49
+
50
+ // Default flex group
51
+ $default-box-flex-group: 1 !default;
52
+
53
+ // mixin which takes an int argument for flexible grouping
54
+ @mixin box-flex-group(
55
+ $group: $default-box-flex-group
56
+ ) {
57
+ @include experimental(box-flex-group, $group,
58
+ -moz, -webkit, not -o, -ms, not -khtml, official
59
+ );
60
+ }
61
+
62
+ // default for ordinal group
63
+ $default-box-ordinal-group: 1 !default;
64
+
65
+ // mixin which takes an int argument for ordinal grouping and rearranging the order
66
+ @mixin box-ordinal-group(
67
+ $group: $default-ordinal-flex-group
68
+ ) {
69
+ @include experimental(box-ordinal-group, $group,
70
+ -moz, -webkit, not -o, -ms, not -khtml, official
71
+ );
72
+ }
73
+
74
+ // Box direction default value
75
+ $default-box-direction: normal !default;
76
+
77
+ // mixin for box-direction [ normal | reverse | inherit ]
78
+ @mixin box-direction(
79
+ $direction: $default-box-direction
80
+ ) {
81
+ $direction: unquote($direction);
82
+ @include experimental(box-direction, $direction,
83
+ -moz, -webkit, not -o, -ms, not -khtml, official
84
+ );
85
+ }
86
+
87
+ // default for box lines
88
+ $default-box-lines: single !default;
89
+
90
+ // mixin for box lines [ single | multiple ]
91
+ @mixin box-lines(
92
+ $lines: $default-box-lines
93
+ ) {
94
+ $lines: unquote($lines);
95
+ @include experimental(box-lines, $lines,
96
+ -moz, -webkit, not -o, -ms, not -khtml, official
97
+ );
98
+ }
99
+
100
+ // default for box pack
101
+ $default-box-pack: start !default;
102
+
103
+ // mixin for box pack [ start | end | center | justify ]
104
+ @mixin box-pack(
105
+ $pack: $default-box-pack
106
+ ) {
107
+ $pack: unquote($pack);
108
+ @include experimental(box-pack, $pack,
109
+ -moz, -webkit, not -o, -ms, not -khtml, official
110
+ );
111
+ }
@@ -0,0 +1,60 @@
1
+ @import "shared";
2
+
3
+ // Specify the number of columns
4
+ @mixin column-count($count) {
5
+ @include experimental(column-count, $count,
6
+ -moz, -webkit, -o, not -ms, not -khtml, official
7
+ );
8
+ }
9
+
10
+ // Specify the gap between columns e.g. `20px`
11
+ @mixin column-gap($width) {
12
+ @include experimental(column-gap, $width,
13
+ -moz, -webkit, -o, not -ms, not -khtml, official
14
+ );
15
+ }
16
+
17
+ // Specify the width of columns e.g. `100px`
18
+ @mixin column-width($width) {
19
+ @include experimental(column-width, $width,
20
+ -moz, -webkit, -o, not -ms, not -khtml, official
21
+ );
22
+ }
23
+
24
+ // Specify the width of the rule between columns e.g. `1px`
25
+ @mixin column-rule-width($width) {
26
+ @include experimental(rule-width, $width,
27
+ -moz, -webkit, -o, not -ms, not -khtml, official
28
+ );
29
+ }
30
+
31
+ // Specify the style of the rule between columns e.g. `dotted`.
32
+ // This works like border-style.
33
+ @mixin column-rule-style($style) {
34
+ @include experimental(rule-style, unquote($style),
35
+ -moz, -webkit, -o, not -ms, not -khtml, official
36
+ );
37
+ }
38
+
39
+ // Specify the color of the rule between columns e.g. `blue`.
40
+ // This works like border-color.
41
+ @mixin column-rule-color($color) {
42
+ @include experimental(rule-color, $color,
43
+ -moz, -webkit, -o, not -ms, not -khtml, official
44
+ );
45
+ }
46
+
47
+ // Mixin encompassing all column rule properties
48
+ // For example:
49
+ //
50
+ // @include column-rule(1px, solid, #c00)
51
+ //
52
+ // Or the values can be space separated:
53
+ //
54
+ // @include column-rule(1px solid #c00)
55
+ @mixin column-rule($width, $style: false, $color: false) {
56
+ $full : -compass-space-list(compact($width, $style, $color));
57
+ @include experimental(column-rule, $full,
58
+ -moz, -webkit, -o, not -ms, not -khtml, official
59
+ );
60
+ }
@@ -0,0 +1,63 @@
1
+ @import "shared";
2
+
3
+ // Cross-browser support for @font-face. Supports IE, Gecko, Webkit, Opera.
4
+ //
5
+ // * $name is required, arbitrary, and what you will use in font stacks.
6
+ // * $font-files is required using font-files('relative/location', 'format').
7
+ // for best results use this order: woff, opentype/truetype, svg
8
+ // * $eot is required by IE, and is a relative location of the eot file.
9
+ // * $weight shows if the font is bold, defaults to normal
10
+ // * $style defaults to normal, might be also italic
11
+ // * For android 2.2 Compatiblity, please ensure that your web page has
12
+ // a meta viewport tag.
13
+ // * To support iOS < 4.2, an SVG file must be provided
14
+ //
15
+ // If you need to generate other formats check out the Font Squirrel
16
+ // [font generator](http://www.fontsquirrel.com/fontface/generator)
17
+ //
18
+
19
+ // In order to refer to a specific style of the font in your stylesheets as
20
+ // e.g. "font-style: italic;", you may add a couple of @font-face includes
21
+ // containing the respective font files for each style and specying
22
+ // respective the $style parameter.
23
+
24
+ // Order of the includes matters, and it is: normal, bold, italic, bold+italic.
25
+
26
+ @mixin font-face(
27
+ $name,
28
+ $font-files,
29
+ $eot: false,
30
+ $weight: false,
31
+ $style: false
32
+ ) {
33
+ $iefont: unquote("#{$eot}?iefix");
34
+ @font-face {
35
+ font-family: quote($name);
36
+ @if $eot {
37
+ src: font-url($eot);
38
+ $font-files: font-url($iefont) unquote("format('eot')"), $font-files;
39
+ }
40
+ src: $font-files;
41
+ @if $weight {
42
+ font-weight: $weight;
43
+ }
44
+ @if $style {
45
+ font-style: $style;
46
+ }
47
+ }
48
+ }
49
+
50
+ // EXAMPLE
51
+ // +font-face("this name", font-files("this.woff", "woff", "this.otf", "opentype"), "this.eot", bold, italic)
52
+ //
53
+ // will generate:
54
+ //
55
+ // @font-face {
56
+ // font-family: 'this name';
57
+ // src: url('fonts/this.eot');
58
+ // src: local("☺"),
59
+ // url('fonts/this.otf') format('woff'),
60
+ // url('fonts/this.woff') format('opentype');
61
+ // font-weight: bold;
62
+ // font-style: italic;
63
+ // }
@@ -0,0 +1,99 @@
1
+ @import "compass/utilities/general/hacks";
2
+ @import "images";
3
+
4
+ // The linear gradient mixin works best across browsers if you use percentage-based color stops.
5
+ //
6
+ // Examples:
7
+ //
8
+ // // This yields a linear gradient spanning from top to bottom
9
+ // +linear-gradient(color-stops(white, black))
10
+ //
11
+ // // This yields a linear gradient spanning from bottom to top
12
+ // +linear-gradient(color-stops(white, black), bottom)
13
+ //
14
+ // // This yields a linear gradient spanning from left to right
15
+ // +linear-gradient(color-stops(white, black), left)
16
+ //
17
+ // // This yields a linear gradient starting at white passing
18
+ // // thru blue at 33% down and then to black
19
+ // +linear-gradient(color-stops(white, blue 33%, black))
20
+ //
21
+ // // This yields a linear gradient starting at white passing
22
+ // // thru blue at 33% down and then to black at 67% until the end
23
+ // +linear-gradient(color-stops(white, blue 33%, black 67%))
24
+ //
25
+ // // This yields a background image on top of the gradient; requires an image
26
+ // // with an alpha-layer.
27
+ // +linear-gradient(color_stops(white,black), top, image-url('noise.png'))
28
+ //
29
+ // Browsers Supported:
30
+ //
31
+ // - Chrome
32
+ // - Safari
33
+ // - Firefox 3.6
34
+ // - Opera
35
+ //
36
+ // @deprecated Use the linear-gradient() function in conjunction with a
37
+ // property mixin like `background-image`.
38
+ @mixin linear-gradient($color-stops, $start: false, $image: false) {
39
+ @if $image {
40
+ @if $start {
41
+ @warn "The linear-gradient mixin is deprecated. Instead use: @include background-image(#{$image}, linear-gradient(#{$start}, #{$color-stops}))";
42
+ } @else {
43
+ @warn "The linear-gradient mixin is deprecated. Instead use: @include background-image(#{$image}, linear-gradient(#{$color-stops}))";
44
+ }
45
+ } @else {
46
+ @if $start {
47
+ @warn "The linear-gradient mixin is deprecated. Instead use: @include background-image(linear-gradient(#{$start}, #{$color-stops}))";
48
+ } @else {
49
+ @warn "The linear-gradient mixin is deprecated. Instead use: @include background-image(linear-gradient(#{$color-stops}))";
50
+ }
51
+ }
52
+ @if not $start { $start: top; }
53
+ @include background-image($image, linear-gradient($start, $color-stops));
54
+ }
55
+
56
+ // Because of webkit's limitations, the radial gradient mixin works best if you use
57
+ // pixel-based color stops.
58
+ //
59
+ // Examples:
60
+ //
61
+ // // Defaults to a centered, 100px radius gradient
62
+ // +radial-gradient(color-stops(#c00, #00c))
63
+ //
64
+ // // 100px radius gradient in the top left corner
65
+ // +radial-gradient(color-stops(#c00, #00c), top left)
66
+ //
67
+ // // Three colors, ending at 50px and passing thru #fff at 25px
68
+ // +radial-gradient(color-stops(#c00, #fff, #00c 50px))
69
+ //
70
+ // // A background image on top of a 100px radius gradient; requires an image
71
+ // // with an alpha-layer.
72
+ // +radial-gradient(color_stops(#c00, #fff), top left, image-url("noise.png")))
73
+ //
74
+ // Browsers Supported:
75
+ //
76
+ // - Chrome
77
+ // - Safari
78
+ // - Firefox 3.6
79
+ // - Opera
80
+ //
81
+ // @deprecated Use the radial-gradient() function in conjunction with a
82
+ // property mixin like `background-image`.
83
+ @mixin radial-gradient($color-stops, $center-position: false, $image: false) {
84
+ @if $image {
85
+ @if $center-position {
86
+ @warn "The radial-gradient mixin is deprecated. Instead use: @include background-image(#{$image}, radial-gradient(#{$center-position}, #{$color-stops}))";
87
+ } @else {
88
+ @warn "The radial-gradient mixin is deprecated. Instead use: @include background-image(#{$image}, radial-gradient(#{$color-stops}))";
89
+ }
90
+ } @else {
91
+ @if $center-position {
92
+ @warn "The radial-gradient mixin is deprecated. Instead use: @include background-image(radial-gradient(#{$center-position}, #{$color-stops}))";
93
+ } @else {
94
+ @warn "The radial-gradient mixin is deprecated. Instead use: @include background-image(radial-gradient(#{$color-stops}))";
95
+ }
96
+ }
97
+ @if not $center-position { $center-position: center center; }
98
+ @include background-image($image, radial-gradient($center-position, $color-stops));
99
+ }
@@ -0,0 +1,132 @@
1
+ @import "shared";
2
+ @import "compass/utilities/general/hacks";
3
+
4
+ // Background property support for vendor prefixing within values.
5
+ @mixin background(
6
+ $background-1,
7
+ $background-2: false,
8
+ $background-3: false,
9
+ $background-4: false,
10
+ $background-5: false,
11
+ $background-6: false,
12
+ $background-7: false,
13
+ $background-8: false,
14
+ $background-9: false,
15
+ $background-10: false
16
+ ) {
17
+ $backgrounds: compact($background-1, $background-2, $background-3, $background-4, $background-5,
18
+ $background-6, $background-7, $background-8, $background-9, $background-10);
19
+ $mult-bgs: -compass-list-size($backgrounds) > 1;
20
+ $add-pie-bg: prefixed(-pie, $backgrounds) or $mult-bgs;
21
+ @if $experimental-support-for-svg and prefixed(-svg, $backgrounds) { background: -svg($backgrounds); }
22
+ @if $support-for-original-webkit-gradients and prefixed(-owg, $backgrounds) { background: -owg($backgrounds); }
23
+ @if $experimental-support-for-webkit and prefixed(-webkit, $backgrounds) { background: -webkit($backgrounds); }
24
+ @if $experimental-support-for-mozilla and prefixed(-moz, $backgrounds) { background: -moz($backgrounds); }
25
+ @if $experimental-support-for-opera and prefixed(-o, $backgrounds) { background: -o($backgrounds); }
26
+ @if $experimental-support-for-microsoft and prefixed(-ms, $backgrounds) { background: -ms($backgrounds); }
27
+ @if $experimental-support-for-pie and $add-pie-bg { -pie-background: -pie($backgrounds); }
28
+ background: $backgrounds ;
29
+ }
30
+
31
+ @mixin background-with-css2-fallback(
32
+ $background-1,
33
+ $background-2: false,
34
+ $background-3: false,
35
+ $background-4: false,
36
+ $background-5: false,
37
+ $background-6: false,
38
+ $background-7: false,
39
+ $background-8: false,
40
+ $background-9: false,
41
+ $background-10: false
42
+ ) {
43
+ $backgrounds: compact($background-1, $background-2, $background-3, $background-4, $background-5,
44
+ $background-6, $background-7, $background-8, $background-9, $background-10);
45
+ $mult-bgs: -compass-list-size($backgrounds) > 1;
46
+ $simple-background: if($mult-bgs or prefixed(-css2, $backgrounds), -css2(-compass-nth($backgrounds, last)), false);
47
+ @if not blank($simple-background) { background: $simple-background; }
48
+ @include background($background-1, $background-2, $background-3, $background-4, $background-5,
49
+ $background-6, $background-7, $background-8, $background-9, $background-10);
50
+ }
51
+
52
+
53
+ // Background image property support for vendor prefixing within values.
54
+ @mixin background-image(
55
+ $image-1,
56
+ $image-2: false,
57
+ $image-3: false,
58
+ $image-4: false,
59
+ $image-5: false,
60
+ $image-6: false,
61
+ $image-7: false,
62
+ $image-8: false,
63
+ $image-9: false,
64
+ $image-10: false
65
+ ) {
66
+ $images: compact($image-1, $image-2, $image-3, $image-4, $image-5, $image-6, $image-7, $image-8, $image-9, $image-10);
67
+ $add-pie-bg: prefixed(-pie, $images) or -compass-list-size($images) > 1;
68
+
69
+ @if $experimental-support-for-svg and prefixed(-svg, $images) { background-image: -svg($images); background-size: 100%; }
70
+ @if $support-for-original-webkit-gradients and prefixed(-owg, $images) { background-image: -owg($images); }
71
+ @if $experimental-support-for-webkit and prefixed(-webkit, $images) { background-image: -webkit($images); }
72
+ @if $experimental-support-for-mozilla and prefixed(-moz, $images) { background-image: -moz($images); }
73
+ @if $experimental-support-for-opera and prefixed(-o, $images) { background-image: -o($images); }
74
+ @if $experimental-support-for-microsoft and prefixed(-ms, $images) { background-image: -ms($images); }
75
+ @if $experimental-support-for-pie and $add-pie-bg { @warn "PIE does not support background-image. Use @include background(#{$images}) instead." }
76
+ background-image: $images ;
77
+ }
78
+
79
+ // Emit a IE-Specific filters that renders a simple linear gradient.
80
+ // For use in IE 6 - 8. Best practice would have you apply this via a
81
+ // conditional IE stylesheet, but if you must, you should place this before
82
+ // any background-image properties that you have specified.
83
+ @mixin filter-gradient($start-color, $end-color, $orientation: vertical) {
84
+ @include has-layout;
85
+ $gradient-type: if($orientation == vertical, 0, 1);
86
+ @if $legacy-support-for-ie6 or $legacy-support-for-ie7 or $legacy-support-for-ie8 {
87
+ filter: progid:DXImageTransform.Microsoft.gradient(gradientType=#{$gradient-type}, startColorstr='#{ie-hex-str($start-color)}', endColorstr='#{ie-hex-str($end-color)}');
88
+ }
89
+ }
90
+
91
+
92
+ // Border image property support for vendor prefixing properties and values.
93
+ @mixin border-image($value) {
94
+ @if $experimental-support-for-mozilla { -moz-border-image: -moz(-compass-list($value)); }
95
+ @if $support-for-original-webkit-gradients { -webkit-border-image: -owg(-compass-list($value)); }
96
+ @if $experimental-support-for-webkit { -webkit-border-image: -webkit(-compass-list($value)); }
97
+ @if $experimental-support-for-opera { -o-border-image: -o(-compass-list($value)); }
98
+ @if $experimental-support-for-svg { border-image: -svg(-compass-list($value)); }
99
+ border-image: $value;
100
+ }
101
+
102
+ // List style image property support for vendor prefixing within values.
103
+ @mixin list-style-image($image) {
104
+ @if $experimental-support-for-mozilla and prefixed(-moz, $image) { list-style-image: -moz($image); }
105
+ @if $support-for-original-webkit-gradients and prefixed(-owg, $image) { list-style-image: -owg($image); }
106
+ @if $experimental-support-for-webkit and prefixed(-webkit, $image) { list-style-image: -webkit($image); }
107
+ @if $experimental-support-for-opera and prefixed(-o, $image) { list-style-image: -o($image); }
108
+ @if $experimental-support-for-svg and prefixed(-svg, $image) { list-style-image: -svg($image); }
109
+ list-style-image: $image ;
110
+ }
111
+
112
+ // List style property support for vendor prefixing within values.
113
+ @mixin list-style($value) {
114
+ $value: -compass-list($value);
115
+ @if $experimental-support-for-mozilla and prefixed(-moz, $value) { list-style-image: -moz($value); }
116
+ @if $support-for-original-webkit-gradients and prefixed(-owg, $value) { list-style-image: -owg($value); }
117
+ @if $experimental-support-for-webkit and prefixed(-webkit, $value) { list-style-image: -webkit($value); }
118
+ @if $experimental-support-for-opera and prefixed(-o, $value) { list-style-image: -o($value); }
119
+ @if $experimental-support-for-svg and prefixed(-svg, $value) { list-style-image: -svg($value); }
120
+ list-style-image: $value ;
121
+ }
122
+
123
+ // content property support for vendor prefixing within values.
124
+ @mixin content($value) {
125
+ $value: -compass-list($value);
126
+ @if $experimental-support-for-mozilla and prefixed(-moz, $value) { content: -moz($value); }
127
+ @if $support-for-original-webkit-gradients and prefixed(-owg, $value) { content: -owg($value); }
128
+ @if $experimental-support-for-webkit and prefixed(-webkit, $value) { content: -webkit($value); }
129
+ @if $experimental-support-for-opera and prefixed(-o, $value) { content: -o($value); }
130
+ @if $experimental-support-for-svg and prefixed(-svg, $value) { content: -svg($value); }
131
+ content: $value ;
132
+ }