compass-edge 0.9.4 → 0.9.5.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 (187) hide show
  1. data/CHANGELOG.markdown +32 -2
  2. data/README.markdown +12 -2
  3. data/REVISION +1 -1
  4. data/Rakefile +3 -1
  5. data/VERSION.yml +1 -2
  6. data/examples/blueprint_default/index.html.haml +3 -3
  7. data/examples/blueprint_default/parts/forms.html.haml +2 -0
  8. data/examples/blueprint_default/src/screen.sass +1 -1
  9. data/examples/blueprint_plugins/index.html.haml +6 -6
  10. data/examples/blueprint_plugins/src/buttons.sass +2 -2
  11. data/examples/blueprint_plugins/src/link_icons.sass +1 -1
  12. data/examples/blueprint_plugins/src/rtl_screen.sass +3 -3
  13. data/examples/blueprint_plugins/src/screen.sass +2 -2
  14. data/examples/blueprint_semantic/src/liquid.sass +4 -4
  15. data/examples/blueprint_semantic/src/screen.sass +3 -3
  16. data/examples/compass/bootstrap.rb +3 -0
  17. data/examples/compass/extensions/yui/stylesheets/_yui.sass +7 -0
  18. data/examples/compass/extensions/yui/stylesheets/yui/modules/_base.sass +70 -0
  19. data/examples/compass/extensions/yui/stylesheets/yui/modules/_fonts.sass +45 -0
  20. data/examples/compass/extensions/yui/stylesheets/yui/modules/_grids.sass +385 -0
  21. data/examples/compass/extensions/yui/stylesheets/yui/modules/_reset.sass +61 -0
  22. data/examples/compass/extensions/yui/templates/project/manifest.rb +1 -0
  23. data/examples/compass/extensions/yui/templates/project/screen.sass +4 -0
  24. data/examples/compass/src/utilities.sass +2 -2
  25. data/examples/css3/config.rb +6 -0
  26. data/examples/css3/extensions/fancy-fonts/templates/project/Vtks Revolt.ttf +0 -0
  27. data/examples/css3/extensions/fancy-fonts/templates/project/angelina.ttf +0 -0
  28. data/examples/css3/extensions/fancy-fonts/templates/project/fancy-fonts.sass +7 -0
  29. data/examples/css3/extensions/fancy-fonts/templates/project/manifest.rb +5 -0
  30. data/examples/css3/images/fresh-peas.jpg +0 -0
  31. data/examples/css3/index.html.haml +55 -0
  32. data/examples/css3/src/_base.sass +14 -0
  33. data/examples/css3/src/fancy-fonts.sass +7 -0
  34. data/examples/css3/src/gradient.sass +10 -0
  35. data/examples/css3/src/main.sass +80 -0
  36. data/examples/css3/stylesheets/fonts/Vtks Revolt.ttf +0 -0
  37. data/examples/css3/stylesheets/fonts/angelina.ttf +0 -0
  38. data/examples/downloader.rb +2 -2
  39. data/examples/ninesixty/extensions/ninesixty/README.mkdn +56 -0
  40. data/examples/ninesixty/extensions/ninesixty/compass-960-plugin.gemspec +36 -0
  41. data/examples/ninesixty/extensions/ninesixty/lib/ninesixty.rb +1 -0
  42. data/examples/ninesixty/extensions/ninesixty/lib/ninesixty/compass_plugin.rb +5 -0
  43. data/examples/ninesixty/extensions/ninesixty/sass/960/_grid.sass +64 -0
  44. data/examples/ninesixty/extensions/ninesixty/sass/960/_text.sass +59 -0
  45. data/examples/ninesixty/extensions/ninesixty/templates/project/grid.sass +34 -0
  46. data/examples/ninesixty/extensions/ninesixty/templates/project/manifest.rb +2 -0
  47. data/examples/ninesixty/extensions/ninesixty/templates/project/text.sass +10 -0
  48. data/examples/susy/bootstrap.rb +3 -0
  49. data/examples/susy/config.rb +9 -0
  50. data/examples/susy/extensions/susy/LICENSE.txt +28 -0
  51. data/examples/susy/extensions/susy/README.mkdn +235 -0
  52. data/examples/susy/extensions/susy/compass-susy-plugin.gemspec +35 -0
  53. data/examples/susy/extensions/susy/docs/tutorial/build.sh +141 -0
  54. data/examples/susy/extensions/susy/docs/tutorial/code/01_target/src/_defaults.sass +100 -0
  55. data/examples/susy/extensions/susy/docs/tutorial/code/01_target/src/screen.sass +98 -0
  56. data/examples/susy/extensions/susy/docs/tutorial/code/02_container/src/_defaults.sass +147 -0
  57. data/examples/susy/extensions/susy/docs/tutorial/code/02_container/src/screen.sass +19 -0
  58. data/examples/susy/extensions/susy/docs/tutorial/code/03_structure/src/_defaults.sass +147 -0
  59. data/examples/susy/extensions/susy/docs/tutorial/code/03_structure/src/screen.sass +48 -0
  60. data/examples/susy/extensions/susy/docs/tutorial/code/_common/config.rb +14 -0
  61. data/examples/susy/extensions/susy/docs/tutorial/code/_common/images/grid.png +0 -0
  62. data/examples/susy/extensions/susy/docs/tutorial/code/_common/images/susy_logo.png +0 -0
  63. data/examples/susy/extensions/susy/docs/tutorial/code/_common/src/_base.sass +63 -0
  64. data/examples/susy/extensions/susy/docs/tutorial/code/_tools/Markdown.pl +1450 -0
  65. data/examples/susy/extensions/susy/docs/tutorial/code/site/src/_defaults.sass +100 -0
  66. data/examples/susy/extensions/susy/docs/tutorial/code/site/src/screen.sass +91 -0
  67. data/examples/susy/extensions/susy/docs/tutorial/figures/susy_element.png +0 -0
  68. data/examples/susy/extensions/susy/docs/tutorial/figures/susy_grid.png +0 -0
  69. data/examples/susy/extensions/susy/docs/tutorial/index.mkdn +301 -0
  70. data/examples/susy/extensions/susy/lib/susy.rb +2 -0
  71. data/examples/susy/extensions/susy/lib/susy/compass_plugin.rb +5 -0
  72. data/examples/susy/extensions/susy/lib/susy/sass_extensions.rb +79 -0
  73. data/examples/susy/extensions/susy/sass/susy/_grid.sass +128 -0
  74. data/examples/susy/extensions/susy/sass/susy/_reset.sass +7 -0
  75. data/examples/susy/extensions/susy/sass/susy/_susy.sass +23 -0
  76. data/examples/susy/extensions/susy/sass/susy/_text.sass +15 -0
  77. data/examples/susy/extensions/susy/sass/susy/_utils.sass +81 -0
  78. data/examples/susy/extensions/susy/templates/project/_base.sass +62 -0
  79. data/examples/susy/extensions/susy/templates/project/_defaults.sass +147 -0
  80. data/examples/susy/extensions/susy/templates/project/ie.sass +9 -0
  81. data/examples/susy/extensions/susy/templates/project/manifest.rb +5 -0
  82. data/examples/susy/extensions/susy/templates/project/print.sass +7 -0
  83. data/examples/susy/extensions/susy/templates/project/screen.sass +44 -0
  84. data/examples/susy/src/_base.sass +62 -0
  85. data/examples/susy/src/_defaults.sass +148 -0
  86. data/examples/susy/src/screen.sass +114 -0
  87. data/examples/yui/extensions/yui/stylesheets/_yui.sass +7 -0
  88. data/examples/yui/extensions/yui/stylesheets/yui/modules/_base.sass +70 -0
  89. data/examples/yui/extensions/yui/stylesheets/yui/modules/_fonts.sass +45 -0
  90. data/examples/yui/extensions/yui/stylesheets/yui/modules/_grids.sass +385 -0
  91. data/examples/yui/extensions/yui/stylesheets/yui/modules/_reset.sass +61 -0
  92. data/examples/yui/extensions/yui/templates/project/manifest.rb +1 -0
  93. data/examples/yui/extensions/yui/templates/project/screen.sass +4 -0
  94. data/lib/compass/app_integration/rails/configuration_defaults.rb +9 -1
  95. data/lib/compass/commands/watch_project.rb +1 -1
  96. data/lib/compass/compiler.rb +9 -1
  97. data/lib/compass/configuration.rb +23 -18
  98. data/lib/compass/configuration/adapters.rb +1 -1
  99. data/lib/compass/configuration/defaults.rb +30 -0
  100. data/lib/compass/frameworks.rb +1 -1
  101. data/lib/compass/frameworks/blueprint/stylesheets/_blueprint.sass +29 -1
  102. data/lib/compass/frameworks/blueprint/stylesheets/blueprint/_buttons.sass +84 -0
  103. data/lib/compass/frameworks/blueprint/stylesheets/blueprint/_colors.sass +33 -0
  104. data/lib/compass/frameworks/blueprint/stylesheets/blueprint/_debug.sass +9 -0
  105. data/lib/compass/frameworks/blueprint/stylesheets/blueprint/_fancy_type.sass +82 -0
  106. data/lib/compass/frameworks/blueprint/stylesheets/blueprint/_form.sass +56 -0
  107. data/lib/compass/frameworks/blueprint/stylesheets/blueprint/_grid.sass +179 -0
  108. data/lib/compass/frameworks/blueprint/stylesheets/blueprint/_ie.sass +2 -2
  109. data/lib/compass/frameworks/blueprint/stylesheets/blueprint/_interaction.sass +58 -0
  110. data/lib/compass/frameworks/blueprint/stylesheets/blueprint/_link_icons.sass +44 -0
  111. data/lib/compass/frameworks/blueprint/stylesheets/blueprint/_liquid.sass +141 -0
  112. data/lib/compass/frameworks/blueprint/stylesheets/blueprint/_print.sass +1 -4
  113. data/lib/compass/frameworks/blueprint/stylesheets/blueprint/_reset.sass +57 -2
  114. data/lib/compass/frameworks/blueprint/stylesheets/blueprint/_rtl.sass +123 -0
  115. data/lib/compass/frameworks/blueprint/stylesheets/blueprint/_scaffolding.sass +49 -0
  116. data/lib/compass/frameworks/blueprint/stylesheets/blueprint/_screen.sass +2 -29
  117. data/lib/compass/frameworks/blueprint/stylesheets/blueprint/_typography.sass +162 -0
  118. data/lib/compass/frameworks/blueprint/stylesheets/blueprint/_utilities.sass +37 -0
  119. data/lib/compass/frameworks/blueprint/stylesheets/blueprint/modules/_buttons.sass +2 -84
  120. data/lib/compass/frameworks/blueprint/stylesheets/blueprint/modules/_colors.sass +2 -33
  121. data/lib/compass/frameworks/blueprint/stylesheets/blueprint/modules/_debug.sass +2 -9
  122. data/lib/compass/frameworks/blueprint/stylesheets/blueprint/modules/_fancy_type.sass +2 -82
  123. data/lib/compass/frameworks/blueprint/stylesheets/blueprint/modules/_form.sass +2 -55
  124. data/lib/compass/frameworks/blueprint/stylesheets/blueprint/modules/_grid.sass +2 -178
  125. data/lib/compass/frameworks/blueprint/stylesheets/blueprint/modules/_interaction.sass +2 -58
  126. data/lib/compass/frameworks/blueprint/stylesheets/blueprint/modules/_link_icons.sass +2 -44
  127. data/lib/compass/frameworks/blueprint/stylesheets/blueprint/modules/_liquid.sass +2 -140
  128. data/lib/compass/frameworks/blueprint/stylesheets/blueprint/modules/_reset.sass +2 -56
  129. data/lib/compass/frameworks/blueprint/stylesheets/blueprint/modules/_rtl.sass +2 -122
  130. data/lib/compass/frameworks/blueprint/stylesheets/blueprint/modules/_scaffolding.sass +2 -47
  131. data/lib/compass/frameworks/blueprint/stylesheets/blueprint/modules/_typography.sass +2 -160
  132. data/lib/compass/frameworks/blueprint/stylesheets/blueprint/modules/_utilities.sass +2 -37
  133. data/lib/compass/frameworks/blueprint/templates/buttons/buttons.sass +2 -2
  134. data/lib/compass/frameworks/blueprint/templates/link_icons/link_icons.sass +1 -1
  135. data/lib/compass/frameworks/blueprint/templates/project/screen.sass +1 -7
  136. data/lib/compass/frameworks/blueprint/templates/project/welcome.html.haml +5 -2
  137. data/lib/compass/frameworks/compass/stylesheets/compass/_css3.sass +8 -0
  138. data/lib/compass/frameworks/compass/stylesheets/compass/css3/_background_clip.sass +16 -0
  139. data/lib/compass/frameworks/compass/stylesheets/compass/css3/_background_origin.sass +18 -0
  140. data/lib/compass/frameworks/compass/stylesheets/compass/css3/_background_size.sass +14 -0
  141. data/lib/compass/frameworks/compass/stylesheets/compass/css3/_box_shadow.sass +18 -10
  142. data/lib/compass/frameworks/compass/stylesheets/compass/css3/_font_face.sass +31 -0
  143. data/lib/compass/frameworks/compass/stylesheets/compass/css3/_gradient.sass +40 -0
  144. data/lib/compass/frameworks/compass/stylesheets/compass/css3/_text_shadow.sass +15 -0
  145. data/lib/compass/frameworks/compass/stylesheets/compass/css3/_transform.sass +60 -0
  146. data/lib/compass/frameworks/compass/stylesheets/compass/css3/_transition.sass +57 -0
  147. data/lib/compass/grid_builder.rb +1 -1
  148. data/lib/compass/installers/base.rb +5 -1
  149. data/lib/compass/installers/manifest.rb +1 -0
  150. data/lib/compass/logger.rb +28 -2
  151. data/lib/compass/sass_extensions/functions.rb +3 -1
  152. data/lib/compass/sass_extensions/functions/color_stop.rb +10 -0
  153. data/lib/compass/sass_extensions/functions/enumerate.rb +2 -2
  154. data/lib/compass/sass_extensions/functions/font_files.rb +11 -0
  155. data/lib/compass/sass_extensions/functions/inline_image.rb +22 -1
  156. data/lib/compass/sass_extensions/functions/urls.rb +20 -0
  157. data/lib/vendor/fssm.rb +19 -6
  158. data/lib/vendor/fssm/backends/fsevents.rb +19 -60
  159. data/lib/vendor/fssm/backends/polling.rb +20 -18
  160. data/lib/vendor/fssm/cache.rb +193 -0
  161. data/lib/vendor/fssm/ext.rb +30 -0
  162. data/lib/vendor/fssm/fsevents.rb +129 -0
  163. data/lib/vendor/fssm/monitor.rb +10 -6
  164. data/lib/vendor/fssm/path.rb +24 -21
  165. data/lib/vendor/fssm/state.rb +37 -29
  166. data/lib/vendor/fssm/support.rb +3 -7
  167. data/lib/vendor/fssm/tree.rb +176 -0
  168. data/test/command_line_helper.rb +8 -4
  169. data/test/command_line_test.rb +2 -2
  170. data/test/compass_test.rb +14 -4
  171. data/test/configuration_test.rb +5 -5
  172. data/test/fixtures/stylesheets/blueprint/css/typography.css +5 -3
  173. data/test/fixtures/stylesheets/blueprint/sass/screen.sass +1 -1
  174. data/test/fixtures/stylesheets/blueprint/sass/typography.sass +2 -2
  175. data/test/fixtures/stylesheets/compass/css/print.css +2 -8
  176. data/test/fixtures/stylesheets/image_urls/css/screen.css +2 -0
  177. data/test/fixtures/stylesheets/relative/assets/images/testing.png +0 -0
  178. data/test/fixtures/stylesheets/relative/config.rb +9 -0
  179. data/test/fixtures/stylesheets/relative/css/ie.css +1 -0
  180. data/test/fixtures/stylesheets/relative/css/print.css +1 -0
  181. data/test/fixtures/stylesheets/relative/css/screen.css +1 -0
  182. data/test/fixtures/stylesheets/relative/sass/ie.sass +6 -0
  183. data/test/fixtures/stylesheets/relative/sass/print.sass +6 -0
  184. data/test/fixtures/stylesheets/relative/sass/screen.sass +3 -0
  185. data/test/rails_integration_test.rb +1 -1
  186. data/test/sass_extensions_test.rb +2 -2
  187. metadata +120 -2
