Issue #2408481 by kyuubi, Karmen: Rewrite help.module component's inline with our CSS standards
parent
ea6548bcb1
commit
90e7bdd067
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -1,12 +1,8 @@
|
|||
/**
|
||||
* 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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue