From fd43619f1a47be784a016431346531ad7d2dd71c Mon Sep 17 00:00:00 2001 From: Felix Fontein Date: Tue, 11 Feb 2020 19:16:26 +0100 Subject: Docs: improve anchors vs. header bar (#67244) --- docs/docsite/_static/ansible.css | 22 +++++++++++++--------- 1 file changed, 13 insertions(+), 9 deletions(-) (limited to 'docs/docsite') diff --git a/docs/docsite/_static/ansible.css b/docs/docsite/_static/ansible.css index 2fd26cebad..f9d0b1a451 100644 --- a/docs/docsite/_static/ansible.css +++ b/docs/docsite/_static/ansible.css @@ -36,15 +36,6 @@ tr .ansibleOptionLink::after { content: ""; font-family: FontAwesome; } -tr .ansibleOptionLink::before { - font-family: "FontAwesome"; - display: inline-block; - font-style: normal; - font-weight: normal; - line-height: 1; - text-decoration: inherit; - -webkit-font-smoothing: antialiased; -} tr .ansibleOptionLink { visibility: hidden; display: inline-block; @@ -53,3 +44,16 @@ tr .ansibleOptionLink { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; } + +@media screen and (min-width:767px){ + /* Move anchors a bit up so that they aren't hidden by the header bar */ + section [id] { + padding-top: 45px; + margin-top: -45px; + } + /* Without this, for example most links in the page's TOC aren't usable anymore */ + section a[id] { + padding-top: 0; + margin-top: 0; + } +} \ No newline at end of file -- cgit v1.2.1