compass-wordpress 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (30) hide show
  1. data/LICENSE +1 -1
  2. data/README.markdown +41 -0
  3. data/Rakefile +3 -3
  4. data/VERSION +1 -1
  5. data/sass/wordpress/thematic/_extensions.sass +1 -0
  6. data/sass/wordpress/thematic/_styles.sass +5 -0
  7. data/sass/wordpress/{library → thematic/extensions}/_typography.sass +0 -0
  8. data/sass/wordpress/thematic/{_2c_r_fixed.sass → styles/_2c_r_fixed.sass} +0 -0
  9. data/sass/wordpress/thematic/{_default.sass → styles/_default.sass} +0 -2
  10. data/sass/wordpress/thematic/{_images.sass → styles/_images.sass} +0 -3
  11. data/sass/wordpress/thematic/styles/_plugins.sass +9 -0
  12. data/sass/wordpress/thematic/{_typography.sass → styles/_typography.sass} +0 -0
  13. data/templates/thematic/screen.sass +4 -8
  14. metadata +15 -27
  15. data/README.rdoc +0 -18
  16. data/sass/wordpress/_library.sass +0 -13
  17. data/sass/wordpress/library/_border_radius.sass +0 -47
  18. data/sass/wordpress/library/_button_style.sass +0 -45
  19. data/sass/wordpress/library/_clearfix.sass +0 -24
  20. data/sass/wordpress/library/_easy_box_shadow.sass +0 -8
  21. data/sass/wordpress/library/_float.sass +0 -16
  22. data/sass/wordpress/library/_gradient.sass +0 -15
  23. data/sass/wordpress/library/_hacks.sass +0 -8
  24. data/sass/wordpress/library/_link_colors.sass +0 -24
  25. data/sass/wordpress/library/_list_borders.sass +0 -7
  26. data/sass/wordpress/library/_opacity.sass +0 -18
  27. data/sass/wordpress/library/_reset.sass +0 -13
  28. data/sass/wordpress/library/_sprite_hover.sass +0 -4
  29. data/sass/wordpress/library/_sprite_img.sass +0 -52
  30. data/sass/wordpress/thematic/_plugins.sass +0 -13
data/LICENSE CHANGED
@@ -1,4 +1,4 @@
1
- Copyright (c) 2009 Wynn Netherland
1
+ Copyright (c) 2009 Wynn Netherland / Adam Stacoviak
2
2
 
3
3
  Permission is hereby granted, free of charge, to any person obtaining
