arnebrasseur-compass 0.3.5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (161) hide show
  1. data/Manifest +160 -0
  2. data/README.markdown +18 -0
  3. data/Rakefile +112 -0
  4. data/VERSION +1 -0
  5. data/bin/compass +8 -0
  6. data/compass.gemspec +37 -0
  7. data/examples/blueprint_default/index.html +73 -0
  8. data/examples/blueprint_default/parts/elements.html +246 -0
  9. data/examples/blueprint_default/parts/forms.html +100 -0
  10. data/examples/blueprint_default/parts/grid.html +206 -0
  11. data/examples/blueprint_default/parts/test-small.jpg +0 -0
  12. data/examples/blueprint_default/parts/test.jpg +0 -0
  13. data/examples/blueprint_default/parts/valid.png +0 -0
  14. data/examples/blueprint_default/stylesheets/ie.sass +3 -0
  15. data/examples/blueprint_default/stylesheets/images/grid.png +0 -0
  16. data/examples/blueprint_default/stylesheets/print.sass +3 -0
  17. data/examples/blueprint_default/stylesheets/screen.sass +8 -0
  18. data/examples/blueprint_plugins/index.html +60 -0
  19. data/examples/blueprint_plugins/parts/fancy_type.html +84 -0
  20. data/examples/blueprint_plugins/parts/test-small.jpg +0 -0
  21. data/examples/blueprint_plugins/parts/test.jpg +0 -0
  22. data/examples/blueprint_plugins/parts/valid.png +0 -0
  23. data/examples/blueprint_plugins/stylesheets/ie.sass +3 -0
  24. data/examples/blueprint_plugins/stylesheets/images/grid.png +0 -0
  25. data/examples/blueprint_plugins/stylesheets/print.sass +3 -0
  26. data/examples/blueprint_plugins/stylesheets/screen.sass +11 -0
  27. data/examples/blueprint_scoped/stylesheets/ie.sass +3 -0
  28. data/examples/blueprint_scoped/stylesheets/print.sass +3 -0
  29. data/examples/blueprint_scoped/stylesheets/screen.sass +4 -0
  30. data/examples/blueprint_scoped_form/stylesheets/ie.sass +3 -0
  31. data/examples/blueprint_scoped_form/stylesheets/print.sass +3 -0
  32. data/examples/blueprint_scoped_form/stylesheets/screen.sass +10 -0
  33. data/examples/blueprint_semantic/index.html +68 -0
  34. data/examples/blueprint_semantic/parts/fancy_type.html +84 -0
  35. data/examples/blueprint_semantic/parts/liquid.html +84 -0
  36. data/examples/blueprint_semantic/parts/test-small.jpg +0 -0
  37. data/examples/blueprint_semantic/parts/test.jpg +0 -0
  38. data/examples/blueprint_semantic/parts/valid.png +0 -0
  39. data/examples/blueprint_semantic/stylesheets/ie.sass +3 -0
  40. data/examples/blueprint_semantic/stylesheets/images/grid.png +0 -0
  41. data/examples/blueprint_semantic/stylesheets/liquid.sass +70 -0
  42. data/examples/blueprint_semantic/stylesheets/print.sass +3 -0
  43. data/examples/blueprint_semantic/stylesheets/screen.sass +69 -0
  44. data/examples/compass/compass.html +19 -0
  45. data/examples/compass/sticky_footer.html.haml +14 -0
  46. data/examples/compass/stylesheets/compass.sass +47 -0
  47. data/examples/compass/stylesheets/images/blue_arrow.gif +0 -0
  48. data/examples/compass/stylesheets/sticky_footer.sass +11 -0
  49. data/examples/compass/stylesheets/utilities.sass +65 -0
  50. data/examples/compass/utilities.html.haml +136 -0
  51. data/examples/yui/divisions.html.haml +179 -0
  52. data/examples/yui/index.html.haml +19 -0
  53. data/examples/yui/stylesheets/screen.sass +13 -0
  54. data/examples/yui/sub_divisions.html.haml +169 -0
  55. data/examples/yui/templates.html.haml +54 -0
  56. data/examples/yui/test.jpg +0 -0
  57. data/examples/yui/typography.html.haml +132 -0
  58. data/frameworks/blueprint/lib/blueprint/constants.rb +17 -0
  59. data/frameworks/blueprint/lib/blueprint/grid_builder.rb +54 -0
  60. data/frameworks/blueprint/stylesheets/_blueprint.sass +3 -0
  61. data/frameworks/blueprint/stylesheets/blueprint/_ie.sass +49 -0
  62. data/frameworks/blueprint/stylesheets/blueprint/_print.sass +82 -0
  63. data/frameworks/blueprint/stylesheets/blueprint/_screen.sass +15 -0
  64. data/frameworks/blueprint/stylesheets/blueprint/modules/_colors.sass +30 -0
  65. data/frameworks/blueprint/stylesheets/blueprint/modules/_debug.sass +9 -0
  66. data/frameworks/blueprint/stylesheets/blueprint/modules/_fancy_type.sass +81 -0
  67. data/frameworks/blueprint/stylesheets/blueprint/modules/_form.sass +43 -0
  68. data/frameworks/blueprint/stylesheets/blueprint/modules/_grid.sass +141 -0
  69. data/frameworks/blueprint/stylesheets/blueprint/modules/_interaction.sass +58 -0
  70. data/frameworks/blueprint/stylesheets/blueprint/modules/_liquid.sass +137 -0
  71. data/frameworks/blueprint/stylesheets/blueprint/modules/_scaffolding.sass +46 -0
  72. data/frameworks/blueprint/stylesheets/blueprint/modules/_typography.sass +153 -0
  73. data/frameworks/blueprint/stylesheets/blueprint/modules/_utilities.sass +37 -0
  74. data/frameworks/blueprint/templates/project/grid.png +0 -0
  75. data/frameworks/blueprint/templates/project/ie.sass +3 -0
  76. data/frameworks/blueprint/templates/project/print.sass +3 -0
  77. data/frameworks/blueprint/templates/project/screen.sass +8 -0
  78. data/frameworks/compass/stylesheets/_compass.sass +1 -0
  79. data/frameworks/compass/stylesheets/compass/_layout.sass +1 -0
  80. data/frameworks/compass/stylesheets/compass/_reset.sass +3 -0
  81. data/frameworks/compass/stylesheets/compass/_utilities.sass +5 -0
  82. data/frameworks/compass/stylesheets/compass/layout/_sticky_footer.sass +17 -0
  83. data/frameworks/compass/stylesheets/compass/utilities/_general.sass +4 -0
  84. data/frameworks/compass/stylesheets/compass/utilities/_links.sass +3 -0
  85. data/frameworks/compass/stylesheets/compass/utilities/_lists.sass +3 -0
  86. data/frameworks/compass/stylesheets/compass/utilities/_print.sass +24 -0
  87. data/frameworks/compass/stylesheets/compass/utilities/_tables.sass +1 -0
  88. data/frameworks/compass/stylesheets/compass/utilities/_text.sass +2 -0
  89. data/frameworks/compass/stylesheets/compass/utilities/general/_clearfix.sass +11 -0
  90. data/frameworks/compass/stylesheets/compass/utilities/general/_inline_block.sass +6 -0
  91. data/frameworks/compass/stylesheets/compass/utilities/general/_reset.sass +58 -0
  92. data/frameworks/compass/stylesheets/compass/utilities/general/_tabs.sass +0 -0
  93. data/frameworks/compass/stylesheets/compass/utilities/general/_tag_cloud.sass +19 -0
  94. data/frameworks/compass/stylesheets/compass/utilities/links/_hover_link.sass +5 -0
  95. data/frameworks/compass/stylesheets/compass/utilities/links/_link_colors.sass +24 -0
  96. data/frameworks/compass/stylesheets/compass/utilities/links/_unstyled_link.sass +5 -0
  97. data/frameworks/compass/stylesheets/compass/utilities/lists/_bullets.sass +21 -0
  98. data/frameworks/compass/stylesheets/compass/utilities/lists/_horizontal_list.sass +20 -0
  99. data/frameworks/compass/stylesheets/compass/utilities/lists/_inline_list.sass +29 -0
  100. data/frameworks/compass/stylesheets/compass/utilities/tables/_alternating_rows_and_columns.sass +25 -0
  101. data/frameworks/compass/stylesheets/compass/utilities/text/_nowrap.sass +3 -0
  102. data/frameworks/compass/stylesheets/compass/utilities/text/_replacement.sass +10 -0
  103. data/frameworks/compass/templates/project/grid.png +0 -0
  104. data/frameworks/compass/templates/project/ie.sass +3 -0
  105. data/frameworks/compass/templates/project/print.sass +4 -0
  106. data/frameworks/compass/templates/project/screen.sass +4 -0
  107. data/frameworks/yui/COPYRIGHT +15 -0
  108. data/frameworks/yui/stylesheets/_yui.sass +7 -0
  109. data/frameworks/yui/stylesheets/yui/modules/_base.sass +60 -0
  110. data/frameworks/yui/stylesheets/yui/modules/_fonts.sass +38 -0
  111. data/frameworks/yui/stylesheets/yui/modules/_grids.sass +341 -0
  112. data/frameworks/yui/templates/project/screen.sass +4 -0
  113. data/lib/compass/commands/base.rb +94 -0
  114. data/lib/compass/commands/create_project.rb +32 -0
  115. data/lib/compass/commands/install_rails.rb +115 -0
  116. data/lib/compass/commands/print_version.rb +23 -0
  117. data/lib/compass/commands/update_project.rb +101 -0
  118. data/lib/compass/commands/watch_project.rb +42 -0
  119. data/lib/compass/core_ext.rb +39 -0
  120. data/lib/compass/exec.rb +164 -0
  121. data/lib/compass/frameworks/blueprint.rb +2 -0
  122. data/lib/compass/frameworks/compass.rb +2 -0
  123. data/lib/compass/frameworks/yui.rb +2 -0
  124. data/lib/compass/frameworks.rb +27 -0
  125. data/lib/compass/merb.rb +43 -0
  126. data/lib/compass/test_case.rb +37 -0
  127. data/lib/compass/validate/COPYRIGHT.html +93 -0
  128. data/lib/compass/validate/JIGSAW_COPYRIGHT +64 -0
  129. data/lib/compass/validate/README.html +83 -0
  130. data/lib/compass/validate/XERCES_COPYING.txt +56 -0
  131. data/lib/compass/validate/css-validator-javadoc.jar +0 -0
  132. data/lib/compass/validate/css-validator.jar +0 -0
  133. data/lib/compass/validate/jigsaw.jar +0 -0
  134. data/lib/compass/validate/xerces.jar +0 -0
  135. data/lib/compass/validate.rb +13 -0
  136. data/lib/compass/validator.rb +59 -0
  137. data/lib/compass/version.rb +48 -0
  138. data/lib/compass.rb +20 -0
  139. data/lib/sass_extensions.rb +13 -0
  140. data/test/compass_test.rb +152 -0
  141. data/test/fixtures/stylesheets/blueprint/css/typography.css +158 -0
  142. data/test/fixtures/stylesheets/blueprint/sass/ie.sass +3 -0
  143. data/test/fixtures/stylesheets/blueprint/sass/print.sass +3 -0
  144. data/test/fixtures/stylesheets/blueprint/sass/screen.sass +17 -0
  145. data/test/fixtures/stylesheets/blueprint/sass/typography.sass +3 -0
  146. data/test/fixtures/stylesheets/compass/css/layout.css +14 -0
  147. data/test/fixtures/stylesheets/compass/css/print.css +19 -0
  148. data/test/fixtures/stylesheets/compass/css/reset.css +69 -0
  149. data/test/fixtures/stylesheets/compass/css/utilities.css +21 -0
  150. data/test/fixtures/stylesheets/compass/sass/layout.sass +3 -0
  151. data/test/fixtures/stylesheets/compass/sass/print.sass +5 -0
  152. data/test/fixtures/stylesheets/compass/sass/reset.sass +1 -0
  153. data/test/fixtures/stylesheets/compass/sass/utilities.sass +5 -0
  154. data/test/fixtures/stylesheets/yui/css/mixins.css +16 -0
  155. data/test/fixtures/stylesheets/yui/sass/base.sass +3 -0
  156. data/test/fixtures/stylesheets/yui/sass/fonts.sass +3 -0
  157. data/test/fixtures/stylesheets/yui/sass/grids.sass +3 -0
  158. data/test/fixtures/stylesheets/yui/sass/mixins.sass +16 -0
  159. data/test/sass_extensions_test.rb +26 -0
  160. data/test/test_helper.rb +37 -0
  161. metadata +264 -0
