chriseppstein-compass 0.1.1 → 0.3.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (43) hide show
  1. data/Manifest +6 -3
  2. data/VERSION +1 -1
  3. data/compass.gemspec +3 -3
  4. data/examples/blueprint_default/stylesheets/ie.sass +1 -2
  5. data/examples/blueprint_default/stylesheets/print.sass +1 -2
  6. data/examples/blueprint_default/stylesheets/screen.sass +4 -5
  7. data/examples/blueprint_plugins/stylesheets/ie.sass +1 -2
  8. data/examples/blueprint_plugins/stylesheets/print.sass +1 -2
  9. data/examples/blueprint_plugins/stylesheets/screen.sass +6 -6
  10. data/examples/blueprint_scoped/stylesheets/ie.sass +1 -2
  11. data/examples/blueprint_scoped/stylesheets/print.sass +1 -2
  12. data/examples/blueprint_scoped/stylesheets/screen.sass +1 -2
  13. data/examples/blueprint_scoped_form/stylesheets/ie.sass +1 -2
  14. data/examples/blueprint_scoped_form/stylesheets/print.sass +1 -2
  15. data/examples/blueprint_scoped_form/stylesheets/screen.sass +7 -6
  16. data/examples/blueprint_semantic/stylesheets/ie.sass +1 -2
  17. data/examples/blueprint_semantic/stylesheets/liquid.sass +3 -3
  18. data/examples/blueprint_semantic/stylesheets/print.sass +1 -2
  19. data/examples/blueprint_semantic/stylesheets/screen.sass +5 -5
  20. data/frameworks/blueprint/stylesheets/blueprint/_ie.sass +36 -6
  21. data/frameworks/blueprint/stylesheets/blueprint/_print.sass +44 -31
  22. data/frameworks/blueprint/stylesheets/blueprint/_screen.sass +2 -2
  23. data/frameworks/blueprint/stylesheets/blueprint/modules/_colors.sass +25 -20
  24. data/frameworks/blueprint/stylesheets/blueprint/modules/_debug.sass +3 -3
  25. data/frameworks/blueprint/stylesheets/blueprint/modules/_fancy_type.sass +20 -24
  26. data/frameworks/blueprint/stylesheets/blueprint/modules/_grid.sass +52 -51
  27. data/frameworks/blueprint/stylesheets/blueprint/modules/_interaction.sass +37 -34
  28. data/frameworks/blueprint/stylesheets/blueprint/modules/_liquid.sass +46 -49
  29. data/frameworks/blueprint/stylesheets/blueprint/modules/_scaffolding.sass +36 -19
  30. data/frameworks/blueprint/stylesheets/blueprint/modules/_typography.sass +24 -2
  31. data/frameworks/blueprint/stylesheets/blueprint/modules/_utilities.sass +0 -2
  32. data/frameworks/blueprint/templates/project/ie.sass +1 -2
  33. data/frameworks/blueprint/templates/project/print.sass +1 -2
  34. data/frameworks/blueprint/templates/project/screen.sass +4 -5
  35. data/frameworks/compass/stylesheets/compass/utilities/_print.sass +24 -0
  36. data/test/compass_test.rb +7 -6
  37. data/test/fixtures/stylesheets/blueprint/css/typography.css +158 -0
  38. data/test/fixtures/stylesheets/{default → blueprint}/sass/ie.sass +1 -2
  39. data/test/fixtures/stylesheets/{default → blueprint}/sass/print.sass +1 -2
  40. data/test/fixtures/stylesheets/blueprint/sass/screen.sass +17 -0
  41. data/test/fixtures/stylesheets/blueprint/sass/typography.sass +3 -0
  42. metadata +8 -5
  43. data/test/fixtures/stylesheets/default/sass/screen.sass +0 -18
@@ -1,9 +1,28 @@
1
1
  @import grid.sass
