diff --git a/core/misc/collapse.js b/core/misc/collapse.js
index 48bfaf675c458ed65b6d05355387f905c421ac94..0765412402cc4c3453d976f061c9a9eea7f3d3d4 100644
--- a/core/misc/collapse.js
+++ b/core/misc/collapse.js
@@ -101,7 +101,8 @@ $.extend(CollapsibleDetails.prototype, {
.after(' ');
// .wrapInner() does not retain bound events.
- var $link = $('')
+ var $link = $('')
+ .attr('href', '#' + this.$node.attr('id'))
.prepend($legend.contents())
.appendTo($legend)
.click($.proxy(this.onLegendClick, this));
diff --git a/core/misc/machine-name.js b/core/misc/machine-name.js
index 9862ee310fc00a213d1fa62972f76d1763ce7d47..ddaf782a9548462c93b016fdada8499399389aba 100644
--- a/core/misc/machine-name.js
+++ b/core/misc/machine-name.js
@@ -109,7 +109,7 @@ Drupal.behaviors.machineName = {
options: options
};
// If it is editable, append an edit link.
- var $link = $('' + Drupal.t('Edit') + '').bind('click', eventData, clickEditHandler);
+ var $link = $('').bind('click', eventData, clickEditHandler);
$suffix.append(' ').append($link);
// Preview the machine name in realtime when the human-readable name
diff --git a/core/misc/tabledrag.js b/core/misc/tabledrag.js
index f578d4a50852cd97a9f14a2c90694b92c4aca92f..8b3021ad6324869e2281d1c26d2f37d01361494b 100644
--- a/core/misc/tabledrag.js
+++ b/core/misc/tabledrag.js
@@ -104,7 +104,7 @@ Drupal.tableDrag = function (table, tableSettings) {
$table.find('> tr.draggable, > tbody > tr.draggable').each(function () { self.makeDraggable(this); });
// Add a link before the table for users to show or hide weight columns.
- $table.before($('')
+ $table.before($('')
.attr('title', Drupal.t('Re-order rows by numerical weight instead of dragging.'))
.click($.proxy(function (e) {
e.preventDefault();
diff --git a/core/misc/tableresponsive.js b/core/misc/tableresponsive.js
index 86337180f22cfe248b2fbb95039b4b1ae7a7af50..4f45dee4562288a43f4467ab505b7ba98053bfa9 100644
--- a/core/misc/tableresponsive.js
+++ b/core/misc/tableresponsive.js
@@ -35,7 +35,7 @@ function TableResponsive (table) {
// traversed only once to find them.
this.$headers = this.$table.find('th');
// Add a link before the table for users to show or hide weight columns.
- this.$link = $('')
+ this.$link = $('')
.attr('title', Drupal.t('Show table cells that were hidden to make the table fit within a small screen.'))
.on('click', $.proxy(this, 'eventhandlerToggleColumns'));
diff --git a/core/misc/vertical-tabs.js b/core/misc/vertical-tabs.js
index 0dd790073f8f304b4af98f238bad24634cca039e..4c0b3d74319a0bbf505b273a8515ffc79e8807b6 100644
--- a/core/misc/vertical-tabs.js
+++ b/core/misc/vertical-tabs.js
@@ -86,6 +86,8 @@ Drupal.verticalTab = function (settings) {
var self = this;
$.extend(this, settings, Drupal.theme('verticalTab', settings));
+ this.link.attr('href', '#' + settings.fieldset.attr('id'));
+
this.link.click(function (e) {
e.preventDefault();
self.focus();
diff --git a/core/modules/system/system.theme.css b/core/modules/system/system.theme.css
index 7da017bf8e8915f9b717dc9389dd16e507de8043..094984c959cd6fad47eb8b517d543f845d07b794 100644
--- a/core/modules/system/system.theme.css
+++ b/core/modules/system/system.theme.css
@@ -1,4 +1,3 @@
-
/**
* @file
* Basic styling for common markup.
@@ -16,6 +15,9 @@ form {
margin: 0;
padding: 0;
}
+button {
+ font-size: 1em;
+}
hr {
border: 1px solid gray;
height: 1px;
@@ -192,6 +194,21 @@ abbr.form-required, abbr.tabledrag-changed, abbr.ajax-changed {
}
/**
+ * Show buttons as links.
+ */
+button.link {
+ background: transparent;
+ border: 0;
+ cursor: pointer;
+ margin: 0;
+ padding: 0;
+}
+
+label button.link {
+ font-weight: bold;
+}
+
+/*
* Autocomplete.
*
* @see autocomplete.js
diff --git a/core/modules/text/text.js b/core/modules/text/text.js
index 3292305ebe0f12535fe76f034f552f9c0cc364da..7e63c093f8202d0f5f6a36673a0a8165b82528d8 100644
--- a/core/modules/text/text.js
+++ b/core/modules/text/text.js
@@ -22,18 +22,18 @@ Drupal.behaviors.textSummary = {
}
// Set up the edit/hide summary link.
- var $link = $('(' + Drupal.t('Hide summary') + ')');
- var $a = $link.find('a');
+ var $link = $(' ()');
+ var $button = $link.find('button');
var toggleClick = true;
$link.on('click', function (e) {
if (toggleClick) {
$summary.hide();
- $a.html(Drupal.t('Edit summary'));
+ $button.html(Drupal.t('Edit summary'));
$link.appendTo($fullLabel);
}
else {
$summary.show();
- $a.html(Drupal.t('Hide summary'));
+ $button.html(Drupal.t('Hide summary'));
$link.appendTo($summaryLabel);
}
e.preventDefault();
diff --git a/core/themes/bartik/css/colors.css b/core/themes/bartik/css/colors.css
index f2a324996fa48fc276d87f577a83e64cde71f81f..96f38778c60300e6e1b033d1792462a089c0c205 100644
--- a/core/themes/bartik/css/colors.css
+++ b/core/themes/bartik/css/colors.css
@@ -1,4 +1,3 @@
-
/* ---------- Color Module Styles ----------- */
body,
@@ -30,14 +29,18 @@ body.overlay {
background-image: -webkit-linear-gradient(top, #0779bf 0%, #48a9e4 100%);
background-image: linear-gradient(top, #0779bf 0%, #48a9e4 100%);
}
-a {
+a,
+.link {
color: #0071b3;
}
a:hover,
-a:focus {
+a:focus,
+.link:hover,
+.link:focus {
color: #018fe2;
}
-a:active {
+a:active,
+.link:active {
color: #23aeff;
}
.sidebar .block {
diff --git a/core/themes/bartik/css/style.css b/core/themes/bartik/css/style.css
index 7a6a376de11dba8463cacddaa7839ca7b3a2c22f..42ddc2e65d3700f22080b6f691b559b2c44ae3bf 100644
--- a/core/themes/bartik/css/style.css
+++ b/core/themes/bartik/css/style.css
@@ -15,7 +15,10 @@ a:visited {
}
a:hover,
a:active,
-a:focus {
+a:focus,
+.link:hover,
+.link:active,
+.link:focus {
text-decoration: underline;
}
h1,
@@ -122,14 +125,16 @@ div.messages,
div.meta,
p.comment-time,
table,
-.breadcrumb {
+.breadcrumb,
+.link {
font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
}
input,
textarea,
select,
.form-button,
-a.button {
+a.button,
+button {
font-family: "Lucida Grande", "Lucida Sans Unicode", Verdana, sans-serif;
}
diff --git a/core/themes/seven/style.css b/core/themes/seven/style.css
index c65a22d6a96c6374a91bef3c45ff21e8cc8c75cf..6e083a7e9b2dfb3d6c92d777688ed6aa2039cd60 100644
--- a/core/themes/seven/style.css
+++ b/core/themes/seven/style.css
@@ -6,11 +6,13 @@ body {
background: #fff;
font: normal 81.3%/1.538em "Lucida Grande", "Lucida Sans Unicode", sans-serif;
}
-a {
+a,
+.link {
color: #0074bd;
text-decoration: none;
}
-a:hover {
+a:hover,
+.link:hover {
text-decoration: underline;
}
hr {