From 2e3c2060a8e987591839a4013f6fd2804a2cd857 Mon Sep 17 00:00:00 2001 From: Damien Date: Mon, 6 Apr 2020 22:01:45 +0200 Subject: [PATCH 1/4] display header link in code snippet on hover --- djangoproject/scss/_style.scss | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/djangoproject/scss/_style.scss b/djangoproject/scss/_style.scss index 4476a3026..000dc1389 100644 --- a/djangoproject/scss/_style.scss +++ b/djangoproject/scss/_style.scss @@ -3207,6 +3207,10 @@ ul.corporate-members li { } .code-block-caption, .snippet { + &:hover .headerlink { + opacity: 1; + } + .btn-clipboard { float: right; cursor: pointer; From b5d54c23f5308dc896f39cc5464d75b0bacd65f5 Mon Sep 17 00:00:00 2001 From: Damien Date: Mon, 6 Apr 2020 22:06:16 +0200 Subject: [PATCH 2/4] fix tabs -> spaces --- djangoproject/scss/_style.scss | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/djangoproject/scss/_style.scss b/djangoproject/scss/_style.scss index 000dc1389..456aef027 100644 --- a/djangoproject/scss/_style.scss +++ b/djangoproject/scss/_style.scss @@ -3207,9 +3207,9 @@ ul.corporate-members li { } .code-block-caption, .snippet { - &:hover .headerlink { - opacity: 1; - } + &:hover .headerlink { + opacity: 1; + } .btn-clipboard { float: right; From ceab55efce5b4b1231b5273245eaba62ecc6d86d Mon Sep 17 00:00:00 2001 From: Thibaud Colas Date: Thu, 16 Nov 2023 19:38:56 +0000 Subject: [PATCH 3/4] Always show header anchor links MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit We can’t tell links are there if they are invisible. For documentation, being able to link to a specific section is really useful – let’s just always have those header anchor link indicators visible on the site. --- djangoproject/scss/_style.scss | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/djangoproject/scss/_style.scss b/djangoproject/scss/_style.scss index 456aef027..9009d2eb5 100644 --- a/djangoproject/scss/_style.scss +++ b/djangoproject/scss/_style.scss @@ -2041,7 +2041,6 @@ h2 + .list-link-soup { .headerlink { // Permalink styles for sections in docs - opacity: 0; padding-left: 10px; font-size: 0.8em; position: relative; @@ -2052,21 +2051,6 @@ h2 + .list-link-soup { transition: opacity 200ms ease-in-out; } - h1, - h2, - h3, - h4, - h5, - h6, - dl, - dt { - &:hover { - > .headerlink { - opacity: 1; - } - } - } - //Notes, help blocks, and annotation sections .note, .admonition, From fad655911149d30723ea8912bbeee8558b5bcd21 Mon Sep 17 00:00:00 2001 From: Thibaud Colas Date: Thu, 16 Nov 2023 19:45:11 +0000 Subject: [PATCH 4/4] Update _style.scss --- djangoproject/scss/_style.scss | 4 ---- 1 file changed, 4 deletions(-) diff --git a/djangoproject/scss/_style.scss b/djangoproject/scss/_style.scss index 9009d2eb5..d60f2e56f 100644 --- a/djangoproject/scss/_style.scss +++ b/djangoproject/scss/_style.scss @@ -3191,10 +3191,6 @@ ul.corporate-members li { } .code-block-caption, .snippet { - &:hover .headerlink { - opacity: 1; - } - .btn-clipboard { float: right; cursor: pointer;