From f5990297267e53146b4bcb79244881f12fa0481f Mon Sep 17 00:00:00 2001 From: Thomas Gelf Date: Fri, 27 Jan 2017 11:22:36 +0100 Subject: [PATCH] css: fix compact styling --- library/Businessprocess/Web/Controller.php | 10 ++++++++-- public/css/module.less | 6 +++--- 2 files changed, 11 insertions(+), 5 deletions(-) diff --git a/library/Businessprocess/Web/Controller.php b/library/Businessprocess/Web/Controller.php index 3f82512..15689b1 100644 --- a/library/Businessprocess/Web/Controller.php +++ b/library/Businessprocess/Web/Controller.php @@ -86,7 +86,10 @@ class Controller extends ModuleController protected function controls() { if ($this->view->controls === null) { - $this->view->controls = Controls::create(); + $controls = $this->view->controls = Controls::create(); + if ($this->view->compact) { + $controls->attributes()->add('class', 'compact'); + } } return $this->view->controls; @@ -98,7 +101,10 @@ class Controller extends ModuleController protected function content() { if ($this->view->content === null) { - $this->view->content = Content::create(); + $content = $this->view->content = Content::create(); + if ($this->view->compact) { + $content->attributes()->add('class', 'compact'); + } } return $this->view->content; diff --git a/public/css/module.less b/public/css/module.less index ffd72f6..1305d3a 100644 --- a/public/css/module.less +++ b/public/css/module.less @@ -536,7 +536,7 @@ div.bp .badges { .tiles.normal { font-size: 2.1em; } .tiles.many { font-size: 1.8em; } -#layout.twocols, #layout.layout-minimal, .compact { +#layout.twocols, #layout.layout-minimal, div.compact { .tiles.few { font-size: 1.8em; } .tiles.normal { font-size: 1.8em; } .tiles.many { font-size: 1.8em; } @@ -659,9 +659,9 @@ div.bp .badges { text-decoration: underline; } -#layout.twocols, #layout.layout-minimal, .compact { +#layout.twocols, #layout.layout-minimal, div.compact { .breadcrumb { - font-size: 0.9em; + font-size: 0.833em; } }