diff --git a/frameworks/blueprint/stylesheets/blueprint/modules/_link_icons.sass b/frameworks/blueprint/stylesheets/blueprint/modules/_link_icons.sass new file mode 100644 index 00000000..dd50ebf7 --- /dev/null +++ b/frameworks/blueprint/stylesheets/blueprint/modules/_link_icons.sass @@ -0,0 +1,44 @@ +=no-link-icon + :background transparent none !important + :padding 0 !important + :margin 0 !important + +=link-icon-base + :padding 2px 22px 2px 0 + :margin -2px 0 + :background-repeat no-repeat + :background-position right center + +=link-icon(!name, !include_base = true) + @if !include_base + +link-icon-base + :background-image= image_url("link_icons/#{!name}") + +=link-icons + a[href^="http:"], + a[href^="mailto:"], + a[href^="http:"]:visited, + a[href$=".pdf"], + a[href$=".doc"], + a[href$=".xls"], + a[href$=".rss"], + a[href$=".rdf"], + a[href^="aim:"] + +link-icon-base + a[href^="http:"] + +link-icon("external.png", false) + a[href^="mailto:"] + +link-icon("email.png", false) + a[href^="http:"]:visited + +link-icon("visited.png", false) + a[href$=".pdf"] + +link-icon("pdf.png", false) + a[href$=".doc"] + +link-icon("doc.png", false) + a[href$=".xls"] + +link-icon("xls.png", false) + a[href$=".rss"], + a[href$=".rdf"] + +link-icon("feed.png", false) + a[href^="aim:"] + +link-icon("im.png", false) \ No newline at end of file diff --git a/frameworks/blueprint/templates/link_icons/link_icons.sass b/frameworks/blueprint/templates/link_icons/link_icons.sass new file mode 100644 index 00000000..a095e833 --- /dev/null +++ b/frameworks/blueprint/templates/link_icons/link_icons.sass @@ -0,0 +1,13 @@ +@import blueprint/modules/link_icons.sass + +// This turns link icons on for all links. You can change the scoping selector from +// body to something more specific if you prefer. +body + +link-icons + // Use this class if a link gets an icon when it shouldn't. + a.noicon + +no-link-icon + // Not all links have a url structure that can be detected, + // So you can set them explicitly yourself like so: + a#this-is-a-pdf-link + +link-icon("pdf.png") diff --git a/frameworks/blueprint/templates/link_icons/link_icons/doc.png b/frameworks/blueprint/templates/link_icons/link_icons/doc.png new file mode 100644 index 00000000..834cdfaf Binary files /dev/null and b/frameworks/blueprint/templates/link_icons/link_icons/doc.png differ diff --git a/frameworks/blueprint/templates/link_icons/link_icons/email.png b/frameworks/blueprint/templates/link_icons/link_icons/email.png new file mode 100644 index 00000000..7348aed7 Binary files /dev/null and b/frameworks/blueprint/templates/link_icons/link_icons/email.png differ diff --git a/frameworks/blueprint/templates/link_icons/link_icons/external.png b/frameworks/blueprint/templates/link_icons/link_icons/external.png new file mode 100644 index 00000000..cf1cfb42 Binary files /dev/null and b/frameworks/blueprint/templates/link_icons/link_icons/external.png differ diff --git a/frameworks/blueprint/templates/link_icons/link_icons/feed.png b/frameworks/blueprint/templates/link_icons/link_icons/feed.png new file mode 100644 index 00000000..315c4f4f Binary files /dev/null and b/frameworks/blueprint/templates/link_icons/link_icons/feed.png differ diff --git a/frameworks/blueprint/templates/link_icons/link_icons/im.png b/frameworks/blueprint/templates/link_icons/link_icons/im.png new file mode 100644 index 00000000..79f35ccb Binary files /dev/null and b/frameworks/blueprint/templates/link_icons/link_icons/im.png differ diff --git a/frameworks/blueprint/templates/link_icons/link_icons/pdf.png b/frameworks/blueprint/templates/link_icons/link_icons/pdf.png new file mode 100644 index 00000000..8f8095e4 Binary files /dev/null and b/frameworks/blueprint/templates/link_icons/link_icons/pdf.png differ diff --git a/frameworks/blueprint/templates/link_icons/link_icons/visited.png b/frameworks/blueprint/templates/link_icons/link_icons/visited.png new file mode 100644 index 00000000..ebf206de Binary files /dev/null and b/frameworks/blueprint/templates/link_icons/link_icons/visited.png differ diff --git a/frameworks/blueprint/templates/link_icons/link_icons/xls.png b/frameworks/blueprint/templates/link_icons/link_icons/xls.png new file mode 100644 index 00000000..b977d7e5 Binary files /dev/null and b/frameworks/blueprint/templates/link_icons/link_icons/xls.png differ diff --git a/frameworks/blueprint/templates/link_icons/manifest.rb b/frameworks/blueprint/templates/link_icons/manifest.rb new file mode 100644 index 00000000..5b8b4f9f --- /dev/null +++ b/frameworks/blueprint/templates/link_icons/manifest.rb @@ -0,0 +1,10 @@ +stylesheet "link_icons.sass", :media => 'screen, projection' + +image 'link_icons/doc.png' +image 'link_icons/email.png' +image 'link_icons/external.png' +image 'link_icons/feed.png' +image 'link_icons/im.png' +image 'link_icons/pdf.png' +image 'link_icons/visited.png' +image 'link_icons/xls.png'