mirror of
https://github.com/farmOS/farmOS.git
synced 2024-02-23 11:37:38 +01:00
Add padding between layout columns.
This commit is contained in:
parent
2633517aa6
commit
4091d7db01
3 changed files with 16 additions and 1 deletions
7
modules/ui/dashboard/css/dashboard_layout.css
Normal file
7
modules/ui/dashboard/css/dashboard_layout.css
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
.layout--twocol .layout__region {
|
||||||
|
box-sizing: border-box;
|
||||||
|
}
|
||||||
|
|
||||||
|
.layout--twocol .layout__region--first {
|
||||||
|
padding-right: 1.5em;
|
||||||
|
}
|
4
modules/ui/dashboard/farm_ui_dashboard.libraries.yml
Normal file
4
modules/ui/dashboard/farm_ui_dashboard.libraries.yml
Normal file
|
@ -0,0 +1,4 @@
|
||||||
|
dashboard_layout:
|
||||||
|
css:
|
||||||
|
theme:
|
||||||
|
css/dashboard_layout.css: { }
|
|
@ -164,7 +164,11 @@ class DashboardController extends ControllerBase {
|
||||||
}
|
}
|
||||||
|
|
||||||
// Build the layout.
|
// 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;
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue