Commit e82c6f2a authored by alexpott's avatar alexpott

Issue #2422399 by aliyakhan, JCL324, mortendk, skippednote, rpayanm, tadityar,...

Issue #2422399 by aliyakhan, JCL324, mortendk, skippednote, rpayanm, tadityar, LewisNyman, joelpittet, idebr: Rewrite block.admin.css inline with our CSS standards
parent 744a7ba0
......@@ -43,13 +43,10 @@ a.block-demo-backlink:hover {
.block-list-secondary .form-type-search {
padding: 0 1em;
}
#block-placed {
background-color: #ffd;
}
#edit-settings-admin-label label {
.block-form .form-item-settings-admin-label label {
display: inline;
}
#edit-settings-admin-label label:after {
.block-form .form-item-settings-admin-label label:after {
content: ':';
}
......
......@@ -80,7 +80,7 @@
// Just scrolling the document.body will not work in Firefox. The html
// element is needed as well.
$('html, body').animate({
scrollTop: $('#block-placed').offset().top - $container.offset().top + $container.scrollTop()
scrollTop: $('.js-block-placed').offset().top - $container.offset().top + $container.scrollTop()
}, 500);
});
}
......
......@@ -247,9 +247,9 @@ public function buildForm(array $form, FormStateInterface $form_state) {
),
);
if ($placement && $placement == Html::getClass($entity_id)) {
$form['blocks'][$entity_id]['#attributes']['id'] = 'block-placed';
$form['blocks'][$entity_id]['#attributes']['class'][] = 'color-warning';
$form['blocks'][$entity_id]['#attributes']['class'][] = 'js-block-placed';
}
$form['blocks'][$entity_id]['info'] = array(
'#markup' => SafeMarkup::checkPlain($info['label']),
'#wrapper_attributes' => array(
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment