Commit 90e7bdd0 authored by alexpott's avatar alexpott

Issue #2408481 by kyuubi, Karmen: Rewrite help.module component's inline with our CSS standards

parent ea6548bc
......@@ -58,12 +58,15 @@ function forum_help($route_name, RouteMatchInterface $route_match) {
'#type' => 'link',
'#url' => Url::fromRoute('help.page', ['name' => 'forum']),
'#title' => t('More help'),
'#attributes' => array(
'class' => array('icon-help'),
),
);
$container = array(
'#theme' => 'container',
'#children' => drupal_render($more_help_link),
'#attributes' => array(
'class' => array('more-help-link'),
'class' => array('more-link'),
),
);
$output .= drupal_render($container);
......
......@@ -143,20 +143,12 @@ abbr.ajax-changed {
text-align: left;
}
/**
* More help link style.
*/
.more-help-link {
text-align: right; /* LTR */
}
[dir="rtl"] .more-help-link {
text-align: left;
}
.more-help-link a {
/* Style for the help icon. */
.icon-help {
background: url(../../../misc/help.png) 0 50% no-repeat; /* LTR */
padding: 1px 0 1px 20px; /* LTR */
}
[dir="rtl"] .more-help-link a {
[dir="rtl"] .icon-help {
background-position: 100% 50%;
padding: 1px 20px 1px 0;
}
......
/**
* Help.
* @file
* Seven styles for the help component.
*/
.help p {
margin: 0 0 10px;
}
.help div.more-help-link {
text-align: right; /* LTR */
}
[dir="rtl"] .help div.more-help-link {
text-align: left;
}
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