summaryrefslogtreecommitdiff
path: root/misc
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2009-12-06 01:00:27 +0000
committerDries Buytaert <dries@buytaert.net>2009-12-06 01:00:27 +0000
commit66f740c58475b84b907326a0e50e4d91c2fc03ee (patch)
tree9e43dac217331cf78042de4edfefe7b56308086a /misc
parent882fa0ab33cec0aaa9ebe942cbfe759fcf8f4a4e (diff)
downloadbrdo-66f740c58475b84b907326a0e50e4d91c2fc03ee.tar.gz
brdo-66f740c58475b84b907326a0e50e4d91c2fc03ee.tar.bz2
- Patch #626286 by sun, David_Rothstein, Rob Loach: make contextual links a module.
Diffstat (limited to 'misc')
-rw-r--r--misc/cog-select.pngbin1218 -> 0 bytes
-rw-r--r--misc/contextual_links.css75
-rw-r--r--misc/contextual_links.js42
3 files changed, 0 insertions, 117 deletions
diff --git a/misc/cog-select.png b/misc/cog-select.png
deleted file mode 100644
index e30217cd9..000000000
--- a/misc/cog-select.png
+++ /dev/null
Binary files differ
diff --git a/misc/contextual_links.css b/misc/contextual_links.css
deleted file mode 100644
index 4d2ac51e8..000000000
--- a/misc/contextual_links.css
+++ /dev/null
@@ -1,75 +0,0 @@
-/* $Id$ */
-
-/**
- * Contextual links regions.
- */
-.contextual-links-region {
- outline: none;
- position: relative;
-}
-.contextual-links-region-active {
- outline: #999 dashed 1px;
-}
-
-/**
- * Contextual links.
- */
-div.contextual-links-wrapper {
- display: none;
- font-size: 90%;
- position: absolute;
- right: 5px;
- top: 0px;
- z-index: 999;
-}
-html.js div.contextual-links-wrapper {
- display: block;
-}
-a.contextual-links-trigger {
- background: transparent url(cog-select.png) no-repeat center center;
- display: none;
- height: 20px;
- margin-top: 2px;
- outline: none;
- text-indent: 34px;
- width: 30px;
- overflow: hidden;
-}
-a.contextual-links-trigger:hover,
-div.contextual-links-active a.contextual-links-trigger {
- background-color: #fff;
-}
-div.contextual-links-wrapper ul.contextual-links {
- display: none;
- margin: 0;
- padding: 5px 10px;
- position: absolute;
- right: 0;
- top: 20px;
- white-space: nowrap;
-}
-.contextual-links-region:hover a.contextual-links-trigger,
-div.contextual-links-active a.contextual-links-trigger,
-div.contextual-links-active ul.contextual-links {
- display: block;
-}
-ul.contextual-links li {
- line-height: 100%;
- list-style: none;
- list-style-image: none;
- margin: 0;
- padding: 0;
-}
-div.contextual-links-wrapper a {
- text-decoration: none;
-}
-ul.contextual-links li a {
- background: #fff;
- color: #666;
- display: block;
- margin: 0.5em 0;
- padding: 0.3em;
-}
-ul.contextual-links li a:hover {
- text-decoration: underline;
-}
diff --git a/misc/contextual_links.js b/misc/contextual_links.js
deleted file mode 100644
index 0dfc9ddfa..000000000
--- a/misc/contextual_links.js
+++ /dev/null
@@ -1,42 +0,0 @@
-// $Id$
-(function ($) {
-
-Drupal.contextualLinks = Drupal.contextualLinks || {};
-
-/**
- * Attach outline behavior for regions associated with contextual links.
- */
-Drupal.behaviors.contextualLinks = {
- attach: function (context) {
- $('div.contextual-links-wrapper', context).once('contextual-links', function () {
- var $wrapper = $(this);
- var $trigger = $('<a class="contextual-links-trigger" href="#" />').text(Drupal.t('Configure')).click(
- function () {
- $wrapper.find('ul.contextual-links').slideToggle(100);
- $wrapper.toggleClass('contextual-links-active');
- return false;
- }
- );
- $wrapper.prepend($trigger)
- .closest('.contextual-links-region').hover(Drupal.contextualLinks.hover, Drupal.contextualLinks.hoverOut);
- });
- }
-};
-
-/**
- * Enables outline for the region contextual links are associated with.
- */
-Drupal.contextualLinks.hover = function () {
- $(this).closest('.contextual-links-region').addClass('contextual-links-region-active');
-};
-
-/**
- * Disables outline for the region contextual links are associated with.
- */
-Drupal.contextualLinks.hoverOut = function () {
- $(this).closest('.contextual-links-region').removeClass('contextual-links-region-active')
- .find('.contextual-links-active').removeClass('contextual-links-active')
- .find('ul.contextual-links').hide();
-};
-
-})(jQuery);