From 4fa865ee2ec2265cf725dbbdd86d0e5e13e155ee Mon Sep 17 00:00:00 2001 From: Brian Levin Date: Wed, 1 Jun 2016 17:32:48 -0400 Subject: Anchor Tag Offset Fix Fixes issue when anchor tags are clicked, the navbar causes the offset to fall short. This fixes that behavior. --- pelican-bootstrap3/static/css/style.css | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/pelican-bootstrap3/static/css/style.css b/pelican-bootstrap3/static/css/style.css index f9e65fa..4f23c18 100644 --- a/pelican-bootstrap3/static/css/style.css +++ b/pelican-bootstrap3/static/css/style.css @@ -12,7 +12,7 @@ body { } /* for list-group-items nested within a list-group-item, reset the bottom - padding of the last item, b/c the containing item has paddimg already + padding of the last item, b/c the containing item has paddimg already */ .list-group-item .list-group-item:last-child { padding-bottom: 0px; @@ -175,7 +175,7 @@ figure.floatcenter, .align-center { background-repeat: no-repeat; background-position: top center; background-attachment: scroll; - background-size: cover; + background-size: cover; background-color: #C4C4C4; margin: 0 0 20px; padding: 70px 0; /*controls padding around inner text*/ @@ -221,3 +221,13 @@ figure.floatcenter, .align-center { font-size: 16px; } } + +:target:before { + content:""; + display:block; + height:50px; + /* fixed header height*/ + + margin:-50px 0 0; + /* negative fixed header height */ +} -- cgit v1.1 From 35d54746404b6ddcca5a47ba58d4abc2ce24226c Mon Sep 17 00:00:00 2001 From: Brian Levin Date: Wed, 1 Jun 2016 17:38:49 -0400 Subject: Logo/Site Name Navbar issue Fixed issue where if you had both your site name and your site logo turned on, they sat on top of each other. Now they sit next to each other. --- pelican-bootstrap3/static/css/style.css | 8 ++++++++ pelican-bootstrap3/templates/base.html | 2 +- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/pelican-bootstrap3/static/css/style.css b/pelican-bootstrap3/static/css/style.css index 4f23c18..646765a 100644 --- a/pelican-bootstrap3/static/css/style.css +++ b/pelican-bootstrap3/static/css/style.css @@ -231,3 +231,11 @@ figure.floatcenter, .align-center { margin:-50px 0 0; /* negative fixed header height */ } + +.gap-right { + margin-right: 10px; +} + +.gap-left { + margin-left: 10px; +} diff --git a/pelican-bootstrap3/templates/base.html b/pelican-bootstrap3/templates/base.html index 610d050..85f7f5f 100644 --- a/pelican-bootstrap3/templates/base.html +++ b/pelican-bootstrap3/templates/base.html @@ -112,7 +112,7 @@ - {% if SITELOGO %} {% endif %} + {% if SITELOGO %} {% endif %} {% if not HIDE_SITENAME %}{{ SITENAME }}{% endif %} -- cgit v1.1