fix responsiveness for small devices
Project: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-site/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-site/commit/39c98177 Tree: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-site/tree/39c98177 Diff: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-site/diff/39c98177 Branch: refs/heads/develop Commit: 39c9817799552c7f3bb9beabe339c055eef3e568 Parents: 97090bc Author: Gavin Jefferies <[email protected]> Authored: Fri May 20 13:25:15 2016 -0700 Committer: Gavin Jefferies <[email protected]> Committed: Fri May 20 13:29:36 2016 -0700 ---------------------------------------------------------------------- custom-theme/css/base.css | 4 ---- custom-theme/css/custom.css | 9 ++++++++- custom-theme/css/v2.css | 6 ++++++ 3 files changed, 14 insertions(+), 5 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-mynewt-site/blob/39c98177/custom-theme/css/base.css ---------------------------------------------------------------------- diff --git a/custom-theme/css/base.css b/custom-theme/css/base.css index 7e4d912..95f1581 100644 --- a/custom-theme/css/base.css +++ b/custom-theme/css/base.css @@ -1,7 +1,3 @@ -body { - padding-top: 70px; -} - ul.nav li.main { font-weight: bold; } http://git-wip-us.apache.org/repos/asf/incubator-mynewt-site/blob/39c98177/custom-theme/css/custom.css ---------------------------------------------------------------------- diff --git a/custom-theme/css/custom.css b/custom-theme/css/custom.css index b661ad2..74c48b2 100644 --- a/custom-theme/css/custom.css +++ b/custom-theme/css/custom.css @@ -26,13 +26,20 @@ display: none; } +body { + padding-top: 70px; +} + @media (max-width: 768px) { + body { + padding-top: 100px; + } + .navbar { padding: 14px 40px; } - .small-no-padding, .small-no-padding .col-md-6 { padding: 0; http://git-wip-us.apache.org/repos/asf/incubator-mynewt-site/blob/39c98177/custom-theme/css/v2.css ---------------------------------------------------------------------- diff --git a/custom-theme/css/v2.css b/custom-theme/css/v2.css index 928cffc..f6e84ee 100644 --- a/custom-theme/css/v2.css +++ b/custom-theme/css/v2.css @@ -56,6 +56,12 @@ padding-bottom: 15px; } +@media (max-width: 992px) { + .v2-sidebar > div { + padding-top: 15px; + } +} + .v2-sidebar .form-group { margin-right: 15px; }
