From b29322d6842ed31e9c6a49fb2e65cb2c6fd8efba Mon Sep 17 00:00:00 2001 From: reliberate Date: Mon, 28 Mar 2016 23:39:42 -0600 Subject: [PATCH] Theme: Maximize body width and shrink padding in xs view. --- themes/default/template.php | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/themes/default/template.php b/themes/default/template.php index beb5d3e3f5..7f842db30b 100644 --- a/themes/default/template.php +++ b/themes/default/template.php @@ -565,6 +565,22 @@ text-align: left; } + /* default body padding */ + .container-fluid { + width: 90%; + } + + /* maximize viewport usage on xs displays */ + @media(min-width: 0px) and (max-width: 767px) { + .container-fluid { + width: 100%; + } + + #main_content { + padding: 8px; + } + } + /* GENERAL ELEMENTS *****************************************************************/ img { @@ -1677,7 +1693,7 @@ $menu_style = ($_SESSION['theme']['menu_style']['text'] != '') ? $_SESSION['theme']['menu_style']['text'] : 'fixed'; $menu_position = ($_SESSION['theme']['menu_position']['text']) ? $_SESSION['theme']['menu_position']['text'] : 'top'; - $open_container = "
"; + $open_container = "
"; switch ($menu_style) { case 'inline':