Permalink
Browse files

Update link-icons plugin to support https:// links

  • Loading branch information...
1 parent bc04acc commit 0f71a84a73036c8715e64e7269eb31384169edaa Jens Rantil committed with May 9, 2011
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@@ -15,9 +15,10 @@ body a.noicon {
}
/* Make sure the icons are not cut */
-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:"] {
+a[href^="http:"], a[href^="https:"],
+a[href^="http:"]:visited, a[href^="https:"]:visited,
+a[href^="mailto:"], a[href$=".pdf"], a[href$=".doc"], a[href$=".xls"],
+a[href$=".rss"], a[href$=".rdf"], a[href^="aim:"] {
padding:2px 22px 2px 0;
margin:-2px 0;
background-repeat: no-repeat;
@@ -26,6 +27,7 @@ a[href$=".rdf"], a[href^="aim:"] {
/* External links */
a[href^="http:"] { background-image: url(icons/external.png); }
+a[href^="https:"] { background-image: url(icons/lock.png); }
a[href^="mailto:"] { background-image: url(icons/email.png); }
a[href^="http:"]:visited { background-image: url(icons/visited.png); }
View
@@ -24,6 +24,7 @@
<p>Welcome to the Blueprint test pages. The HTML files below test most HTML elements, as well as most classes provided by Blueprint.</p>
<table border="0" cellspacing="0" cellpadding="0">
+ <caption>Blueprint core tests</caption>
<thead>
<tr>
<th class="span-6">Test page</th>
@@ -64,6 +65,26 @@
</tbody>
</table>
+ <table border="0" cellspacing="0" cellpadding="0">
+ <caption>Blueprint plugin tests</caption>
+ <thead>
+ <tr>
+ <th class="span-6">Test page</th>
+ <th class="span-8">Main files tested</th>
+ <th class="span-10">Description</th>
+ </tr>
+ </thead>
+ <tbody>
+ <tr>
+ <td><a href="parts/plugins/link-icons.html">Link icons</a></td>
+ <td>
+ <a href="../blueprint/plugins/link-icons/screen.css">link-icons/screen.css</a>
+ </td>
+ <td>Shows the different links the <em>link-icons</em> plugin supports.</td>
+ </tr>
+ </tbody>
+ </table>
+
<p><em><strong>Note about the compressed versions:</strong></em>
These test files utilize the compressed files. In other words, if you change any of the source files,
you'll have to re-compress them with the ruby script in the scripts folder to see any&nbsp;changes.</p>
@@ -0,0 +1,89 @@
+<!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 Sample Page</title>
+
+ <!-- Framework CSS -->
+ <link rel="stylesheet" href="../../../blueprint/screen.css" type="text/css" media="screen, projection">
+ <link rel="stylesheet" href="../../../blueprint/print.css" type="text/css" media="print">
+ <!--[if lt IE 8]><link rel="stylesheet" href="../../../blueprint/ie.css" type="text/css" media="screen, projection"><![endif]-->
+
+ <!-- Import link-icons plugin for the sample page. -->
+ <link rel="stylesheet" href="../../../blueprint/plugins/link-icons/screen.css" type="text/css" media="screen, projection">
+ </head>
+ <body>
+ <div class="container">
+ <h1>link-icons examples</h1>
+ <hr>
+ <h2 class="alt">This sample page demonstrates the <em>link-icons</em> plugin.</h2>
+ <hr>
+ <div class="span-24 last">
+ <table>
+ <thead>
+ <tr>
+ <th>Sample link</th>
+ <th>Description</th>
+ <th>Regular expression of <code>href</code> anchor attribute</th>
+ </tr>
+ </thead>
+ <tbody>
+ <tr>
+ <td><a href="http://example.com">An external link</a></td>
+ <td>Links that starts with <code>http://</code>.</td>
+ <td><code>http://.*</code></td>
+ </tr>
+ <tr>
+ <td><a href="https://example.com">A secure external link</a></td>
+ <td>Links that starts with <code>https://</code>.</td>
+ <td><code>https://.*</code></td>
+ </tr>
+ <tr>
+ <td><a href="mailto:person@example.com">Mail someone</a></td>
+ <td>Links that starts with <code>mailto:</code>.</td>
+ <td><code>mailto:.*</code></td>
+ </tr>
+ <tr>
+ <td><a href="http://example.com/document.pdf">A PDF document</a></td>
+ <td>Links that ends with <code>.pdf</code>.</td>
+ <td><code>.*\.pdf</code></td>
+ </tr>
+ <tr>
+ <td><a href="http://example.com/document.doc">A word document</a></td>
+ <td>Links that ends with <code>.doc</code>.</td>
+ <td><code>.*\.doc</code></td>
+ </tr>
+ <tr>
+ <td><a href="http://example.com/workbook.xls">A Microsoft Excel workbook</a></td>
+ <td>Links that ends with <code>.xls</code>.</td>
+ <td><code>.*\.xls</code></td>
+ </tr>
+ <tr>
+ <td><a href="http://example.com/feed.rss">An RSS feed</a></td>
+ <td>Links that ends with <code>.rss</code>.</td>
+ <td><code>.*\.rss</code></td>
+ </tr>
+ <tr>
+ <td><a href="http://example.com/feed.rdf">An RDF feed</a></td>
+ <td>Links that ends with <code>.rdf</code>.</td>
+ <td><code>.*\.rdf</code></td>
+ </tr>
+ <tr>
+ <td><a href="aim:addbuddy?screenname=example">An AIM instant messaging link</a></td>
+ <td>Links that starts with <code>aim:</code>.</td>
+ <td><code>aim:.*</code></td>
+ </tr>
+ </tbody>
+ </table>
+ </div>
+ <hr>
+ <p>
+ <a class="noicon" href="http://validator.w3.org/check?uri=referer">
+ <img src="../valid.png" alt="Valid HTML 4.01 Strict" height="31" width="88" class="top">
+ </a>
+ </p>
+ </div>
+ </body>
+</html>

0 comments on commit 0f71a84

Please sign in to comment.