@@ -1,160 +1,2 @@
1
- @import colors.sass
2
- @import compass/utilities/links/link_colors.sass
3
- @import compass/utilities/general/float.sass
4
-
5
- !blueprint_font_family ||= "Helvetica Neue, Arial, Helvetica, sans-serif"
6
- !blueprint_fixed_font_family ||= "'andale mono', 'lucida console', monospace"
7
- !blueprint_font_size ||= 12px
8
-
9
- // Usage examples:
10
- // As a top-level mixin, apply to any page that includes the stylesheet:
11
- // +blueprint-typography
12
- // Scoped by a presentational class:
13
- // body.blueprint
14
- // +blueprint-typography(true)
15
- // Scoped by semantic selectors:
16
- // body#page-1, body#page-2, body.a-special-page-type
17
- // +blueprint-typography(true)
18
- // Deprecated:
19
- // You can pass the body selector as the first argument when used as a top-level mixin
20
- // +blueprint-typography("body#page-1, body#page-2, body.a-special-page-type")
21
- =blueprint-typography(!body_selector = "body")
22
- @if !body_selector == true
23
- +blueprint-typography-body
24
- +blueprint-typography-defaults
25
- @else
26
- #{!body_selector}
27
- +blueprint-typography-body
28
- @if !body_selector != "body"
29
- @debug "[DEPRECATED] To specify a the selector \"#{!body_selector}\" to +blueprint-typography, pass true as the first argument and mix it into #{!body_selector}."
30
- +blueprint-typography-defaults
31
- @if !body_selector == "body"
32
- +blueprint-typography-defaults
33
-
34
- =normal-text
35
- font-family= !blueprint_font_family
36
- color= !font_color
37
-
38
- =fixed-width-text
39
- font= 1em !blueprint_fixed_font_family
40
- line-height: 1.5
41
-
42
- =header-text
43
- font-weight: normal
44
- color= !header_color
45
-
46
- =quiet
47
- color= !quiet_color
48
-
49
- =loud
50
- color= !loud_color
51
-
52
- =blueprint-typography-body(!font_size = !blueprint_font_size)
53
- line-height: 1.5
54
- +normal-text
55
- font-size= 100% * !font_size / 16px
56
-
57
- =blueprint-typography-defaults
58
- h1
59
- +header-text
60
- font-size: 3em
61
- line-height: 1
62
- margin-bottom: 0.5em
63
- img
64
- margin: 0
65
- h2
66
- +header-text
67
- font-size: 2em
68
- margin-bottom: 0.75em
69
- h3
70
- +header-text
71
- font-size: 1.5em
72
- line-height: 1
73
- margin-bottom: 1em
74
- h4
75
- +header-text
76
- font-size: 1.2em
77
- line-height: 1.25
78
- margin-bottom: 1.25em
79
- h5
80
- +header-text
81
- font-size: 1em
82
- font-weight: bold
83
- margin-bottom: 1.5em
84
- h6
85
- +header-text
86
- font-size: 1em
87
- font-weight: bold
88
- h2 img, h3 img, h4 img, h5 img, h6 img
89
- margin: 0
90
- p
91
- margin: 0 0 1.5em
92
- img.left
93
- +float-left
94
- margin: 1.5em 1.5em 1.5em 0
95
- padding: 0
96
- img.right
97
- +float-right
98
- margin: 1.5em 0 1.5em 1.5em
99
- padding: 0
100
- a
101
- text-decoration: underline
102
- +link-colors(!link_color, !link_hover_color, !link_active_color, !link_visited_color, !link_focus_color)
103
- blockquote
104
- margin: 1.5em
105
- color: #666
106
- font-style: italic
107
- strong
108
- font-weight: bold
109
- em
110
- font-style: italic
111
- dfn
112
- font-style: italic
113
- font-weight: bold
114
- sup, sub
115
- line-height: 0
116
- abbr, acronym
117
- border-bottom: 1px dotted #666
118
- address
119
- margin: 0 0 1.5em
120
- font-style: italic
121
- del
122
- color: #666
123
- pre
124
- margin: 1.5em 0
125
- white-space: pre
126
- pre, code, tt
127
- +fixed-width-text
128
- li ul, li ol
129
- margin: 0 1.5em
130
- ul
131
- margin: 0 1.5em 1.5em 1.5em
132
- list-style-type: disc
133
- ol
134
- margin: 0 1.5em 1.5em 1.5em
135
- list-style-type: decimal
136
- dl
137
- margin: 0 0 1.5em 0
138
- dt
139
- font-weight: bold
140
- dd
141
- margin-left: 1.5em
142
- table
143
- margin-bottom: 1.4em
144
- width: 100%
145
- th
146
- font-weight: bold
147
- thead th
148
- background= !blueprint_table_header_color
149
- th, td, caption
150
- padding: 4px 10px 4px 5px
151
- tr.even td
152
- background= !blueprint_table_stripe_color
153
- tfoot
154
- font-style: italic
155
- caption
156
- background: #eee
157
- .quiet
158
- +quiet
159
- .loud
160
- +loud
1
+ @debug "DEPRECATION WARINING: blueprint/modules/typography.sass has moved to blueprint/typography.sass"
2
+ @import blueprint/typography.sass
@@ -1,37 +1,2 @@
1
- @import compass/utilities/text/nowrap.sass
2
- @import compass/utilities/general/float.sass
3
-
4
- // Most of these utility classes are not "semantic". If you use them,
5
- // you are mixing your content and presentation. For shame!
6
-
7
- =blueprint-utilities
8
- // Regular clearing apply to column that should drop below previous ones.
9
- .clear
10
- clear: both
11
- // turn off text wrapping for the element.
12
- .nowrap
13
- +nowrap
14
- // Apply to an element that has floated children to make the bottom
15
- // of the element fall _below_ the floated children.
16
- .clearfix
17
- +clearfix
18
- .small
19
- font-size: .8em
20
- margin-bottom: 1.875em
21
- line-height: 1.875em
22
- .large
23
- font-size: 1.2em
24
- line-height: 2.5em
25
- margin-bottom: 1.25em
26
- .first
27
- margin-left: 0
28
- padding-left: 0
29
- .last
30
- margin-right: 0
31
- padding-right: 0
32
- .top
33
- margin-top: 0
34
- padding-top: 0
35
- .bottom
36
- margin-bottom: 0
37
- padding-bottom: 0
1
+ @debug "DEPRECATION WARINING: blueprint/modules/utilities.sass has moved to blueprint/utilities.sass"
2
+ @import blueprint/utilities.sass
@@ -1,5 +1,5 @@
1
1
  @import compass/utilities/general/float.sass
