aboutsummaryrefslogtreecommitdiffstats
path: root/pelican-bootstrap3
diff options
context:
space:
mode:
authorBrian Levin <brianlevin@fluorine.kiewit.dartmouth.edu>2016-06-01 17:32:48 -0400
committerBrian Levin <brianlevin@fluorine.kiewit.dartmouth.edu>2016-06-01 17:32:48 -0400
commit4fa865ee2ec2265cf725dbbdd86d0e5e13e155ee (patch)
treed9c1b00c204e51dce97df83644b05f0b8b693ed1 /pelican-bootstrap3
parentccb8efc064dff0cc24fe715d8f83e33e061c64de (diff)
downloadpelican-themes-4fa865ee2ec2265cf725dbbdd86d0e5e13e155ee.zip
pelican-themes-4fa865ee2ec2265cf725dbbdd86d0e5e13e155ee.tar.gz
pelican-themes-4fa865ee2ec2265cf725dbbdd86d0e5e13e155ee.tar.bz2
Anchor Tag Offset Fix
Fixes issue when anchor tags are clicked, the navbar causes the offset to fall short. This fixes that behavior.
Diffstat (limited to 'pelican-bootstrap3')
-rw-r--r--pelican-bootstrap3/static/css/style.css14
1 files 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 */
+}