summaryrefslogtreecommitdiff
path: root/themes/garland
diff options
context:
space:
mode:
authorAngie Byron <webchick@24967.no-reply.drupal.org>2009-11-16 05:34:24 +0000
committerAngie Byron <webchick@24967.no-reply.drupal.org>2009-11-16 05:34:24 +0000
commit796bb8543bb7ae6df3b2ed224b63be874f3e5c8c (patch)
tree9b259cdace98db816fccf9495499f9947b7f510a /themes/garland
parent19fb7786167347e7509aeb9569a19674f6a31f6b (diff)
downloadbrdo-796bb8543bb7ae6df3b2ed224b63be874f3e5c8c.tar.gz
brdo-796bb8543bb7ae6df3b2ed224b63be874f3e5c8c.tar.bz2
#386462 by Jeff Burnz, mgifford, Cliff, Everett Zufelt, annmcmeekin, et al: Added 'Skip to main content' links in all core themes.
Diffstat (limited to 'themes/garland')
-rw-r--r--themes/garland/page.tpl.php1
-rw-r--r--themes/garland/style.css25
2 files changed, 26 insertions, 0 deletions
diff --git a/themes/garland/page.tpl.php b/themes/garland/page.tpl.php
index a3a1cf30e..cf01a8ee1 100644
--- a/themes/garland/page.tpl.php
+++ b/themes/garland/page.tpl.php
@@ -31,6 +31,7 @@
<div id="center"><div id="squeeze"><div class="right-corner"><div class="left-corner">
<?php print $breadcrumb; ?>
<?php if ($page['highlight']): ?><div id="highlight"><?php render($page['highlight']); ?></div><?php endif; ?>
+ <a name="main-content" id="main-content"></a>
<?php if ($tabs): ?><div id="tabs-wrapper" class="clearfix"><?php endif; ?>
<?php if ($title): ?><h2<?php print $tabs ? ' class="with-tabs"' : '' ?>><?php print $title ?></h2><?php endif; ?>
<?php if ($tabs): ?><ul class="tabs primary"><?php print render($tabs) ?></ul></div><?php endif; ?>
diff --git a/themes/garland/style.css b/themes/garland/style.css
index bdc4e4972..eac8f2fb1 100644
--- a/themes/garland/style.css
+++ b/themes/garland/style.css
@@ -291,6 +291,31 @@ table .form-button, table .form-submit {
}
/**
+ * Skip link
+ */
+#skip-link a:link, #skip-link a:visited {
+ font-weight: bold;
+ background: #fff;
+ padding: 0px 5px;
+ text-decoration: none;
+ font-size: 80%;
+ text-align: right;
+ top: -99em;
+ left: auto;
+ position: absolute;
+}
+
+#skip-link a:hover, #skip-link a:focus, #skip-link a:active {
+ height: auto;
+ width: auto;
+ overflow: visible;
+ top:0;
+ left:0;
+ position: fixed;
+ z-index: 1000;
+}
+
+/**
* Layout
*/
.region-header {