From bb9a4a752d826743abb03431a151985194575b8b Mon Sep 17 00:00:00 2001 From: squidfunk Date: Sat, 17 Dec 2016 13:00:15 +0100 Subject: [PATCH] Fix specificity problem for permalinks color --- material/assets/stylesheets/application.css | 3 ++- src/assets/stylesheets/extensions/_permalinks.scss | 6 +++++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/material/assets/stylesheets/application.css b/material/assets/stylesheets/application.css index 23ee7407c..a3b07bf49 100644 --- a/material/assets/stylesheets/application.css +++ b/material/assets/stylesheets/application.css @@ -1105,8 +1105,9 @@ hr { transition: color 0.25s, opacity 0.125s 0.25s, -webkit-transform 0.25s 0.25s; transition: transform 0.25s 0.25s, color 0.25s, opacity 0.125s 0.25s; transition: transform 0.25s 0.25s, color 0.25s, opacity 0.125s 0.25s, -webkit-transform 0.25s 0.25s; - color: rgba(0, 0, 0, 0.26); opacity: 0; } + html body .md-typeset .headerlink { + color: rgba(0, 0, 0, 0.26); } .md-typeset [id]:hover .headerlink, .md-typeset [id]:target .headerlink, diff --git a/src/assets/stylesheets/extensions/_permalinks.scss b/src/assets/stylesheets/extensions/_permalinks.scss index 1e1a6ee15..a469b90ef 100644 --- a/src/assets/stylesheets/extensions/_permalinks.scss +++ b/src/assets/stylesheets/extensions/_permalinks.scss @@ -35,9 +35,13 @@ transition: transform 0.25s 0.25s, color 0.25s, opacity 0.125s 0.25s; - color: $md-color-black--lighter; opacity: 0; + // Higher specificity for color due to palettes integration + html body & { + color: $md-color-black--lighter; + } + // Hide for print @media print { display: none;