2
- @import blueprint/modules/buttons.sass
2
+ @import blueprint/buttons.sass
3
3
 
4
4
  //
5
5
  Use the following HTML code to place the buttons on your site:
@@ -23,7 +23,7 @@ a.button
23
23
  +anchor-button("left")
24
24
  // All the button color mixins take 4 optional arguments:
25
25
  // font color, background color, border color, border highlight color
26
- // the first three default to constants set in blueprint/modules/buttons.sass
26
+ // the first three default to constants set in blueprint/buttons.sass
27
27
  // the last one defaults to a shade lighter than the border color.
28
28
  +button-colors
29
29
  +button-hover-colors
@@ -1,4 +1,4 @@
1
- @import blueprint/modules/link_icons.sass
1
+ @import blueprint/link_icons.sass
2
2
 
3
3
  // This turns link icons on for all links. You can change the scoping selector from
4
4
  // body to something more specific if you prefer.
@@ -5,7 +5,7 @@
5
5
  // Import all the default blueprint modules so that we can access their mixins.
6
6
  @import blueprint
7
7
  // Import the non-default scaffolding module.
8
- @import blueprint/modules/scaffolding.sass
8
+ @import blueprint/scaffolding.sass
9
9
 
10
10
  // To generate css equivalent to the blueprint css but with your configuration applied, uncomment:
