css: fix compact styling

This commit is contained in:
Thomas Gelf 2017-01-27 11:22:36 +01:00
parent 605820adb7
commit f599029726
2 changed files with 11 additions and 5 deletions

View file

@ -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;

View file

@ -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;
}
}