compass-wordpress 0.0.1
Sign up to get free protection for your applications and to get access to all the features.
- data/LICENSE +20 -0
- data/README.rdoc +18 -0
- data/Rakefile +22 -0
- data/VERSION +1 -0
- data/lib/compass-wordpress.rb +4 -0
- data/lib/wordpress/compass_extension.rb +7 -0
- data/sass/wordpress/_library.sass +13 -0
- data/sass/wordpress/library/_border_radius.sass +47 -0
- data/sass/wordpress/library/_button_style.sass +45 -0
- data/sass/wordpress/library/_clearfix.sass +24 -0
- data/sass/wordpress/library/_easy_box_shadow.sass +8 -0
- data/sass/wordpress/library/_float.sass +16 -0
- data/sass/wordpress/library/_gradient.sass +15 -0
- data/sass/wordpress/library/_hacks.sass +8 -0
- data/sass/wordpress/library/_link_colors.sass +24 -0
- data/sass/wordpress/library/_list_borders.sass +7 -0
- data/sass/wordpress/library/_opacity.sass +18 -0
- data/sass/wordpress/library/_reset.sass +13 -0
- data/sass/wordpress/library/_sprite_hover.sass +4 -0
- data/sass/wordpress/library/_sprite_img.sass +52 -0
- data/sass/wordpress/library/_typography.sass +177 -0
- data/sass/wordpress/thematic/_2c_r_fixed.sass +63 -0
- data/sass/wordpress/thematic/_default.sass +701 -0
- data/sass/wordpress/thematic/_images.sass +41 -0
- data/sass/wordpress/thematic/_plugins.sass +13 -0
- data/sass/wordpress/thematic/_typography.sass +27 -0
- data/templates/project/manifest.rb +4 -0
- data/templates/project/print.sass +0 -0
- data/templates/project/readme.txt +1 -0
- data/templates/project/screen.sass +1 -0
- data/templates/project/style.css +20 -0
- data/templates/thematic/functions.php +25 -0
- data/templates/thematic/manifest.rb +5 -0
- data/templates/thematic/print.sass +0 -0
- data/templates/thematic/readme.txt +11 -0
- data/templates/thematic/screen.sass +8 -0
- data/templates/thematic/style.css +20 -0
- metadata +102 -0
data/LICENSE
ADDED
@@ -0,0 +1,20 @@
|
|
1
|
+
Copyright (c) 2009 Wynn Netherland
|
2
|
+
|
3
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
4
|
+
a copy of this software and associated documentation files (the
|
5
|
+
"Software"), to deal in the Software without restriction, including
|
6
|
+
without limitation the rights to use, copy, modify, merge, publish,
|
7
|
+
distribute, sublicense, and/or sell copies of the Software, and to
|
8
|
+
permit persons to whom the Software is furnished to do so, subject to
|
9
|
+
the following conditions:
|
10
|
+
|
11
|
+
The above copyright notice and this permission notice shall be
|
12
|
+
included in all copies or substantial portions of the Software.
|
13
|
+
|
14
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
15
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
16
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
17
|
+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
18
|
+
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
19
|
+
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
20
|
+
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
data/README.rdoc
ADDED
@@ -0,0 +1,18 @@
|
|
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.
|
data/Rakefile
ADDED
@@ -0,0 +1,22 @@
|
|
1
|
+
require 'rubygems'
|
2
|
+
require 'rake'
|
3
|
+
|
4
|
+
begin
|
5
|
+
require 'jeweler'
|
6
|
+
Jeweler::Tasks.new do |gem|
|
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}
|
10
|
+
gem.email = "wynn.netherland@gmail.com"
|
11
|
+
gem.homepage = "http://github.com/pengwynn/compass-wordpress"
|
12
|
+
gem.authors = ["Wynn Netherland", "Adam Stacoviak"]
|
13
|
+
gem.add_development_dependency "compass", "~> 0.8.17"
|
14
|
+
gem.files = FileList["[A-Z]*", "{examples,lib,sass,templates}/**/*"]
|
15
|
+
|
16
|
+
# gem is a Gem::Specification... see http://www.rubygems.org/read/chapter/20 for additional settings
|
17
|
+
end
|
18
|
+
Jeweler::GemcutterTasks.new
|
19
|
+
rescue LoadError
|
20
|
+
puts "Jeweler (or a dependency) not available. Install it with: sudo gem install jeweler"
|
21
|
+
end
|
22
|
+
|
data/VERSION
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
0.0.1
|
@@ -0,0 +1,7 @@
|
|
1
|
+
if defined?(Compass)
|
2
|
+
options = Hash.new
|
3
|
+
options[:stylesheets_directory] = File.expand_path(File.join(File.dirname(__FILE__), '..', '..', 'sass'))
|
4
|
+
options[:templates_directory] = File.expand_path(File.join(File.dirname(__FILE__), '..', '..', 'templates'))
|
5
|
+
|
6
|
+
Compass::Frameworks.register('wordpress', options)
|
7
|
+
end
|
@@ -0,0 +1,13 @@
|
|
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
|
@@ -0,0 +1,47 @@
|
|
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)
|
@@ -0,0 +1,45 @@
|
|
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
|
@@ -0,0 +1,24 @@
|
|
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
|
@@ -0,0 +1,8 @@
|
|
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
|
+
|
@@ -0,0 +1,16 @@
|
|
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")
|
@@ -0,0 +1,15 @@
|
|
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)
|
@@ -0,0 +1,24 @@
|
|
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
|
@@ -0,0 +1,18 @@
|
|
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)
|
@@ -0,0 +1,52 @@
|
|
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
|
@@ -0,0 +1,177 @@
|
|
1
|
+
!base_font_size ||= 14px
|
2
|
+
!base_font_size_small ||= 12px
|
3
|
+
!base_font_color ||= #333
|
4
|
+
!h6 = ceil(!base_font_size*1.3)
|
5
|
+
!h5 = ceil(!base_font_size*1.4)
|
6
|
+
!h4 = ceil(!base_font_size*1.7)
|
7
|
+
!h3 = ceil(!base_font_size*1.9)
|
8
|
+
!h2 = ceil(!base_font_size*2.2)
|
9
|
+
!h1 = ceil(!base_font_size*2.5)
|
10
|
+
|
11
|
+
=heading-font
|
12
|
+
font-family: "Helvetica Neue", Helvetica, Arial, sans-serif
|
13
|
+
=sans-font
|
14
|
+
font-family: "Lucida Grande", "Lucida Sans Unicode", "Trebuchet MS", Helvetica, Arial, Verdana, sans-serif
|
15
|
+
=serif-font
|
16
|
+
font-family: Times, "Times New Roman" Georgia, serif
|
17
|
+
=fixed-font
|
18
|
+
font-family: "Menlo", "Bitstream Vera Sans", Monaco, "Andale Mono", "Lucida Console", monospace
|
19
|
+
|
20
|
+
=general-typography(!font_size = !base_font_size)
|
21
|
+
+set-heading-sizes(!font_size)
|
22
|
+
+typography-defaults(!font_size)
|
23
|
+
|
24
|
+
=set-heading-sizes(!font_size = !base_font_size)
|
25
|
+
!h6 = ceil(!font_size*1.3)
|
26
|
+
!h5 = ceil(!font_size*1.4)
|
27
|
+
!h4 = ceil(!font_size*1.7)
|
28
|
+
!h3 = ceil(!font_size*1.9)
|
29
|
+
!h2 = ceil(!font_size*2.2)
|
30
|
+
!h1 = ceil(!font_size*2.5)
|
31
|
+
h1, h2, h3, h4
|
32
|
+
&:first-child
|
33
|
+
margin-top: 0
|
34
|
+
h1
|
35
|
+
font-size= !h1
|
36
|
+
margin-bottom= !font_size * .765
|
37
|
+
line-height= !h1 * 1.625
|
38
|
+
h2
|
39
|
+
font-size= !h2
|
40
|
+
margin-bottom= !font_size * .855
|
41
|
+
line-height= !h2 * 1.625
|
42
|
+
h3
|
43
|
+
font-size= !h3
|
44
|
+
margin-bottom= !font_size * .956
|
45
|
+
line-height= !h3 * 1.625
|
46
|
+
h4
|
47
|
+
font-size= !h4
|
48
|
+
margin-bottom= !font_size * 1.161
|
49
|
+
line-height= !h4 * 1.625
|
50
|
+
h5
|
51
|
+
font-size= !h5
|
52
|
+
margin-bottom= !font_size * 1.238
|
53
|
+
line-height= !h5 * 1.625
|
54
|
+
h6
|
55
|
+
font-size= !h6
|
56
|
+
margin-bottom= !font_size * 1.625
|
57
|
+
line-height= !h6 * 1.625
|
58
|
+
|
59
|
+
=typography-defaults(!font_size = !base_font_size)
|
60
|
+
body
|
61
|
+
line-height= ceil(!font_size * 1.625)
|
62
|
+
color= !base_font_color
|
63
|
+
p
|
64
|
+
+p-style(!font_size)
|
65
|
+
table
|
66
|
+
+table-style(!font_size)
|
67
|
+
ol
|
68
|
+
+ol-style(!font_size)
|
69
|
+
ul
|
70
|
+
+ul-style(!font_size)
|
71
|
+
dl
|
72
|
+
+dl-style(!font_size)
|
73
|
+
blockquote
|
74
|
+
+quote-style
|
75
|
+
q
|
76
|
+
font-style: italic
|
77
|
+
&:before
|
78
|
+
content: "\201C"
|
79
|
+
&:after
|
80
|
+
content: "\201D"
|
81
|
+
em, dfn
|
82
|
+
font-style: italic
|
83
|
+
strong, dfn
|
84
|
+
font-weight: bold
|
85
|
+
del
|
86
|
+
text-decoration: line-through
|
87
|
+
span.highlight, em.highlight, strong.highlight
|
88
|
+
background-color: #ff6
|
89
|
+
padding: 2px
|
90
|
+
margin: 0 -2px
|
91
|
+
abbr, acronym
|
92
|
+
border-bottom: 1px dotted
|
93
|
+
cursor: help
|
94
|
+
address
|
95
|
+
margin-top= !font_size * 1.625
|
96
|
+
font-style: italic
|
97
|
+
pre, code
|
98
|
+
margin= !font_size * 1.625 0
|
99
|
+
white-space: pre
|
100
|
+
pre, code, tt
|
101
|
+
+fixed-font
|
102
|
+
line-height= !font_size * 1.5
|
103
|
+
tt
|
104
|
+
display: block
|
105
|
+
margin= !font_size * 1.625 0
|
106
|
+
sub, sup
|
107
|
+
line-height: 0
|
108
|
+
hr
|
109
|
+
margin-bottom= !font_size * 1.625
|
110
|
+
|
111
|
+
small
|
112
|
+
font-size= floor(!font_size * .85)
|
113
|
+
big
|
114
|
+
font-size= floor(!font_size * 1.25)
|
115
|
+
|
116
|
+
=ol-style(!font_size = !base_font_size)
|
117
|
+
list-style: outside
|
118
|
+
margin= 0 0 !font_size * 1.625
|
119
|
+
li
|
120
|
+
list-style: decimal
|
121
|
+
ol
|
122
|
+
margin= 0 0 !font_size * 1.625
|
123
|
+
|
124
|
+
=ul-style(!font_size = !base_font_size)
|
125
|
+
list-style: outside
|
126
|
+
margin= 0 0 !font_size * 1.625
|
127
|
+
li ul
|
128
|
+
margin= 0 0 !font_size * 1.625
|
129
|
+
|
130
|
+
=dl-style(!font_size = !base_font_size)
|
131
|
+
margin= 0 0 !font_size * 1.625
|
132
|
+
dt
|
133
|
+
font-weight: bold
|
134
|
+
dd
|
135
|
+
margin-left= !font_size * 1.625
|
136
|
+
|
137
|
+
=quote-style(!font_size = !base_font_size)
|
138
|
+
padding= !font_size !font_size !font_size * 1.625 !font_size * 1.4
|
139
|
+
&:before
|
140
|
+
content: "\201C"
|
141
|
+
font-size= !font_size * 3
|
142
|
+
margin= 0 0 0 -.625em
|
143
|
+
position: absolute
|
144
|
+
font-family: Times, Georgia, serif
|
145
|
+
color: #aaa
|
146
|
+
line-height: 0
|
147
|
+
> p
|
148
|
+
padding: 0
|
149
|
+
margin: 0
|
150
|
+
|
151
|
+
=p-style(!font_size = !base_font_size)
|
152
|
+
padding-bottom= !font_size * 0.8125
|
153
|
+
img
|
154
|
+
float: left
|
155
|
+
margin:
|
156
|
+
top= !font_size * .5
|
157
|
+
right= !font_size * .8125
|
158
|
+
bottom= !font_size* .8125
|
159
|
+
left= 0
|
160
|
+
padding: 0
|
161
|
+
&.right
|
162
|
+
margin:
|
163
|
+
right= 0
|
164
|
+
left= !font_size * .8125
|
165
|
+
|
166
|
+
=table-style(!font_size = !base_font_size)
|
167
|
+
margin= 0 0 !font_size * 1.625
|
168
|
+
border-collapse: collapse
|
169
|
+
th
|
170
|
+
font-weight: bold
|
171
|
+
tr, th, td
|
172
|
+
margin: 0
|
173
|
+
padding= 0 !font_size * 1.625 0 !font_size
|
174
|
+
tfoot
|
175
|
+
font-style: italic
|
176
|
+
caption
|
177
|
+
text-align: center
|