",
+ '#prefix' => "
",
'#suffix' => '
',
'#states' => array(
'visible' => array(
@@ -153,7 +151,6 @@ public function buildForm(array $form, array &$form_state) {
)
)
);
- $zebra++;
}
}
diff --git a/core/modules/views_ui/lib/Drupal/views_ui/Tests/DisplayTest.php b/core/modules/views_ui/lib/Drupal/views_ui/Tests/DisplayTest.php
index 76480e2..ae15d5c 100644
--- a/core/modules/views_ui/lib/Drupal/views_ui/Tests/DisplayTest.php
+++ b/core/modules/views_ui/lib/Drupal/views_ui/Tests/DisplayTest.php
@@ -313,7 +313,7 @@ public function testPageContextualLinks() {
$response = $this->drupalPost('contextual/render', 'application/json', $post, array('query' => array('destination' => 'test-display')));
$this->assertResponse(200);
$json = drupal_json_decode($response);
- $this->assertIdentical($json[$id], '
');
+ $this->assertIdentical($json[$id], '
');
}
/**
diff --git a/core/modules/views_ui/views_ui.theme.inc b/core/modules/views_ui/views_ui.theme.inc
index ae32eaf..db4f3e8 100644
--- a/core/modules/views_ui/views_ui.theme.inc
+++ b/core/modules/views_ui/views_ui.theme.inc
@@ -24,15 +24,11 @@
* appended to the setting's description.
*/
function template_preprocess_views_ui_display_tab_setting(&$variables) {
- static $zebra = 0;
// Add default class attributes.
$variables['attributes']['class'][] = 'views-display-setting';
- $variables['attributes']['class'][] = ($zebra % 2 === 0 ? 'odd' : 'even');
$variables['attributes']['class'][] = 'clearfix';
- $zebra++;
-
// Put the primary link to the left side.
array_unshift($variables['settings_links'], $variables['link']);
diff --git a/core/themes/bartik/css/style.css b/core/themes/bartik/css/style.css
index 6c7a8fc..ab61506 100644
--- a/core/themes/bartik/css/style.css
+++ b/core/themes/bartik/css/style.css
@@ -446,7 +446,7 @@ h1#site-name {
text-decoration: none;
background: rgba(255, 255, 255, 0.15);
}
-.region-header .block-menu li.last a {
+.region-header .block-menu li:last-child a {
border-bottom: 0;
}
/* User Login block in the header region */
@@ -481,10 +481,10 @@ h1#site-name {
float: left; /* LTR */
padding: 3px 0 1px;
}
-.region-header #block-user-login .item-list li.last {
+.region-header #block-user-login .item-list li:last-child {
padding-left: 0.5em; /* LTR */
}
-[dir="rtl"] .region-header #block-user-login .item-list li.last {
+[dir="rtl"] .region-header #block-user-login .item-list li:last-child {
padding-left: 0;
padding-right: 0.5em;
}
@@ -916,7 +916,7 @@ ul.links {
border-bottom: 1px solid #dfdfdf;
line-height: 1.3;
}
-#triptych .block.last {
+#triptych .block:last-child {
border-bottom: none;
}
#triptych .block ul li,
@@ -1072,18 +1072,18 @@ ul.links {
border-color: rgba(255, 255, 255, 0.15);
border-right: none;
}
-#footer .menu li.first a {
+#footer .menu li:first-child a {
padding-left: 0; /* LTR */
}
-[dir="rtl"] #footer .menu li.first a {
+[dir="rtl"] #footer .menu li:first-child a {
padding-right: 0;
padding-left: 12px;
}
-#footer .menu li.last a {
+#footer .menu li:last-child a {
padding-right: 0; /* LTR */
border-right: none; /* LTR */
}
-[dir="rtl"] #footer .menu li.last a {
+[dir="rtl"] #footer .menu li:last-child a {
padding-left: 0;
padding-right: 12px;
border-left: none;
@@ -1948,7 +1948,7 @@ div.admin-panel .description {
* The contents of the popup dialog on the views edit form.
*/
-.views-filterable-options .even .form-type-checkbox {
+.views-filterable-options .filterable-option:nth-of-type(even) .form-type-checkbox {
background-color: #F9F9F9;
}
diff --git a/core/themes/seven/vertical-tabs.css b/core/themes/seven/vertical-tabs.css
index 2bc1096..325a3af 100644
--- a/core/themes/seven/vertical-tabs.css
+++ b/core/themes/seven/vertical-tabs.css
@@ -50,7 +50,7 @@
text-shadow: 0 1px hsla(0, 0%, 100%, 0.6);
text-decoration: none;
}
-.vertical-tab-button.last a {
+.vertical-tab-button:last-child a {
border-bottom: 0;
}
.vertical-tab-button.selected a,