Add padding between layout columns.

This commit is contained in:
paul121 2020-12-16 14:56:04 -08:00 committed by Michael Stenta
parent 2633517aa6
commit 4091d7db01
3 changed files with 16 additions and 1 deletions

View File

@ -0,0 +1,7 @@
.layout--twocol .layout__region {
box-sizing: border-box;
}
.layout--twocol .layout__region--first {
padding-right: 1.5em;
}

View File

@ -0,0 +1,4 @@
dashboard_layout:
css:
theme:
css/dashboard_layout.css: { }

View File

@ -164,7 +164,11 @@ class DashboardController extends ControllerBase {
}
// Build the layout.
return $layoutInstance->build($regions);
$render = $layoutInstance->build($regions);
// Add the dashboard_layout styles.
$render['#attached']['library'][] = 'farm_ui_dashboard/dashboard_layout';
return $render;
}
}