11
11
  // +blueprint
@@ -39,9 +39,3 @@ body.three-col
39
39
  // true means it's the last column in the row
40
40
  +column(!content_columns, true)
41
41
 
42
- // This is just here to style the welcome page, please delete it.
43
- body#welcome
44
- #container
45
- +container
46
- h1
47
- +column(24)
@@ -10,8 +10,11 @@
10
10
  %style(type="text/css")
11
11
  :sass
12
12
  @import blueprint.sass
13
- .foo
14
- +column(8)
13
+ body#welcome
14
+ #container
15
+ +container
16
+ h1
17
+ +column(24)
15
18
  %body#welcome.bp
16
19
  #container
17
20
  %h1 Welcome to Compass!
@@ -2,5 +2,13 @@
2
2
  @import css3/inline_block.sass
3
3
  @import css3/opacity.sass
4
4
  @import css3/box_shadow.sass
5
+ @import css3/text_shadow.sass
5
6
  @import css3/columns.sass
6
7
  @import css3/box_sizing.sass
8
+ @import css3/gradient.sass
9
+ @import css3/background_clip.sass
10
+ @import css3/background_origin.sass
11
+ @import css3/background_size.sass
12
+ @import css3/font_face.sass
13
+ @import css3/transform.sass
14
+ @import css3/transition.sass
@@ -0,0 +1,16 @@
1
+ // Background Clip
2
+ // clip the background (image and color) at the edge of the padding or border
3
+ // - [padding-box | border-box]
4
+ // - browser defaults to border-box, mixin defaults to padding-box
5
+
6
+ // override constants to change defaults
7
+ !default_background_clip ||= "padding-box"
8
+
9
+ =background-clip(!clip = !default_background_clip)
10
+ // webkit and mozilla use the deprecated short [border | padding | content]
11
+ !deprecated= "padding"
12
+ @if !clip == "border-box"
13
+ !deprecated= "border"
14
+ background-clip= !clip
15
+ -webkit-background-clip= !deprecated
16
+ -moz-background-clip= !deprecated
@@ -0,0 +1,18 @@
1
+ // Background Origin
2
+ // position the background off the edge of the padding, border or content
3
+ // - [padding-box | border-box | content-box]
4
+ // - browser defaults to padding-box, mixin defaults to content-box
5
+
6
+ // override constants to change defaults
7
+ !default_background_origin ||= "content-box"
8
+
9
+ =background-origin(!origin = !default_background_origin)
10
+ // webkit and mozilla use the deprecated short [border | padding | content]
11
+ !deprecated= "padding"
12
+ @if !origin == "border-box"
13
+ !deprecated= "border"
14
+ @if !origin == "content-box"
15
+ !deprecated= "content"
16
+ background-origin= !origin
17
+ -webkit-background-origin= !deprecated
18
+ -moz-background-origin= !deprecated
@@ -0,0 +1,14 @@
1
+ // Background Size
2
+ // Set the size of background images using px, width and height, or percentages
3
+ // - percentages are relative to the background-origin (default = padding-box)
4
+ // - mixin defaults to "100% auto"
5
+
6
+ // override constants to change defaults
7
+ !default_background_size ||= 100% "auto"
8
+
9
+ =background-size(!size = !default_background_size)
10
+ background-size= !size
11
+ -webkit-background-size= !size
12
+ -o-background-size= !size
13
+ -khtml-background-size= !size
14
+ -moz-background-size= !size
@@ -1,12 +1,20 @@
1
1
  //**
