mirror of
https://github.com/farmOS/farmOS.git
synced 2024-02-23 11:37:38 +01:00
Add some space between help text paragraphs via CSS.
This commit is contained in:
parent
05418f804b
commit
1d8a0d1c21
|
@ -16,7 +16,6 @@ function farm_ui_location_help($route_name, RouteMatchInterface $route_match) {
|
||||||
// Locations overview help text.
|
// Locations overview help text.
|
||||||
if ($route_name == 'farm.locations') {
|
if ($route_name == 'farm.locations') {
|
||||||
$output .= '<p>' . t('Locations represent places of interest. They are assets, and assets can be moved to them. Logs can reference them.') . '</p>';
|
$output .= '<p>' . t('Locations represent places of interest. They are assets, and assets can be moved to them. Logs can reference them.') . '</p>';
|
||||||
$output .= '<p> </p>';
|
|
||||||
$output .= '<p>' . t('Locations can be organized into a hierarchy with parent relationships.') . '</p>';
|
$output .= '<p>' . t('Locations can be organized into a hierarchy with parent relationships.') . '</p>';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -27,7 +26,6 @@ function farm_ui_location_help($route_name, RouteMatchInterface $route_match) {
|
||||||
|
|
||||||
// Drag and drop help text.
|
// Drag and drop help text.
|
||||||
if (in_array($route_name, ['farm.locations', 'farm.asset.locations'])) {
|
if (in_array($route_name, ['farm.locations', 'farm.asset.locations'])) {
|
||||||
$output .= '<p> </p>';
|
|
||||||
$output .= '<p>' . t('To change the hierarchy, either click on individual assets and edit their parent, or click %toggle_button below to enable drag and drop editing on this page. The %save_button button will save changes, and %reset_button will reset them.', ['%toggle_button' => t('Toggle drag and drop'), '%save_button' => t('Save'), '%reset_button' => t('Reset')]) . '</p>';
|
$output .= '<p>' . t('To change the hierarchy, either click on individual assets and edit their parent, or click %toggle_button below to enable drag and drop editing on this page. The %save_button button will save changes, and %reset_button will reset them.', ['%toggle_button' => t('Toggle drag and drop'), '%save_button' => t('Save'), '%reset_button' => t('Reset')]) . '</p>';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
3
modules/ui/theme/css/help.css
Normal file
3
modules/ui/theme/css/help.css
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
.help .block-help-block p {
|
||||||
|
margin-bottom: 1em;
|
||||||
|
}
|
|
@ -6,6 +6,10 @@ footer:
|
||||||
css:
|
css:
|
||||||
theme:
|
theme:
|
||||||
css/footer.css: { }
|
css/footer.css: { }
|
||||||
|
help:
|
||||||
|
css:
|
||||||
|
theme:
|
||||||
|
css/help.css: { }
|
||||||
map:
|
map:
|
||||||
css:
|
css:
|
||||||
theme:
|
theme:
|
||||||
|
|
|
@ -16,6 +16,15 @@ function farm_ui_theme_element_info_alter(array &$info) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Implements hook_preprocess_HOOK().
|
||||||
|
*/
|
||||||
|
function farm_ui_theme_preprocess_block(&$variables) {
|
||||||
|
if ($variables['plugin_id'] == 'help_block') {
|
||||||
|
$variables['#attached']['library'][] = 'farm_ui_theme/help';
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Implements hook_preprocess_HOOK().
|
* Implements hook_preprocess_HOOK().
|
||||||
*/
|
*/
|
||||||
|
|
Loading…
Reference in a new issue