2
- /*
3
- The styles contained here are meant to provide for an attractive experience out of the box
4
- and are meant to be removed once custom visual design begins.
2
+ // The styles contained here are meant to provide for an attractive experience out of the box
3
+ // and are expected to be removed once custom visual design begins.
5
4
 
6
- =body-margins
5
+ // The +blueprint-scaffolding mixin must be mixed into the top level of your stylesheet.
6
+ // However, you can customize the body selector if you wish to control the scope
7
+ // of this mixin. Examples:
8
+ // Apply to any page including the stylesheet:
9
+ // +blueprint-scaffolding
10
+ // Scoped by a single presentational body class:
11
+ // +blueprint-scaffolding("body.blueprint")
12
+ // Semantically:
13
+ // +blueprint-scaffolding("body#page-1, body#page-2, body.a-special-page-type")
14
+ // Alternatively, you can use the +blueprint-scaffolding-body and +blueprint-scaffolding-defaults
15
+ // mixins to construct your own semantic style rules.
16
+
17
+ =blueprint-scaffolding(!body_selector = "body")
18
+ #{!body_selector}
19
+ +blueprint-scaffolding-body
20
+ @if !body_selector != "body"
21
+ +blueprint-scaffolding-defaults
22
+ @if !body_selector == "body"
23
+ +blueprint-scaffolding-defaults
24
+
25
+ =blueprint-scaffolding-body
7
26
  :margin 1.5em 0
8
27
 
9
28
  // Mixin +box to create a padded box inside a column.
@@ -12,18 +31,16 @@
12
31
  :margin-bottom 1.5em
13
32
  :background #E5ECF9
14
33
 
15
- =blueprint-scaffolding
16
- html &
17
- +body-margins
18
- .box
19
- +box
20
- // Border on right hand side of a column. You can comment this out if you don't plan to use it.
21
- div.border
22
- +border
23
- // Border with more whitespace, spans one column.
24
- div.colborder
25
- +colborder
26
- hr
27
- +colruler
28
- hr.space
29
- +colspacer
34
+ =blueprint-scaffolding-defaults
35
+ .box
36
+ +box
37
+ // Border on right hand side of a column. You can comment this out if you don't plan to use it.
38
+ div.border
39
+ +border
40
+ // Border with more whitespace, spans one column.
41
+ div.colborder
42
+ +colborder
43
+ hr
44
+ +colruler
45
+ hr.space
46
+ +colspacer
@@ -1,9 +1,29 @@
1
1
  @import colors.sass
2
2
  @import compass/utilities/links/link_colors.sass
3
3
 
4
- !blueprint_font_family ||= "Helvetica Neue", Helvetica, Arial, sans-serif
4
+ !blueprint_font_family ||= "Helvetica Neue", Helvetica, Arial, sans-serif
5
5
  !blueprint_fixed_font_family ||= 'andale mono', 'lucida console', monospace
6
6
 
7
+ // The +blueprint-typography mixin must be mixed into the top level of your stylesheet.
8
+ // However, you can customize the body selector if you wish to control the scope
9
+ // of this mixin. Examples:
10
+ // Apply to any page including the stylesheet:
11
+ // +blueprint-typography
12
+ // Scoped by a single presentational body class:
13
+ // +blueprint-typography("body.blueprint")
14
+ // Semantically:
15
+ // +blueprint-typography("body#page-1, body#page-2, body.a-special-page-type")
16
+ // Alternatively, you can use the +blueprint-typography-body and +blueprint-typography-defaults
17
+ // mixins to construct your own semantic style rules.
18
+
19
+ =blueprint-typography(!body_selector = "body")
20
+ #{!body_selector}
21
+ +blueprint-typography-body
22
+ @if !body_selector != "body"
23
+ +blueprint-typography-defaults
24
+ @if !body_selector == "body"
25
+ +blueprint-typography-defaults
26
+
7
27
  =normal-text
8
28
  :font-family= !blueprint_font_family
9
29
  :color= !font_color
@@ -22,9 +42,11 @@
22
42
  =loud
23
43
  :color= !loud_color
24
44
 
25
- =blueprint-typography
45
+ =blueprint-typography-body
26
46
  +normal-text
27
47
  :font-size 75%
48
+
49
+ =blueprint-typography-defaults
28
50
  h1
29
51
  +header-text
30
52
  :font-size 3em
@@ -35,5 +35,3 @@
35
35
  .bottom
36
36
  :margin-bottom 0
37
37
  :padding-bottom 0
38
- .print-only
39
- :display none
@@ -1,4 +1,3 @@
1
1
  @import blueprint/ie.sass
2
2
 
3
- body
4
- +blueprint-ie
3
+ +blueprint-ie
@@ -1,4 +1,3 @@
1
1
  @import blueprint/print.sass
2
2
 
3
- body
4
- +blueprint-print
3
+ +blueprint-print
@@ -2,8 +2,7 @@
2
2
  @import blueprint/modules/scaffolding.sass
3
3
  @import compass/reset.sass
4
4
 
5
- body
6
- +blueprint
7
- // Remove the scaffolding when you're ready to start doing visual design.
8
- // Or leave it in if you're happy with how blueprint looks out-of-the-box
9
- +blueprint-scaffolding
5
+ +blueprint
6
+ // Remove the scaffolding when you're ready to start doing visual design.
7
+ // Or leave it in if you're happy with how blueprint looks out-of-the-box
8
+ +blueprint-scaffolding
@@ -0,0 +1,24 @@
1
+ /* Classes that are useful for controlling what gets printed.
2
+ You must mix +print-utilities into your print stylesheet
3
+ and +print-utilities("screen") into your screen stylesheet.
4
+ Note: these aren't semantic.
5
+ =print-utilities(!media = "print")
6
+ @if !media == "print"
7
+ .noprint,
8
+ .no-print
9
+ :display none
10
+ address, blockquote, center, dir, div, dd, dl, dt,
11
+ fieldset, form, frameset, h1, h2, h3, h4, h5, h6, hr,
12
+ isindex, li, menu, noframes, noscript, ol, p, pre,
13
+ table, tbody, td, tfoot, th, thead, tr, ul
14
+ &.print-only
15
+ :display block
16
+ a, abbr, acronym, b, basefont, bdo, big, br, cite,
17
+ code, dfn, em, font, i, img, input, kbd, label, q, s,
18
+ samp, select, small, span, strike, strong, sub, sup,
19
+ textarea, tt, u, var
20
+ &.print-only
21
+ :display inline
22
+ @else
23
+ .print-only
24
+ :display none
data/test/compass_test.rb CHANGED
@@ -4,7 +4,7 @@ require 'compass'
4
4
 
5
5
  class CompassTest < Test::Unit::TestCase
6
6
  def setup
7
- setup_fixtures :default, :yui, :empty
7
+ setup_fixtures :blueprint, :yui, :empty
8
8
  @original_options = Sass::Plugin.options
9
9
  end
10
10
 
@@ -16,7 +16,7 @@ class CompassTest < Test::Unit::TestCase
16
16
  end
17
17
 
18
18
  def teardown
19
- teardown_fixtures :default, :yui, :empty
19
+ teardown_fixtures :blueprint, :yui, :empty
20
20
  Sass::Plugin.options = @original_options
21
21
  end
22
22
 
@@ -34,11 +34,12 @@ class CompassTest < Test::Unit::TestCase
34
34
  end
35
35
  end
36
36
 
37
- def test_default
38
- with_templates(:default) do
39
- each_css_file(tempfile_loc(:default)) do |css_file|
40
- assert_no_errors css_file, :default
37
+ def test_blueprint
38
+ with_templates(:blueprint) do
39
+ each_css_file(tempfile_loc(:blueprint)) do |css_file|
40
+ assert_no_errors css_file, :blueprint
41
41
  end
42
+ assert_renders_correctly :typography
42
43
  end
43
44
  end
44
45
  def test_yui
@@ -0,0 +1,158 @@
1
+
2
+
3
+ body {
4
+ font-family: Helvetica Neue, Helvetica, Arial, sans-serif;
5
+ color: #333333;
6
+ font-size: 75%; }
7
+
8
+ h1 {
9
+ font-weight: normal;
10
+ color: #222222;
11
+ font-size: 3em;
12
+ line-height: 1;
13
+ margin-bottom: 0.5em; }
14
+ h1 img {
15
+ margin: 0; }
16
+
17
+ h2 {
18
+ font-weight: normal;
19
+ color: #222222;
20
+ font-size: 2em;
21
+ margin-bottom: 0.75em; }
22
+
23
+ h3 {
24
+ font-weight: normal;
25
+ color: #222222;
26
+ font-size: 1.5em;
27
+ line-height: 1;
28
+ margin-bottom: 1em; }
29
+
30
+ h4 {
31
+ font-weight: normal;
32
+ color: #222222;
33
+ font-size: 1.2em;
34
+ line-height: 1.25;
35
+ margin-bottom: 1.25em;
36
+ height: 1.25em; }
37
+
38
+ h5 {
39
+ font-weight: normal;
40
+ color: #222222;
41
+ font-size: 1em;
42
+ font-weight: bold;
43
+ margin-bottom: 1.5em; }
44
+
45
+ h6 {
46
+ font-weight: normal;
47
+ color: #222222;
48
+ font-size: 1em;
49
+ font-weight: bold; }
50
+
51
+ h2 img, h3 img, h4 img, h5 img, h6 img {
52
+ margin: 0; }
53
+
54
+ p {
55
+ margin: 0 0 1.5em; }
56
+ p img {
57
+ float: left;
58
+ margin: 1.5em 1.5em 1.5em 0;
59
+ padding: 0; }
60
+ p img.right {
61
+ float: right;
62
+ margin: 1.5em 0 1.5em 1.5em; }
63
+
64
+ a {
65
+ text-decoration: underline;
66
+ color: #000099; }
67
+ a:visited {
68
+ color: #000066; }
69
+ a:focus {
70
+ color: black; }
71
+ a:hover {
72
+ color: black; }
73
+ a:active {
74
+ color: #cc0099; }
75
+
76
+ blockquote {
77
+ margin: 1.5em;
78
+ color: #666;
79
+ font-style: italic; }
80
+
81
+ strong {
82
+ font-weight: bold; }
83
+
84
+ em {
85
+ font-style: italic; }
86
+
87
+ dfn {
88
+ font-style: italic;
89
+ font-weight: bold; }
90
+
91
+ sup, sub {
92
+ line-height: 0; }
93
+
94
+ abbr, acronym {
95
+ border-bottom: 1px dotted #666; }
96
+
97
+ address {
98
+ margin: 0 0 1.5em;
99
+ font-style: italic; }
100
+
101
+ del {
102
+ color: #666; }
103
+
104
+ pre, code {
105
+ margin: 1.5em 0;
106
+ white-space: pre;
107
+ font: 1em 'andale mono', 'lucida console', monospace;
108
+ line-height: 1.5; }
109
+
110
+ tt {
111
+ font: 1em 'andale mono', 'lucida console', monospace;
112
+ line-height: 1.5; }
113
+
114
+ li ul, li ol {
115
+ margin: 0 1.5em; }
116
+
117
+ ul {
118
+ margin: 0 1.5em 1.5em 1.5em;
119
+ list-style-type: disc; }
120
+
121
+ ol {
122
+ margin: 0 1.5em 1.5em 1.5em;
123
+ list-style-type: decimal; }
124
+
125
+ dl {
126
+ margin: 0 0 1.5em 0; }
127
+ dl dt {
128
+ font-weight: bold; }
129
+
130
+ dd {
131
+ margin-left: 1.5em; }
132
+
133
+ table {
134
+ margin-bottom: 1.4em;
135
+ width: 100%; }
136
+
137
+ th {
138
+ font-weight: bold;
139
+ background: #C3D9FF;
140
+ padding: 4px 10px 4px 5px; }
141
+
142
+ td {
143
+ padding: 4px 10px 4px 5px; }
144
+
145
+ tr.even td {
146
+ background: #E5ECF9; }
147
+
148
+ tfoot {
149
+ font-style: italic; }
150
+
151
+ caption {
152
+ background: #eee; }
153
+
154
+ .quiet {
155
+ color: #666666; }
156
+
157
+ .loud {
158
+ color: #111111; }
@@ -1,4 +1,3 @@
1
1
  @import blueprint/ie
2
2
 
3
- body
4
- +blueprint-ie
3
+ +blueprint-ie
@@ -1,4 +1,3 @@
1
1
  @import blueprint/print
2
2
 
3
- body
4
- +blueprint-print
3
+ +blueprint-print
@@ -0,0 +1,17 @@
1
+ @import blueprint/screen
2
+ @import compass/reset
3
+
4
+ +blueprint
5
+ #main.container
6
+ #top
7
+ +column(24, last)
8
+ #middle
9
+ +column(24, last)
10
+ #left
11
+ +column(6)
12
+ #content
13
+ +column(12)
14
+ #right
15
+ +column(6, last)
16
+ #bottom
17
+ +column(24, last)
@@ -0,0 +1,3 @@
1
+ @import blueprint/modules/typography.sass
2
+
3
+ +blueprint-typography
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: chriseppstein-compass
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Chris Eppstein
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2008-12-05 00:00:00 -08:00
12
+ date: 2008-12-06 00:00:00 -08:00
13
13
  default_executable: compass
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
@@ -142,6 +142,7 @@ files:
142
142
  - frameworks/compass/stylesheets/compass/utilities/_general.sass
143
143
  - frameworks/compass/stylesheets/compass/utilities/_links.sass
144
144
  - frameworks/compass/stylesheets/compass/utilities/_lists.sass
145
+ - frameworks/compass/stylesheets/compass/utilities/_print.sass
145
146
  - frameworks/compass/stylesheets/compass/utilities/_tables.sass
146
147
  - frameworks/compass/stylesheets/compass/utilities/_text.sass
147
148
  - frameworks/compass/stylesheets/compass/utilities/general/_clearfix.sass
@@ -199,9 +200,11 @@ files:
199
200
  - Rakefile
200
201
  - README.markdown
201
202
  - test/compass_test.rb
202
- - test/fixtures/stylesheets/default/sass/ie.sass
203
- - test/fixtures/stylesheets/default/sass/print.sass
204
- - test/fixtures/stylesheets/default/sass/screen.sass
203
+ - test/fixtures/stylesheets/blueprint/css/typography.css
204
+ - test/fixtures/stylesheets/blueprint/sass/ie.sass
205
+ - test/fixtures/stylesheets/blueprint/sass/print.sass
206
+ - test/fixtures/stylesheets/blueprint/sass/screen.sass
207
+ - test/fixtures/stylesheets/blueprint/sass/typography.sass
205
208
  - test/fixtures/stylesheets/yui/css/mixins.css
206
209
  - test/fixtures/stylesheets/yui/sass/base.sass
207
210
  - test/fixtures/stylesheets/yui/sass/fonts.sass
@@ -1,18 +0,0 @@
1
- @import blueprint/screen
2
- @import compass/reset
3
-
4
- body
5
- +blueprint
6
- #main.container
7
- #top
8
- +column(24, last)
9
- #middle
10
- +column(24, last)
11
- #left
12
- +column(6)
13
- #content
14
- +column(12)
15
- #right
16
- +column(6, last)
17
- #bottom
18
- +column(24, last)