2
- Provides cross-browser css box shadows
3
- for Webkit and the future
4
- arguments are horizontal offset, vertical offset, blur and color
2
+ Provides cross-browser css box shadows for Webkit, Gecko, and CSS3 standard
3
+ arguments are color, horizontal offset, vertical offset, and blur
5
4
 
6
- =box-shadow(!ho, !vo, !b, !c )
7
- /* Webkit (Safari, Chrome)
8
- -webkit-box-shadow= !ho !vo !b !c
9
- /* Mozilla (Firefox, Camino)
10
- -moz-box-shadow= !ho !vo !b !c
11
- /* CSS3
12
- box-shadow= !ho !vo !b !c
5
+ //**
6
+ These defaults make the arguments optional for this mixin
7
+ If you like, set different defaults in your project
8
+
9
+ !default_box_shadow_color ||= #333
10
+ !default_box_shadow_h_offset ||= 1px
11
+ !default_box_shadow_v_offset ||= 1px
12
+ !default_box_shadow_blur ||= 5px
13
+
14
+ =box-shadow(!color = !default_box_shadow_color, !hoff = !default_box_shadow_h_offset, !voff = !default_box_shadow_v_offset, !blur = !default_box_shadow_blur)
15
+ /* Webkit (Safari, Chrome) */
16
+ -webkit-box-shadow= !color !hoff !voff !blur
17
+ /* Gecko (Firefox, Camino) */
18
+ -moz-box-shadow= !color !hoff !voff !blur
19
+ /* CSS3 */
20
+ box-shadow= !color !hoff !voff !blur
@@ -0,0 +1,31 @@
1
+ // @Font-Face
2
+ // Cross-browser support for @font-face
3
+ // - !name is required, arbitrary, and what you will use in font stacks.
4
+ // - !font_files is required using font_files('relative_location', 'format').
5
+ // - for best results use this order: woff, opentype/truetype, svg
6
+ // - !eot is required by IE, and is a relative location of the eot file.
7
+ // - postscript name is required by some browsers to look for local fonts.
8
+ =font-face( !name, !font_files, !eot = false, !postscript = false, !style = false)
9
+ @font-face
10
+ font-family: '#{!name}'
11
+ @if !style
12
+ font-style= !style
13
+ @if !eot
14
+ src= stylesheet_url(!eot)
15
+ @if !postscript
16
+ src: local('#{!name}'), local('#{!postscript}'), #{!font_files}
17
+ @else
18
+ src: local('#{!name}'), #{!font_files}
19
+
20
+ // EXAMPLE
21
+ +font-face("this name", font-files("this.woff", "woff", "this.otf", "opentype"), "fonts/this.eot", "thisname")
22
+
23
+ will generate:
24
+
25
+ @font-face {
26
+ font-family: 'this name';
27
+ src: url('fonts/this.eot');
28
+ src: local('this name'), local('thisname'),
29
+ url('this.otf') format('woff'),
30
+ url('this.woff') format('opentype');
31
+ }
@@ -0,0 +1,40 @@
1
+ =gradient(!type, !coords, !color_start, !color_end, !color_stop = false)
2
+ !gradient= "#{!coords}, from(#{!color_start}), to(#{!color_end})"
3
+ @if !color_stop
4
+ !gradient= !gradient + ", " + !color_stop
5
+ background: -webkit-gradient(#{!type}, #{!gradient})
6
+ background: -moz-#{!type}-gradient(#{!gradient})
7
+
8
+ //*
9
+ // This will yeild a radial gradient with an apparent specular highlight
10
+ +radial-gradient("45 45, 10, 52 50, 30", Cyan, DodgerBlue)
11
+
12
+ =radial-gradient(!coords, !color1, !color2, !color_stop = false)
13
+ +gradient("radial", !coords, !color1, !color2, !color_stop)
14
+
15
+ //*
16
+ // This yields a linear gradient spanning from !start to !end coordinates
17
+ +linear-gradient("left top", "left bottom", #fff, #ddd)
18
+
19
+ =linear-gradient(!start, !end, !color1, !color2, !color_stop = false)
20
+ !coords = !start + ", " + !end
21
+ +gradient("linear", !coords, !color1, !color2, !color_stop)
22
+
23
+ //*
24
+ // This yields a gradient starting at the top with #fff, ending in #aaa
25
+ +v-gradient(#fff, #aaa)
26
+ // Same as above but with a #ccc at the halfway point
27
+ +v-gradient(#fff, #aaa, color_stop(50%, #ccc))
28
+ // Same as the first example but with #ccc at the 30% from the top, and #bbb at 70% from the top
29
+ +v-gradient(#fff, #aaa, color_stop(30%, #ccc, 70%, #bbb))
30
+
31
+ =v-gradient(!color1, !color2, !color_stop = false)
32
+ +linear-gradient("left top", "left bottom", !color1, !color2, !color_stop)
33
+
34
+ //*
35
+ // This yields a horizontal linear gradient spanning from left to right
36
+ // It can be used just like v-gradient above
37
+ h-gradient(#fff, #ddd)
38
+
39
+ =h-gradient(!color1, !color2, !color_stop = false)
40
+ +linear-gradient("left top", "right top", !color1, !color2, !color_stop)
@@ -0,0 +1,15 @@
1
+ //**
2
+ Provides css text shadows
3
+ arguments are color, horizontal offset, vertical offset, and blur
4
+
5
+ //**
6
+ These defaults make the arguments optional for this mixin
7
+ If you like, set different defaults in your project
8
+
9
+ !default_text_shadow_color ||= #aaa
10
+ !default_text_shadow_h_offset ||= 1px
11
+ !default_text_shadow_v_offset ||= 1px
12
+ !default_text_shadow_blur ||= 1px
13
+
14
+ =text-shadow(!color = !default_text_shadow_color, !hoff = !default_text_shadow_h_offset, !voff = !default_text_shadow_v_offset, !blur = !default_text_shadow_blur)
15
+ text-shadow= !color !hoff !voff !blur