Added an example for the link icons plugin.
9
examples/blueprint_plugins/config.rb
Normal 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
|
BIN
examples/blueprint_plugins/images/link_icons/doc.png
Normal file
After Width: | Height: | Size: 777 B |
BIN
examples/blueprint_plugins/images/link_icons/email.png
Normal file
After Width: | Height: | Size: 641 B |
BIN
examples/blueprint_plugins/images/link_icons/external.png
Normal file
After Width: | Height: | Size: 46 KiB |
BIN
examples/blueprint_plugins/images/link_icons/feed.png
Normal file
After Width: | Height: | Size: 691 B |
BIN
examples/blueprint_plugins/images/link_icons/im.png
Normal file
After Width: | Height: | Size: 741 B |
BIN
examples/blueprint_plugins/images/link_icons/pdf.png
Normal file
After Width: | Height: | Size: 591 B |
BIN
examples/blueprint_plugins/images/link_icons/visited.png
Normal file
After Width: | Height: | Size: 46 KiB |
BIN
examples/blueprint_plugins/images/link_icons/xls.png
Normal file
After Width: | Height: | Size: 663 B |
@ -42,6 +42,13 @@
|
|||||||
</td>
|
</td>
|
||||||
<td>A simple page, showing links and buttons styled using the button plugin.</td>
|
<td>A simple page, showing links and buttons styled using the button plugin.</td>
|
||||||
</tr>
|
</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>
|
</table>
|
||||||
|
|
||||||
<p><em><strong>Note about the css files:</strong></em>
|
<p><em><strong>Note about the css files:</strong></em>
|
||||||
|
59
examples/blueprint_plugins/parts/link_icons.html
Normal 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>
|
13
examples/blueprint_plugins/src/link_icons.sass
Normal 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")
|