4
4
  a copy of this software and associated documentation files (the
data/README.markdown ADDED
@@ -0,0 +1,41 @@
1
+ Compass WordPress
2
+ ==================
3
+
4
+ This Compass extension provides support for creating WordPress Themes and working with WordPress Theme Frameworks using Sass.
5
+
6
+ Installing
7
+ ==========
8
+
9
+ sudo gem install compass-wordpress
10
+
11
+ To install a theme into your existing compass project, add the following to your compass configuration file:
12
+
13
+ require 'compass-wordpress'
14
+
15
+ OR, just run this command:
16
+
17
+ compass -r compass-wordpress -f wordpress --sass-dir=sass --css-dir=css -s compressed -p <Theme Name> /path/to/installation
18
+
19
+ What this does is call `compass`, requires the compass-wordpress extension, uses the framework wordpress, sets the sass and css directories, sets the Sass output to be compressed and finally ends with you setting the theme name.
20
+
21
+ ** As of this version, we only have support for Thematic developed. Suggest one to use, or fork the project and take a stab at it yourself. Either way, get in touch we want to hear from you.
22
+
23
+ Supported Theme Options
24
+ ========================
25
+
26
+ * project (default)
27
+ * thematic
28
+
29
+ Note on Patches/Pull Requests
30
+ ==============================
31
+
32
+ * Fork the project!
33
+ * Develop your feature or bug fix.
34
+ * Add tests for it. This is IMPORTANT so your work doesn't get broken in a future version unintentionally.
35
+ * Commit, do not mess with rakefile, version, or history. (if you want to have your own version that's fine, but bump version in a commit by itself so it can be ignored when pulled)
36
+ * Send your pull request. Bonus points for usage of topic branches.
37
+
38
+ Copyright
39
+ ===========
40
+
41
+ Copyright (c) 2009 Wynn Netherland / Adam Stacoviak. See LICENSE for details.
data/Rakefile CHANGED
@@ -5,13 +5,13 @@ begin
5
5
  require 'jeweler'
6
6
  Jeweler::Tasks.new do |gem|
7
7
  gem.name = "compass-wordpress"
8
- gem.summary = %Q{Compass plugin for creating WordPress themes using Sass}
9
- gem.description = %Q{Helps you create generic themes or Thematic child themes}
8
+ gem.summary = %Q{Compass extenstion for creating WordPress themes using Sass}
9
+ gem.description = %Q{Helps you create generic WordPress themes and Thematic child themes}
10
10
  gem.email = "wynn.netherland@gmail.com"
11
11
  gem.homepage = "http://github.com/pengwynn/compass-wordpress"
12
12
  gem.authors = ["Wynn Netherland", "Adam Stacoviak"]
13
13
  gem.add_development_dependency "compass", "~> 0.8.17"
14
- gem.files = FileList["[A-Z]*", "{examples,lib,sass,templates}/**/*"]
14
+ gem.files = FileList["[A-Z]*", "{lib,sass,templates}/**/*"]
15
15
 
16
16
  # gem is a Gem::Specification... see http://www.rubygems.org/read/chapter/20 for additional settings
17
17
  end
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.0.1
1
+ 0.0.2
@@ -0,0 +1 @@
1
+ @import extensions/typography
@@ -0,0 +1,5 @@
1
+ @import styles/_2c_r_fixed
2
+ @import styles/_default
3
+ @import styles/_images
4
+ @import styles/_plugins
5
+ @import styles/_typography
@@ -1,5 +1,3 @@
1
-
2
-
3
1
  // Global Elements
4
2
  body, input, textarea
5
3
  font: 15px Georgia, serif
@@ -1,7 +1,4 @@
1
- @import compass/utilities.sass
2
-
3
1
  // Base styles for images
4
-
5
2
  .entry-content img
6
3
  margin: 0 0 18px 0
7
4
 
@@ -0,0 +1,9 @@
1
+ // Ajax edit comments
2
+ .edit-comment
3
+ margin-bottom: 18px
4
+
5
+ // Hide WordPress stats smiley
6
+ img#wpstats
7
+ height: 0
8
+ width: 0
9
+ overflow: hidden
@@ -1,8 +1,4 @@
1
- // Add/remove as necessary
2
- @import wordpress/library.sass
3
- @import wordpress/thematic/2c_r_fixed.sass
4
- @import wordpress/thematic/images.sass
5
- @import wordpress/thematic/plugins.sass
6
- @import wordpress/thematic/typography.sass
7
-
8
- @import wordpress/thematic/default.sass
1
+ // Remove these references to Thematic to customize
2
+ @import compass/utilities
3
+ @import wordpress/thematic/extensions
4
+ @import wordpress/thematic/styles
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: compass-wordpress
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Wynn Netherland
@@ -10,7 +10,7 @@ autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
12
 
13
- date: 2009-11-05 00:00:00 -06:00
13
+ date: 2009-11-06 00:00:00 -06:00
14
14
  default_executable:
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
@@ -23,7 +23,7 @@ dependencies:
23
23
  - !ruby/object:Gem::Version
24
24
  version: 0.8.17
25
25
  version:
26
- description: Helps you create generic themes or Thematic child themes
26
+ description: Helps you create generic WordPress themes and Thematic child themes
27
27
  email: wynn.netherland@gmail.com
28
28
  executables: []
29
29
 
@@ -31,34 +31,22 @@ extensions: []
31
31
 
32
32
  extra_rdoc_files:
33
33
  - LICENSE
34
- - README.rdoc
34
+ - README.markdown
35
35
  files:
36
36
  - LICENSE
37
- - README.rdoc
37
+ - README.markdown
38
38
  - Rakefile
39
39
  - VERSION
40
40
  - lib/compass-wordpress.rb
41
41
  - lib/wordpress/compass_extension.rb
42
- - sass/wordpress/_library.sass
43
- - sass/wordpress/library/_border_radius.sass
44
- - sass/wordpress/library/_button_style.sass
45
- - sass/wordpress/library/_clearfix.sass
46
- - sass/wordpress/library/_easy_box_shadow.sass
47
- - sass/wordpress/library/_float.sass
48
- - sass/wordpress/library/_gradient.sass
49
- - sass/wordpress/library/_hacks.sass
50
- - sass/wordpress/library/_link_colors.sass
51
- - sass/wordpress/library/_list_borders.sass
52
- - sass/wordpress/library/_opacity.sass
53
- - sass/wordpress/library/_reset.sass
54
- - sass/wordpress/library/_sprite_hover.sass
55
- - sass/wordpress/library/_sprite_img.sass
56
- - sass/wordpress/library/_typography.sass
57
- - sass/wordpress/thematic/_2c_r_fixed.sass
58
- - sass/wordpress/thematic/_default.sass
59
- - sass/wordpress/thematic/_images.sass
60
- - sass/wordpress/thematic/_plugins.sass
61
- - sass/wordpress/thematic/_typography.sass
42
+ - sass/wordpress/thematic/_extensions.sass
43
+ - sass/wordpress/thematic/_styles.sass
44
+ - sass/wordpress/thematic/extensions/_typography.sass
45
+ - sass/wordpress/thematic/styles/_2c_r_fixed.sass
46
+ - sass/wordpress/thematic/styles/_default.sass
47
+ - sass/wordpress/thematic/styles/_images.sass
48
+ - sass/wordpress/thematic/styles/_plugins.sass
49
+ - sass/wordpress/thematic/styles/_typography.sass
62
50
  - templates/project/manifest.rb
63
51
  - templates/project/print.sass
64
52
  - templates/project/readme.txt
@@ -94,9 +82,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
94
82
  requirements: []
95
83
 
96
84
  rubyforge_project:
97
- rubygems_version: 1.3.5
85
+ rubygems_version: 1.3.4
98
86
  signing_key:
99
87
  specification_version: 3
100
- summary: Compass plugin for creating WordPress themes using Sass
88
+ summary: Compass extenstion for creating WordPress themes using Sass
101
89
  test_files: []
102
90
 
data/README.rdoc DELETED
@@ -1,18 +0,0 @@
1
- = compass-wordpress
2
-
3
- Description goes here.
4
-
5
- == Note on Patches/Pull Requests
6
-
7
- * Fork the project.
8
- * Make your feature addition or bug fix.
9
- * Add tests for it. This is important so I don't break it in a
10
- future version unintentionally.
11
- * Commit, do not mess with rakefile, version, or history.
12
- (if you want to have your own version, that is fine but
13
- bump version in a commit by itself I can ignore when I pull)
14
- * Send me a pull request. Bonus points for topic branches.
15
-
16
- == Copyright
17
-
18
- Copyright (c) 2009 Wynn Netherland. See LICENSE for details.
@@ -1,13 +0,0 @@
1
- @import library/border_radius.sass
2
- @import library/link_colors.sass
3
- @import library/sprite_hover.sass
4
- @import library/button_style.sass
5
- @import library/gradient.sass
6
- @import library/list_borders.sass
7
- @import library/sprite_img.sass
8
- @import library/clearfix.sass
9
- @import library/hacks.sass
10
- @import library/opacity.sass
11
- @import library/typography.sass
12
- @import library/easy_box_shadow.sass
13
- @import library/reset.sass
@@ -1,47 +0,0 @@
1
- !default_border_radius ||= 5px
2
-
3
- // Round all borders by amount
4
- =border-radius(!radius = !default_border_radius)
5
- border-radius= !radius
6
- -moz-border-radius= !radius
7
- -webkit-border-radius= !radius
8
-
9
- // Round radius at position by amount.
10
- // values for !vert: "top", "bottom"
11
- // values for !horz: "left", "right
12
- =border-corner-radius(!vert, !horz, !radius = !default_border_radius)
13
- border-#{!vert}-#{!horz}-radius= !radius
14
- -moz-border-radius-#{!vert}#{!horz}= !radius
15
- -webkit-border-#{!vert}-#{!horz}-radius= !radius
16
-
17
- =border-top-left-radius(!radius = !default_border_radius)
18
- +border-corner-radius("top", "left", !radius)
19
-
20
- =border-top-right-radius(!radius = !default_border_radius)
21
- +border-corner-radius("top", "right", !radius)
22
-
23
- =border-bottom-left-radius(!radius = !default_border_radius)
24
- +border-corner-radius("bottom", "left", !radius)
25
-
26
- =border-bottom-right-radius(!radius = !default_border_radius)
27
- +border-corner-radius("bottom", "right", !radius)
28
-
29
- // Round top corners by amount
30
- =border-top-radius(!radius = !default_border_radius)
31
- +border-top-left-radius(!radius)
32
- +border-top-right-radius(!radius)
33
-
34
- // Round right corners by amount
35
- =border-right-radius(!radius = !default_border_radius)
36
- +border-top-right-radius(!radius)
37
- +border-bottom-right-radius(!radius)
38
-
39
- // Round bottom corners by amount
40
- =border-bottom-radius(!radius = !default_border_radius)
41
- +border-bottom-left-radius(!radius)
42
- +border-bottom-right-radius(!radius)
43
-
44
- // Round left corners by amount
45
- =border-left-radius(!radius = !default_border_radius)
46
- +border-top-left-radius(!radius)
47
- +border-bottom-left-radius(!radius)
@@ -1,45 +0,0 @@
1
- =btn-border-color(!color)
2
- border-color= darken(!color, 25)
3
-
4
- =btn-text-shadow(!color)
5
- !text_shadow = darken(!color, 25)
6
- text-shadow= !text_shadow "1px 1px 1px"
7
-
8
- =btn-style(!color)
9
- !color1 = lighten(!color, 30)
10
- !color2 = darken(!color, 20)
11
- +h-linear-gradient(!color1, !color2)
12
- background-color= !color
13
- +btn-border-color(!color)
14
- +btn-text-shadow(!color)
15
-
16
- =btn-style-hover(!color)
17
- !color = lighten(!color, 8)
18
- !color1 = lighten(!color, 22)
19
- !color2 = darken(!color, 38)
20
- +h-linear-gradient(!color1, !color2)
21
- background-color= !color
22
- +btn-border-color(!color)
23
- +btn-text-shadow(!color)
24
-
25
- =btn-style-active(!color)
26
- !color = darken(!color, 5)
27
- !color1 = lighten(!color, 25)
28
- !color2 = darken(!color, 35)
29
- +h-linear-gradient(!color1, !color2)
30
- background-color= !color
31
- +btn-border-color(!color)
32
- +btn-text-shadow(!color)
33
-
34
- =btn-structure(!font_size, !border_width, !line_height = !font_size *1.2)
35
- !v_padding = floor(!font_size/2.5)
36
- !h_padding = floor(!font_size)
37
- !v_padding_active = !v_padding - 1px
38
- !h_padding_active = !h_padding - 1px
39
- border-width= !border_width
40
- font-size= !font_size
41
- padding= !v_padding !h_padding
42
- line-height= !line_height
43
- &:active
44
- border-width= !border_width + 1px
45
- padding= !v_padding_active !h_padding_active
@@ -1,24 +0,0 @@
1
- // based on compass clearfix
2
-
3
- @import _hacks.sass
4
-
5
- // Extends the element to enclose any floats it contains.
6
- // This basic method is preferred for the usual case, when positioned content will not show outside the bounds of the container.
7
- // Recommendations include using this in conjunction with a width:
8
- // http://www.quirksmode.org/blog/archives/2005/03/clearing_floats.html
9
- =clearfix
10
- :overflow hidden
11
- +has-layout
12
-
13
- // Extends the element to enclose any floats it contains.
14
- // This older "Easy Clearing" method has the advantage of allowing positioned elements to hang outside the bounds of the container, at the expense of more tricky CSS.
15
- // http://www.positioniseverything.net/easyclearing.html
16
- =pie-clearfix
17
- &:after
18
- :content " "
19
- :display block
20
- :height 0
21
- :clear both
22
- :overflow hidden
23
- :visibility hidden
24
- +has-layout
@@ -1,8 +0,0 @@
1
- !default_box_shadow_color = #333
2
- !default_box_shadow_x_offset = 1px
3
- !default_box_shadow_y_offset = 1px
4
- !default_box_shadow_blur_radius = 8px
5
-
6
- =easy-box-shadow(!color = !default_box_shadow_color, !x_offset = !default_box_shadow_x_offset, !y_offset = !default_box_shadow_y_offset, !blur_radius = !default_box_shadow_blur_radius)
7
- +box-shadow(!x_offset, !y_offset, !blur_radius, !color)
8
-
@@ -1,16 +0,0 @@
1
- // based on compass float
2
-
3
- @import modules/_clearfix.sass
4
-
5
- // Available as alternate syntax with just +float
6
- =float(!side = "left")
7
- :display inline
8
- :float= !side
9
-
10
- // Implementation of float:left with fix for double-margin bug
11
- =float-left
12
- +float("left")
13
-
14
- // Implementation of float:right with fix for double-margin bug
15
- =float-right
16
- +float("right")
@@ -1,15 +0,0 @@
1
- =linear-gradient(!from_coord, !to_coord, !color_start, !color_end, !color_stop1 = 0, !color_stop1_pos = .3, !color_stop_2 = 0, !color_stop2_pos = .9)
2
- !gradient = "#{!from_coord}, #{!to_coord}, from(#{!color_start}), to(#{!color_end})"
3
- //@if !color_stop1 != 0
4
- // !gradient += "color-stop(#{!color_stop1_pos}, #{!color_stop1})"
5
- background= "-webkit-gradient(linear, #{!gradient})"
6
- background= "-moz-linear-gradient(#{!gradient})"
7
-
8
- =h-linear-gradient(!color1, !color2)
9
- +linear-gradient("left top", "left bottom", !color1, !color2)
10
-
11
- =v-linear-gradient(!color1, !color2)
12
- +linear-gradient("left top", "right top", !color1, !color2)
13
-
14
- //=h-three-color-gradient(!color1, !color2, !color3, !color3_pos = .5)
15
- // +linear-gradient("left top", "left bottom", !color1, !color2, !color3, !color3_pos)
@@ -1,8 +0,0 @@
1
- // based on compass hacks
2
-
3
- =has-layout
4
- // This makes ie6 get layout
5
- :display inline-block
6
- // and this puts it back to block
7
- &
8
- :display block
@@ -1,24 +0,0 @@
1
- !default_link_color ||= #165B94
2
- !default_link_color_hover ||= #fff
3
- !default_link_color_alt ||= #91D5F1
4
- !default_link_color_hover_alt ||= #000
5
-
6
- =link-color(!hover = true)
7
- +link-color-style(!default_link_color, !default_link_color_hover, !default_link_color, !hover)
8
-
9
- =link-color-alt(!hover = true)
10
- +link-color-style(!default_link_color_alt, !default_link_color_hover_alt, !default_link_color_alt, !hover)
11
-
12
- =link-color-heading(!link_color = "inherit", !hover_bg_color = #ccc)
13
- +link-color-style(!link_color,)
14
-
15
- =link-color-style(!color = !default_link_color, !color_hover = !default_link_color_hover, !link_hover_bg = !color, !hover = true)
16
- color= !color
17
- padding: 2px
18
- margin: 0 -2px
19
- +border-radius(3px)
20
- @if !hover
21
- &:hover
22
- background-color= !link_hover_bg
23
- color= !color_hover
24
- text-decoration: none
@@ -1,7 +0,0 @@
1
- =list-borders(!color1,!color2)
2
- border-left= "1px solid" !color1
3
- border-right= "1px solid" !color2
4
- &.alpha
5
- border-left: none
6
- &.omega
7
- border-right: 0
@@ -1,18 +0,0 @@
1
- //**
2
- Provides cross-browser css opacity.
3
- @param !opacity
4
- A number between 0 and 1, where 0 is transparent and 1 is opaque.
5
- =opacity(!opacity)
6
- :opacity= !opacity
7
- :-moz-opacity= !opacity
8
- :-khtml-opacity= !opacity
9
- :-ms-filter= "progid:DXImageTransform.Microsoft.Alpha(Opacity=" + round(!opacity*100) + ")"
10
- :filter= "alpha(opacity=" + round(!opacity*100) + ")"
11
-
12
- // Make an element completely transparent.
13
- =transparent
14
- +opacity(0)
15
-
16
- // Make an element completely opaque.
17
- =opaque
18
- +opacity(1)
@@ -1,13 +0,0 @@
1
- @import blueprint/reset.sass
2
-
3
- // Additional reset
4
- button
5
- background: none
6
- border: none
7
- cursor: pointer
8
- margin: 0
9
- padding: 0
10
-
11
- button::-moz-focus-inner
12
- border: none
13
- padding: 0
@@ -1,4 +0,0 @@
1
- =sprite-column-hover-row(!col, !row_hover=2, !width=!sprite_default_size, !height=!sprite_default_size, !margin=!sprite_default_margin)
2
- +sprite-position(!col, 1, !width, !height, !margin)
3
- &:hover
4
- +sprite-position(!col, !row_hover, !width, !height, !margin)
@@ -1,52 +0,0 @@
1
- //**
2
- Example 1:
3
- a.twitter
4
- +sprite-img("icons-32.png", 1)
5
- a.facebook
6
- +sprite-img("icons-32png", 2)
7
- ...
8
- Example 2:
9
- a
10
- +sprite-background("icons-32.png")
11
- a.twitter
12
- +sprite-column(1)
13
- a.facebook
14
- +sprite-row(2)
15
- ...
16
-
17
- !sprite_default_size ||= 32px
18
- !sprite_default_margin ||= 0px
19
- !sprite_image_default_width ||= !sprite_default_size
20
- !sprite_image_default_height ||= !sprite_default_size
21
-
22
-
23
- // Sets all the rules for a sprite from a given sprite image to show just one of the sprites.
24
- // To reduce duplication use a sprite-bg mixin for common properties and a sprite-select mixin for positioning.
25
- =sprite-img(!img, !col, !row = 1, !width = !sprite_image_default_width, !height = !sprite_image_default_height, !margin = !sprite_default_margin)
26
- +sprite-background(!img, !width, !height)
27
- +sprite-position(!col, !row, !width, !height, !margin)
28
-
29
- // Sets rules common for all sprites, assumes you want a square, but allows a rectangular region.
30
- =sprite-background(!img, !width = !sprite_default_size, !height = !width)
31
- +sprite-background-rectangle(!img, !width, !height)
32
-
33
- // Sets rules common for all sprites, assumes a rectangular region.
34
- =sprite-background-rectangle(!img, !width = !sprite_image_default_width, !height = !sprite_image_default_height)
35
- :background= image_url(!img) "no-repeat"
36
- :width= !width
37
- :height= !height
38
- :overflow hidden
39
-
40
- // Allows horizontal sprite positioning optimized for a single row of sprites.
41
- =sprite-column(!col, !width = !sprite_image_default_width, !margin = !sprite_default_margin)
42
- +sprite-position(!col, 1, !width, 0px, !margin)
43
-
44
- // Allows vertical sprite positioning optimized for a single column of sprites.
45
- =sprite-row(!row, !height = !sprite_image_default_height, !margin = !sprite_default_margin)
46
- +sprite-position(1, !row, 0px, !height, !margin)
47
-
48
- // Allows vertical and horizontal sprite positioning from a grid of equal dimensioned sprites.
49
- =sprite-position(!col, !row = 1, !width = !sprite_image_default_width, !height = !sprite_image_default_height, !margin = !sprite_default_margin)
50
- !x = ((!col - 1) * -!width) - ((!col - 1) * !margin)
51
- !y = ((!row - 1) * -!height) - ((!row - 1) * !margin)
52
- :background-position= !x !y
@@ -1,13 +0,0 @@
1
- // -------------------------------------------
2
- // Default plugin styles for Thematic
3
- // -------------------------------------------
4
-
5
- // Ajax edit comments
6
- .edit-comment
7
- margin-bottom: 18px
8
-
9
- // Hide WordPress stats smiley
10
- img#wpstats
11
- height: 0
12
- width: 0
13
- overflow: hidden