Added an example for the link icons plugin.

This commit is contained in:
Chris Eppstein 2009-04-05 03:23:19 -07:00
parent a5712edc3e
commit f425075978
12 changed files with 88 additions and 0 deletions

View File

@ -0,0 +1,9 @@
# Require any additional compass plugins here.
project_type = :stand_alone
css_dir = "stylesheets"
sass_dir = "src"
images_dir = "images"
output_style = :compact
# To enable relative image paths using the images_url() function:
# http_images_path = :relative
http_images_path = :relative

Binary file not shown.

After

Width:  |  Height:  |  Size: 777 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 641 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 46 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 691 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 741 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 591 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 46 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 663 B

View File

@ -42,6 +42,13 @@
</td>
<td>A simple page, showing links and buttons styled using the button plugin.</td>
</tr>
<tr>
<td><a href="parts/link_icons.html">Link Icons</a></td>
<td>
<a href="../../frameworks/blueprint/stylesheets/blueprint/modules/_link_icons.sass">grid.sass</a>,
</td>
<td>A simple page, showing links icons.</td>
</tr>
</table>
<p><em><strong>Note about the css files:</strong></em>

View File

@ -0,0 +1,59 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">
<html lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Blueprint Link Icons Sample Page</title>
<!-- Framework CSS -->
<link rel="stylesheet" href="../stylesheets/screen.css" type="text/css" media="screen, projection">
<link rel="stylesheet" href="../stylesheets/print.css" type="text/css" media="print">
<!--[if IE]><link rel="stylesheet" href="../stylesheets/ie.css" type="text/css" media="screen, projection"><![endif]-->
<link rel="stylesheet" href="../stylesheets/link_icons.css" type="text/css" media="screen, projection">
</head>
<body>
<div class="container">
<h1>A Link Icons Example Page</h1>
<hr>
<h2 class="alt">This sample page demonstrates what you can do with the Link Icons plugin.</h2>
<hr>
<div class="span-12">
<h3>External Links</h3>
<a href="http://www.no-such-website.com/">A Normal External Link</a>
<a href="http://www.google.com">A Visited External Link</a>
<a href="mailto:donald@duck.com">An Email Link</a>
</div>
<div class="span-12 last">
<h3>Document Links</h3>
<a href="http://www.no-such-website.com/sample.pdf">A .pdf Link</a>
<a href="http://www.no-such-website.com/sample.doc">A .doc Link</a>
<a href="http://www.no-such-website.com/sample.xls">A .xls Link</a>
</div>
<div class="span-12">
<h3>Misc Links</h3>
<a href="http://www.no-such-website.com/sample.rss">An RSS Link</a>
<a href="http://www.no-such-website.com/sample.rdf">An Atom Link</a>
<a href="aim:chatmeup">A Instant Messenger Link</a>
</div>
<div class="span-12 last">
<h3>Turning Icons Off</h3>
<a href="http://www.no-such-website.com/" class="noicon">A Normal External Link</a>
<a href="http://www.google.com" class="noicon">A Visited External Link</a>
<a href="mailto:donald@duck.com" class="noicon">An Email Link</a>
</div>
<div class="span-24">
<p><a href="http://validator.w3.org/check?uri=referer" class="noicon">
<img src="valid.png" alt="Valid HTML 4.01 Strict" height="31" width="88" class="top"></a></p>
</div>
</div>
</body>
</html>

View File

@ -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")