From df757fb040e5736e55b3f7060260a79b6b79b781 Mon Sep 17 00:00:00 2001 From: Jacob Rask Date: Sun, 19 Feb 2012 21:21:44 +0100 Subject: All abbreviations are not upper case initialisms Read more: * http://developers.whatwg.org/text-level-semantics.html#the-abbr-element * http://en.wikipedia.org/wiki/Abbreviation * http://en.wikipedia.org/wiki/Initialism --- docs/assets/bootstrap.zip | Bin 53408 -> 53395 bytes docs/assets/css/bootstrap.css | 2 -- 2 files changed, 2 deletions(-) (limited to 'docs') diff --git a/docs/assets/bootstrap.zip b/docs/assets/bootstrap.zip index df4dc7ff2..a2f11da8a 100644 Binary files a/docs/assets/bootstrap.zip and b/docs/assets/bootstrap.zip differ diff --git a/docs/assets/css/bootstrap.css b/docs/assets/css/bootstrap.css index 71ab7a9d4..b6d3f5b26 100644 --- a/docs/assets/css/bootstrap.css +++ b/docs/assets/css/bootstrap.css @@ -416,8 +416,6 @@ em { color: #999999; } abbr { - font-size: 90%; - text-transform: uppercase; border-bottom: 1px dotted #ddd; cursor: help; } -- cgit v1.2.3 From f08b40766749209709ec49c01f8aa122996657b3 Mon Sep 17 00:00:00 2001 From: Jacob Rask Date: Sun, 19 Feb 2012 21:22:37 +0100 Subject: Only show help cursor/border for abbr with title --- docs/assets/bootstrap.zip | Bin 53395 -> 53409 bytes docs/assets/css/bootstrap.css | 2 +- 2 files changed, 1 insertion(+), 1 deletion(-) (limited to 'docs') diff --git a/docs/assets/bootstrap.zip b/docs/assets/bootstrap.zip index a2f11da8a..82fff3162 100644 Binary files a/docs/assets/bootstrap.zip and b/docs/assets/bootstrap.zip differ diff --git a/docs/assets/css/bootstrap.css b/docs/assets/css/bootstrap.css index b6d3f5b26..98ab116dd 100644 --- a/docs/assets/css/bootstrap.css +++ b/docs/assets/css/bootstrap.css @@ -415,7 +415,7 @@ em { .muted { color: #999999; } -abbr { +abbr[title] { border-bottom: 1px dotted #ddd; cursor: help; } -- cgit v1.2.3 From c1775da18714170847e1fb7768f375803b63c489 Mon Sep 17 00:00:00 2001 From: Jacob Rask Date: Sun, 19 Feb 2012 21:24:06 +0100 Subject: Add class for upper case abbreviations, aka initialisms Read more: * http://en.wikipedia.org/wiki/Abbreviation * http://en.wikipedia.org/wiki/Initialism --- docs/assets/bootstrap.zip | Bin 53409 -> 53441 bytes docs/assets/css/bootstrap.css | 4 ++++ 2 files changed, 4 insertions(+) (limited to 'docs') diff --git a/docs/assets/bootstrap.zip b/docs/assets/bootstrap.zip index 82fff3162..a52a2ffe7 100644 Binary files a/docs/assets/bootstrap.zip and b/docs/assets/bootstrap.zip differ diff --git a/docs/assets/css/bootstrap.css b/docs/assets/css/bootstrap.css index 98ab116dd..a0f9b0837 100644 --- a/docs/assets/css/bootstrap.css +++ b/docs/assets/css/bootstrap.css @@ -419,6 +419,10 @@ abbr[title] { border-bottom: 1px dotted #ddd; cursor: help; } +abbr.initialism { + font-size: 90%; + text-transform: uppercase; +} blockquote { padding: 0 0 0 15px; margin: 0 0 18px; -- cgit v1.2.3 From f28140897e92882a2bbecd8c3426e978bd29ba86 Mon Sep 17 00:00:00 2001 From: Jacob Rask Date: Sun, 19 Feb 2012 22:14:18 +0100 Subject: Update documentation for abbreviations --- docs/assets/bootstrap.zip | Bin 53441 -> 53441 bytes docs/base-css.html | 8 +++++--- docs/templates/pages/base-css.mustache | 8 +++++--- 3 files changed, 10 insertions(+), 6 deletions(-) (limited to 'docs') diff --git a/docs/assets/bootstrap.zip b/docs/assets/bootstrap.zip index a52a2ffe7..307e72ac9 100644 Binary files a/docs/assets/bootstrap.zip and b/docs/assets/bootstrap.zip differ diff --git a/docs/base-css.html b/docs/base-css.html index 9fad87178..5a2e12748 100644 --- a/docs/base-css.html +++ b/docs/base-css.html @@ -166,7 +166,8 @@ Wraps abbreviations and acronyms to show the expanded version on hover - Include optional title for expanded text +

Include optional title attribute for expanded text

+ Use .initialism class for uppercase abbreviations. @@ -205,8 +206,9 @@

Example abbreviations

-

Abbreviations are styled with uppercase text and a light dotted bottom border. They also have a help cursor on hover so users have extra indication something will be shown on hover.

-

HTML is the best thing since sliced bread.

+

Abbreviations with a title attribute have a light dotted bottom border and a help cursor on hover. This gives users extra indication something will be shown on hover.

+

Add the initialism class to an abbreviation to increase typographic harmony by giving it a slightly smaller text size.

+

HTML is the best thing since sliced bread.

An abbreviation of the word attribute is attr.

diff --git a/docs/templates/pages/base-css.mustache b/docs/templates/pages/base-css.mustache index 84d48fb1e..96036d6ee 100644 --- a/docs/templates/pages/base-css.mustache +++ b/docs/templates/pages/base-css.mustache @@ -90,7 +90,8 @@ {{_i}}Wraps abbreviations and acronyms to show the expanded version on hover{{/i}} - {{_i}}Include optional title for expanded text{{/i}} +

{{_i}}Include optional title attribute for expanded text{{/i}}

+ {{_i}}Use .initialism class for uppercase abbreviations.{{/i}} @@ -129,8 +130,9 @@

{{_i}}Example abbreviations{{/i}}

-

{{_i}}Abbreviations are styled with uppercase text and a light dotted bottom border. They also have a help cursor on hover so users have extra indication something will be shown on hover.{{/i}}

-

{{_i}}HTML is the best thing since sliced bread.{{/i}}

+

{{_i}}Abbreviations with a title attribute have a light dotted bottom border and a help cursor on hover. This gives users extra indication something will be shown on hover.{{/i}}

+

{{_i}}Add the initialism class to an abbreviation to increase typographic harmony by giving it a slightly smaller text size.{{/i}}

+

{{_i}}HTML is the best thing since sliced bread.{{/i}}

{{_i}}An abbreviation of the word attribute is attr.{{/i}}

-- cgit v1.2.3