@@ -0,0 +1,54 @@
1
+ !!! Transitional
2
+ %html{:xmlns => "http://www.w3.org/1999/xhtml", "xml:lang" => "en", :lang => "en"}
3
+ %head
4
+ %title YUI Template Presets Example
5
+ %link{:rel=>"stylesheet", :href=>"stylesheets/screen.css", :type=>"text/css", :media=>"screen, projection"}
6
+ :javascript
7
+ function changeTemplate() {
8
+ var templateClass = document.getElementById("current-template").value;
9
+ document.getElementById("doc4").className = templateClass;
10
+ }
11
+ %style{:type => "text/css"}
12
+ :sass
13
+ .yui-b
14
+ border: 1px dotted #ccc
15
+ %body
16
+ #doc4.yui-t2
17
+ #hd
18
+ %h1 Yahoo Template Presets Example
19
+ #bd
20
+ .yui-b
21
+ %h3 YUI Examples
22
+ %ul
23
+ %li
24
+ %a{:href=>"templates.html"} Template Presets
25
+ %li
26
+ %a{:href=>"typography.html"} Typography
27
+ #yui-main
28
+ .yui-b
29
+ %h2 Main Content
30
+ %label{:for => "current-template"} Select Template Preset
31
+ %select{:id=>"current-template", :onchange => "changeTemplate()"}
32
+ %option{:value => "yui-t1"}= ".yui-t1"
33
+ %option{:value => "yui-t2", :selected => "selected"}= ".yui-t2"
34
+ %option{:value => "yui-t3"}= ".yui-t3"
35
+ %option{:value => "yui-t4"}= ".yui-t4"
36
+ %option{:value => "yui-t5"}= ".yui-t5"
37
+ %option{:value => "yui-t6"}= ".yui-t6"
38
+ %hr
39
+ %p
40
+ Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
41
+ .yui-g
42
+ .yui-u.first
43
+ %h3 50/50 Left Side
44
+ %p
45
+ Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
46
+ .yui-u
47
+ %h3 50/50 Right Side
48
+ %p
49
+ Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.
50
+ %p
51
+ Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
52
+ #ft
53
+ Copyright © 2008. All Rights Reserved.
54
+
Binary file
@@ -0,0 +1,132 @@
1
+ !!! Transitional
2
+ %html{:xmlns => "http://www.w3.org/1999/xhtml", "xml:lang" => "en", :lang => "en"}
3
+ %head
4
+ %title YUI Typography Demo
5
+ %link{:rel=>"stylesheet", :href=>"stylesheets/screen.css", :type=>"text/css", :media=>"screen, projection"}
6
+ %body
7
+ #doc4.yui-t2
8
+ #yui-main
9
+ .yui-b
10
+ %h1 Typography Demo
11
+ %h2 This is a Sub Title.
12
+
13
+ %p
14
+ Lorem ipsum dolor sit amet,
15
+ %em emphasized adipisicing
16
+ elit, sed do
17
+ %strong strong tempor
18
+ incididunt ut labore et
19
+ %b bold magna
20
+ aliqua. Ut enim ad
21
+ %i<
22
+ italic veniam,
23
+ quis nostrud exercitation ullamco
24
+ %a{:href=>'#'} link nisi ut aliquip ex ea commodo consequat.
25
+ Duis aute irure dolor in
26
+ %abbr abbreviation repre
27
+ in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
28
+
29
+ %h3 Third Level Header
30
+ %p
31
+ Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
32
+ %p
33
+ Subsequent paragraph, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
34
+
35
+ %h4 Fourth Level Header
36
+ %p
37
+ Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est quotation:
38
+ %blockquote
39
+ Block Quotem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
40
+
41
+ %h5 Fifth Level Header
42
+ %img{:src => "test.jpg", :style => 'float: right;'}
43
+ %p
44
+ Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in
45
+ %span.bigger<
46
+ voluptate velit esse
47
+ %span.biggest cillum dolore
48
+ eu fugiat nulla pariatur.
49
+ Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
50
+ %p
51
+ Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
52
+
53
+ %h6 Sixth Level Header
54
+ %p
55
+ Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
56
+
57
+ %table
58
+ %caption
59
+ This is the table caption
60
+ %thead
61
+ %tr
62
+ %th
63
+ %th Table Header 1
64
+ %th Table Header 2
65
+ %th Table Header 3
66
+ %tbody
67
+ %tr
68
+ %th Row Header 1
69
+ %td Lorem ipsum dolor sit amet.
70
+ %td Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
71
+ %td Lorem ipsum dolor sit amet.
72
+ %tr
73
+ %th Row Header 2
74
+ %td Lorem ipsum dolor sit amet.
75
+ %td Lorem ipsum dolor sit amet.
76
+ %td Lorem ipsum dolor sit amet.
77
+ %tr
78
+ %th Row Header 3
79
+ %td Lorem ipsum dolor sit amet.
80
+ %td Lorem ipsum dolor sit amet.
81
+ %td Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
82
+ %tr
83
+ %th Row Header 4
84
+ %td Lorem ipsum dolor sit amet.
85
+ %td Lorem ipsum dolor sit amet.
86
+ %td Lorem ipsum dolor sit amet.
87
+ %tr
88
+ %th Row Header 5
89
+ %td Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
90
+ %td Lorem ipsum dolor sit amet.
91
+ %td Lorem ipsum dolor sit amet.
92
+
93
+ %h3 Unordered Lists
94
+ %ul
95
+ %li List Element #1
96
+ %li<
97
+ Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
98
+ %li List Element #3
99
+ %li<
100
+ Nested List
101
+ %ul
102
+ %li Nested 1
103
+ %li Nested 2
104
+ %li Nested 3
105
+
106
+ %h3 Ordered Lists
107
+ %ol
108
+ %li List Element #1
109
+ %li<
110
+ Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
111
+ %li List Element #3
112
+ %li<
113
+ Nested List
114
+ %ol
115
+ %li Nested 1
116
+ %li Nested 2
117
+ %li Nested 3
118
+
119
+ %h3 Definition Lists
120
+ %dl
121
+ %dt Term 1
122
+ %dd Definition 1: Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
123
+ %dd Definition 2: Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
124
+ %dt Term 2
125
+ %dd Another Definition
126
+ .yui-b
127
+ %h3 YUI Examples
128
+ %ul
129
+ %li
130
+ %a{:href=>"templates.html"} Template Presets
131
+ %li
132
+ %a{:href=>"typography.html"} Typography
@@ -0,0 +1,17 @@
1
+ require 'fileutils'
2
+ module Blueprint
3
+ module Constants
4
+ # path to the root Blueprint directory
5
+ ROOT_PATH = File.expand_path(File.join(File.dirname(__FILE__), "../../"))
6
+ # path to where the Blueprint CSS files are stored
7
+ BLUEPRINT_ROOT_PATH = File.join(ROOT_PATH, 'blueprint')
8
+ # path to where the Blueprint CSS raw Sass files are stored
9
+ SOURCE_PATH = File.join(ROOT_PATH, 'src')
10
+ # path to where the Blueprint CSS generated test files are stored
11
+ EXAMPLES_PATH = File.join(ROOT_PATH, 'examples')
12
+ # path to the root of the Blueprint scripts
13
+ LIB_PATH = File.join(ROOT_PATH, 'lib', 'blueprint')
14
+ # path to validator jar file to validate generated CSS files
15
+ VALIDATOR_FILE = File.join(LIB_PATH, 'validate', 'css-validator.jar')
16
+ end
17
+ end
@@ -0,0 +1,54 @@
1
+ begin
2
+ require 'rubygems'
3
+ gem 'rmagick'
4
+ require 'rvg/rvg'
5
+ rescue Exception => e
6
+ end
7
+
8
+ module Blueprint
9
+ # Uses ImageMagick and RMagick to generate grid.png file
10
+ class GridBuilder
11
+ begin
12
+ include Magick
13
+ rescue Exception => e
14
+ end
15
+
16
+ attr_reader :column_width, :gutter_width, :output_path, :able_to_generate
17
+
18
+ # ==== Options
19
+ # * <tt>options</tt>
20
+ # * <tt>:column_width</tt> -- Width (in pixels) of current grid column
21
+ # * <tt>:gutter_width</tt> -- Width (in pixels) of current grid gutter
22
+ # * <tt>:output_path</tt> -- Output path of grid.png file
23
+ def initialize(options={})
24
+ @able_to_generate = Magick::Long_version rescue false
25
+ return unless @able_to_generate
26
+ @column_width = options[:column_width] || Blueprint::COLUMN_WIDTH
27
+ @gutter_width = options[:gutter_width] || Blueprint::GUTTER_WIDTH
28
+ @output_path = options[:output_path] || Blueprint::SOURCE_PATH
29
+ end
30
+
31
+ # generates (overwriting if necessary) grid.png image to be tiled in background
32
+ def generate!
33
+ return false unless self.able_to_generate
34
+ total_width = self.column_width + self.gutter_width
35
+ height = 20
36
+ RVG::dpi = 100
37
+
38
+ rvg = RVG.new((total_width.to_f/RVG::dpi).in, (height.to_f/RVG::dpi).in).viewbox(0, 0, total_width, height) do |canvas|
39
+ canvas.background_fill = 'white'
40
+
41
+ canvas.g do |column|
42
+ column.rect(self.column_width, height).styles(:fill => "#e8effb")
43
+ end
44
+
45
+ canvas.g do |baseline|
46
+ baseline.line(0, (height - 1), total_width, (height- 1)).styles(:fill => "#e9e9e9")
47
+ end
48
+ end
49
+
50
+ FileUtils.mkdir self.output_path unless File.exists? self.output_path
51
+ rvg.draw.write(File.join(self.output_path, "grid.png"))
52
+ end
53
+ end
54
+ end
@@ -0,0 +1,3 @@
1
+ @import blueprint/screen.sass
2
+ @import blueprint/print.sass
3
+ @import blueprint/ie.sass
@@ -0,0 +1,49 @@
1
+ // The blueprint IE mixins should be mixed into a stylesheet that gets conditionally included
2
+ // into IE like so:
3
+ // <!--[if IE]><link rel="stylesheet" href="ie.css"
4
+ // type="text/css" media="screen, projection"><![endif]-->
5
+
6
+ // The +blueprint-ie mixin must be mixed into the top level of your stylesheet.
7
+ // However, you can customize the body selector if you wish to control the scope
8
+ // of this mixin. Examples:
9
+ // Apply to any page including the stylesheet:
10
+ // +blueprint-ie
11
+ // Scoped by a single presentational body class:
12
+ // +blueprint-ie("body.blueprint")
13
+ // Semantically:
14
+ // +blueprint-ie("body#page-1, body#page-2, body.a-special-page-type")
15
+ // Alternatively, you can use the +blueprint-ie-body and +blueprint-ie-defaults
16
+ // mixins to construct your own semantic style rules.
17
+
18
+ =blueprint-ie(!body_selector = "body")
19
+ #{!body_selector}
20
+ +blueprint-ie-body
21
+ @if !body_selector != "body"
22
+ +blueprint-ie-defaults
23
+ @if !body_selector == "body"
24
+ +blueprint-ie-defaults
25
+
26
+ =blueprint-ie-body
27
+ :text-align center
28
+ +blueprint-ie-hacks
29
+
30
+ =blueprint-ie-hacks
31
+ * html &
32
+ legend
33
+ :margin -18px -8px 16px 0
34
+ :padding 0
35
+ html>&
36
+ p code
37
+ :*white-space normal
38
+
39
+ =blueprint-ie-defaults
40
+ .container
41
+ :text-align left
42
+ ol
43
+ :margin-left 2em
44
+ sup
45
+ :vertical-align text-top
46
+ sub
47
+ :vertical-align text-bottom
48
+ hr
49
+ :margin -8px auto 11px
@@ -0,0 +1,82 @@
1
+ @import modules/typography.sass
2
+
3
+ // The +blueprint-print mixin must be mixed into the top level of your stylesheet.
4
+ // However, you can customize the body selector if you wish to control the scope
5
+ // of this mixin. Examples:
6
+ // Apply to any page including the stylesheet:
7
+ // +blueprint-print
8
+ // Scoped by a single presentational body class:
9
+ // +blueprint-print("body.blueprint")
10
+ // Semantically:
11
+ // +blueprint-print("body#page-1, body#page-2, body.a-special-page-type")
12
+ // Alternatively, you can use the +blueprint-print-body and +blueprint-print-defaults
13
+ // mixins to construct your own semantic style rules.
14
+
15
+ =blueprint-print(!body_selector = "body")
16
+ #{!body_selector}
17
+ +blueprint-print-body
18
+ @if !body_selector != "body"
19
+ +blueprint-print-defaults
20
+ @if !body_selector == "body"
21
+ +blueprint-print-defaults
22
+
23
+ // This style is in blueprint, but I think it's annoying and it doesn't work in all browsers.
24
+ // Feel free to mix it into anchors where you want it.
25
+ =blueprint-show-link-urls
26
+ &:after
27
+ :content " (" attr(href) ") "
28
+ :font-size 90%
29
+
30
+ =blueprint-print-body
31
+ :line-height 1.5
32
+ :font-family= !blueprint_font_family
33
+ :color #000
34
+ :background none
35
+ :font-size 10pt
36
+
37
+ =blueprint-print-defaults
38
+ .container
39
+ :background none
40
+ hr
41
+ :background #ccc
42
+ :color #ccc
43
+ :width 100%
44
+ :height 2px
45
+ :margin 2em 0
46
+ :padding 0
47
+ :border none
48
+ &.space
49
+ :background #fff
50
+ :color #fff
51
+ h1, h2, h3, h4, h5, h6
52
+ :font-family= !blueprint_font_family
53
+ code
54
+ :font
55
+ :size .9em
56
+ :family= !blueprint_fixed_font_family
57
+ img
58
+ :float left
59
+ :margin 1.5em 1.5em 1.5em 0
60
+ a
61
+ img
62
+ :border none
63
+ &:link,
64
+ &:visited
65
+ :background transparent
66
+ :font-weight 700
67
+ :text-decoration underline
68
+ p img.top
69
+ :margin-top 0
70
+ blockquote
71
+ :margin 1.5em
72
+ :padding 1em
73
+ :font-style italic
74
+ :font-size .9em
75
+ .small
76
+ :font-size .9em
77
+ .large
78
+ :font-size 1.1em
79
+ .quiet
80
+ :color #999
81
+ .hide
82
+ :display none
@@ -0,0 +1,15 @@
1
+ @import modules/colors.sass
2
+ @import modules/grid.sass
3
+ @import modules/typography.sass
4
+ @import modules/utilities.sass
5
+ @import modules/form.sass
6
+ @import modules/interaction.sass
7
+ @import modules/debug.sass
8
+
9
+ =blueprint(!body_selector = "body")
10
+ +blueprint-grid
11
+ +blueprint-typography(!body_selector)
12
+ +blueprint-utilities
13
+ +blueprint-debug
14
+ +blueprint-interaction
15
+ +blueprint-form
@@ -0,0 +1,30 @@
1
+ !font_color ||= #333
2
+ !quiet_color ||= !font_color + #333
3
+ !loud_color ||= !font_color - #222
4
+
5
+ !header_color ||= !font_color - #111
6
+
7
+ !link_color ||= #009
8
+ !link_hover_color ||= #000
9
+ !link_focus_color ||= !link_hover_color
10
+ !link_active_color ||= !link_color + #C00
11
+ !link_visited_color ||= !link_color - #333
12
+
13
+ !feedback_border_color ||= #DDD
14
+ !success_color ||= #264409
15
+ !success_bg_color ||= #E6EFC2
16
+ !success_border_color ||= #C6D880
17
+
18
+ !notice_color ||= #514721
19
+ !notice_bg_color ||= #FFF6BF
20
+ !notice_border_color ||= #FFD324
21
+
22
+ !error_color ||= #8A1F11
23
+ !error_bg_color ||= #FBE3E4
24
+ !error_border_color ||= #FBC2C4
25
+
26
+ !highlight_color ||= #FF0
27
+ !added_color ||= #FFF
28
+ !added_bg_color ||= #060
29
+ !removed_color ||= #FFF
30
+ !removed_bg_color ||= #900
@@ -0,0 +1,9 @@
1
+ =showgrid(!image = "images/grid.png")
2
+ :background= url(!image)
3
+
4
+ =blueprint-debug(!grid_image = "images/grid.png")
5
+ // Use this class on any column or container to see the grid.
6
+ // TODO: prefix this with the project path.
7
+ .showgrid
8
+ +showgrid(!grid_image)
9
+
@@ -0,0 +1,81 @@
1
+ /*
2
+ To install the fancy type plugin:
3
+ 1. import the fancy_type module:
4
+ @import blueprint/modules/fancy_type
5
+ 2. mixin +fancy-type to your project's body or at the top level of your stylesheet:
6
+ body
7
+ +fancy-type
8
+
9
+ =fancy-type
10
+ +fancy-paragraphs
11
+ .caps
12
+ +caps
13
+ .dquo
14
+ +dquo
15
+ .alt
16
+ +alt
17
+
18
+ /* Indentation instead of line shifts for sibling paragraphs. Mixin to a style like p + p
19
+ =sibling-indentation
20
+ :text-indent 2em
21
+ :margin-top -1.5em
22
+ /* Don't want this in forms.
23
+ form &
24
+ :text-indent 0
25
+
26
+ /*
27
+ For great looking type, use this code instead of asdf:
28
+ <span class="alt">asdf</span>
29
+ Best used on prepositions and ampersands.
30
+
31
+ =alt
32
+ :color #666
33
+ :font-family "Warnock Pro", "Goudy Old Style","Palatino","Book Antiqua", Georgia, serif
34
+ :font-style italic
35
+ :font-weight normal
36
+
37
+ /*
38
+ For great looking quote marks in titles, replace "asdf" with:
39
+ <span class="dquo">&#8220;</span>asdf&#8221;
40
+ (That is, when the title starts with a quote mark).
41
+ (You may have to change this value depending on your font size).
42
+ =dquo(!offset = 0.5em)
43
+ :margin-left -!offset
44
+
45
+ /*
46
+ Reduced size type with incremental leading
47
+ (http://www.markboulton.co.uk/journal/comments/incremental_leading/)
48
+
49
+ This could be used for side notes. For smaller type, you don't necessarily want to
50
+ follow the 1.5x vertical rhythm -- the line-height is too much.
51
+
52
+ Using this mixin, reduces your font size and line-height so that for
53
+ every four lines of normal sized type, there is five lines of the sidenote. eg:
54
+
55
+ Arguments:
56
+ font_size - The desired font size in pixels. This will be converted to ems for you. Defaults to 10px.
57
+ base_font_size - The base font size in pixels. Defaults to 12px
58
+ old_line_height - The old line height. Defaults to 1.5 times the base_font_size
59
+ =incr(!font_size = 10px, !base_font_size = 12px, !old_line_height = !base_font_size * 1.5)
60
+ :font-size= 1em * !font_size / !base_font_size
61
+ :line-height= 1em * !old_line_height / !font_size * 4 / 5
62
+ :margin-bottom 1.5em
63
+
64
+ /*
65
+ Surround uppercase words and abbreviations with this class.
66
+ Based on work by Jørgen Arnor Gårdsø Lom [http://twistedintellect.com/] */
67
+ =caps
68
+ :font-variant small-caps
69
+ :letter-spacing 1px
70
+ :text-transform lowercase
71
+ :font-size 1.2em
72
+ :line-height 1%
73
+ :font-weight bold
74
+ :padding 0 2px
75
+
76
+ =fancy-paragraphs
77
+ p + p
78
+ +sibling-indentation
79
+ p.incr,
80
+ .incr p
81
+ +incr
@@ -0,0 +1,43 @@
1
+ @import colors.sass
2
+
3
+ =blueprint-form
4
+ label
5
+ :font-weight bold
6
+ fieldset
7
+ :padding 1.4em
8
+ :margin 0 0 1.5em 0
9
+ :border 1px solid #ccc
10
+ legend
11
+ :font-weight bold
12
+ :font-size 1.2em
13
+ input
14
+ &.text
15
+ :margin 0.5em 0
16
+ :border 1px solid #bbb
17
+ :width 300px
18
+ :padding 5px
19
+ &:focus
20
+ :border 1px solid #666
21
+ &.title
22
+ :font-size 1.5em
23
+ input.title
24
+ :margin 0.5em 0
25
+ :border 1px solid #bbb
26
+ :width 300px
27
+ :padding 5px
28
+ &:focus
29
+ :border 1px solid #666
30
+ textarea
31
+ :margin 0.5em 0
32
+ :border 1px solid #bbb
33
+ &:focus
34
+ :border 1px solid #666
35
+ select
36
+ :margin 0.5em 0
37
+ :border 1px solid #bbb
38
+ &:focus
39
+ :border 1px solid #666
40
+ textarea
41
+ :width 390px
42
+ :height 250px
43
+ :padding 5px