[Blueprint] Comments in the fancy type module should be silent.
This commit is contained in:
parent
1f21d63091
commit
8b5379e864
@ -1,7 +1,8 @@
|
|||||||
/*
|
@import typography.sass
|
||||||
|
|
||||||
|
//
|
||||||
To install the fancy type plugin:
|
To install the fancy type plugin:
|
||||||
1. import the fancy_type module:
|
1. import the fancy_type module: @import blueprint/modules/fancy_type
|
||||||
@import blueprint/modules/fancy_type
|
|
||||||
2. mixin +fancy-type to your project's body or at the top level of your stylesheet:
|
2. mixin +fancy-type to your project's body or at the top level of your stylesheet:
|
||||||
body
|
body
|
||||||
+fancy-type
|
+fancy-type
|
||||||
@ -15,7 +16,7 @@
|
|||||||
.alt
|
.alt
|
||||||
+alt
|
+alt
|
||||||
|
|
||||||
/* Indentation instead of line shifts for sibling paragraphs. Mixin to a style like p + p
|
// Indentation instead of line shifts for sibling paragraphs. Mixin to a style like p + p
|
||||||
=sibling-indentation
|
=sibling-indentation
|
||||||
:text-indent 2em
|
:text-indent 2em
|
||||||
:margin-top -1.5em
|
:margin-top -1.5em
|
||||||
@ -23,7 +24,7 @@
|
|||||||
form &
|
form &
|
||||||
:text-indent 0
|
:text-indent 0
|
||||||
|
|
||||||
/*
|
//
|
||||||
For great looking type, use this code instead of asdf:
|
For great looking type, use this code instead of asdf:
|
||||||
<span class="alt">asdf</span>
|
<span class="alt">asdf</span>
|
||||||
Best used on prepositions and ampersands.
|
Best used on prepositions and ampersands.
|
||||||
@ -34,7 +35,7 @@
|
|||||||
:font-style italic
|
:font-style italic
|
||||||
:font-weight normal
|
:font-weight normal
|
||||||
|
|
||||||
/*
|
//
|
||||||
For great looking quote marks in titles, replace "asdf" with:
|
For great looking quote marks in titles, replace "asdf" with:
|
||||||
<span class="dquo">“</span>asdf”
|
<span class="dquo">“</span>asdf”
|
||||||
(That is, when the title starts with a quote mark).
|
(That is, when the title starts with a quote mark).
|
||||||
@ -42,7 +43,7 @@
|
|||||||
=dquo(!offset = 0.5em)
|
=dquo(!offset = 0.5em)
|
||||||
:margin-left -!offset
|
:margin-left -!offset
|
||||||
|
|
||||||
/*
|
//
|
||||||
Reduced size type with incremental leading
|
Reduced size type with incremental leading
|
||||||
(http://www.markboulton.co.uk/journal/comments/incremental_leading/)
|
(http://www.markboulton.co.uk/journal/comments/incremental_leading/)
|
||||||
|
|
||||||
@ -56,12 +57,12 @@
|
|||||||
font_size - The desired font size in pixels. This will be converted to ems for you. Defaults to 10px.
|
font_size - The desired font size in pixels. This will be converted to ems for you. Defaults to 10px.
|
||||||
base_font_size - The base font size in pixels. Defaults to 12px
|
base_font_size - The base font size in pixels. Defaults to 12px
|
||||||
old_line_height - The old line height. Defaults to 1.5 times the base_font_size
|
old_line_height - The old line height. Defaults to 1.5 times the base_font_size
|
||||||
=incr(!font_size = 10px, !base_font_size = 12px, !old_line_height = !base_font_size * 1.5)
|
=incr(!font_size = 10px, !base_font_size = !blueprint_font_size, !old_line_height = !base_font_size * 1.5)
|
||||||
:font-size= 1em * !font_size / !base_font_size
|
:font-size= 1em * !font_size / !base_font_size
|
||||||
:line-height= 1em * !old_line_height / !font_size * 4 / 5
|
:line-height= 1em * !old_line_height / !font_size * 4 / 5
|
||||||
:margin-bottom 1.5em
|
:margin-bottom 1.5em
|
||||||
|
|
||||||
/*
|
//
|
||||||
Surround uppercase words and abbreviations with this class.
|
Surround uppercase words and abbreviations with this class.
|
||||||
Based on work by Jørgen Arnor Gårdsø Lom [http://twistedintellect.com/]
|
Based on work by Jørgen Arnor Gårdsø Lom [http://twistedintellect.com/]
|
||||||
=caps
|
=caps
|
||||||
|
@ -4,6 +4,7 @@
|
|||||||
|
|
||||||
!blueprint_font_family ||= "Helvetica Neue, Arial, Helvetica, sans-serif"
|
!blueprint_font_family ||= "Helvetica Neue, Arial, Helvetica, sans-serif"
|
||||||
!blueprint_fixed_font_family ||= "'andale mono', 'lucida console', monospace"
|
!blueprint_fixed_font_family ||= "'andale mono', 'lucida console', monospace"
|
||||||
|
!blueprint_font_size ||= 12px
|
||||||
|
|
||||||
// The +blueprint-typography mixin must be mixed into the top level of your stylesheet.
|
// The +blueprint-typography mixin must be mixed into the top level of your stylesheet.
|
||||||
// However, you can customize the body selector if you wish to control the scope
|
// However, you can customize the body selector if you wish to control the scope
|
||||||
@ -43,10 +44,10 @@
|
|||||||
=loud
|
=loud
|
||||||
:color= !loud_color
|
:color= !loud_color
|
||||||
|
|
||||||
=blueprint-typography-body
|
=blueprint-typography-body(!font_size = !blueprint_font_size)
|
||||||
:line-height 1.5
|
:line-height 1.5
|
||||||
+normal-text
|
+normal-text
|
||||||
:font-size 75%
|
:font-size= 100% * !font_size / 16px
|
||||||
|
|
||||||
=blueprint-typography-defaults
|
=blueprint-typography-defaults
|
||||||
h1
|
h1
|
||||||
|
Loading…
Reference in New Issue
Block a user